tldraw/packages
alex fd4b5c6291
Add line IDs & fractional indexes (#2890)
In #2856, we moved changed line handles into an array of points. This
introduced an issue where some concurrent operations wouldn't work
because they array indexes change. We need some sort of stable way of
referring to these points. Our existing fractional indexing system is a
good fit.

In this version, instead of making the points be a map from index to
x/y, we make the points be a map from id (the index) to
x/y/index/id(also index). This is "kinda silly" (steve's words) but
might be more familiar to devs who are expecting maps to be keyed on IDs
rather than anything else.

### Change Type

- [x] `major` — Breaking change
2024-02-21 10:06:14 +00:00
..
assets Lokalise: Translations update (#2830) 2024-02-14 08:59:41 +00:00
editor Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' (#2886) 2024-02-20 15:09:45 +00:00
state dev: swap yarn test and test-dev for better dx (#2773) 2024-02-14 16:05:59 +00:00
store Faster validations + record reference stability at the same time (#2848) 2024-02-20 12:35:25 +00:00
tldraw Add line IDs & fractional indexes (#2890) 2024-02-21 10:06:14 +00:00
tlschema Add line IDs & fractional indexes (#2890) 2024-02-21 10:06:14 +00:00
tlsync [Snapping 1/5] Validation & strict types for fractional indexes (#2827) 2024-02-14 17:53:30 +00:00
utils [Snapping 1/5] Validation & strict types for fractional indexes (#2827) 2024-02-14 17:53:30 +00:00
validate Faster validations + record reference stability at the same time (#2848) 2024-02-20 12:35:25 +00:00