Module: undo

Tools for undo.

License:
  • MIT
Source:

Members

(static, constant) changeSelectedAttributeNoUndoMethod

This function makes the changes to the elements. It does not add the change to the history stack.

Source:

Methods

(static) init(eventContext) → {void}

Parameters:
Name Type Description
eventContext module:undo.eventContext
Source:
Returns:
Type
void

(static) init(undoContext) → {void}

Parameters:
Name Type Description
undoContext module:undo.undoContext
Source:
Returns:
Type
void

(inner) handleHistoryEvent(eventType, cmd) → {void}

Parameters:
Name Type Description
eventType string

One of the HistoryEvent types

cmd module:history.HistoryCommand

Fulfills the HistoryCommand interface

Source:
Fires:
  • module:undo.SvgCanvas#event:changed
Returns:
Type
void