@ue-too/animate / index / Animator
インターフェイス: Animator
Core interface for all animators in the animation system.
Remarks
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
drag
drag:
number
duration
duration:
number
loops
loops:
boolean
maxLoopCount
maxLoopCount:
number|undefined
playing
playing:
boolean
メソッド
animate()
animate(
deltaTime):void
パラメータ
deltaTime
number
戻り値
void
clearOnEnd()
clearOnEnd():
void
戻り値
void
clearOnStart()
clearOnStart():
void
戻り値
void
detachParent()
detachParent():
void
戻り値
void
nonCascadingDuration()
nonCascadingDuration(
newDuration):void
パラメータ
newDuration
number
戻り値
void
onEnd()
onEnd(
callback):UnSubscribe
パラメータ
callback
Function
戻り値
onStart()
onStart(
callback):UnSubscribe
パラメータ
callback
Function
戻り値
pause()
pause():
void
戻り値
void
resetAnimationState()
resetAnimationState():
void
戻り値
void
resume()
resume():
void
戻り値
void
setParent()
setParent(
parent):void
パラメータ
parent
戻り値
void
setUp()
setUp():
void
戻り値
void
start()
start():
void
戻り値
void
stop()
stop():
void
戻り値
void
tearDown()
tearDown():
void
戻り値
void
toggleReverse()
toggleReverse(
reverse):void
パラメータ
reverse
boolean
戻り値
void