Class: UndoRedoSnapshot

UndoRedoSnapshot

This components is a simple workaround to make Undo/Redo functionality work.

Members

sheetSheet

Instance of Sheet.

stackStack

Stack instance for collecting undo/redo changes.

Methods

destroy()

Destroy class.

restore()

Restore state to the previous one.

save(axis, index, amount)

Save snapshot for specified action.

Parameters:
Name Type Description
axis String

Alter action which triggers snapshot.

index Number

Alter operation stared at.

amount Number

Amount of items to operate.