メインコンテンツまでスキップ

mind-elixir.mindelixirinstance.clearhistory

Home > mind-elixir > MindElixirInstance > clearHistory

MindElixirInstance.clearHistory property

Reset the undo/redo stack and update the internal baseline snapshot to the current diagram state. Call this after loading new data into an existing instance (e.g. after refresh()) to prevent users from undoing back into a previously loaded diagram.

Only available when allowUndo is true (the default).

Signature:

clearHistory?: () => void;