Winter Cardinal UI - v0.442.0 / DView
EventEmitter
↳ DView
• Readonly
gesture: DViewGesture
src/main/typescript/wcardinal/ui/d-view.ts:256
• position: DViewTargetPoint
src/main/typescript/wcardinal/ui/d-view.ts:258
• scale: DViewTargetPoint
src/main/typescript/wcardinal/ui/d-view.ts:257
▸ 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(event
, ...args
): boolean
Calls each of the listeners registered for a given event.
Name | Type | Description |
---|---|---|
event |
string | symbol |
The event name. |
...args |
any [] |
Arguments that are passed to registered listeners |
boolean
true
if the event had listeners, else false
.
utils.EventEmitter.emit
node_modules/pixi.js/pixi.js.d.ts:25441
▸ 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
▸ fit(duration?
, stop?
): void
Fits into a screen.
Name | Type | Description |
---|---|---|
duration? |
number |
an animation duration |
stop? |
boolean |
false to keep a previous animation |
void
src/main/typescript/wcardinal/ui/d-view.ts:279
▸ 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
▸ moveTo(x
, y
, duration?
, stop?
): void
Moves to the given position.
Name | Type | Description |
---|---|---|
x |
number |
a local X coordinate position |
y |
number |
a local Y coordinate position |
duration? |
number |
an animation duration |
stop? |
boolean |
false to keep a previous animation |
void
src/main/typescript/wcardinal/ui/d-view.ts:353
▸ 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(event
, fn
, context?
): this
Add a listener for a given event.
Name | Type | Description |
---|---|---|
event |
string | symbol |
The event name. |
fn |
Function |
The listener function. |
context? |
any |
The context to invoke the listener with. |
this
this
.
utils.EventEmitter.on
node_modules/pixi.js/pixi.js.d.ts:25452
▸ once(event
, fn
, context?
): this
Add a one-time listener for a given event.
Name | Type | Description |
---|---|---|
event |
string | symbol |
The event name. |
fn |
Function |
The listener function. |
context? |
any |
The context to invoke the listener with. |
this
this
.
utils.EventEmitter.once
node_modules/pixi.js/pixi.js.d.ts:25463
▸ 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
▸ reset(duration?
, stop?
): void
Resets a position and a scale.
Name | Type | Description |
---|---|---|
duration? |
number |
an animation duration |
stop? |
boolean |
false to keep a previous animation |
void
src/main/typescript/wcardinal/ui/d-view.ts:271
▸ stop(): void
Stops an animation if exits.
void
src/main/typescript/wcardinal/ui/d-view.ts:263
▸ toGlobal(local
, global
, skipUpdate?
): IPoint
Name | Type |
---|---|
local |
IPoint |
global |
IPoint |
skipUpdate? |
boolean |
IPoint
src/main/typescript/wcardinal/ui/d-view.ts:375
▸ toLocal(global
, local
, skipUpdate?
): IPoint
Name | Type |
---|---|
global |
IPoint |
local |
IPoint |
skipUpdate? |
boolean |
IPoint
src/main/typescript/wcardinal/ui/d-view.ts:374
▸ transform(x
, y
, scaleX
, scaleY
, duration?
, stop?
): void
Sets to the specified position and scale.
Name | Type | Description |
---|---|---|
x |
number |
a local X coordinate position |
y |
number |
a local Y coordinate position |
scaleX |
number |
a X coordinate scale |
scaleY |
number |
a Y coordinate scale |
duration? |
number |
an animation duration |
stop? |
boolean |
false to keep a previous animation |
void
src/main/typescript/wcardinal/ui/d-view.ts:365
▸ zoom(scaleX
, scaleY
, duration?
, stop?
): void
Zooms in / out at the current position.
Name | Type | Description |
---|---|---|
scaleX |
number |
a X coordinate scale |
scaleY |
number |
a Y coordinate scale |
duration? |
number |
an animation duration |
stop? |
boolean |
false to keep a previous animation |
void
src/main/typescript/wcardinal/ui/d-view.ts:343
▸ zoomAt(x
, y
, scaleX
, scaleY
, duration?
, stop?
): void
Zooms into the given position.
Name | Type | Description |
---|---|---|
x |
number |
a local X coordinate position |
y |
number |
a local Y coordinate position |
scaleX |
number |
a X coordinate scale |
scaleY |
number |
a Y coordinate scale |
duration? |
number |
an duration |
stop? |
boolean |
false to keep a previous animation |
void
src/main/typescript/wcardinal/ui/d-view.ts:307
▸ zoomAtGlobal(x
, y
, scaleX
, scaleY
, duration?
, stop?
): void
Zooms into the specified global position.
Name | Type | Description |
---|---|---|
x |
number |
a global X coordinate position |
y |
number |
a global Y coordinate position |
scaleX |
number |
a X coordinate scale |
scaleY |
number |
a Y coordinate scale |
duration? |
number |
an animation duration |
stop? |
boolean |
false to keep a previous animation |
void
src/main/typescript/wcardinal/ui/d-view.ts:326
▸ zoomIn(duration?
, stop?
): void
Zooms in at the current position.
Name | Type | Description |
---|---|---|
duration? |
number |
an animation duration |
stop? |
boolean |
false to keep a previous animation |
void
src/main/typescript/wcardinal/ui/d-view.ts:287
▸ zoomOut(duration?
, stop?
): void
Zooms out at the current position.
Name | Type | Description |
---|---|---|
duration? |
number |
an animation duration |
stop? |
boolean |
false to keep a previous animation |
void