Class: Animate â
Hierarchy â
âŗ
Animate
Implements â
Table of contents â
Constructors â
Properties â
- target
- keyframes
- config
- fromStyle
- toStyle
- running
- destroyed
- time
- looped
- easing
- delay
- duration
- ending
- reverse
- swing
- loop
- loopDelay
- speed
- autoplay
- join
- attrs
- isTemp
- frames
- nowIndex
- easingFn
- requestAnimateTime
- playedTotalTime
- nowReverse
- timer
- attrsMap
- innerId
- __captureMap
- __bubbleMap
- syncEventer
Accessors â
Methods â
- init
- play
- pause
- stop
- seek
- kill
- create
- changeDuration
- setBefore
- allocateTime
- requestAnimate
- animate
- start
- begin
- end
- complete
- setFrom
- setTo
- nextFrame
- reverseNextFrame
- transition
- setStyle
- clearTimer
- destroy
- on
- off
- on_
- off_
- once
- emit
- emitEvent
- hasEvent
Constructors â
constructor â
âĸ new Animate(target
, keyframe
, options?
, isTemp?
): Animate
Parameters â
Name | Type |
---|---|
target | IUI |
keyframe | IUIInputData | IKeyframe [] |
options? | ITransition |
isTemp? | boolean |
Returns â
Overrides â
Defined in â
in/packages/animate/src/Animate.ts:102
Properties â
target â
âĸ target: IUI
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:14
keyframes â
âĸ keyframes: IKeyframe
[]
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:16
config â
âĸ Optional
config: IAnimateOptions
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:17
fromStyle â
âĸ fromStyle: IUIInputData
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:19
toStyle â
âĸ toStyle: IUIInputData
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:20
running â
âĸ running: boolean
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:24
destroyed â
âĸ destroyed: boolean
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:26
time â
âĸ time: number
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:28
looped â
âĸ looped: number
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:29
easing â
âĸ easing: IAnimateEasing
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:33
delay â
âĸ delay: number
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:37
duration â
âĸ duration: number
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:40
ending â
âĸ ending: IAnimateEnding
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:43
reverse â
âĸ Optional
reverse: boolean
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:47
swing â
âĸ Optional
swing: boolean
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:50
loop â
âĸ loop: number
| boolean
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:53
loopDelay â
âĸ loopDelay: number
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:56
speed â
âĸ speed: number
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:60
autoplay â
âĸ autoplay: boolean
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:63
join â
âĸ join: boolean
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:66
attrs â
âĸ attrs: string
[]
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:69
isTemp â
âĸ isTemp: boolean
Defined in â
in/packages/animate/src/Animate.ts:72
frames â
âĸ frames: IComputedKeyframe
[]
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:74
nowIndex â
âĸ Protected
nowIndex: number
Defined in â
in/packages/animate/src/Animate.ts:76
easingFn â
âĸ Protected
easingFn: IFunction
Defined in â
in/packages/animate/src/Animate.ts:80
requestAnimateTime â
âĸ Protected
requestAnimateTime: number
Defined in â
in/packages/animate/src/Animate.ts:82
playedTotalTime â
âĸ Protected
playedTotalTime: number
Defined in â
in/packages/animate/src/Animate.ts:83
nowReverse â
âĸ Protected
nowReverse: boolean
Defined in â
in/packages/animate/src/Animate.ts:85
timer â
âĸ Protected
timer: any
Defined in â
in/packages/animate/src/Animate.ts:86
attrsMap â
âĸ Protected
attrsMap: IBooleanMap
Defined in â
in/packages/animate/src/Animate.ts:87
innerId â
âĸ Readonly
innerId: number
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:9
__captureMap â
âĸ Optional
__captureMap: IEventListenerMap
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:11
__bubbleMap â
âĸ Optional
__bubbleMap: IEventListenerMap
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:13
syncEventer â
âĸ Optional
syncEventer: IEventer
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:15
Accessors â
endingStyle â
âĸ get
endingStyle(): IUIInputData
Returns â
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:21
started â
âĸ get
started(): boolean
Returns â
boolean
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:23
completed â
âĸ get
completed(): boolean
Returns â
boolean
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:25
frame â
âĸ get
frame(): IComputedKeyframe
Returns â
Defined in â
in/packages/animate/src/Animate.ts:77
frameTotalTime â
âĸ get
frameTotalTime(): number
Returns â
number
Defined in â
in/packages/animate/src/Animate.ts:78
realEnding â
âĸ get
realEnding(): IAnimateEnding
Returns â
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:89
event â
âĸ set
event(map
): void
Parameters â
Name | Type |
---|---|
map | IEventMap |
Returns â
void
Implementation of â
Inherited from â
Eventer.event
Defined in â
leafer/packages/event/src/Eventer.ts:17
Methods â
init â
⸠init(target
, keyframe
, options?
, isTemp?
): void
Parameters â
Name | Type |
---|---|
target | IUI |
keyframe | IUIInputData | IKeyframe [] |
options? | ITransition |
isTemp? | boolean |
Returns â
void
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:108
play â
⸠play(): void
Returns â
void
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:134
pause â
⸠pause(): void
Returns â
void
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:143
stop â
⸠stop(): void
Returns â
void
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:151
seek â
⸠seek(time
): void
Parameters â
Name | Type |
---|---|
time | number | IPercentData |
Returns â
void
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:159
kill â
⸠kill(): void
Returns â
void
Implementation of â
Defined in â
in/packages/animate/src/Animate.ts:172
create â
⸠create(): void
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:177
changeDuration â
⸠changeDuration(duration
): void
Parameters â
Name | Type |
---|---|
duration | number |
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:237
setBefore â
⸠setBefore(item
, data
, before
): void
Parameters â
Name | Type |
---|---|
item | IComputedKeyframe |
data | IObject |
before | IObject |
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:242
allocateTime â
⸠allocateTime(partTime
): void
Parameters â
Name | Type |
---|---|
partTime | number |
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:251
requestAnimate â
⸠requestAnimate(): void
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:264
animate â
⸠animate(_runtime?
, seek?
): void
Parameters â
Name | Type |
---|---|
_runtime? | number |
seek? | boolean |
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:269
start â
⸠start(seek?
): void
Parameters â
Name | Type |
---|---|
seek? | boolean |
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:330
begin â
⸠begin(seek?
): void
Parameters â
Name | Type |
---|---|
seek? | boolean |
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:348
end â
⸠end(): void
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:354
complete â
⸠complete(): void
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:358
setFrom â
⸠setFrom(): void
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:371
setTo â
⸠setTo(): void
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:376
nextFrame â
⸠nextFrame(): void
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:382
reverseNextFrame â
⸠reverseNextFrame(): void
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:388
transition â
⸠transition(t
): void
Parameters â
Name | Type |
---|---|
t | number |
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:395
setStyle â
⸠setStyle(style
): void
Parameters â
Name | Type |
---|---|
style | IObject |
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:424
clearTimer â
⸠clearTimer(fn?
): void
Parameters â
Name | Type |
---|---|
fn? | IFunction |
Returns â
void
Defined in â
in/packages/animate/src/Animate.ts:428
destroy â
⸠destroy(complete?
): void
Parameters â
Name | Type |
---|---|
complete? | boolean |
Returns â
void
Implementation of â
Overrides â
Defined in â
in/packages/animate/src/Animate.ts:435
on â
⸠on(type
, listener?
, options?
): void
Parameters â
Name | Type |
---|---|
type | string | string [] | IEventMap |
listener? | IFunction |
options? | IEventOption |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:20
off â
⸠off(type?
, listener?
, options?
): void
Parameters â
Name | Type |
---|---|
type? | string | string [] |
listener? | IFunction |
options? | IEventOption |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:57
on_ â
⸠on_(type
, listener
, bind?
, options?
): IEventListenerId
Parameters â
Name | Type |
---|---|
type | string | string [] |
listener | IFunction |
bind? | IObject |
options? | IEventOption |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:100
off_ â
⸠off_(id
): void
Parameters â
Name | Type |
---|---|
id | IEventListenerId | IEventListenerId [] |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:106
once â
⸠once(type
, listener
, capture?
): void
Parameters â
Name | Type |
---|---|
type | string | string [] |
listener | IFunction |
capture? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:113
emit â
⸠emit(type
, event?
, capture?
): void
Parameters â
Name | Type |
---|---|
type | string |
event? | IObject | IEvent |
capture? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:117
emitEvent â
⸠emitEvent(event
, capture?
): void
Parameters â
Name | Type |
---|---|
event | IEvent |
capture? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/event/src/Eventer.ts:139
hasEvent â
⸠hasEvent(type
, capture?
): boolean
Parameters â
Name | Type |
---|---|
type | string |
capture? | boolean |
Returns â
boolean