Methods
destroy
- destroy(): void
Returns void
getAlpha
- getAlpha(): number
Returns number
getAnimationPositionOffset
- getAnimationPositionOffset(): [number, number]
Returns [number, number]
getAnimationRotationOffset
- getAnimationRotationOffset(): number
Returns number
getAnimationScaleMultiplier
- getAnimationScaleMultiplier(): [number, number]
Returns [number, number]
getCornerRadius
- getCornerRadius(): number[]
Returns number[]
getHeight
- getHeight(): number
Returns number
getPosition
- getPosition(): [number, number]
Returns [number, number]
getRawHeight
- getRawHeight(): number
Returns number
getRawWidth
- getRawWidth(): number
Returns number
getRotation
- getRotation(): number
Returns number
getScale
- getScale(): [number, number]
Returns [number, number]
getWidth
- getWidth(): number
Returns number
getZIndex
- getZIndex(): number
Returns number
load
- load(sprite): void
Returns void
serialize
- serialize(): {
alpha: number;
clipId: string;
cornerRadius?: [number, number, number, number];
height?: number;
mediaDataId?: string;
position: [number, number];
relativeCornerRadius: boolean;
rotation: number;
scale: [number, number];
width?: number;
zIndex: number;
} Returns {
alpha: number;
clipId: string;
cornerRadius?: [number, number, number, number];
height?: number;
mediaDataId?: string;
position: [number, number];
relativeCornerRadius: boolean;
rotation: number;
scale: [number, number];
width?: number;
zIndex: number;
}
alpha: number
clipId: string
Optional
cornerRadius?: [number, number, number, number]
Optional
height?: number
Optional
mediaDataId?: string
position: [number, number]
relativeCornerRadius: boolean
rotation: number
scale: [number, number]
Optional
width?: number
zIndex: number
setAlpha
- setAlpha(alpha): void
Returns void
setAnimationPositionOffset
- setAnimationPositionOffset(x, y): void
Returns void
setAnimationRotationOffset
- setAnimationRotationOffset(rotation): void
Returns void
setAnimationScaleMultiplier
- setAnimationScaleMultiplier(multiplierX, multiplierY): void
Parameters
- multiplierX: number
- multiplierY: number
Returns void
setCornerRadius
- setCornerRadius(radii, relative?): void
Parameters
- radii: number | [number, number, number, number]
- relative: boolean = false
Returns void
setPosition
- setPosition(x, y): void
Returns void
setRotation
- setRotation(rotation): void
Returns void
setScale
- setScale(scaleX, scaleY): void
Parameters
- scaleX: number
- scaleY: number
Returns void
setZIndex
- setZIndex(zIndex): void
Returns void
update
- update(sprite): void
Returns void