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

Property Type Description
current number Index of the current state in the history stack.
data CanvasViewData[] Array of historical canvas states.
max number Maximum number of history entries to retain.

Methods

Method Returns Description
canRedo() unknown Check whether a redo operation is available.
canUndo() unknown Check whether an undo operation is available.
clear() unknown Clear all history entries.
push(arg1) unknown Push a new state onto the history stack.
redo() unknown Redo the last undone action and return the restored state.
replace(arg1) unknown Replace the current history entry with a new state.
undo() unknown Undo the last action and return the previous state.

Links to this page: