Winter Cardinal UI - v0.442.0 / DDiagramSnapshot
Name | Type |
---|---|
CANVAS |
extends DDiagramSnapshotCanvas = DDiagramSnapshotCanvas |
EventEmitter
↳ DDiagramSnapshot
• new DDiagramSnapshot<CANVAS
>(parent
, options?
): DDiagramSnapshot
<CANVAS
>
Name | Type |
---|---|
CANVAS |
extends DDiagramSnapshotCanvas = DDiagramSnapshotCanvas |
Name | Type |
---|---|
parent |
DDiagramSnapshotParent <CANVAS > |
options? |
DDiagramSnapshotOptions <CANVAS , any > |
DDiagramSnapshot
<CANVAS
>
utils.EventEmitter.constructor
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:88
• Protected
_parent: DDiagramSnapshotParent
<CANVAS
>
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:86
▸ 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
▸ create<DATA
>(options
): undefined
| DATA
Name |
---|
DATA |
Name | Type |
---|---|
options |
DDiagramSnapshotCreateOptions <CANVAS , DATA > |
undefined
| DATA
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:234
▸ createAsFile(filename
): void
Creates and downloads a snapshot.
Name | Type | Description |
---|---|---|
filename |
string |
a filename |
void
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:144
▸ createAsFile(size
, filename
): void
Creates and downloads a snapshot.
Name | Type | Description |
---|---|---|
size |
null | number |
a maximum image size |
filename |
string |
a filename |
void
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:152
▸ createAsFile(options
): void
Creates and downloads a snapshot.
Name | Type | Description |
---|---|---|
options |
DDiagramSnapshotCreateAsFileOptions |
options |
void
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:159
▸ createAsUrl(size?
): undefined
| string
Creates a snapshot.
Name | Type | Description |
---|---|---|
size? |
null | number |
a maximum image size |
undefined
| string
an URL of a created image or undefined
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:108
▸ createAsUrl(options
): undefined
| string
Creates a snapshot.
Name | Type | Description |
---|---|---|
options |
DDiagramSnapshotCreateAsUrlOptions |
options |
undefined
| string
an URL of a created image or undefined
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:116
▸ 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
▸ 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(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
▸ toCleanupBackground(options?
): boolean
Name | Type |
---|---|
options? |
DDiagramSnapshotCreateOptions <CANVAS , unknown > |
boolean
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:210
▸ toCleanupReflow(options?
): boolean
Name | Type |
---|---|
options? |
DDiagramSnapshotCreateOptions <CANVAS , unknown > |
boolean
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:223
▸ toCleanupSnap(options?
): boolean
Name | Type |
---|---|
options? |
DDiagramSnapshotCreateOptions <CANVAS , unknown > |
boolean
src/main/typescript/wcardinal/ui/d-diagram-snapshot.ts:199
▸ toScale(size
, canvas
): number
Name | Type |
---|---|
size |
undefined | null | number |
canvas |
CANVAS |
number