You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: update Layer and LayersService for better performance and consistency
- Moved from useEffect to useLayoutEffect in useLayer for immediate updates.
- Replaced window.devicePixelRatio with globalThis.devicePixelRatio for broader compatibility.
- Enhanced updateSize method in Layer to ensure proper rendering.
- Changed rootSize in LayersService to use signals for reactive updates.
- Switched debounce to throttle in handleRootResize for improved performance.
0 commit comments