tldraw/packages/store/src/lib
David Sheldrick 386a2396d1
Fix shape drag perf (#1932)
This prevents geometry from being recalculated when dragging shapes
around. It uses an equality check on the shape props to opt out of
recalculations. This still allows bounds to be calculated based on other
reactive values, so if folks really want to use x,y values or opacity or
whatever, they can call editor.getShape(id) when making their
calculation.

### Change Type

- [x] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version


### Release Notes

- Fixes a perf regression for dragging shapes around
2023-09-19 15:29:13 +00:00
..
test tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
BaseRecord.ts tlschema cleanup (#1509) 2023-06-03 20:46:53 +00:00
Cache.ts Rename tlstore to store (#1507) 2023-06-03 08:59:04 +00:00
compareSchemas.ts Rename tlstore to store (#1507) 2023-06-03 08:59:04 +00:00
devFreeze.ts Rename tlstore to store (#1507) 2023-06-03 08:59:04 +00:00
executeQuery.ts Rename tlstore to store (#1507) 2023-06-03 08:59:04 +00:00
IncrementalSetConstructor.ts Rename tlstore to store (#1507) 2023-06-03 08:59:04 +00:00
migrate.ts Rename tlstore to store (#1507) 2023-06-03 08:59:04 +00:00
RecordType.ts Independent instance state persistence (#1493) 2023-06-05 14:11:07 +00:00
setUtils.ts Rename tlstore to store (#1507) 2023-06-03 08:59:04 +00:00
Store.ts Fix shape drag perf (#1932) 2023-09-19 15:29:13 +00:00
StoreQueries.ts Incorporate signia as @tldraw/state (#1620) 2023-06-20 13:31:26 +00:00
StoreSchema.ts [fix] mutating snapshot in migrateStoreSnapshot (#1663) 2023-06-28 14:23:56 +00:00
type-utils.ts Rename tlstore to store (#1507) 2023-06-03 08:59:04 +00:00