@wcardinal/wcardinal-ui 0.167.0 → 0.170.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/wcardinal/ui/d-button-select.d.ts +4 -3
- package/dist/types/wcardinal/ui/d-command-flag.d.ts +5 -1
- package/dist/types/wcardinal/ui/d-controller-default-command.d.ts +7 -0
- package/dist/types/wcardinal/ui/d-diagram-base.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-diagram-canvas-base.d.ts +3 -1
- package/dist/types/wcardinal/ui/d-diagram-canvas-data-impl.d.ts +20 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-data-private-impl.d.ts +7 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-data-private.d.ts +5 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-data.d.ts +16 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-shape-impl.d.ts +9 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-shape.d.ts +6 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-ticker-impl.d.ts +10 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-ticker.d.ts +6 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas.d.ts +30 -10
- package/dist/types/wcardinal/ui/d-diagram-data-impl.d.ts +29 -0
- package/dist/types/wcardinal/ui/d-diagram-data-mapper.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-diagram-data-private-impl.d.ts +7 -0
- package/dist/types/wcardinal/ui/d-diagram-data-private.d.ts +3 -0
- package/dist/types/wcardinal/ui/d-diagram-data-remote-impl.d.ts +6 -0
- package/dist/types/wcardinal/ui/d-diagram-data-remote.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-diagram-data.d.ts +12 -21
- package/dist/types/wcardinal/ui/d-diagram-layer-container.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-diagram-layer.d.ts +2 -4
- package/dist/types/wcardinal/ui/d-diagram-serialized.d.ts +45 -27
- package/dist/types/wcardinal/ui/d-diagram-shape.d.ts +4 -3
- package/dist/types/wcardinal/ui/d-diagram-snapshot.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-diagram-ticker.d.ts +13 -0
- package/dist/types/wcardinal/ui/d-diagram.d.ts +3 -4
- package/dist/types/wcardinal/ui/index.d.ts +14 -2
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtimes.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-impl.d.ts +50 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-mapper-impl.d.ts +17 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-mapper.d.ts +7 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-mapping-impl.d.ts +21 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-mapping.d.ts +20 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-private-impl.d.ts +7 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-private.d.ts +5 -0
- package/dist/types/wcardinal/ui/shape/{variant/e-shape-data-value-impl.d.ts → e-shape-data-value-impl.d.ts} +9 -4
- package/dist/types/wcardinal/ui/shape/e-shape-data-value-order.d.ts +5 -0
- package/dist/types/wcardinal/ui/shape/{variant/e-shape-data-value-range-impl.d.ts → e-shape-data-value-range-impl.d.ts} +3 -3
- package/dist/types/wcardinal/ui/shape/e-shape-data-value-scope.d.ts +12 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-value-type.d.ts +10 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-value.d.ts +5 -5
- package/dist/types/wcardinal/ui/shape/e-shape-data.d.ts +10 -0
- package/dist/types/wcardinal/ui/shape/e-shape-resource-manager-deserialization.d.ts +12 -4
- package/dist/types/wcardinal/ui/shape/index.d.ts +12 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime-action.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/index.d.ts +0 -3
- package/dist/wcardinal/ui/d-button-select.js +1 -1
- package/dist/wcardinal/ui/d-button-select.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base.js +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/d-command-flag.js +6 -2
- package/dist/wcardinal/ui/d-command-flag.js.map +1 -1
- package/dist/wcardinal/ui/d-controller-default-command.js +117 -80
- package/dist/wcardinal/ui/d-controller-default-command.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-base.js +8 -10
- package/dist/wcardinal/ui/d-diagram-base.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-base.js +6 -3
- package/dist/wcardinal/ui/d-diagram-canvas-base.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-data-impl.js +217 -0
- package/dist/wcardinal/ui/d-diagram-canvas-data-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-data-private-impl.js +49 -0
- package/dist/wcardinal/ui/d-diagram-canvas-data-private-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-data-private.js +6 -0
- package/dist/wcardinal/ui/d-diagram-canvas-data-private.js.map +1 -0
- package/dist/wcardinal/ui/{d-diagram-canvas-data-map.js → d-diagram-canvas-data.js} +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-data.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-shape-impl.js +32 -0
- package/dist/wcardinal/ui/d-diagram-canvas-shape-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-shape.js +6 -0
- package/dist/wcardinal/ui/d-diagram-canvas-shape.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-ticker-impl.js +38 -0
- package/dist/wcardinal/ui/d-diagram-canvas-ticker-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-ticker.js +6 -0
- package/dist/wcardinal/ui/d-diagram-canvas-ticker.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas.js +275 -10
- package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-data-impl.js +121 -0
- package/dist/wcardinal/ui/d-diagram-data-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-data-mapper.js +6 -0
- package/dist/wcardinal/ui/d-diagram-data-mapper.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-data-private-impl.js +19 -0
- package/dist/wcardinal/ui/d-diagram-data-private-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-data-private.js +6 -0
- package/dist/wcardinal/ui/d-diagram-data-private.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-data-remote-impl.js +20 -0
- package/dist/wcardinal/ui/d-diagram-data-remote-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-data-remote.js +1 -15
- package/dist/wcardinal/ui/d-diagram-data-remote.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-data.js +1 -201
- package/dist/wcardinal/ui/d-diagram-data.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-layer-container.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-layer.js +5 -50
- package/dist/wcardinal/ui/d-diagram-layer.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-serialized.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-shape.js +14 -47
- package/dist/wcardinal/ui/d-diagram-shape.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-snapshot.js +1 -1
- package/dist/wcardinal/ui/d-diagram-snapshot.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-ticker.js +47 -0
- package/dist/wcardinal/ui/d-diagram-ticker.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram.js +4 -115
- package/dist/wcardinal/ui/d-diagram.js.map +1 -1
- package/dist/wcardinal/ui/d-dialog.js +2 -1
- package/dist/wcardinal/ui/d-dialog.js.map +1 -1
- package/dist/wcardinal/ui/index.js +14 -2
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js +27 -7
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js.map +1 -1
- package/dist/wcardinal/ui/shape/{variant/e-shape-data-impl.js → e-shape-data-impl.js} +105 -20
- package/dist/wcardinal/ui/shape/e-shape-data-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapper-impl.js +122 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapper-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapper.js +6 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapper.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapping-impl.js +135 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapping-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapping.js +6 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapping.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-private-impl.js +45 -0
- package/dist/wcardinal/ui/shape/e-shape-data-private-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-private.js +2 -0
- package/dist/wcardinal/ui/shape/e-shape-data-private.js.map +1 -0
- package/dist/wcardinal/ui/shape/{variant/e-shape-data-value-impl.js → e-shape-data-value-impl.js} +17 -6
- package/dist/wcardinal/ui/shape/e-shape-data-value-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-order.js +9 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-order.js.map +1 -0
- package/dist/wcardinal/ui/shape/{variant/e-shape-data-value-range-impl.js → e-shape-data-value-range-impl.js} +1 -1
- package/dist/wcardinal/ui/shape/e-shape-data-value-range-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-scope.js +16 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-scope.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-type.js +14 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-type.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value.js +1 -4
- package/dist/wcardinal/ui/shape/e-shape-data-value.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-data.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-resource-manager-deserialization.js +28 -0
- package/dist/wcardinal/ui/shape/e-shape-resource-manager-deserialization.js.map +1 -1
- package/dist/wcardinal/ui/shape/index.js +12 -0
- package/dist/wcardinal/ui/shape/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-rectangle-pivoted.js +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-rectangle-pivoted.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-embedded.js +36 -0
- package/dist/wcardinal/ui/shape/variant/deserialize-embedded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group-viewer.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group-viewer.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-primitive.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-primitive.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/index.js +0 -3
- package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +6596 -5666
- package/dist/wcardinal-ui.js +19893 -18963
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/wcardinal/ui/d-diagram-canvas-data-map.d.ts +0 -2
- package/dist/types/wcardinal/ui/d-diagram-canvas-id-map.d.ts +0 -2
- package/dist/types/wcardinal/ui/shape/variant/e-shape-data-impl.d.ts +0 -34
- package/dist/wcardinal/ui/d-diagram-canvas-data-map.js.map +0 -1
- package/dist/wcardinal/ui/d-diagram-canvas-id-map.js +0 -2
- package/dist/wcardinal/ui/d-diagram-canvas-id-map.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-data-impl.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-data-value-impl.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-data-value-range-impl.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { interaction } from "pixi.js";
|
|
2
2
|
import { DButton, DButtonEvents, DButtonOptions, DThemeButton } from "./d-button";
|
|
3
|
+
import { DDialogOpener } from "./d-dialog";
|
|
3
4
|
import { DDialogSelectOptions } from "./d-dialog-select";
|
|
4
5
|
import { DOnOptions } from "./d-on-options";
|
|
5
6
|
/**
|
|
@@ -7,7 +8,7 @@ import { DOnOptions } from "./d-on-options";
|
|
|
7
8
|
*/
|
|
8
9
|
export interface DButtonSelectDialog<VALUE> {
|
|
9
10
|
readonly value: VALUE | null;
|
|
10
|
-
open(): Promise<unknown>;
|
|
11
|
+
open(opener?: DDialogOpener): Promise<unknown>;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* A function to retrieve a selected value from a dialog.
|
|
@@ -39,7 +40,7 @@ export interface DButtonSelectOnOptions<VALUE, EMITTER> extends Partial<DButtonS
|
|
|
39
40
|
/**
|
|
40
41
|
* {@link DButtonSelect} options.
|
|
41
42
|
*/
|
|
42
|
-
export interface DButtonSelectOptions<VALUE
|
|
43
|
+
export interface DButtonSelectOptions<VALUE = unknown, DIALOG_VALUE = unknown, DIALOG extends DButtonSelectDialog<DIALOG_VALUE> = DButtonSelectDialog<DIALOG_VALUE>, THEME extends DThemeButtonSelect<VALUE> = DThemeButtonSelect<VALUE>, EMITTER = any> extends DButtonOptions<VALUE | null, THEME, EMITTER> {
|
|
43
44
|
/**
|
|
44
45
|
* A function to retrieve a selected value from a dialog.
|
|
45
46
|
*/
|
|
@@ -60,7 +61,7 @@ export interface DButtonSelectOptions<VALUE extends unknown = unknown, DIALOG_VA
|
|
|
60
61
|
*/
|
|
61
62
|
export interface DThemeButtonSelect<VALUE = unknown> extends DThemeButton<VALUE | null> {
|
|
62
63
|
}
|
|
63
|
-
export declare class DButtonSelect<VALUE
|
|
64
|
+
export declare class DButtonSelect<VALUE = unknown, DIALOG_VALUE = unknown, DIALOG extends DButtonSelectDialog<DIALOG_VALUE> = DButtonSelectDialog<DIALOG_VALUE>, THEME extends DThemeButtonSelect<VALUE> = DThemeButtonSelect<VALUE>, OPTIONS extends DButtonSelectOptions<VALUE, DIALOG_VALUE, DIALOG, THEME> = DButtonSelectOptions<VALUE, DIALOG_VALUE, DIALOG, THEME>> extends DButton<VALUE | null, THEME, OPTIONS> {
|
|
64
65
|
protected _dialog?: DIALOG;
|
|
65
66
|
protected _dialogGetter: DButtonSelectGetter<VALUE, DIALOG>;
|
|
66
67
|
protected _dialogSetter: DButtonSelectSetter<VALUE, DIALOG>;
|
|
@@ -5,8 +5,12 @@ export declare const DCommandFlag: {
|
|
|
5
5
|
*/
|
|
6
6
|
readonly UNSTORABLE: 1;
|
|
7
7
|
/**
|
|
8
|
-
* Commands with a `CLEAR` flag
|
|
8
|
+
* Commands with a `CLEAR` flag clear the command queue.
|
|
9
9
|
*/
|
|
10
10
|
readonly CLEAR: 2;
|
|
11
|
+
/**
|
|
12
|
+
* Commands with a `CLEAN` flag are not considered as modifications to documents
|
|
13
|
+
*/
|
|
14
|
+
readonly CLEAN: 4;
|
|
11
15
|
};
|
|
12
16
|
export declare type DCommandFlag = number;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { utils } from "pixi.js";
|
|
2
2
|
import { DCommand } from "./d-command";
|
|
3
|
+
import { DCommandRedo } from "./d-command-redo";
|
|
4
|
+
import { DCommandUndo } from "./d-command-undo";
|
|
3
5
|
import { DControllerCommand } from "./d-controller-command";
|
|
4
6
|
export declare class DControllerDefaultCommand extends utils.EventEmitter implements DControllerCommand {
|
|
5
7
|
protected _position: number;
|
|
@@ -10,9 +12,14 @@ export declare class DControllerDefaultCommand extends utils.EventEmitter implem
|
|
|
10
12
|
last(): DCommand | null;
|
|
11
13
|
push(command: DCommand): void;
|
|
12
14
|
next(): void;
|
|
15
|
+
protected executeUndo(command: DCommandUndo): void;
|
|
16
|
+
protected executeRedo(command: DCommandRedo): void;
|
|
17
|
+
protected execute(command: DCommand): void;
|
|
13
18
|
protected cleanup(): void;
|
|
14
19
|
protected remove(size: number): boolean;
|
|
15
20
|
protected onSuccess(command: DCommand): void;
|
|
21
|
+
protected onSuccessUndo(undoed: DCommand): void;
|
|
22
|
+
protected onSuccessRedo(redoed: DCommand): void;
|
|
16
23
|
protected onFail(command: DCommand): void;
|
|
17
24
|
size(): number;
|
|
18
25
|
clear(): void;
|
|
@@ -2,6 +2,7 @@ import { DBaseShadow } from "./d-base";
|
|
|
2
2
|
import { DCanvasContainer, DCanvasContainerEvents, DCanvasContainerOptions, DThemeCanvasContainer } from "./d-canvas-container";
|
|
3
3
|
import { DDiagramCanvasBackgroundOptions, DDiagramCanvasBase, DDiagramCanvasBaseOptions } from "./d-diagram-canvas-base";
|
|
4
4
|
import { DDiagramCanvasTilePyramidFactory } from "./d-diagram-canvas-tile";
|
|
5
|
+
import { DDiagramDataMapper } from "./d-diagram-data-mapper";
|
|
5
6
|
import { DDiagramLayer } from "./d-diagram-layer";
|
|
6
7
|
import { DDiagramSerialized, DDiagramSerializedSimple } from "./d-diagram-serialized";
|
|
7
8
|
import { DDiagramSnapshot, DDiagramSnapshotOptions } from "./d-diagram-snapshot";
|
|
@@ -75,10 +76,10 @@ export declare abstract class DDiagramBase<CANVAS extends DDiagramCanvasBase = D
|
|
|
75
76
|
protected onSet(serialized: DDiagramSerialized): void;
|
|
76
77
|
protected abstract isEditMode(): boolean;
|
|
77
78
|
protected newLayer(serialized: DDiagramSerialized, canvas: CANVAS, isEditMode: boolean, pieces?: string[], pieceData?: Map<string, EShapeEmbeddedDatum | null>): void;
|
|
79
|
+
protected initLayer(canvas: CANVAS, shapes: EShape[], mapper?: DDiagramDataMapper | null): void;
|
|
78
80
|
protected toCanvasBaseOptions(serialized: DDiagramSerialized): DDiagramCanvasBaseOptions<any>;
|
|
79
81
|
protected toCanvasBaseBackgroundOptions(serialized: DDiagramSerialized, theme: THEME, isAmbient: boolean): DDiagramCanvasBackgroundOptions;
|
|
80
82
|
openByName(name: string): void;
|
|
81
|
-
protected initialize(shapes: EShape[]): void;
|
|
82
83
|
protected abstract newCanvas(serialized: DDiagramSerialized): CANVAS;
|
|
83
84
|
protected onUnset(): void;
|
|
84
85
|
get(): DDiagramSerialized | null;
|
|
@@ -2,6 +2,7 @@ import { IPoint } from "pixi.js";
|
|
|
2
2
|
import { DBaseBackgroundOptions } from "./d-base";
|
|
3
3
|
import { DCanvas, DCanvasOptions, DThemeCanvas } from "./d-canvas";
|
|
4
4
|
import { DDiagramCanvasTile, DDiagramCanvasTileOptions } from "./d-diagram-canvas-tile";
|
|
5
|
+
import { DDiagramDataMapper } from "./d-diagram-data-mapper";
|
|
5
6
|
import { DDiagramLayerContainer } from "./d-diagram-layer-container";
|
|
6
7
|
import { EShape } from "./shape/e-shape";
|
|
7
8
|
export interface DDiagramCanvasBackgroundOptions extends DBaseBackgroundOptions {
|
|
@@ -24,8 +25,9 @@ export declare class DDiagramCanvasBase<THEME extends DThemeDiagramCanvasBase =
|
|
|
24
25
|
protected toBackgroundBase(theme: THEME, options?: OPTIONS): number | null;
|
|
25
26
|
get tile(): DDiagramCanvasTile;
|
|
26
27
|
get layer(): DDiagramLayerContainer;
|
|
27
|
-
initialize(shapes: EShape[]): void;
|
|
28
|
+
initialize(shapes: EShape[], mapper?: DDiagramDataMapper | null): void;
|
|
28
29
|
destroy(): void;
|
|
30
|
+
protected onDestroy(): void;
|
|
29
31
|
hitTest(global: IPoint, onHit?: (shape: EShape) => boolean): EShape | null;
|
|
30
32
|
protected getType(): string;
|
|
31
33
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DDiagramCanvasData } from "./d-diagram-canvas-data";
|
|
2
|
+
import { DDiagramCanvasDataPrivate } from "./d-diagram-canvas-data-private";
|
|
3
|
+
import { EShapeDataValue } from "./shape/e-shape-data-value";
|
|
4
|
+
export declare class DDiagramCanvasDataImpl implements DDiagramCanvasData {
|
|
5
|
+
protected _data?: Map<string, EShapeDataValue[]>;
|
|
6
|
+
protected _private?: DDiagramCanvasDataPrivate;
|
|
7
|
+
get private(): DDiagramCanvasDataPrivate;
|
|
8
|
+
protected newPrivate(): DDiagramCanvasDataPrivate;
|
|
9
|
+
get ids(): string[];
|
|
10
|
+
each(callback: (id: string) => boolean | void): string | null;
|
|
11
|
+
add(id: string, value: EShapeDataValue): void;
|
|
12
|
+
set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
|
|
13
|
+
clear(id: string): boolean;
|
|
14
|
+
setAll(id: string, values: unknown[], times?: number[], from?: number | null, to?: number | null): boolean;
|
|
15
|
+
setValue(id: string, value: unknown, time?: number): boolean;
|
|
16
|
+
setValues(id: string, values: unknown[], times?: number[]): boolean;
|
|
17
|
+
setTime(id: string, time: number): boolean;
|
|
18
|
+
setTimes(id: string, times: number[]): boolean;
|
|
19
|
+
setRange(id: string, from?: number | null, to?: number | null): boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DDiagramCanvasDataPrivate } from "./d-diagram-canvas-data-private";
|
|
2
|
+
import { EShapeDataValue } from "./shape/e-shape-data-value";
|
|
3
|
+
export declare class DDiagramCanvasDataPrivateImpl implements DDiagramCanvasDataPrivate {
|
|
4
|
+
protected _data?: Map<string, EShapeDataValue[]>;
|
|
5
|
+
add(id: string, value: EShapeDataValue): void;
|
|
6
|
+
set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DDiagramCanvasDataPrivate } from "./d-diagram-canvas-data-private";
|
|
2
|
+
import { EShapeDataValue } from "./shape/e-shape-data-value";
|
|
3
|
+
export interface DDiagramCanvasData {
|
|
4
|
+
readonly private: DDiagramCanvasDataPrivate;
|
|
5
|
+
readonly ids: string[];
|
|
6
|
+
each(callback: (id: string) => boolean | void): string | null;
|
|
7
|
+
add(id: string, value: EShapeDataValue): void;
|
|
8
|
+
set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
|
|
9
|
+
clear(id: string): boolean;
|
|
10
|
+
setAll(id: string, values: unknown[], times?: number[], from?: number | null, to?: number | null): boolean;
|
|
11
|
+
setValue(id: string, value: unknown, time?: number): boolean;
|
|
12
|
+
setValues(id: string, values: unknown[], times?: number[]): boolean;
|
|
13
|
+
setTime(id: string, time: number): boolean;
|
|
14
|
+
setTimes(id: string, times: number[]): boolean;
|
|
15
|
+
setRange(id: string, from?: number | null, to?: number | null): boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DDiagramCanvasShape } from "./d-diagram-canvas-shape";
|
|
2
|
+
import { EShape } from "./shape/e-shape";
|
|
3
|
+
export declare class DDiagramCanvasShapeImpl implements DDiagramCanvasShape {
|
|
4
|
+
protected _data: Map<string, EShape[]>;
|
|
5
|
+
constructor();
|
|
6
|
+
add(id: string, shape: EShape): void;
|
|
7
|
+
get(id: string): EShape | null;
|
|
8
|
+
getAll(id: string): EShape[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DDiagramCanvasTicker } from "./d-diagram-canvas-ticker";
|
|
2
|
+
import { DDiagramTicker } from "./d-diagram-ticker";
|
|
3
|
+
export declare class DDiagramCanvasTickerImpl implements DDiagramCanvasTicker {
|
|
4
|
+
protected _data: Map<number, DDiagramTicker>;
|
|
5
|
+
constructor();
|
|
6
|
+
add(interval: unknown): DDiagramTicker;
|
|
7
|
+
protected toNormalized(interval: unknown): number;
|
|
8
|
+
start(): void;
|
|
9
|
+
stop(): void;
|
|
10
|
+
}
|
|
@@ -1,25 +1,43 @@
|
|
|
1
|
-
import { interaction, IPoint, Point } from "pixi.js";
|
|
1
|
+
import { interaction, IPoint, Point, Renderer } from "pixi.js";
|
|
2
2
|
import { DDiagramCanvasBase, DDiagramCanvasBaseOptions, DThemeDiagramCanvasBase } from "./d-diagram-canvas-base";
|
|
3
|
-
import { DDiagramCanvasIdMap } from "./d-diagram-canvas-id-map";
|
|
4
|
-
import { DDiagramCanvasDataMap } from "./d-diagram-canvas-data-map";
|
|
5
|
-
import { EShapeContainer } from "./shape";
|
|
6
3
|
import { EShape } from "./shape/e-shape";
|
|
4
|
+
import { EShapeActionValue } from "./shape/action/e-shape-action-value";
|
|
5
|
+
import { EShapeActionRuntime } from "./shape/action/e-shape-action-runtime";
|
|
6
|
+
import { DDiagramDataMapper } from "./d-diagram-data-mapper";
|
|
7
|
+
import { EShapeRuntime } from "./shape/e-shape-runtime";
|
|
8
|
+
import { EShapeDataValue } from "./shape/e-shape-data-value";
|
|
9
|
+
import { EShapeContainer } from "./shape/e-shape-container";
|
|
10
|
+
import { DDiagramCanvasData } from "./d-diagram-canvas-data";
|
|
11
|
+
import { DDiagramCanvasShape } from "./d-diagram-canvas-shape";
|
|
12
|
+
import { DDiagramCanvasTicker } from "./d-diagram-canvas-ticker";
|
|
7
13
|
export interface DDiagramCanvasOptions<THEME extends DThemeDiagramCanvas = DThemeDiagramCanvas> extends DDiagramCanvasBaseOptions<THEME> {
|
|
8
14
|
}
|
|
9
15
|
export interface DThemeDiagramCanvas extends DThemeDiagramCanvasBase {
|
|
10
16
|
}
|
|
11
17
|
export declare class DDiagramCanvas<THEME extends DThemeDiagramCanvas = DThemeDiagramCanvas, OPTIONS extends DDiagramCanvasOptions<THEME> = DDiagramCanvasOptions<THEME>> extends DDiagramCanvasBase<THEME, OPTIONS> {
|
|
12
18
|
protected static WORK_DBLCLICK?: Point;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ids: DDiagramCanvasIdMap;
|
|
19
|
+
protected _data: DDiagramCanvasData;
|
|
20
|
+
protected _shape: DDiagramCanvasShape;
|
|
21
|
+
protected _ticker: DDiagramCanvasTicker;
|
|
22
|
+
protected _actionables: EShape[];
|
|
18
23
|
protected _overed?: EShape | null;
|
|
19
24
|
protected _downed?: EShape | null;
|
|
20
25
|
protected _downeds: Set<EShape>;
|
|
26
|
+
protected _updateBound: () => void;
|
|
21
27
|
constructor(options: OPTIONS);
|
|
22
|
-
|
|
28
|
+
get data(): DDiagramCanvasData;
|
|
29
|
+
get shape(): DDiagramCanvasShape;
|
|
30
|
+
get ticker(): DDiagramCanvasTicker;
|
|
31
|
+
initialize(shapes: EShape[], mapper?: DDiagramDataMapper | null): void;
|
|
32
|
+
protected initialize_(shapes: EShape[], dataShape: EShape | null, mapper: DDiagramDataMapper | null | undefined, formatToFormatter: Map<string, (value: unknown) => unknown>, initialToInitialValue: Map<string, unknown>, actionValueToRuntime: Map<EShapeActionValue, EShapeActionRuntime>, canvasTicker: DDiagramCanvasTicker, canvasShape: DDiagramCanvasShape, canvasData: DDiagramCanvasData, actionables: EShape[]): void;
|
|
33
|
+
protected initData(shape: EShape, dataShape: EShape | null, mapper: DDiagramDataMapper | null | undefined, formatToFormatter: Map<string, (value: unknown) => unknown>, initialToInitialValue: Map<string, unknown>, canvasTicker: DDiagramCanvasTicker, canvasData: DDiagramCanvasData): void;
|
|
34
|
+
protected initActions(shape: EShape, shapeRuntime: EShapeRuntime, valueToRuntime: Map<EShapeActionValue, EShapeActionRuntime>): void;
|
|
35
|
+
protected calcFormatter(value: EShapeDataValue, format: string, initial: string): (value: unknown) => unknown;
|
|
36
|
+
protected setInitial(value: EShapeDataValue, initial: unknown, tickers: DDiagramCanvasTicker): void;
|
|
37
|
+
protected calcInitial(value: EShapeDataValue, initial: string): unknown;
|
|
38
|
+
protected toInitial(value: EShapeDataValue): string;
|
|
39
|
+
protected toDataShape(dataShape: EShape | null, shape: EShape): EShape | null;
|
|
40
|
+
protected onDestroy(): void;
|
|
23
41
|
hitTestInteractives(global: IPoint): EShape | null;
|
|
24
42
|
onShapeMove(e: interaction.InteractionEvent): boolean;
|
|
25
43
|
protected toShapeCursor(target: EShape | null): string;
|
|
@@ -31,5 +49,7 @@ export declare class DDiagramCanvas<THEME extends DThemeDiagramCanvas = DThemeDi
|
|
|
31
49
|
onShapeCancel(e: interaction.InteractionEvent): boolean;
|
|
32
50
|
onShapeClick(e: interaction.InteractionEvent): boolean;
|
|
33
51
|
onShapeDblClick(e: MouseEvent | TouchEvent, interactionManager: interaction.InteractionManager): boolean;
|
|
52
|
+
update(): void;
|
|
53
|
+
onRender(renderer: Renderer): void;
|
|
34
54
|
protected getType(): string;
|
|
35
55
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DDiagramDataDiagram, DDiagramDataOptions } from "./d-diagram-data";
|
|
2
|
+
import { DDiagramDataMapper } from "./d-diagram-data-mapper";
|
|
3
|
+
import { DDiagramDataPrivate } from "./d-diagram-data-private";
|
|
4
|
+
import { DDiagramDataRemote } from "./d-diagram-data-remote";
|
|
5
|
+
/**
|
|
6
|
+
* A data helper class for diagrams.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DDiagramDataImpl {
|
|
9
|
+
protected _diagram: DDiagramDataDiagram;
|
|
10
|
+
protected _mapper: DDiagramDataMapper | null;
|
|
11
|
+
protected _remote: DDiagramDataRemote;
|
|
12
|
+
protected _private: DDiagramDataPrivate;
|
|
13
|
+
constructor(diagram: DDiagramDataDiagram, options?: DDiagramDataOptions);
|
|
14
|
+
update(): void;
|
|
15
|
+
get mapper(): DDiagramDataMapper | null;
|
|
16
|
+
set mapper(mapper: DDiagramDataMapper | null);
|
|
17
|
+
get remote(): DDiagramDataRemote;
|
|
18
|
+
get private(): DDiagramDataPrivate;
|
|
19
|
+
get ids(): string[];
|
|
20
|
+
each(callback: (id: string) => boolean | void): string | null;
|
|
21
|
+
set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
|
|
22
|
+
clear(id: string): boolean;
|
|
23
|
+
setAll(id: string, values: unknown[], times?: number[], from?: number | null, to?: number | null): boolean;
|
|
24
|
+
setValue(id: string, value: unknown, time?: number): boolean;
|
|
25
|
+
setValues(id: string, values: unknown[], times?: number[]): boolean;
|
|
26
|
+
setTime(id: string, time: number): boolean;
|
|
27
|
+
setTimes(id: string, times: number[]): boolean;
|
|
28
|
+
setRange(id: string, from?: number | null, to?: number | null): boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DDiagramDataDiagram } from "./d-diagram-data";
|
|
2
|
+
import { DDiagramDataPrivate } from "./d-diagram-data-private";
|
|
3
|
+
export declare class DDiagramDataPrivateImpl implements DDiagramDataPrivate {
|
|
4
|
+
protected _diagram: DDiagramDataDiagram;
|
|
5
|
+
constructor(diagram: DDiagramDataDiagram);
|
|
6
|
+
set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DDiagramDataRemote, DDiagramDataRemoteController, DDiagramDataRemoteOptions } from "./d-diagram-data-remote";
|
|
2
|
+
export declare class DDiagramDataRemoteImpl implements DDiagramDataRemote {
|
|
3
|
+
protected _controller?: DDiagramDataRemoteController;
|
|
4
|
+
constructor(options?: DDiagramDataRemoteOptions);
|
|
5
|
+
set(id: string, value: unknown, time: number): boolean;
|
|
6
|
+
}
|
|
@@ -4,8 +4,6 @@ export interface DDiagramDataRemoteController {
|
|
|
4
4
|
export interface DDiagramDataRemoteOptions {
|
|
5
5
|
controller?: DDiagramDataRemoteController;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
protected _controller?: DDiagramDataRemoteController;
|
|
9
|
-
constructor(options?: DDiagramDataRemoteOptions);
|
|
7
|
+
export interface DDiagramDataRemote {
|
|
10
8
|
set(id: string, value: unknown, time: number): boolean;
|
|
11
9
|
}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { DDiagramCanvasData } from "./d-diagram-canvas-data";
|
|
2
|
+
import { DDiagramDataMapper } from "./d-diagram-data-mapper";
|
|
3
|
+
import { DDiagramDataPrivate } from "./d-diagram-data-private";
|
|
4
|
+
import { DDiagramDataRemote } from "./d-diagram-data-remote";
|
|
5
|
+
import { DDiagramDataRemoteOptions } from "./d-diagram-data-remote";
|
|
5
6
|
export interface DDiagramDataCanvas {
|
|
6
|
-
data:
|
|
7
|
+
data: DDiagramCanvasData;
|
|
7
8
|
}
|
|
8
9
|
export interface DDiagramDataDiagram {
|
|
9
10
|
canvas: DDiagramDataCanvas | null;
|
|
10
11
|
}
|
|
11
|
-
/**
|
|
12
|
-
* A data mapper.
|
|
13
|
-
*
|
|
14
|
-
* @param dataValue a data value
|
|
15
|
-
*/
|
|
16
|
-
export declare type DDiagramDataMapper = (value: EShapeDataValue, shape: EShape) => void;
|
|
17
12
|
export interface DDiagramDataOptions {
|
|
18
13
|
/**
|
|
19
14
|
* A data mapper.
|
|
@@ -27,16 +22,11 @@ export interface DDiagramDataOptions {
|
|
|
27
22
|
/**
|
|
28
23
|
* A data helper class for diagrams.
|
|
29
24
|
*/
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
update(): void;
|
|
36
|
-
get mapper(): DDiagramDataMapper | null;
|
|
37
|
-
set mapper(mapper: DDiagramDataMapper | null);
|
|
38
|
-
get remote(): DDiagramDataRemote;
|
|
39
|
-
getIds(): string[];
|
|
25
|
+
export interface DDiagramData {
|
|
26
|
+
readonly remote: DDiagramDataRemote;
|
|
27
|
+
readonly private: DDiagramDataPrivate;
|
|
28
|
+
readonly ids: string[];
|
|
29
|
+
mapper: DDiagramDataMapper | null;
|
|
40
30
|
each(callback: (id: string) => boolean | void): string | null;
|
|
41
31
|
set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
|
|
42
32
|
clear(id: string): boolean;
|
|
@@ -46,4 +36,5 @@ export declare class DDiagramData {
|
|
|
46
36
|
setTime(id: string, time: number): boolean;
|
|
47
37
|
setTimes(id: string, times: number[]): boolean;
|
|
48
38
|
setRange(id: string, from?: number | null, to?: number | null): boolean;
|
|
39
|
+
update(): void;
|
|
49
40
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Container } from "pixi.js";
|
|
2
2
|
import { DDiagramLayer } from "./d-diagram-layer";
|
|
3
3
|
import { DDiagramSerializedItem, DDiagramSerializedLayer } from "./d-diagram-serialized";
|
|
4
|
-
import { EShapeResourceManagerDeserialization } from "./shape";
|
|
4
|
+
import { EShapeResourceManagerDeserialization } from "./shape/e-shape-resource-manager-deserialization";
|
|
5
5
|
import { EShapeResourceManagerSerialization } from "./shape/e-shape-resource-manager-serialization";
|
|
6
6
|
export declare class DDiagramLayerContainer extends Container {
|
|
7
7
|
children: DDiagramLayer[];
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { IPoint } from "pixi.js";
|
|
2
2
|
import { DBaseStateSet } from "./d-base-state-set";
|
|
3
|
-
import { DDiagramCanvasIdMap } from "./d-diagram-canvas-id-map";
|
|
4
|
-
import { DDiagramCanvasDataMap } from "./d-diagram-canvas-data-map";
|
|
5
3
|
import { DDiagramLayerBackground } from "./d-diagram-layer-background";
|
|
6
4
|
import { DDiagramSerializedItem, DDiagramSerializedLayer } from "./d-diagram-serialized";
|
|
7
5
|
import { EShape } from "./shape/e-shape";
|
|
@@ -20,8 +18,8 @@ export declare class DDiagramLayer extends EShapeContainer {
|
|
|
20
18
|
get background(): DDiagramLayerBackground;
|
|
21
19
|
get state(): DBaseStateSet;
|
|
22
20
|
protected newShape(): EShape;
|
|
23
|
-
initialize(
|
|
24
|
-
protected doInitialize(shapes: EShape[],
|
|
21
|
+
initialize(actionables: EShape[]): void;
|
|
22
|
+
protected doInitialize(shapes: EShape[], interactives: EShape[]): void;
|
|
25
23
|
hitTestInteractives(global: IPoint): EShape | null;
|
|
26
24
|
addUuid(manager: EShapeResourceManagerSerialization): void;
|
|
27
25
|
updateUuid(manager: EShapeResourceManagerSerialization): void;
|
|
@@ -2,7 +2,7 @@ import { DDiagramCanvasTileMapping } from "./d-diagram-canvas-mapping";
|
|
|
2
2
|
import { EShapeCorner } from "./shape/e-shape-corner";
|
|
3
3
|
import { EShapeStrokeSide } from "./shape/e-shape-stroke-side";
|
|
4
4
|
import { EShapeStrokeStyle } from "./shape/e-shape-stroke-style";
|
|
5
|
-
import { EShapeDataValueOrder } from "./shape/e-shape-data-value";
|
|
5
|
+
import { EShapeDataValueOrder } from "./shape/e-shape-data-value-order";
|
|
6
6
|
import { EShapeTextStyle, EShapeTextWeight } from "./shape/e-shape-text";
|
|
7
7
|
import { EShapeTextAlignHorizontal } from "./shape/e-shape-text-align-horizontal";
|
|
8
8
|
import { EShapeTextAlignVertical } from "./shape/e-shape-text-align-vertical";
|
|
@@ -10,6 +10,8 @@ import { EShapeTextDirection } from "./shape/e-shape-text-direction";
|
|
|
10
10
|
import { EShapeType } from "./shape/e-shape-type";
|
|
11
11
|
import { ESnapperTargetValueType } from "./snapper/e-snapper-target-value";
|
|
12
12
|
import { EShapeDataValueRangeType } from "./shape/e-shape-data-value-range";
|
|
13
|
+
import { EShapeDataValueType } from "./shape/e-shape-data-value-type";
|
|
14
|
+
import { EShapeDataValueScope } from "./shape/e-shape-data-value-scope";
|
|
13
15
|
export declare const DDiagramSerializedVersion: number;
|
|
14
16
|
/**
|
|
15
17
|
* A serialized data range.
|
|
@@ -28,22 +30,18 @@ export interface DDiagramSerializedDataRange {
|
|
|
28
30
|
export interface DDiagramSerializedDataValue {
|
|
29
31
|
/**
|
|
30
32
|
* A resource index number of an ID.
|
|
31
|
-
* Stored at DDiagramSerialized#resources.
|
|
32
33
|
*/
|
|
33
34
|
[0]: number;
|
|
34
35
|
/**
|
|
35
36
|
* A resource index number of an initial value expression.
|
|
36
|
-
* Stored at DDiagramSerialized#resources.
|
|
37
37
|
*/
|
|
38
38
|
[1]: number;
|
|
39
39
|
/**
|
|
40
40
|
* A resource index number of a format expression.
|
|
41
|
-
* Stored at DDiagramSerialized#resources.
|
|
42
41
|
*/
|
|
43
42
|
[2]: number;
|
|
44
43
|
/**
|
|
45
|
-
* A resource index number of
|
|
46
|
-
* Stored at DDiagramSerialized#resources.
|
|
44
|
+
* A resource index number of JSON.stringify(DDiagramSerializedDataRange).
|
|
47
45
|
*/
|
|
48
46
|
[3]: number;
|
|
49
47
|
/**
|
|
@@ -54,7 +52,36 @@ export interface DDiagramSerializedDataValue {
|
|
|
54
52
|
* A order.
|
|
55
53
|
*/
|
|
56
54
|
[5]: EShapeDataValueOrder;
|
|
55
|
+
/**
|
|
56
|
+
* A type.
|
|
57
|
+
*/
|
|
58
|
+
[6]: EShapeDataValueType | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* A scope.
|
|
61
|
+
*/
|
|
62
|
+
[7]: EShapeDataValueScope | undefined;
|
|
57
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* A serialized data mapping.
|
|
66
|
+
* Each number at the index 2N+0 is a resource index number of the N-th mapping source.
|
|
67
|
+
* Each number at the index 2N+1 is a resource index number of the N-th mapping destination.
|
|
68
|
+
*/
|
|
69
|
+
export declare type DDiagramSerializedDataMapping = number[];
|
|
70
|
+
/**
|
|
71
|
+
* A serialized data with a mapping data.
|
|
72
|
+
* Each number is a resource index number of JSON.stringify(DDiagramSerializedDataValue).
|
|
73
|
+
* The last number is a resource index number of JSON.stringify(DDiagramSerializedDataMapping).
|
|
74
|
+
*/
|
|
75
|
+
export declare type DDiagramSerializedDataWithMapping = [number[]];
|
|
76
|
+
/**
|
|
77
|
+
* A serialized data without a mapping data.
|
|
78
|
+
* Each number is a resource index number of JSON.stringify(DDiagramSerializedDataValue).
|
|
79
|
+
*/
|
|
80
|
+
export declare type DDiagramSerializedDataWithoutMapping = number[];
|
|
81
|
+
/**
|
|
82
|
+
* A serialized data.
|
|
83
|
+
*/
|
|
84
|
+
export declare type DDiagramSerializedData = DDiagramSerializedDataWithoutMapping | DDiagramSerializedDataWithMapping;
|
|
58
85
|
/**
|
|
59
86
|
* A serialized fill.
|
|
60
87
|
*/
|
|
@@ -151,32 +178,27 @@ export interface DDiagramSerializedText {
|
|
|
151
178
|
/** A weight. */
|
|
152
179
|
[5]: EShapeTextWeight;
|
|
153
180
|
/**
|
|
154
|
-
* A resource index number of
|
|
155
|
-
* JSON.stringify(DDiagramSerializedTextAlign).
|
|
181
|
+
* A resource index number of JSON.stringify(DDiagramSerializedTextAlign).
|
|
156
182
|
*/
|
|
157
183
|
[6]: number;
|
|
158
184
|
/**
|
|
159
|
-
* A resource index number of
|
|
160
|
-
* JSON.stringify(DDiagramSerializedTextOffset).
|
|
185
|
+
* A resource index number of JSON.stringify(DDiagramSerializedTextOffset).
|
|
161
186
|
*/
|
|
162
187
|
[7]: number;
|
|
163
188
|
/** A style. */
|
|
164
189
|
[8]: EShapeTextStyle;
|
|
165
190
|
/**
|
|
166
|
-
* A resource index number of
|
|
167
|
-
* JSON.stringify(DDiagramSerializedTextOutline).
|
|
191
|
+
* A resource index number of JSON.stringify(DDiagramSerializedTextOutline).
|
|
168
192
|
*/
|
|
169
193
|
[9]: number;
|
|
170
194
|
/**
|
|
171
|
-
* A resource index number of
|
|
172
|
-
* JSON.stringify(DDiagramSerializedTextSpacing).
|
|
195
|
+
* A resource index number of JSON.stringify(DDiagramSerializedTextSpacing).
|
|
173
196
|
*/
|
|
174
197
|
[10]: number;
|
|
175
198
|
/** A direction. */
|
|
176
199
|
[11]: EShapeTextDirection;
|
|
177
200
|
/**
|
|
178
|
-
* A resource index number of
|
|
179
|
-
* JSON.stringify(DDiagramSerializedTextPadding).
|
|
201
|
+
* A resource index number of JSON.stringify(DDiagramSerializedTextPadding).
|
|
180
202
|
*/
|
|
181
203
|
[12]: number;
|
|
182
204
|
/** A clipping. (0: Off, 1: On) */
|
|
@@ -203,25 +225,21 @@ export interface DDiagramSerializedItem {
|
|
|
203
225
|
/** A skew. */
|
|
204
226
|
[7]: number;
|
|
205
227
|
/**
|
|
206
|
-
* A resource index number of
|
|
207
|
-
* JSON.stringify(DDiagramSerializedFill).
|
|
228
|
+
* A resource index number of JSON.stringify(DDiagramSerializedFill).
|
|
208
229
|
*/
|
|
209
230
|
[8]: number;
|
|
210
231
|
/**
|
|
211
|
-
* A resource index number of
|
|
212
|
-
* JSON.stringify(DDiagramSerializedStroke).
|
|
232
|
+
* A resource index number of JSON.stringify(DDiagramSerializedStroke).
|
|
213
233
|
*/
|
|
214
234
|
[9]: number;
|
|
215
235
|
/** A resource index number of a cursor. */
|
|
216
236
|
[10]: number;
|
|
217
237
|
/**
|
|
218
|
-
* A resource index number of
|
|
219
|
-
* JSON.stringify(DDiagramSerializedText).
|
|
238
|
+
* A resource index number of JSON.stringify(DDiagramSerializedText).
|
|
220
239
|
*/
|
|
221
240
|
[11]: number;
|
|
222
241
|
/**
|
|
223
|
-
* A resource index number of
|
|
224
|
-
* JSON.stringify(DDiagramSerializedDataValue[]).
|
|
242
|
+
* A resource index number of JSON.stringify(DDiagramSerializedData).
|
|
225
243
|
*/
|
|
226
244
|
[12]: number;
|
|
227
245
|
/** A radius. */
|
|
@@ -242,9 +260,9 @@ export interface DDiagramSerializedItem {
|
|
|
242
260
|
* JSON.stringify(number[]).
|
|
243
261
|
*
|
|
244
262
|
* * The first number in the array is a direction in degree.
|
|
245
|
-
* *
|
|
246
|
-
* *
|
|
247
|
-
* *
|
|
263
|
+
* * Each number at the index 3N + 1 is a color of a N-th point.
|
|
264
|
+
* * Each number at the index 3N + 2 is a alpha of a N-th point.
|
|
265
|
+
* * Each number at the index 3N + 3 is a position of a N-th point whose range is [0, 1].
|
|
248
266
|
*/
|
|
249
267
|
[19]: number;
|
|
250
268
|
/** A children. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Renderer, utils } from "pixi.js";
|
|
2
2
|
import { DApplicationTarget } from "./d-application-like";
|
|
3
|
-
import {
|
|
3
|
+
import { DDiagramCanvasShape } from "./d-diagram-canvas-shape";
|
|
4
4
|
import { EShape } from "./shape/e-shape";
|
|
5
5
|
export interface DDiagramShapeLayer {
|
|
6
6
|
children: EShape[];
|
|
@@ -10,8 +10,9 @@ export interface DDiagramShapeLayerContainer {
|
|
|
10
10
|
}
|
|
11
11
|
export interface DDiagramShapeCanvas {
|
|
12
12
|
layer: DDiagramShapeLayerContainer;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
shape: DDiagramCanvasShape;
|
|
14
|
+
update(): void;
|
|
15
|
+
onRender(renderer: Renderer): void;
|
|
15
16
|
}
|
|
16
17
|
export interface DDiagramShapeDiagram extends DApplicationTarget {
|
|
17
18
|
canvas: DDiagramShapeCanvas | null;
|
|
@@ -2,7 +2,7 @@ import { utils } from "pixi.js";
|
|
|
2
2
|
import { DBase } from "./d-base";
|
|
3
3
|
import { DOnOptions } from "./d-on-options";
|
|
4
4
|
import { DView } from "./d-view";
|
|
5
|
-
import { EShapeContainer } from "./shape";
|
|
5
|
+
import { EShapeContainer } from "./shape/e-shape-container";
|
|
6
6
|
export interface DDiagramSnapshotParent<CANVAS> {
|
|
7
7
|
canvas: CANVAS | null;
|
|
8
8
|
view: DView;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EShapeDataValue } from "./shape/e-shape-data-value";
|
|
2
|
+
export declare class DDiagramTicker {
|
|
3
|
+
protected _interval: number;
|
|
4
|
+
protected _timeoutId?: number;
|
|
5
|
+
protected _onTimeBound: () => void;
|
|
6
|
+
protected _values: EShapeDataValue[];
|
|
7
|
+
constructor(interval: number);
|
|
8
|
+
add(value: EShapeDataValue): void;
|
|
9
|
+
start(): void;
|
|
10
|
+
protected getInterval(): number;
|
|
11
|
+
protected onTime(): void;
|
|
12
|
+
stop(): void;
|
|
13
|
+
}
|