new PhotoEditorSDK.Operation(sdk, options)
sdk/operations/operation.js, line 31
Creates an Operation
Name | Type | Description |
---|---|---|
sdk |
PhotoEditorSDK | |
options |
Object | optional |
Extends
Members
-
staticPhotoEditorSDK.Operation.identifierString
-
A unique string that identifies this operation. Can be used to select operations.
Methods
-
dispose()
sdk/operations/operation.js, line 246 -
Disposes this operation
-
disposeRenderTextures()
sdk/operations/operation.js, line 236 -
Disposes the RenderTexture
-
getInputDimensions(){PhotoEditorSDK.Math.Vector2}
sdk/operations/operation.js, line 218 -
Returns the input dimensions for this operation
Returns:
Type Description PhotoEditorSDK.Math.Vector2 -
getNewDimensions(dimensions){PhotoEditorSDK.Math.Vector2}
sdk/operations/operation.js, line 161 -
Returns the dimensions that an image with the given
dimensions
would have after this operation has been appliedName Type Description dimensions
PhotoEditorSDK.Math.Vector2 Returns:
Type Description PhotoEditorSDK.Math.Vector2 -
getSDK(){PhotoEditorSDK}
sdk/operations/operation.js, line 210 -
Returns the instance of PhotoEditorSDK that this operation belongs to
Returns:
Type Description PhotoEditorSDK -
isDirtyForRenderer(renderer){Boolean}
sdk/operations/operation.js, line 180 -
Checks if this operation is dirty for the given renderer
Name Type Description renderer
PhotoEditorSDK.Engine.BaseRenderer Returns:
Type Description Boolean -
abstractrender(inputTexture){Promise}
sdk/operations/operation.js, line 69 -
Applies this operation
Name Type Description inputTexture
PhotoEditorSDK.Engine.RenderTexture Returns:
Type Description Promise -
reset()
sdk/operations/operation.js, line 168 -
Resets this operation
-
setDirty(dirty, dimensionsChanged)
sdk/operations/operation.js, line 200 -
Sets the dirtiness for all renderers
Name Type Default Description dirty
Boolean dimensionsChanged
Boolean false = false
-
setDirtyForRenderer(dirty, renderer, dimensionsChanged)
sdk/operations/operation.js, line 191 -
Sets the dirtiness for the given renderer
Name Type Default Description dirty
Boolean renderer
PhotoEditorSDK.Engine.BaseRenderer dimensionsChanged
Boolean false = false