Class: StickerSprite

PhotoEditorSDK.Operations~SpriteOperation~ StickerSprite

A sticker that can be drawn by SpriteOperation. Should only be created via PhotoEditorSDK.Operations.SpriteOperation#createSticker

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 204

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 289

Disposes this sprite

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 267

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