Interface: FrameAnimation
property {Boolean} running - Getter that indicates if animation is running.
property {function():void} stop - Stops the animation.
property {function():void} start - Starts the animation.
Table of contents
Properties
Properties
changeFps
• changeFps: (fps: number) => void
一秒运行多少帧,用来控制速度
Type declaration
▸ (fps: number): void
Parameters
| Name | Type |
|---|---|
fps |
number |
Returns: void
pause
• pause: () => void
pause the animation.
Type declaration
▸ (): void
Returns: void
running
• Readonly running: boolean
A getter property that indicates if animation is running.
start
• start: () => void
Starts the animation.
Type declaration
▸ (): void
Returns: void
status
• Readonly status: FrameAnimationStatus
A getter property that indicates if animation is running.
stop
• stop: () => void
Stops the animation.
Type declaration
▸ (): void
Returns: void
Was this page helpful?Thanks for the feedback!