217a1d073f
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. |
||
---|---|---|
.. | ||
assets | ||
editor | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
tlsync | ||
utils | ||
validate |