Back to Tldraw

Prevent shape changes

apps/examples/src/examples/events/prevent-shape-change/README.md

5.3.1222 B
Original Source

Prevent changes to a shape's properties.


You can use Editor's side effects API to prevent certain changes from occurring in a shape. In this example, we prevent any changes to the shape's position, rotation, or size.