new PhotoEditorSDK.Operations.BrushOperation.ControlPoint(path, position)
sdk/operations/sprites/brush/control-point.js, line 23
Creates a ControlPoint
Name | Type | Description |
---|---|---|
path |
PhotoEditorSDK.Operations.BrushOperation.Path | |
position |
PhotoEditorSDK.Math.Vector2 |
Methods
-
getPosition(){PhotoEditorSDK.Math.Vector2}
sdk/operations/sprites/brush/control-point.js, line 82 -
Returns the position
Returns:
Type Description PhotoEditorSDK.Math.Vector2 -
renderToCanvas(brush, canvas, lastControlPoint)
sdk/operations/sprites/brush/control-point.js, line 41 -
Renders this ControlPoint to the given canvas
Name Type Description brush
HTMLCanvasElement canvas
HTMLCanvasElement lastControlPoint
PhotoEditorSDK.Operations.BrushOperation.ControlPoint -
setDirty()
sdk/operations/sprites/brush/control-point.js, line 89 -
Sets this ControlPoint to dirty
-
setPosition(position)
sdk/operations/sprites/brush/control-point.js, line 74 -
Sets the position
Name Type Description position
PhotoEditorSDK.Math.Vector2