tldraw / tldraw

SDK for creating whiteboards and canvas experiences on the web.
https://tldraw.dev
Other
33.87k stars 2.03k forks source link

Store-level "operation end" event #3748

Closed SomeHats closed 1 month ago

SomeHats commented 1 month ago

This adds a store-level "operation end" event which fires at the end of atomic operations. It includes some other changes too:

I've also added a rough pin example which shows (kinda messily) how you might use the operation complete handler to traverse a graph of bindings and resolve constraints between them.

Change Type

Release Notes

Breaking changes

editor.registerBatchCompleteHandler has been replaced with editor.registerOperationCompleteHandler

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
examples ✅ Ready (Inspect) Visit Preview May 13, 2024 1:24pm
1 Ignored Deployment | Name | Status | Preview | Updated (UTC) | | :--- | :----- | :------ | :------ | | **tldraw-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/tldraw/tldraw-docs/GsqgzaCPLB1kyGWskWLyRL4XgbAH)) | | May 13, 2024 1:24pm |