kopia lustrzana https://github.com/Tldraw/Tldraw
379 B
379 B
title | component | category | priority |
---|---|---|---|
Before delete shape | ./BeforeDeleteShapeExample.tsx | editor-api | 4 |
Register a handler to run before shapes are deleted.
You can intercept the creation of any record in the store. This example intercepts arrow creation to make sure each arrow has a label. You can do the same thing to change the props of any newly created shape.