Tldraw/packages/editor/src/lib/hooks
Steve Ruiz 3ceebc82f8
Faster selection / erasing (#3454)
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.
2024-04-13 13:30:30 +00:00
..
useCanvasEvents.ts
useCoarsePointer.ts
useContainer.tsx
useCursor.ts [Fix] Overlapping non-adjacent handles (#2663) 2024-01-27 15:01:18 +00:00
useDarkMode.ts
useDocumentEvents.ts [Fix] Camera coordinate issues (#2719) 2024-02-04 12:03:49 +00:00
useEditor.ts Add component for viewing an image of a snapshot (#2804) 2024-02-16 13:54:48 +00:00
useEditorComponents.tsx Faster selection / erasing (#3454) 2024-04-13 13:30:30 +00:00
useEvent.tsx
useFixSafariDoubleTapZoomPencilEvents.ts Fix the cleanup of event handlers (#2298) 2023-12-06 16:19:31 +00:00
useFocusEvents.ts
useForceUpdate.ts
useGestureEvents.ts Add image annotator example (#3147) 2024-03-19 11:41:25 +00:00
useHandleEvents.ts
useIdentity.tsx fix vite HMR issue (#2279) 2023-12-01 16:48:30 +00:00
useIsCropping.ts
useIsDarkMode.ts React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00
useIsEditing.ts
useLocalStore.ts
usePeerIds.ts
usePresence.ts
useSafariFocusOutFix.ts
useSafeId.ts Component-based toolbar customisation API (#3067) 2024-03-12 16:14:28 +00:00
useScreenBounds.ts Improve performance of culling (#3272) 2024-03-28 09:42:48 +00:00
useSelectionEvents.ts
useTLStore.ts fix vite HMR issue (#2279) 2023-12-01 16:48:30 +00:00
useTransform.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
useZoomCss.ts