Constructors
Methods
destroy
- destroy(): void
Returns void
getAlpha
- getAlpha(): number
Returns number
getAnimationAlphaMultiplier
- getAnimationAlphaMultiplier(): 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: T): void
Returns void
positionToCenter
- positionToCenter(): void
Returns void
replaceMediaDataId
- replaceMediaDataId(mediaDataId: string): void
Returns void
scaleDownToFit
- scaleDownToFit(): 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;
}
setAlpha
- setAlpha(alpha: number): void
Returns void
setAnimationAlphaMultiplier
- setAnimationAlphaMultiplier(alpha: number): void
Returns void
setAnimationPositionOffset
- setAnimationPositionOffset(x: number, y: number): void
Returns void
setAnimationRotationOffset
- setAnimationRotationOffset(rotation: number): void
Returns void
setAnimationScaleMultiplier
- setAnimationScaleMultiplier(multiplierX: number, multiplierY: number): void
Parameters
- multiplierX: number
- multiplierY: number
Returns void
setCornerRadius
- setCornerRadius(
radii: number | [number, number, number, number],
relative?: boolean,
): void Parameters
- radii: number | [number, number, number, number]
- relative: boolean = false
Returns void
setPosition
- setPosition(x: number, y: number): void
Returns void
setRotation
- setRotation(rotation: number): void
Returns void
setScale
- setScale(scaleX: number, scaleY: number): void
Parameters
- scaleX: number
- scaleY: number
Returns void
setZIndex
- setZIndex(zIndex: number): void
Returns void
update
- update(sprite: T): void
Returns void