@mocanvas/editor · interface

TLEditorRunOptions

interface TLEditorRunOptions extends TLHistoryBatchOptions

Options for Editor.run.

The same bag as TLHistoryBatchOptions, plus the ability to run work that would otherwise be refused. ignoreShapeLock exists because the lock is a guard against the *person*, not against the program: an app performing a bulk fixup or a migration legitimately needs to write to locked shapes.


Properties · 1

ignoreShapeLock?: boolean | undefined

Allow writes to locked shapes for the duration of the callback.

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.