@ue-too/animate / index / Animator
介面: Animator
定義於: composite-animation.ts:29
Core interface for all animators in the animation system.
備註
The Animator interface defines the contract for both individual animations (Animation) and composite animations (CompositeAnimation). All animators support:
- Lifecycle control (start, stop, pause, resume)
- Duration management with delays and drag time
- Looping with optional max loop count
- Parent-child relationships for composition
- Event callbacks for start and end
屬性
delay
delay:
number
定義於: composite-animation.ts:32
drag
drag:
number
定義於: composite-animation.ts:33
duration
duration:
number
定義於: composite-animation.ts:31
loops
loops:
boolean
定義於: composite-animation.ts:30
maxLoopCount
maxLoopCount:
number|undefined
定義於: composite-animation.ts:50
playing
playing:
boolean
定義於: composite-animation.ts:51
方法
animate()
animate(
deltaTime):void
定義於: composite-animation.ts:39
參數
deltaTime
number
回傳
void
clearOnEnd()
clearOnEnd():
void
定義於: composite-animation.ts:49
回傳
void
clearOnStart()
clearOnStart():
void
定義於: composite-animation.ts:48
回傳
void
detachParent()
detachParent():
void
定義於: composite-animation.ts:44
回傳
void
nonCascadingDuration()
nonCascadingDuration(
newDuration):void
定義於: composite-animation.ts:34
參數
newDuration
number
回傳
void
onEnd()
onEnd(
callback):UnSubscribe
定義於: composite-animation.ts:46
參數
callback
Function
回傳
onStart()
onStart(
callback):UnSubscribe
定義於: composite-animation.ts:47
參數
callback
Function
回傳
pause()
pause():
void
定義於: composite-animation.ts:37
回傳
void
resetAnimationState()
resetAnimationState():
void
定義於: composite-animation.ts:41
回傳
void
resume()
resume():
void
定義於: composite-animation.ts:38
回傳
void
setParent()
setParent(
parent):void
定義於: composite-animation.ts:43
參數
parent
回傳
void
setUp()
setUp():
void
定義於: composite-animation.ts:40
回傳
void
start()
start():
void
定義於: composite-animation.ts:35
回傳
void
stop()
stop():
void
定義於: composite-animation.ts:36
回傳
void
tearDown()
tearDown():
void
定義於: composite-animation.ts:42
回傳
void
toggleReverse()
toggleReverse(
reverse):void
定義於: composite-animation.ts:45
參數
reverse
boolean
回傳
void