Tldraw/apps/examples/src/examples/before-create-update-shape/README.md

383 B

title component category priority
Before create/update shape ./BeforeCreateUpdateShapeExample.tsx editor-api 4

Register a handler to run before shapes are created or updated.


You can intercept the creation or update of any record in the store and return a new record to be used in it place. In this example, we lock shapes to a circle in the center of the screen.