Tldraw/packages/tldraw/src/lib/shapes/shared
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
..
freehand Faster selection / erasing (#3454) 2024-04-13 13:30:30 +00:00
BrokenAssetIcon.tsx Show a broken image for files without assets (#2990) 2024-03-01 18:16:27 +00:00
HyperlinkButton.tsx tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
ShapeFill.tsx React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00
SvgTextLabel.tsx React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00
TextHelpers.ts license: make them not be scrubbed out in code munging (#2976) 2024-02-28 10:45:49 +00:00
TextLabel.tsx textfields: fix regression with Text shape and resizing (#3333) 2024-04-03 10:01:04 +00:00
createTextJsxFromSpans.tsx React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00
default-shape-constants.ts textfields [1 of 3]: add text into speech bubble; also add rich text example (#3050) 2024-03-27 09:33:48 +00:00
defaultStyleDefs.tsx Fix some tests (#3403) 2024-04-09 15:42:54 +00:00
getBrowserCanvasMaxSize.tsx React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00
getPerfectDashProps.ts tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
legacyProps.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
polygon-helpers.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
resizeBox.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
resizeScaled.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
rotated-box-shadow.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
useColorSpace.tsx tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
useEditableText.ts Fix blur bug in editable text (#3343) 2024-04-03 15:41:56 +00:00
useForceSolid.ts No impure getters pt6 (#2218) 2023-11-14 11:57:43 +00:00
usePrefersReducedMotion.tsx tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00