new StickerSprite(operation, options)
sdk/operations/sprite-operation/sprites/sticker-sprite.js, line 32
Creates a new Sticker
Name | Type | Description |
---|---|---|
operation |
PhotoEditorSDK.Operations.SpriteOperation | |
options |
Object | optional |
Methods
-
applyFlip(direction)
sdk/operations/sprite-operation/sprites/sticker-sprite.js, line 212 -
Applies a flip in the given direction
Name Type Description direction
String -
applyScale(scale)
sdk/operations/sprite-operation/sprites/sticker-sprite.js, line 62 -
Applies the given scale to this sprite
Name Type Description scale
PhotoEditorSDK.Math.Vector2 -
dispose()
sdk/operations/sprite-operation/sprites/sticker-sprite.js, line 309 -
Disposes this sprite
-
scalesUniformly(){boolean}
sdk/operations/sprite-operation/sprites/sticker-sprite.js, line 276 -
Returns whether the sprite should scale uniformly based on its current resizeMode.
Returns:
Type Description boolean -
serializeOptions(keys, toObject){Object}
sdk/operations/sprite-operation/sprites/sticker-sprite.js, line 72 -
Returns a serialized version of this configurable
Name Type Default Description keys
Array.<String> toObject
Boolean false = false
Returns:
Type Description Object -
setOption(optionName, value, update)
sdk/operations/sprite-operation/sprites/sticker-sprite.js, line 287 -
Sets the value for the given option, validates it
Name Type Default Description optionName
String value
* update
Boolean true = true
-
update(sdk, inputDimensions)
sdk/operations/sprite-operation/sprites/sticker-sprite.js, line 106 -
Updates this sprite
Name Type Description sdk
PhotoEditorSDK inputDimensions
PhotoEditorSDK.Math.Vector2