Winter Cardinal UI - v0.457.0 / DControllerCommandImpl

Class: DControllerCommandImpl

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

• new DControllerCommandImpl(): DControllerCommandImpl

Returns

DControllerCommandImpl

Overrides

utils.EventEmitter.constructor

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:15

Properties

_done

• Protected _done: DCommand[]

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:13


_position

• Protected _position: number

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:12

Methods

addListener

▸ addListener(event, fn, context?): this

Alias method for on

Parameters

Name Type
event string | symbol
fn Function
context? any

Returns

this

Implementation of

DControllerCommand.addListener

Inherited from

utils.EventEmitter.addListener

Defined in

node_modules/pixi.js/pixi.js.d.ts:25495


cleanup

▸ cleanup(): void

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:82


clear

▸ clear(): void

Returns

void

Implementation of

DControllerCommand.clear

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:114


doRedo

▸ doRedo(): void

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:124


doUndo

▸ doUndo(): void

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:162


emit

▸ emit(event, ...args): boolean

Calls each of the listeners registered for a given event.

Parameters

Name Type Description
event string | symbol The event name.
...args any[] Arguments that are passed to registered listeners

Returns

boolean

true if the event had listeners, else false.

Implementation of

DControllerCommand.emit

Inherited from

utils.EventEmitter.emit

Defined in

node_modules/pixi.js/pixi.js.d.ts:25441


eventNames

▸ eventNames(): (string | symbol)[]

Return an array listing the events for which the emitter has registered listeners.

Returns

(string | symbol)[]

Implementation of

DControllerCommand.eventNames

Inherited from

utils.EventEmitter.eventNames

Defined in

node_modules/pixi.js/pixi.js.d.ts:25415


execute

▸ execute(command): void

Parameters

Name Type
command DCommand

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:55


isRedoable

▸ isRedoable(): boolean

Returns

boolean

Implementation of

DControllerCommand.isRedoable

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:152


isUndoable

▸ isUndoable(): boolean

Returns

boolean

Implementation of

DControllerCommand.isUndoable

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:190


last

▸ last(): null | DCommand

Returns

null | DCommand

Implementation of

DControllerCommand.last

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:21


listenerCount

▸ listenerCount(event): number

Return the number of listeners listening to a given event.

Parameters

Name Type Description
event string | symbol The event name.

Returns

number

Implementation of

DControllerCommand.listenerCount

Inherited from

utils.EventEmitter.listenerCount

Defined in

node_modules/pixi.js/pixi.js.d.ts:25432


listeners

▸ listeners(event): Function[]

Return the listeners registered for a given event.

Parameters

Name Type Description
event string | symbol The event name.

Returns

Function[]

Implementation of

DControllerCommand.listeners

Inherited from

utils.EventEmitter.listeners

Defined in

node_modules/pixi.js/pixi.js.d.ts:25424


merge

▸ merge(command): void

Parameters

Name Type
command DCommand

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:36


off

▸ off(event, fn?, context?, once?): this

Alias method for removeListener

Parameters

Name Type
event string | symbol
fn? Function
context? any
once? boolean

Returns

this

Implementation of

DControllerCommand.off

Inherited from

utils.EventEmitter.off

Defined in

node_modules/pixi.js/pixi.js.d.ts:25489


on

▸ on(event, fn, context?): this

Add a listener for a given event.

Parameters

Name Type Description
event string | symbol The event name.
fn Function The listener function.
context? any The context to invoke the listener with.

Returns

this

this.

Implementation of

DControllerCommand.on

Inherited from

utils.EventEmitter.on

Defined in

node_modules/pixi.js/pixi.js.d.ts:25452


onFail

▸ onFail(command): void

Parameters

Name Type
command DCommand

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:77


onRedoFail

▸ onRedoFail(command): void

Parameters

Name Type
command DCommand

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:148


onRedoSuccess

▸ onRedoSuccess(redoed): void

Parameters

Name Type
redoed DCommand

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:140


onSuccess

▸ onSuccess(command): void

Parameters

Name Type
command DCommand

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:64


onUndoFail

▸ onUndoFail(command): void

Parameters

Name Type
command DCommand

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:186


onUndoSuccess

▸ onUndoSuccess(undoed): void

Parameters

Name Type
undoed DCommand

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:178


once

▸ once(event, fn, context?): this

Add a one-time listener for a given event.

Parameters

Name Type Description
event string | symbol The event name.
fn Function The listener function.
context? any The context to invoke the listener with.

Returns

this

this.

Implementation of

DControllerCommand.once

Inherited from

utils.EventEmitter.once

Defined in

node_modules/pixi.js/pixi.js.d.ts:25463


push

▸ push(command): void

Parameters

Name Type
command DCommand

Returns

void

Implementation of

DControllerCommand.push

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:31


redo

▸ redo(): void

Returns

void

Implementation of

DControllerCommand.redo

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:118


remove

▸ remove(size): boolean

Parameters

Name Type
size number

Returns

boolean

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:93


removeAllListeners

▸ removeAllListeners(event?): this

Remove all listeners, or those of the specified event.

Parameters

Name Type Description
event? string | symbol The event name.

Returns

this

this.

Implementation of

DControllerCommand.removeAllListeners

Inherited from

utils.EventEmitter.removeAllListeners

Defined in

node_modules/pixi.js/pixi.js.d.ts:25483


removeListener

▸ removeListener(event, fn?, context?, once?): this

Remove the listeners of a given event.

Parameters

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.

Returns

this

this.

Implementation of

DControllerCommand.removeListener

Inherited from

utils.EventEmitter.removeListener

Defined in

node_modules/pixi.js/pixi.js.d.ts:25475


size

▸ size(): number

Returns

number

Implementation of

DControllerCommand.size

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:110


undo

▸ undo(): void

Returns

void

Implementation of

DControllerCommand.undo

Defined in

src/main/typescript/wcardinal/ui/d-controller-command-impl.ts:156