new TransformChange(operation, options)
sdk/operations/transform-operation/transform-change.js, line 31
Creates a new TransformChange instance with the difference between the operation's current state and the specified new options
Name | Type | Description |
---|---|---|
operation |
PhotoEditorSDK.Operations.TransformOperation |
The transform operation with the state before the changes are applied |
options |
Object |
The new transform options (start, end, textureScale, rotation) |
Methods
-
applyToDimensions(dimensions){PhotoEditorSDK.Math.Vector2}
sdk/operations/transform-operation/transform-change.js, line 116 -
Applies this transform change to the given dimensions
Name Type Description dimensions
PhotoEditorSDK.Math.Vector2 Returns:
Type Description PhotoEditorSDK.Math.Vector2 -
applyToRelativePoint(point){PhotoEditorSDK.Math.Vector2}
sdk/operations/transform-operation/transform-change.js, line 64 -
Applies this transform change to the given relative point
Name Type Description point
PhotoEditorSDK.Math.Vector2 Returns:
Type Description PhotoEditorSDK.Math.Vector2 -
applyToRelativeSize(number){Number}
sdk/operations/transform-operation/transform-change.js, line 107 -
Applies this transform change to the given relative size
Name Type Description number
Number Returns:
Type Description Number -
applyToRotation(rotation){Number}
sdk/operations/transform-operation/transform-change.js, line 139 -
Applies the transform rotation to the given rotation
Name Type Description rotation
Number Returns:
Type Description Number -
invert()
sdk/operations/transform-operation/transform-change.js, line 146 -
Inverts the TransformChange
-
scaleSize(size, side){Number}
sdk/operations/transform-operation/transform-change.js, line 130 -
Returns the new relative size value for the given relative size value
Name Type Default Description size
Number side
String y Returns:
Type Description Number