kopia lustrzana https://github.com/Tldraw/Tldraw
383 B
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.