tldraw/packages
Mitja Bezenšek 217a1d073f
Fix frames not preserving shape order (#2928)
It looks like enclosing shapes with a new frame did not preserve the
order of the shapes. Also makes framing inside of frames work.

Solves https://github.com/tldraw/tldraw/issues/2892

Before:


https://github.com/tldraw/tldraw/assets/2523721/90da4fc0-92a1-49fe-b658-73842c4ef4c2


After:


https://github.com/tldraw/tldraw/assets/2523721/0558d22e-8216-4d84-8a89-7dd049c37974

### 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

### Test Plan

1. Add a few shapes.
2. Make sure to change some of their order (example in the gif puts the
last created shape to the back)
3. Create a new frame that encloses these shapes.
4. The order of the shapes should be preseved.

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Fix an issue when framing shapes did not preserve the original order
of the shapes.
2024-02-23 11:25:13 +00:00
..
assets Update CHANGELOG.md [skip ci] 2024-02-21 15:28:00 +00:00
editor Update CHANGELOG.md [skip ci] 2024-02-21 15:28:00 +00:00
state Update CHANGELOG.md [skip ci] 2024-02-21 15:28:00 +00:00
store Update CHANGELOG.md [skip ci] 2024-02-21 15:28:00 +00:00
tldraw Fix frames not preserving shape order (#2928) 2024-02-23 11:25:13 +00:00
tlschema Update CHANGELOG.md [skip ci] 2024-02-21 15:28:00 +00:00
tlsync Check tsconfig "references" arrays (#2891) 2024-02-21 13:07:53 +00:00
utils Update CHANGELOG.md [skip ci] 2024-02-21 15:28:00 +00:00
validate Update CHANGELOG.md [skip ci] 2024-02-21 15:28:00 +00:00