be927df935
Allows you to snap to frames when dragging inside them. https://github.com/tldraw/tldraw/assets/2523721/41816b9b-5969-416d-af15-77b8f102ad21 Resolves #2471 ### Change Type - [ ] `patch` — Bug fix - [x] `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. Create a frame. 2. Add some shape inside. 3. Drag the shapes while holding `cmd` or turning on always snap. You should be able to snap to the edges and the centre of the frame. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Adds snapping to frames when dragging shapes inside a frame. |
||
---|---|---|
.. | ||
assets | ||
editor | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
tlsync | ||
utils | ||
validate |