Class: UndoUtil

UndoUtil()

Helper class for state/undo-redo.

Constructor

new UndoUtil()

Source:

Methods

(static) atLeastOneRedoable(state) → {Boolean}

Checks if at least one state is redoable or not.

Parameters:
Name Type Description
state Object

The global state.

Source:
Returns:

Wheather at least one state is redoable or not.

Type
Boolean

(static) atLeastOneUndoable(state) → {Boolean}

Checks if at least one state is undoable or not.

Parameters:
Name Type Description
state Object

The global state.

Source:
Returns:

Wheather at least one state is undoable or not.

Type
Boolean