Tldraw/apps
Lu Wilson eabcb22b6e
Allow "kickout" on every shape, not just frames, and add drag-and-drop example (#3406)
> Stacked on top of https://github.com/tldraw/tldraw/pull/3405

> This doesn't need to land for the stickies release. We can merge it
afterwards. It's the last bit of work on my 'parenting' spike.

This PR makes `kickoutOccludedShapes` shape-agnostic. It now runs on any
shape that opts-in to the drag and drop manager by having an
`onDragShapesOut` method. This is more of a bug fix than a feature, but
some people might be relying on the bug.

This PR also adds an example for drag and drop.


https://github.com/tldraw/tldraw/assets/15892272/15b66be4-75bd-4c30-a594-340415bc5896


### Change Type

<!--  Please select a 'Scope' label ️ -->

- [ ] `sdk` — Changes the tldraw SDK
- [ ] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [ ] `bugfix` — Bug fix
- [ ] `feature` — New feature
- [ ] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [ ] `galaxy brain` — Architectural changes
- [ ] `tests` — Changes to any test code
- [ ] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know


### Test Plan

1. Add a step-by-step description of how to test your PR here.
2.

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

### Release Notes

- Add a brief release note for your PR here.

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2024-04-09 14:47:08 +01:00
..
docs
dotcom Update useFileSystem.tsx (#3371) 2024-04-05 11:40:28 +00:00
dotcom-asset-upload
dotcom-bookmark-extractor
dotcom-worker
examples Allow "kickout" on every shape, not just frames, and add drag-and-drop example (#3406) 2024-04-09 14:47:08 +01:00
health-worker
huppy
vscode