kopia lustrzana https://github.com/Tldraw/Tldraw
3ceebc82f8
This PR makes a small improvement to the way we measure distances. (Often we measure distances multiple times per frame per shape on the screen). In many cases, we compare a minimum distance. This makes those checks faster by avoiding a square root. ### Change Type - [x] `sdk` — Changes the tldraw SDK - [x] `improvement` — Improving existing features ### Release Notes - Improve performance of minimum distance checks. |
||
---|---|---|
.. | ||
useCanvasEvents.ts | ||
useCoarsePointer.ts | ||
useContainer.tsx | ||
useCursor.ts | ||
useDarkMode.ts | ||
useDocumentEvents.ts | ||
useEditor.ts | ||
useEditorComponents.tsx | ||
useEvent.tsx | ||
useFixSafariDoubleTapZoomPencilEvents.ts | ||
useFocusEvents.ts | ||
useForceUpdate.ts | ||
useGestureEvents.ts | ||
useHandleEvents.ts | ||
useIdentity.tsx | ||
useIsCropping.ts | ||
useIsDarkMode.ts | ||
useIsEditing.ts | ||
useLocalStore.ts | ||
usePeerIds.ts | ||
usePresence.ts | ||
useSafariFocusOutFix.ts | ||
useSafeId.ts | ||
useScreenBounds.ts | ||
useSelectionEvents.ts | ||
useTLStore.ts | ||
useTransform.ts | ||
useZoomCss.ts |