Skip to content

CanvasViewHistory

Unofficial

Manages undo/redo history for canvas state changes.

Import:

import type { CanvasViewHistory } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface CanvasViewHistory

Properties

PropertyTypeDescription
currentnumberIndex of the current state in the history stack.
dataCanvasViewData[]Array of historical canvas states.
maxnumberMaximum number of history entries to retain.

Methods

MethodReturnsDescription
canRedo()unknownCheck whether a redo operation is available.
canUndo()unknownCheck whether an undo operation is available.
clear()unknownClear all history entries.
push(arg1)unknownPush a new state onto the history stack.
redo()unknownRedo the last undone action and return the restored state.
replace(arg1)unknownReplace the current history entry with a new state.
undo()unknownUndo the last action and return the previous state.

Links to this page: