@mocanvas/editor · type

TLHistoryRecordingMode

type TLHistoryRecordingMode = "record" | "ignore" | "record-preserveRedoStack"

How a batch of changes should be recorded.

- record — the default: the changes become one undoable step, and the redo stack is discarded because the future just diverged. - ignore — the changes happen but are not undoable. For anything derived rather than authored: culling flags, presence, layout the editor recomputed. - record-preserveRedoStack — recorded, but the redo stack survives. For a change that is *part of* a redo, so redoing twice still works.

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.