In-game tools · interface

UndoStack

Explained in In-game tools.

interface UndoStack
import type { UndoStack } from '@driftengine/tools';

Methods

push

push(command: Command): void
ParameterTypeDescription
commandCommand

undo

undo(): boolean

redo

redo(): boolean

canUndo

canUndo(): boolean

canRedo

canRedo(): boolean

undoLabel

undoLabel(): string | null

redoLabel

redoLabel(): string | null

clear

clear(): void