@wcardinal/wcardinal-ui 0.172.0 → 0.175.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.
Files changed (103) hide show
  1. package/dist/types/wcardinal/ui/d-diagram-canvas-data-impl.d.ts +7 -4
  2. package/dist/types/wcardinal/ui/d-diagram-canvas-data.d.ts +3 -2
  3. package/dist/types/wcardinal/ui/d-diagram-canvas-ticker-impl.d.ts +3 -2
  4. package/dist/types/wcardinal/ui/d-diagram-data-impl.d.ts +5 -3
  5. package/dist/types/wcardinal/ui/d-diagram-data-private-impl.d.ts +2 -2
  6. package/dist/types/wcardinal/ui/d-diagram-data-protected-impl.d.ts +7 -0
  7. package/dist/types/wcardinal/ui/{d-diagram-data-private.d.ts → d-diagram-data-scoped.d.ts} +1 -1
  8. package/dist/types/wcardinal/ui/d-diagram-data.d.ts +3 -2
  9. package/dist/types/wcardinal/ui/d-diagram-serialized.d.ts +1 -1
  10. package/dist/types/wcardinal/ui/d-diagram-ticker.d.ts +5 -1
  11. package/dist/types/wcardinal/ui/index.d.ts +1 -3
  12. package/dist/types/wcardinal/ui/shape/action/deserialize-action-value.d.ts +1 -18
  13. package/dist/types/wcardinal/ui/shape/action/deserialize-action-values.d.ts +3 -0
  14. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtimes.d.ts +3 -2
  15. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-base.d.ts +3 -1
  16. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-deserializers.d.ts +4 -0
  17. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-type.d.ts +1 -0
  18. package/dist/types/wcardinal/ui/shape/action/index.d.ts +1 -0
  19. package/dist/types/wcardinal/ui/shape/e-shape-data-impl.d.ts +5 -5
  20. package/dist/types/wcardinal/ui/shape/{e-shape-data-private-impl.d.ts → e-shape-data-scoped-impl.d.ts} +2 -2
  21. package/dist/types/wcardinal/ui/shape/{e-shape-data-private.d.ts → e-shape-data-scoped.d.ts} +1 -1
  22. package/dist/types/wcardinal/ui/shape/e-shape-data-value-scope.d.ts +6 -0
  23. package/dist/types/wcardinal/ui/shape/e-shape-data.d.ts +3 -3
  24. package/dist/types/wcardinal/ui/shape/index.d.ts +2 -2
  25. package/dist/types/wcardinal/ui/shape/variant/deserialize-gradient.d.ts +3 -2
  26. package/dist/types/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value.d.ts +1 -2
  27. package/dist/types/wcardinal/ui/theme/white/e-theme-white-shape-action-value.d.ts +1 -2
  28. package/dist/wcardinal/ui/d-diagram-canvas-data-impl.js +185 -128
  29. package/dist/wcardinal/ui/d-diagram-canvas-data-impl.js.map +1 -1
  30. package/dist/wcardinal/ui/d-diagram-canvas-data.js.map +1 -1
  31. package/dist/wcardinal/ui/d-diagram-canvas-ticker-impl.js +3 -2
  32. package/dist/wcardinal/ui/d-diagram-canvas-ticker-impl.js.map +1 -1
  33. package/dist/wcardinal/ui/d-diagram-canvas.js +7 -1
  34. package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
  35. package/dist/wcardinal/ui/d-diagram-data-impl.js +9 -0
  36. package/dist/wcardinal/ui/d-diagram-data-impl.js.map +1 -1
  37. package/dist/wcardinal/ui/d-diagram-data-private-impl.js.map +1 -1
  38. package/dist/wcardinal/ui/d-diagram-data-protected-impl.js +19 -0
  39. package/dist/wcardinal/ui/d-diagram-data-protected-impl.js.map +1 -0
  40. package/dist/wcardinal/ui/{d-diagram-data-private.js → d-diagram-data-scoped.js} +1 -1
  41. package/dist/wcardinal/ui/d-diagram-data-scoped.js.map +1 -0
  42. package/dist/wcardinal/ui/d-diagram-data.js.map +1 -1
  43. package/dist/wcardinal/ui/d-diagram-serialized.js.map +1 -1
  44. package/dist/wcardinal/ui/d-diagram-ticker.js +4 -1
  45. package/dist/wcardinal/ui/d-diagram-ticker.js.map +1 -1
  46. package/dist/wcardinal/ui/index.js +1 -3
  47. package/dist/wcardinal/ui/index.js.map +1 -1
  48. package/dist/wcardinal/ui/shape/action/deserialize-action-value.js +46 -79
  49. package/dist/wcardinal/ui/shape/action/deserialize-action-value.js.map +1 -1
  50. package/dist/wcardinal/ui/shape/action/deserialize-action-values.js +49 -0
  51. package/dist/wcardinal/ui/shape/action/deserialize-action-values.js.map +1 -0
  52. package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js +11 -3
  53. package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js.map +1 -1
  54. package/dist/wcardinal/ui/shape/action/e-shape-action-value-base.js +5 -1
  55. package/dist/wcardinal/ui/shape/action/e-shape-action-value-base.js.map +1 -1
  56. package/dist/wcardinal/ui/shape/action/e-shape-action-value-deserializers.js +6 -0
  57. package/dist/wcardinal/ui/shape/action/e-shape-action-value-deserializers.js.map +1 -0
  58. package/dist/wcardinal/ui/shape/action/e-shape-action-value-type.js +2 -1
  59. package/dist/wcardinal/ui/shape/action/e-shape-action-value-type.js.map +1 -1
  60. package/dist/wcardinal/ui/shape/action/index.js +1 -0
  61. package/dist/wcardinal/ui/shape/action/index.js.map +1 -1
  62. package/dist/wcardinal/ui/shape/e-shape-data-impl.js +4 -4
  63. package/dist/wcardinal/ui/shape/e-shape-data-impl.js.map +1 -1
  64. package/dist/wcardinal/ui/shape/{e-shape-data-private-impl.js → e-shape-data-scoped-impl.js} +7 -7
  65. package/dist/wcardinal/ui/shape/e-shape-data-scoped-impl.js.map +1 -0
  66. package/dist/wcardinal/ui/shape/e-shape-data-scoped.js +2 -0
  67. package/dist/wcardinal/ui/shape/e-shape-data-scoped.js.map +1 -0
  68. package/dist/wcardinal/ui/shape/e-shape-data-value-scope.js +7 -1
  69. package/dist/wcardinal/ui/shape/e-shape-data-value-scope.js.map +1 -1
  70. package/dist/wcardinal/ui/shape/e-shape-data.js.map +1 -1
  71. package/dist/wcardinal/ui/shape/index.js +2 -2
  72. package/dist/wcardinal/ui/shape/index.js.map +1 -1
  73. package/dist/wcardinal/ui/shape/variant/deserialize-base.js +46 -54
  74. package/dist/wcardinal/ui/shape/variant/deserialize-base.js.map +1 -1
  75. package/dist/wcardinal/ui/shape/variant/deserialize-embedded.js +2 -1
  76. package/dist/wcardinal/ui/shape/variant/deserialize-embedded.js.map +1 -1
  77. package/dist/wcardinal/ui/shape/variant/deserialize-gradient.js +11 -1
  78. package/dist/wcardinal/ui/shape/variant/deserialize-gradient.js.map +1 -1
  79. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value.js +7 -0
  80. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value.js.map +1 -1
  81. package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value.js +7 -0
  82. package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value.js.map +1 -1
  83. package/dist/wcardinal-ui-theme-dark.js +8 -1
  84. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  85. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  86. package/dist/wcardinal-ui-theme-white.js +8 -1
  87. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  88. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  89. package/dist/wcardinal-ui.cjs.js +423 -326
  90. package/dist/wcardinal-ui.js +409 -326
  91. package/dist/wcardinal-ui.min.js +2 -2
  92. package/dist/wcardinal-ui.min.js.map +1 -1
  93. package/package.json +1 -1
  94. package/dist/types/wcardinal/ui/d-diagram-canvas-data-private-impl.d.ts +0 -7
  95. package/dist/types/wcardinal/ui/d-diagram-canvas-data-private.d.ts +0 -5
  96. package/dist/wcardinal/ui/d-diagram-canvas-data-private-impl.js +0 -49
  97. package/dist/wcardinal/ui/d-diagram-canvas-data-private-impl.js.map +0 -1
  98. package/dist/wcardinal/ui/d-diagram-canvas-data-private.js +0 -6
  99. package/dist/wcardinal/ui/d-diagram-canvas-data-private.js.map +0 -1
  100. package/dist/wcardinal/ui/d-diagram-data-private.js.map +0 -1
  101. package/dist/wcardinal/ui/shape/e-shape-data-private-impl.js.map +0 -1
  102. package/dist/wcardinal/ui/shape/e-shape-data-private.js +0 -2
  103. package/dist/wcardinal/ui/shape/e-shape-data-private.js.map +0 -1
@@ -1,11 +1,14 @@
1
1
  import { DDiagramCanvasData } from "./d-diagram-canvas-data";
2
- import { DDiagramCanvasDataPrivate } from "./d-diagram-canvas-data-private";
2
+ import { EShapeDataScoped } from "./shape/e-shape-data-scoped";
3
3
  import { EShapeDataValue } from "./shape/e-shape-data-value";
4
4
  export declare class DDiagramCanvasDataImpl implements DDiagramCanvasData {
5
5
  protected _data?: Map<string, EShapeDataValue[]>;
6
- protected _private?: DDiagramCanvasDataPrivate;
7
- get private(): DDiagramCanvasDataPrivate;
8
- protected newPrivate(): DDiagramCanvasDataPrivate;
6
+ protected _private?: EShapeDataScoped;
7
+ protected _protected?: EShapeDataScoped;
8
+ get private(): EShapeDataScoped;
9
+ protected newPrivate(): EShapeDataScoped;
10
+ get protected(): EShapeDataScoped;
11
+ protected newProtected(): EShapeDataScoped;
9
12
  get ids(): string[];
10
13
  each(callback: (id: string) => boolean | void): string | null;
11
14
  add(id: string, value: EShapeDataValue): void;
@@ -1,7 +1,8 @@
1
- import { DDiagramCanvasDataPrivate } from "./d-diagram-canvas-data-private";
1
+ import { EShapeDataScoped } from "./shape/e-shape-data-scoped";
2
2
  import { EShapeDataValue } from "./shape/e-shape-data-value";
3
3
  export interface DDiagramCanvasData {
4
- readonly private: DDiagramCanvasDataPrivate;
4
+ readonly private: EShapeDataScoped;
5
+ readonly protected: EShapeDataScoped;
5
6
  readonly ids: string[];
6
7
  each(callback: (id: string) => boolean | void): string | null;
7
8
  add(id: string, value: EShapeDataValue): void;
@@ -1,8 +1,9 @@
1
1
  import { DDiagramCanvasTicker } from "./d-diagram-canvas-ticker";
2
- import { DDiagramTicker } from "./d-diagram-ticker";
2
+ import { DDiagramTicker, DDiagramTickerParent } from "./d-diagram-ticker";
3
3
  export declare class DDiagramCanvasTickerImpl implements DDiagramCanvasTicker {
4
+ protected _parent: DDiagramTickerParent;
4
5
  protected _data: Map<number, DDiagramTicker>;
5
- constructor();
6
+ constructor(parent: DDiagramTickerParent);
6
7
  add(interval: unknown): DDiagramTicker;
7
8
  protected toNormalized(interval: unknown): number;
8
9
  start(): void;
@@ -1,6 +1,6 @@
1
1
  import { DDiagramDataDiagram, DDiagramDataOptions } from "./d-diagram-data";
2
2
  import { DDiagramDataMapper } from "./d-diagram-data-mapper";
3
- import { DDiagramDataPrivate } from "./d-diagram-data-private";
3
+ import { DDiagramDataScoped } from "./d-diagram-data-scoped";
4
4
  import { DDiagramDataRemote } from "./d-diagram-data-remote";
5
5
  /**
6
6
  * A data helper class for diagrams.
@@ -9,13 +9,15 @@ export declare class DDiagramDataImpl {
9
9
  protected _diagram: DDiagramDataDiagram;
10
10
  protected _mapper: DDiagramDataMapper | null;
11
11
  protected _remote: DDiagramDataRemote;
12
- protected _private: DDiagramDataPrivate;
12
+ protected _private: DDiagramDataScoped;
13
+ protected _protected: DDiagramDataScoped;
13
14
  constructor(diagram: DDiagramDataDiagram, options?: DDiagramDataOptions);
14
15
  update(): void;
15
16
  get mapper(): DDiagramDataMapper | null;
16
17
  set mapper(mapper: DDiagramDataMapper | null);
17
18
  get remote(): DDiagramDataRemote;
18
- get private(): DDiagramDataPrivate;
19
+ get private(): DDiagramDataScoped;
20
+ get protected(): DDiagramDataScoped;
19
21
  get ids(): string[];
20
22
  each(callback: (id: string) => boolean | void): string | null;
21
23
  set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
@@ -1,6 +1,6 @@
1
1
  import { DDiagramDataDiagram } from "./d-diagram-data";
2
- import { DDiagramDataPrivate } from "./d-diagram-data-private";
3
- export declare class DDiagramDataPrivateImpl implements DDiagramDataPrivate {
2
+ import { DDiagramDataScoped } from "./d-diagram-data-scoped";
3
+ export declare class DDiagramDataPrivateImpl implements DDiagramDataScoped {
4
4
  protected _diagram: DDiagramDataDiagram;
5
5
  constructor(diagram: DDiagramDataDiagram);
6
6
  set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
@@ -0,0 +1,7 @@
1
+ import { DDiagramDataDiagram } from "./d-diagram-data";
2
+ import { DDiagramDataScoped } from "./d-diagram-data-scoped";
3
+ export declare class DDiagramDataProtectedImpl implements DDiagramDataScoped {
4
+ protected _diagram: DDiagramDataDiagram;
5
+ constructor(diagram: DDiagramDataDiagram);
6
+ set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
7
+ }
@@ -1,3 +1,3 @@
1
- export interface DDiagramDataPrivate {
1
+ export interface DDiagramDataScoped {
2
2
  set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
3
3
  }
@@ -1,6 +1,6 @@
1
1
  import { DDiagramCanvasData } from "./d-diagram-canvas-data";
2
2
  import { DDiagramDataMapper } from "./d-diagram-data-mapper";
3
- import { DDiagramDataPrivate } from "./d-diagram-data-private";
3
+ import { DDiagramDataScoped } from "./d-diagram-data-scoped";
4
4
  import { DDiagramDataRemote } from "./d-diagram-data-remote";
5
5
  import { DDiagramDataRemoteOptions } from "./d-diagram-data-remote";
6
6
  export interface DDiagramDataCanvas {
@@ -24,7 +24,8 @@ export interface DDiagramDataOptions {
24
24
  */
25
25
  export interface DDiagramData {
26
26
  readonly remote: DDiagramDataRemote;
27
- readonly private: DDiagramDataPrivate;
27
+ readonly private: DDiagramDataScoped;
28
+ readonly protected: DDiagramDataScoped;
28
29
  readonly ids: string[];
29
30
  mapper: DDiagramDataMapper | null;
30
31
  each(callback: (id: string) => boolean | void): string | null;
@@ -265,7 +265,7 @@ export interface DDiagramSerializedItem {
265
265
  * * Each number at the index 3N + 3 is a position of a N-th point whose range is [0, 1].
266
266
  */
267
267
  [19]: number;
268
- /** A children. */
268
+ /** Children. */
269
269
  [20]: DDiagramSerializedItem[];
270
270
  /** A X pivot. */
271
271
  [21]: number;
@@ -1,10 +1,14 @@
1
+ import { DApplicationTarget } from "./d-application-like";
1
2
  import { EShapeDataValue } from "./shape/e-shape-data-value";
3
+ export interface DDiagramTickerParent extends DApplicationTarget {
4
+ }
2
5
  export declare class DDiagramTicker {
6
+ protected _parent: DDiagramTickerParent;
3
7
  protected _interval: number;
4
8
  protected _timeoutId?: number;
5
9
  protected _onTimeBound: () => void;
6
10
  protected _values: EShapeDataValue[];
7
- constructor(interval: number);
11
+ constructor(parent: DDiagramTickerParent, interval: number);
8
12
  add(value: EShapeDataValue): void;
9
13
  start(): void;
10
14
  protected getInterval(): number;
@@ -188,8 +188,6 @@ export * from "./d-corner";
188
188
  export * from "./d-diagram-base";
189
189
  export * from "./d-diagram-canvas-base";
190
190
  export * from "./d-diagram-canvas-data-impl";
191
- export * from "./d-diagram-canvas-data-private-impl";
192
- export * from "./d-diagram-canvas-data-private";
193
191
  export * from "./d-diagram-canvas-data";
194
192
  export * from "./d-diagram-canvas-editor-background";
195
193
  export * from "./d-diagram-canvas-editor-snap";
@@ -206,7 +204,7 @@ export * from "./d-diagram-canvas";
206
204
  export * from "./d-diagram-data-impl";
207
205
  export * from "./d-diagram-data-mapper";
208
206
  export * from "./d-diagram-data-private-impl";
209
- export * from "./d-diagram-data-private";
207
+ export * from "./d-diagram-data-scoped";
210
208
  export * from "./d-diagram-data-remote-impl";
211
209
  export * from "./d-diagram-data-remote";
212
210
  export * from "./d-diagram-data";
@@ -1,20 +1,3 @@
1
1
  import { EShapeResourceManagerDeserialization } from "../e-shape-resource-manager-deserialization";
2
2
  import { EShapeActionValue } from "./e-shape-action-value";
3
- import { EShapeActionValueBlinkSerialized } from "./e-shape-action-value-blink";
4
- import { EShapeActionValueChangeColorSerialized, EShapeActionValueChangeColorSerializedLegacy } from "./e-shape-action-value-change-color";
5
- import { EShapeActionValueChangeColorBrightnessSerialized, EShapeActionValueChangeColorBrightnessSerializedLegacy } from "./e-shape-action-value-change-color-brightness";
6
- import { EShapeActionValueChangeColorCodeSerialized, EShapeActionValueChangeColorCodeSerializedLegacy } from "./e-shape-action-value-change-color-code";
7
- import { EShapeActionValueChangeCursorSerialized } from "./e-shape-action-value-change-cursor";
8
- import { EShapeActionValueChangeTextSerialized } from "./e-shape-action-value-change-text";
9
- import { EShapeActionValueEmitEventSerialized } from "./e-shape-action-value-emit-event";
10
- import { EShapeActionValueMiscSerialized } from "./e-shape-action-value-misc";
11
- import { EShapeActionValueMiscGestureSerialized } from "./e-shape-action-value-misc-gesture";
12
- import { EShapeActionValueMiscLayerGestureSerialized } from "./e-shape-action-value-misc-layer-gesture";
13
- import { EShapeActionValueMiscLayerShowHideSerialized } from "./e-shape-action-value-misc-layer-show-hide";
14
- import { EShapeActionValueOpenSerialized } from "./e-shape-action-value-open";
15
- import { EShapeActionValueShowHideSerialized } from "./e-shape-action-value-show-hide";
16
- import { EShapeActionValueTransformMoveSerialized } from "./e-shape-action-value-transform-move";
17
- import { EShapeActionValueTransformResizeSerialized } from "./e-shape-action-value-transform-resize";
18
- import { EShapeActionValueTransformRotateSerialized } from "./e-shape-action-value-transform-rotate";
19
- export declare type EShapeActionValueSerialized = EShapeActionValueShowHideSerialized | EShapeActionValueBlinkSerialized | EShapeActionValueBlinkSerialized | EShapeActionValueChangeColorSerialized | EShapeActionValueChangeColorSerializedLegacy | EShapeActionValueChangeColorCodeSerialized | EShapeActionValueChangeColorCodeSerializedLegacy | EShapeActionValueChangeColorBrightnessSerialized | EShapeActionValueChangeColorBrightnessSerializedLegacy | EShapeActionValueChangeTextSerialized | EShapeActionValueChangeCursorSerialized | EShapeActionValueEmitEventSerialized | EShapeActionValueOpenSerialized | EShapeActionValueTransformMoveSerialized | EShapeActionValueTransformResizeSerialized | EShapeActionValueTransformRotateSerialized | EShapeActionValueMiscSerialized | EShapeActionValueMiscGestureSerialized | EShapeActionValueMiscLayerGestureSerialized | EShapeActionValueMiscLayerShowHideSerialized;
20
- export declare const deserializeActionValue: (id: number, manager: EShapeResourceManagerDeserialization) => EShapeActionValue;
3
+ export declare const deserializeActionValue: (serialized: number[], manager: EShapeResourceManagerDeserialization) => EShapeActionValue | null;
@@ -0,0 +1,3 @@
1
+ import { EShape } from "../e-shape";
2
+ import { EShapeResourceManagerDeserialization } from "../e-shape-resource-manager-deserialization";
3
+ export declare const deserializeActionValues: (indices: number[], manager: EShapeResourceManagerDeserialization, result: EShape) => void;
@@ -1,10 +1,11 @@
1
1
  import { DCanvasContainer } from "../../d-canvas-container";
2
2
  import { EShape } from "../e-shape";
3
- export interface EShapeActionRuntimeContainerDataRemote {
3
+ export interface EShapeActionRuntimeContainerDataScoped {
4
4
  set(id: string, value: unknown, time: number): boolean;
5
5
  }
6
6
  export interface EShapeActionRuntimeContainerData {
7
- readonly remote: EShapeActionRuntimeContainerDataRemote;
7
+ readonly remote: EShapeActionRuntimeContainerDataScoped;
8
+ readonly protected: EShapeActionRuntimeContainerDataScoped;
8
9
  set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
9
10
  }
10
11
  export interface EShapeActionRuntimeContainerShape {
@@ -1,13 +1,15 @@
1
1
  import { EShapeResourceManagerSerialization } from "../e-shape-resource-manager-serialization";
2
2
  import { EShapeActionRuntime } from "./e-shape-action-runtime";
3
- import { EShapeActionValue } from "./e-shape-action-value";
3
+ import { EShapeActionValue, EThemeShapeActionValue } from "./e-shape-action-value";
4
4
  import { EShapeActionValueType } from "./e-shape-action-value-type";
5
5
  export declare abstract class EShapeActionValueBase implements EShapeActionValue {
6
+ protected static THEME?: EThemeShapeActionValue;
6
7
  readonly type: EShapeActionValueType;
7
8
  readonly condition: string;
8
9
  constructor(type: EShapeActionValueType, condition: string);
9
10
  isEquals(value: EShapeActionValue): boolean;
10
11
  toLabel(): string;
12
+ protected getTheme(): EThemeShapeActionValue;
11
13
  abstract toRuntime(): EShapeActionRuntime;
12
14
  abstract serialize(manager: EShapeResourceManagerSerialization): number;
13
15
  }
@@ -0,0 +1,4 @@
1
+ import { EShapeResourceManagerDeserialization } from "../e-shape-resource-manager-deserialization";
2
+ import { EShapeActionValue } from "./e-shape-action-value";
3
+ export declare type EShapeActionValueDeserializer = (serialized: number[], manager: EShapeResourceManagerDeserialization) => EShapeActionValue | null;
4
+ export declare const EShapeActionValueDeserializers: Record<number, EShapeActionValueDeserializer | undefined>;
@@ -11,5 +11,6 @@ export declare const EShapeActionValueType: {
11
11
  readonly CHANGE_CURSOR: 7;
12
12
  readonly MISC: 8;
13
13
  readonly CHANGE_COLOR: 9;
14
+ readonly EXTENSION: 1000;
14
15
  };
15
16
  export declare type EShapeActionValueType = typeof EShapeActionValueType[keyof typeof EShapeActionValueType];
@@ -74,6 +74,7 @@ export * from "./e-shape-action-value-change-color";
74
74
  export * from "./e-shape-action-value-change-cursor";
75
75
  export * from "./e-shape-action-value-change-text-type";
76
76
  export * from "./e-shape-action-value-change-text";
77
+ export * from "./e-shape-action-value-deserializers";
77
78
  export * from "./e-shape-action-value-emit-event";
78
79
  export * from "./e-shape-action-value-misc-emit-event";
79
80
  export * from "./e-shape-action-value-misc-gesture-type";
@@ -7,12 +7,12 @@ import { EShapeDataValueType } from "./e-shape-data-value-type";
7
7
  import { EShapeDataMapping } from "./e-shape-data-mapping";
8
8
  import { EShapeDataValueScope } from "./e-shape-data-value-scope";
9
9
  import { DDiagramSerializedData, DDiagramSerializedDataWithMapping } from "../d-diagram-serialized";
10
- import { EShapeDataPrivate } from "./e-shape-data-private";
10
+ import { EShapeDataScoped } from "./e-shape-data-scoped";
11
11
  export declare class EShapeDataImpl implements EShapeData {
12
12
  protected _values: EShapeDataValue[];
13
13
  protected _isChanged: boolean;
14
14
  protected _mapping?: EShapeDataMapping;
15
- protected _private?: EShapeDataPrivate;
15
+ protected _private?: EShapeDataScoped;
16
16
  constructor();
17
17
  get values(): EShapeDataValue[];
18
18
  get isChanged(): boolean;
@@ -33,9 +33,9 @@ export declare class EShapeDataImpl implements EShapeData {
33
33
  get mapping(): EShapeDataMapping;
34
34
  protected newMapping(): EShapeDataMapping;
35
35
  getMapping(): EShapeDataMapping | undefined;
36
- get private(): EShapeDataPrivate;
37
- protected newPrivate(): EShapeDataPrivate;
38
- getPrivate(): EShapeDataPrivate | undefined;
36
+ get private(): EShapeDataScoped;
37
+ protected newPrivate(): EShapeDataScoped;
38
+ getPrivate(): EShapeDataScoped | undefined;
39
39
  add(value: EShapeDataValue, index?: number): void;
40
40
  set(index: number, value: EShapeDataValue): EShapeDataValue | null;
41
41
  remove(index: number): void;
@@ -1,6 +1,6 @@
1
- import { EShapeDataPrivate } from "./e-shape-data-private";
1
+ import { EShapeDataScoped } from "./e-shape-data-scoped";
2
2
  import { EShapeDataValue } from "./e-shape-data-value";
3
- export declare class EShapeDataPrivateImpl implements EShapeDataPrivate {
3
+ export declare class EShapeDataScopedImpl implements EShapeDataScoped {
4
4
  protected _data?: Map<string, EShapeDataValue[]>;
5
5
  add(id: string, value: EShapeDataValue): void;
6
6
  set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
@@ -1,5 +1,5 @@
1
1
  import { EShapeDataValue } from "./e-shape-data-value";
2
- export interface EShapeDataPrivate {
2
+ export interface EShapeDataScoped {
3
3
  add(id: string, value: EShapeDataValue): void;
4
4
  set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
5
5
  }
@@ -8,5 +8,11 @@ export declare const EShapeDataValueScope: {
8
8
  * A public data is accessible from anywhere outside graphics.
9
9
  */
10
10
  readonly PUBLIC: 1;
11
+ /**
12
+ * A protected data is accessible only from inside graphics.
13
+ * Unlike the private data, the protected data is also accessible from parent graphics
14
+ * containing the graphic that this data belongs to.
15
+ */
16
+ readonly PROTECTED: 2;
11
17
  };
12
18
  export declare type EShapeDataValueScope = typeof EShapeDataValueScope[keyof typeof EShapeDataValueScope];
@@ -5,7 +5,7 @@ import { EShapeDataValueRange } from "./e-shape-data-value-range";
5
5
  import { EShapeDataMapping } from "./e-shape-data-mapping";
6
6
  import { EShapeDataValueType } from "./e-shape-data-value-type";
7
7
  import { EShapeDataValueScope } from "./e-shape-data-value-scope";
8
- import { EShapeDataPrivate } from "./e-shape-data-private";
8
+ import { EShapeDataScoped } from "./e-shape-data-scoped";
9
9
  export interface EShapeData {
10
10
  readonly values: EShapeDataValue[];
11
11
  isChanged: boolean;
@@ -21,8 +21,8 @@ export interface EShapeData {
21
21
  capacity: number;
22
22
  readonly mapping: EShapeDataMapping;
23
23
  getMapping(): EShapeDataMapping | undefined;
24
- readonly private: EShapeDataPrivate;
25
- getPrivate(): EShapeDataPrivate | undefined;
24
+ readonly private: EShapeDataScoped;
25
+ getPrivate(): EShapeDataScoped | undefined;
26
26
  add(value: EShapeDataValue, index?: number): void;
27
27
  set(index: number, value: EShapeDataValue): EShapeDataValue | null;
28
28
  indexOf(target: EShapeDataValue): number;
@@ -31,8 +31,8 @@ export * from "./e-shape-data-mapper-impl";
31
31
  export * from "./e-shape-data-mapper";
32
32
  export * from "./e-shape-data-mapping-impl";
33
33
  export * from "./e-shape-data-mapping";
34
- export * from "./e-shape-data-private-impl";
35
- export * from "./e-shape-data-private";
34
+ export * from "./e-shape-data-scoped-impl";
35
+ export * from "./e-shape-data-scoped";
36
36
  export * from "./e-shape-data-value-impl";
37
37
  export * from "./e-shape-data-value-scope";
38
38
  export * from "./e-shape-data-value-order";
@@ -1,2 +1,3 @@
1
- import { EShapeGradientLike } from "../e-shape-gradient";
2
- export declare const deserializeGradient: (target: string) => EShapeGradientLike | undefined;
1
+ import { EShape } from "../e-shape";
2
+ import { EShapeResourceManagerDeserialization } from "../e-shape-resource-manager-deserialization";
3
+ export declare const deserializeGradient: (index: number, manager: EShapeResourceManagerDeserialization, result: EShape) => void;
@@ -1,5 +1,4 @@
1
1
  import { EShapeActionValue, EThemeShapeActionValue } from "../../shape/action/e-shape-action-value";
2
- import { EShapeActionValueBase } from "../../shape/action/e-shape-action-value-base";
3
2
  import { EShapeActionValueBlinkType } from "../../shape/action/e-shape-action-value-blink-type";
4
3
  import { EShapeActionValueChangeColorTarget } from "../../shape/action/e-shape-action-value-change-color-target";
5
4
  import { EShapeActionValueChangeColorType } from "../../shape/action/e-shape-action-value-change-color-type";
@@ -18,7 +17,7 @@ import { EShapeActionValueType } from "../../shape/action/e-shape-action-value-t
18
17
  import { UtilHtmlElementWhen } from "../../util/util-html-element-when";
19
18
  export declare class EThemeDarkShapeActionValue implements EThemeShapeActionValue {
20
19
  toLabel(value: EShapeActionValue): string;
21
- protected toTypedLabel(type: EShapeActionValueType, value: EShapeActionValueBase): string;
20
+ protected toTypedLabel(type: EShapeActionValueType, value: EShapeActionValue): string;
22
21
  protected toSubtypedLabel(type: EShapeActionValueType, subtype: EShapeActionValueShowHideType, value: EShapeActionValueSubtyped<any>): string | null;
23
22
  protected toOpetypedLabel(type: EShapeActionValueType, subtype: EShapeActionValueTransformType, opetype: EShapeActionValueTransformRotateType, value: EShapeActionValueOpetyped<any, any>): string | null;
24
23
  toTypeLabel(type: EShapeActionValueType): string;
@@ -1,5 +1,4 @@
1
1
  import { EShapeActionValue, EThemeShapeActionValue } from "../../shape/action/e-shape-action-value";
2
- import { EShapeActionValueBase } from "../../shape/action/e-shape-action-value-base";
3
2
  import { EShapeActionValueBlinkType } from "../../shape/action/e-shape-action-value-blink-type";
4
3
  import { EShapeActionValueChangeColorTarget } from "../../shape/action/e-shape-action-value-change-color-target";
5
4
  import { EShapeActionValueChangeColorType } from "../../shape/action/e-shape-action-value-change-color-type";
@@ -18,7 +17,7 @@ import { EShapeActionValueType } from "../../shape/action/e-shape-action-value-t
18
17
  import { UtilHtmlElementWhen } from "../../util/util-html-element-when";
19
18
  export declare class EThemeWhiteShapeActionValue implements EThemeShapeActionValue {
20
19
  toLabel(value: EShapeActionValue): string;
21
- protected toTypedLabel(type: EShapeActionValueType, value: EShapeActionValueBase): string;
20
+ protected toTypedLabel(type: EShapeActionValueType, value: EShapeActionValue): string;
22
21
  protected toSubtypedLabel(type: EShapeActionValueType, subtype: EShapeActionValueShowHideType, value: EShapeActionValueSubtyped<any>): string | null;
23
22
  protected toOpetypedLabel(type: EShapeActionValueType, subtype: EShapeActionValueTransformType, opetype: EShapeActionValueTransformRotateType, value: EShapeActionValueOpetyped<any, any>): string | null;
24
23
  toTypeLabel(type: EShapeActionValueType): string;