Winter Cardinal UI - v0.457.0 / DControllerCommandImpl
EventEmitter
↳ DControllerCommandImpl
• new DControllerCommandImpl(): DControllerCommandImpl
utils.EventEmitter.constructor
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:15
• Protected _done: DCommand[]
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:13
• Protected _position: number
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:12
▸ addListener(event, fn, context?): this
Alias method for on
| Name | Type |
|---|---|
event |
string | symbol |
fn |
Function |
context? |
any |
this
DControllerCommand.addListener
utils.EventEmitter.addListener
node_modules/pixi.js/pixi.js.d.ts:25495
▸ cleanup(): void
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:82
▸ clear(): void
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:114
▸ doRedo(): void
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:124
▸ doUndo(): void
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:162
▸ 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
▸ execute(command): void
| Name | Type |
|---|---|
command |
DCommand |
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:55
▸ isRedoable(): boolean
boolean
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:152
▸ isUndoable(): boolean
boolean
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:190
▸ last(): null | DCommand
null | DCommand
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:21
▸ listenerCount(event): number
Return the number of listeners listening to a given event.
| Name | Type | Description |
|---|---|---|
event |
string | symbol |
The event name. |
number
DControllerCommand.listenerCount
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
▸ merge(command): void
| Name | Type |
|---|---|
command |
DCommand |
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:36
▸ 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
▸ onFail(command): void
| Name | Type |
|---|---|
command |
DCommand |
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:77
▸ onRedoFail(command): void
| Name | Type |
|---|---|
command |
DCommand |
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:148
▸ onRedoSuccess(redoed): void
| Name | Type |
|---|---|
redoed |
DCommand |
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:140
▸ onSuccess(command): void
| Name | Type |
|---|---|
command |
DCommand |
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:64
▸ onUndoFail(command): void
| Name | Type |
|---|---|
command |
DCommand |
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:186
▸ onUndoSuccess(undoed): void
| Name | Type |
|---|---|
undoed |
DCommand |
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:178
▸ 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
▸ push(command): void
| Name | Type |
|---|---|
command |
DCommand |
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:31
▸ redo(): void
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:118
▸ remove(size): boolean
| Name | Type |
|---|---|
size |
number |
boolean
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:93
▸ removeAllListeners(event?): this
Remove all listeners, or those of the specified event.
| Name | Type | Description |
|---|---|---|
event? |
string | symbol |
The event name. |
this
this.
DControllerCommand.removeAllListeners
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.
DControllerCommand.removeListener
utils.EventEmitter.removeListener
node_modules/pixi.js/pixi.js.d.ts:25475
▸ size(): number
number
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:110
▸ undo(): void
void
src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:156