Tldraw/packages/editor/src/lib/primitives
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
..
geometry Faster selection / erasing (#3454) 2024-04-13 13:30:30 +00:00
Box.test.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
Box.ts [Snapping 3/5] Custom snapping API (#2793) 2024-02-15 15:10:04 +00:00
Mat.test.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
Mat.ts [tech debt] Primitives renaming party / cleanup (#2396) 2024-01-03 12:13:15 +00:00
Vec.test.ts Add tests for Vec.Average (#3071) 2024-03-05 14:14:08 +00:00
Vec.ts Faster selection / erasing (#3454) 2024-04-13 13:30:30 +00:00
easings.ts Unbiome (#2776) 2024-02-07 16:02:22 +00:00
intersect.ts Fix issues with clip paths for frames (#2406) 2024-01-05 07:55:38 +00:00
utils.test.ts arrows: separate out handle behavior from labels (#2621) 2024-01-31 11:17:03 +00:00
utils.ts fix docs not building due to typo (#3259) 2024-03-25 15:34:43 +00:00