Rotate
RotateAction
Implementation of Action interface for rotating components.
Constructor
public RotateAction
new RotateAction(obj, finalAngle)
Creates a rotation action for a component.
Parameters
obj: Component
– Initializes the action with an Array of the selected component(s).finalAngle: number
– Inititalizes the action an Array of the final angles the selected component(s) will be placed at.
Properties
No publicly accessible properties on RotateAction
private initialAngle: number
The initial angle of the selected component.
private finalAngle: number
The final angle the selected component.
Methods
public execute
execute() => Action
Rotates a component from the initial angle o the final angle.
Returns
-
Action
– An Action where the rotation is executed.
public undo
undo() => Action
Reverts the RotateAction object's angle to the original angle, putting the component back in its initial orientation.
Returns
-
Action
– An Action where the rotation is undone.
public getCustomInfo
getCustomInfo() => string[]
Description needed
Returns
-
string[]
– Description needed
Static Methods
No static methods for RotateAction