Winter Cardinal UI - v0.457.0 / DAnimation
| Name | Type |
|---|---|
TARGET |
unknown |
EventEmitter
↳ DAnimation
• duration: number
An animation duration.
src/main/typescript/wcardinal/ui/d-animation.ts:153
• target: null | TARGET
An animation target.
src/main/typescript/wcardinal/ui/d-animation.ts:148
▸ addListener(event, fn, context?): this
Alias method for on
| Name | Type |
|---|---|
event |
string | symbol |
fn |
Function |
context? |
any |
this
utils.EventEmitter.addListener
node_modules/pixi.js/pixi.js.d.ts:25495
▸ emit<E>(event, ...args): boolean
| Name | Type |
|---|---|
E |
extends keyof DAnimationEvents<this> |
| Name | Type |
|---|---|
event |
E |
...args |
Parameters<DAnimationEvents<DAnimation<TARGET>>[E]> |
boolean
utils.EventEmitter.emit
src/main/typescript/wcardinal/ui/d-animation.ts:196
▸ emit(event, ...args): boolean
| Name | Type |
|---|---|
event |
string |
...args |
any |
boolean
utils.EventEmitter.emit
src/main/typescript/wcardinal/ui/d-animation.ts:200
▸ end(): void
Moves an animation frame to the end.
void
src/main/typescript/wcardinal/ui/d-animation.ts:180
▸ eventNames(): (string | symbol)[]
Return an array listing the events for which the emitter has registered listeners.
(string | symbol)[]
utils.EventEmitter.eventNames
node_modules/pixi.js/pixi.js.d.ts:25415
▸ isReverse(): boolean
Returns true if an animation is in a reverse mode.
boolean
src/main/typescript/wcardinal/ui/d-animation.ts:170
▸ isStarted(): boolean
Returns true if an animation is playing.
boolean
src/main/typescript/wcardinal/ui/d-animation.ts:165
▸ listenerCount(event): number
Return the number of listeners listening to a given event.
| Name | Type | Description |
|---|---|---|
event |
string | symbol |
The event name. |
number
utils.EventEmitter.listenerCount
node_modules/pixi.js/pixi.js.d.ts:25432
▸ listeners(event): Function[]
Return the listeners registered for a given event.
| Name | Type | Description |
|---|---|---|
event |
string | symbol |
The event name. |
Function[]
utils.EventEmitter.listeners
node_modules/pixi.js/pixi.js.d.ts:25424
▸ off(event, fn?, context?, once?): this
Alias method for removeListener
| Name | Type |
|---|---|
event |
string | symbol |
fn? |
Function |
context? |
any |
once? |
boolean |
this
utils.EventEmitter.off
node_modules/pixi.js/pixi.js.d.ts:25489
▸ on<E>(event, handler, context?): this
| Name | Type |
|---|---|
E |
extends keyof DAnimationEvents<this> |
| Name | Type |
|---|---|
event |
E |
handler |
DAnimationEvents<DAnimation<TARGET>>[E] |
context? |
any |
this
utils.EventEmitter.on
src/main/typescript/wcardinal/ui/d-animation.ts:182
▸ on(event, handler, context?): this
| Name | Type |
|---|---|
event |
string |
handler |
(…args: any[]) => any |
context? |
any |
this
utils.EventEmitter.on
src/main/typescript/wcardinal/ui/d-animation.ts:187
▸ once<E>(event, handler, context?): this
| Name | Type |
|---|---|
E |
extends keyof DAnimationEvents<this> |
| Name | Type |
|---|---|
event |
E |
handler |
DAnimationEvents<DAnimation<TARGET>>[E] |
context? |
any |
this
utils.EventEmitter.once
src/main/typescript/wcardinal/ui/d-animation.ts:189
▸ once(event, handler, context?): this
| Name | Type |
|---|---|
event |
string |
handler |
(…args: any[]) => any |
context? |
any |
this
utils.EventEmitter.once
src/main/typescript/wcardinal/ui/d-animation.ts:194
▸ removeAllListeners(event?): this
Remove all listeners, or those of the specified event.
| Name | Type | Description |
|---|---|---|
event? |
string | symbol |
The event name. |
this
this.
utils.EventEmitter.removeAllListeners
node_modules/pixi.js/pixi.js.d.ts:25483
▸ removeListener(event, fn?, context?, once?): this
Remove the listeners of a given event.
| Name | Type | Description |
|---|---|---|
event |
string | symbol |
The event name. |
fn? |
Function |
Only remove the listeners that match this function. |
context? |
any |
Only remove the listeners that have this context. |
once? |
boolean |
Only remove one-time listeners. |
this
this.
utils.EventEmitter.removeListener
node_modules/pixi.js/pixi.js.d.ts:25475
▸ start(reverse?): void
Starts an animation.
| Name | Type | Description |
|---|---|---|
reverse? |
boolean |
true to play in reverse. |
void
src/main/typescript/wcardinal/ui/d-animation.ts:160
▸ stop(): void
Stops an animation as is.
void