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:138
hasEvent โ
โธ hasEvent(type
, capture?
): boolean
Parameters โ
Name | Type |
---|---|
type | string |
capture? | boolean |
Returns โ
boolean