Winter Cardinal UI - v0.457.0 / DDiagramEditorOnOptions
DDiagramEditor “on” options.
| Name |
|---|
EMITTER |
Partial<DDiagramEditorEvents<EMITTER>>
DOnOptions
↳ DDiagramEditorOnOptions
▸ added(container): void
Triggered when added to a container.
| Name | Type | Description |
|---|---|---|
container |
Container |
a container added to |
void
Partial.added
src/main/typescript/wcardinal/ui/d-base.ts:100
▸ change(emitter): void
Triggered when a serialized data is changed without using the set / unset methods. This happens, for instance, when the name or the ID of the serialized data is changed.
| Name | Type | Description |
|---|---|---|
emitter |
EMITTER |
an emitter |
void
Partial.change
src/main/typescript/wcardinal/ui/d-diagram-editor.ts:43
▸ click(e, emitter): void
Triggered when an emitter is clicked.
| Name | Type | Description |
|---|---|---|
e |
InteractionEvent |
an interaction event |
emitter |
EMITTER |
an emitter |
void
Partial.click
src/main/typescript/wcardinal/ui/d-base.ts:232
▸ dblclick(e, interactionManager, emitter): void
Triggered when an emitter is double clicked.
| Name | Type | Description |
|---|---|---|
e |
MouseEvent | TouchEvent |
an event |
interactionManager |
InteractionManager |
an interaction manager |
emitter |
EMITTER |
an emitter |
void
Partial.dblclick
src/main/typescript/wcardinal/ui/d-base.ts:241
▸ deleted(reason, emitter): void
Triggered when deleted successfully or when failed to delete.
| Name | Type | Description |
|---|---|---|
reason |
null | string |
Null if succeeded. Otherwise, a string representing a reason why failed. |
emitter |
EMITTER |
an emitter. |
void
Partial.deleted
src/main/typescript/wcardinal/ui/d-diagram-editor.ts:105
▸ deleting(emitter): void
Triggered before deleting.
| Name | Type | Description |
|---|---|---|
emitter |
EMITTER |
an emitter |
void
Partial.deleting
src/main/typescript/wcardinal/ui/d-diagram-editor.ts:97
▸ down(e, emitter): void
Triggered when a pointer gets down on an emitter.
| Name | Type | Description |
|---|---|---|
e |
InteractionEvent |
an interaction event. |
emitter |
EMITTER |
an emitter |
void
Partial.down
src/main/typescript/wcardinal/ui/d-base.ts:216
▸ init(emitter): void
Triggered when an initialization is finished.
| Name | Type | Description |
|---|---|---|
emitter |
EMITTER |
an emitter |
void
Partial.init
src/main/typescript/wcardinal/ui/d-base.ts:93
▸ keydown(e, emitter): void
Triggered when a key gets down.
| Name | Type | Description |
|---|---|---|
e |
KeyboardEvent |
a keyboard event |
emitter |
EMITTER |
an emitter |
void
Partial.keydown
src/main/typescript/wcardinal/ui/d-base.ts:184
▸ keyup(e, emitter): void
Triggered when a key gets up.
| Name | Type | Description |
|---|---|---|
e |
KeyboardEvent |
a keyboard event |
emitter |
EMITTER |
an emitter |
void
Partial.keyup
src/main/typescript/wcardinal/ui/d-base.ts:192
▸ move(newX, newY, oldX, oldY, emitter): void
Triggered when moved.
| Name | Type | Description |
|---|---|---|
newX |
number |
a new x |
newY |
number |
a new y |
oldX |
number |
an old x |
oldY |
number |
an old y |
emitter |
EMITTER |
an emitter |
void
Partial.move
src/main/typescript/wcardinal/ui/d-base.ts:118
▸ opened(reason, emitter): void
Triggered when opened successfully or when failed to open.
| Name | Type | Description |
|---|---|---|
reason |
null | string |
Null if succeeded. Otherwise, a string representing a reason why failed. |
emitter |
EMITTER |
an emitter |
void
Partial.opened
src/main/typescript/wcardinal/ui/d-diagram-editor.ts:90
▸ opening(emitter): void
Triggered before opening.
| Name | Type | Description |
|---|---|---|
emitter |
EMITTER |
an emitter |
void
Partial.opening
src/main/typescript/wcardinal/ui/d-diagram-editor.ts:82
▸ out(e, emitter): void
Triggered when a pointer gets out of an emitter.
| Name | Type | Description |
|---|---|---|
e |
InteractionEvent |
an interaction event |
emitter |
EMITTER |
an emitter |
void
Partial.out
src/main/typescript/wcardinal/ui/d-base.ts:208
▸ over(e, emitter): void
Triggered when a pointer gets on an emitter.
| Name | Type | Description |
|---|---|---|
e |
InteractionEvent |
an interaction event. |
emitter |
EMITTER |
an emitter |
void
Partial.over
src/main/typescript/wcardinal/ui/d-base.ts:200
▸ ready(emitter): void
Triggered when all the shape initializations are finished.
| Name | Type | Description |
|---|---|---|
emitter |
EMITTER |
an emitter |
void
Partial.ready
src/main/typescript/wcardinal/ui/d-diagram-base.ts:42
▸ removed(container): void
Triggered when removed from a container.
| Name | Type | Description |
|---|---|---|
container |
Container |
a container removed from |
void
Partial.removed
src/main/typescript/wcardinal/ui/d-base.ts:107
▸ resize(newWidth, newHeight, oldWidth, oldHeight, emitter): void
Triggered when resized.
| Name | Type | Description |
|---|---|---|
newWidth |
number |
a new width |
newHeight |
number |
a new height |
oldWidth |
number |
an old width |
oldHeight |
number |
an old height |
emitter |
EMITTER |
an emitter |
void
Partial.resize
src/main/typescript/wcardinal/ui/d-base.ts:129
▸ saved(reason, emitter): void
Triggered when saved successfully or when failed to save.
| Name | Type | Description |
|---|---|---|
reason |
null | string |
Null if succeeded. Otherwise, a string representing a reason why failed. |
emitter |
EMITTER |
an emitter |
void
Partial.saved
src/main/typescript/wcardinal/ui/d-diagram-editor.ts:75
▸ saving(simple, emitter): void
Triggered before saving.
| Name | Type | Description |
|---|---|---|
simple |
DDiagramSerializedSimple |
a serialized data |
emitter |
EMITTER |
an emitter |
void
Partial.saving
src/main/typescript/wcardinal/ui/d-diagram-editor.ts:67
▸ scale(newX, newY, oldX, oldY, emitter): void
Triggered when scaled.
| Name | Type | Description |
|---|---|---|
newX |
number |
a new x |
newY |
number |
a new y |
oldX |
number |
an old x |
oldY |
number |
an old y |
emitter |
EMITTER |
an emitter |
void
Partial.scale
src/main/typescript/wcardinal/ui/d-base.ts:146
▸ serialized(canvas, reason, emitter): void
Triggered when serialized successfully or when failed to serialize.
| Name | Type | Description |
|---|---|---|
canvas |
DDiagramCanvasEditor<DThemeDiagramCanvasEditor, DDiagramCanvasEditorOptions<DThemeDiagramCanvasEditor>> |
- |
reason |
null | string |
Null if succeeded. Otherwise, a string representing a reason why failed. |
emitter |
EMITTER |
an emitter |
void
Partial.serialized
src/main/typescript/wcardinal/ui/d-diagram-editor.ts:59
▸ serializing(canvas, emitter): void
Triggered before serializing a canvas.
| Name | Type | Description |
|---|---|---|
canvas |
DDiagramCanvasEditor<DThemeDiagramCanvasEditor, DDiagramCanvasEditorOptions<DThemeDiagramCanvasEditor>> |
a canvas |
emitter |
EMITTER |
an emitter |
void
Partial.serializing
src/main/typescript/wcardinal/ui/d-diagram-editor.ts:51
▸ set(canvas, emitter): void
Triggered when a canvas is set.
| Name | Type | Description |
|---|---|---|
canvas |
DDiagramCanvasEditor<DThemeDiagramCanvasEditor, DDiagramCanvasEditorOptions<DThemeDiagramCanvasEditor>> |
a new canvas |
emitter |
EMITTER |
an emitter |
void
Partial.set
src/main/typescript/wcardinal/ui/d-canvas-container.ts:34
▸ shortcut(e, emitter): void
Triggered when a shortcut is pressed.
| Name | Type | Description |
|---|---|---|
e |
KeyboardEvent |
an event |
emitter |
EMITTER |
an emitter |
void
Partial.shortcut
src/main/typescript/wcardinal/ui/d-base.ts:253
▸ skew(newX, newY, oldX, oldY, emitter): void
Triggered when skewed.
| Name | Type | Description |
|---|---|---|
newX |
number |
a new x |
newY |
number |
a new y |
oldX |
number |
an old x |
oldY |
number |
an old y |
emitter |
EMITTER |
an emitter |
void
Partial.skew
src/main/typescript/wcardinal/ui/d-base.ts:157
▸ statechange(newState, oldState, emitter): void
Triggered when a state is changed.
| Name | Type | Description |
|---|---|---|
newState |
DBaseStateSet |
a new state |
oldState |
DBaseStateSet |
an old state |
emitter |
EMITTER |
an emitter |
void
Partial.statechange
src/main/typescript/wcardinal/ui/d-base.ts:166
▸ unset(canvas, emitter): void
Triggered when a canvas is removed.
| Name | Type | Description |
|---|---|---|
canvas |
DDiagramCanvasEditor<DThemeDiagramCanvasEditor, DDiagramCanvasEditorOptions<DThemeDiagramCanvasEditor>> |
a removed canvas |
emitter |
EMITTER |
an emitter |
void
Partial.unset
src/main/typescript/wcardinal/ui/d-canvas-container.ts:26
▸ up(e, emitter): void
Triggered when a pointer gets up on an emitter.
| Name | Type | Description |
|---|---|---|
e |
InteractionEvent |
an interaction event |
emitter |
EMITTER |
an emitter |
void
Partial.up
src/main/typescript/wcardinal/ui/d-base.ts:224
▸ wheel(e, deltas, global, emitter): void
Triggered when a wheel moves.
| Name | Type | Description |
|---|---|---|
e |
WheelEvent |
a wheel event |
deltas |
UtilWheelEventDeltas |
wheel move amounts |
global |
Point |
a point wheel moved |
emitter |
EMITTER |
an emitter |
void
Partial.wheel