Class History
Defined in: History.js.
Constructor Attributes | Constructor Name and Description |
---|---|
History()
An facade to add Commands, undo and redo them
|
Field Attributes | Field Name and Description |
---|---|
<static> |
History.COMMANDS
Where the {Array} or commands is stored
|
<static> |
History.CURRENT_POINTER
The current command inde within the vector of undoable objects.
|
<static> |
History.OBJECT_CONNECTION_POINT
Object is a connection point
|
<static> |
History.OBJECT_CONNECTOR
Object is a connector
|
<static> |
History.OBJECT_FIGURE
Object is a figure
|
<static> |
History.OBJECT_GLUE
Object is a glue
|
<static> |
History.OBJECT_GROUP
Object is a group
|
<static> |
History.OBJECT_STATIC
Object is a generic object
|
Method Attributes | Method Name and Description |
---|---|
<static> |
History.addUndo(command)
|
<static> |
History.redo()
Redo a command
|
<static> |
History.undo()
Undo current command
|
Class Detail
History()
An facade to add Commands, undo and redo them
Author: Zack Newsham zack_newsham@yahoo.co.uk, Alex.
Author: Zack Newsham zack_newsham@yahoo.co.uk, Alex
Field Detail
<static>
History.COMMANDS
Where the {Array} or commands is stored
<static>
History.CURRENT_POINTER
The current command inde within the vector of undoable objects. At that position there will be a Command
<static>
History.OBJECT_CONNECTION_POINT
Object is a connection point
<static>
History.OBJECT_CONNECTOR
Object is a connector
<static>
History.OBJECT_FIGURE
Object is a figure
<static>
History.OBJECT_GLUE
Object is a glue
<static>
History.OBJECT_GROUP
Object is a group
<static>
History.OBJECT_STATIC
Object is a generic object
Method Detail
<static>
History.addUndo(command)
- Parameters:
- command
<static>
History.redo()
Redo a command
<static>
History.undo()
Undo current command