mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 13:41:52 +00:00
fix: avoid unnecessary rerendering of selected-rect (#12583)
### Changed - Note scale issue - Overlay should call refresh when `clear` is called - Optimize edgeless-selected-rect to avoid unecessary rerendering <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Edgeless note blocks now respect both minimum and maximum size limits when resizing. - **Improvements** - Enhanced performance and responsiveness of resize and rotate handles in selection overlays by caching allowed handles and optimizing cursor management. - Cursor styles for resize and rotate handles are now set more reliably and efficiently through declarative styling. - **Bug Fixes** - Ensured overlay clearing now properly refreshes the renderer for more consistent visual updates. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -35,7 +35,9 @@ export abstract class Overlay extends Extension {
|
||||
]);
|
||||
}
|
||||
|
||||
clear() {}
|
||||
clear() {
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
dispose() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user