new PhotoEditorSDK.Operations.TransformOperation()
sdk/operations/transform-operation/index.js, line 26
Extends
- PhotoEditorSDK.Operation
Classes
Members
-
staticPhotoEditorSDK.Operations.TransformOperation.identifierString
-
A unique string that identifies this operation. Can be used to select operations.
- Default Value:
- transform
Methods
-
calculateScale(rotation)
sdk/operations/transform-operation/index.js, line 69 -
Calculates the scale adjustment required to be applied to the current inputDimensions to fill the texture after a given rotation has been applied to the current dimensions
Name Type Default Description rotation
Number this._options.rotation optional The rotation in radians
-
flip(direction)
sdk/operations/transform-operation/index.js, line 115 -
Flips this operation into the given direction
Name Type Description direction
String -
getNewDimensions(inputDimensions){PhotoEditorSDK.Math.Vector2}
sdk/operations/transform-operation/index.js, line 99 -
Returns the dimensions the given dimensions will have after this operation has been applied
Name Type Description inputDimensions
PhotoEditorSDK.Math.Vector2 Returns:
Type Description PhotoEditorSDK.Math.Vector2 -
rotate(degrees)
sdk/operations/transform-operation/index.js, line 132 -
Rotates this operation with the given degrees
Name Type Description degrees
Number