Back to Tldraw

Locked shapes

apps/examples/src/examples/editor-api/locked-shapes/README.md

5.0.0274 B
Original Source

Lock shapes to prevent user editing, and use ignoreShapeLock to modify them programmatically.


  • Locked template — The blue shapes are locked on mount. Try dragging them!
  • Scatter/Reset — Uses editor.run({ ignoreShapeLock: true }) to move locked shapes