@wcardinal/wcardinal-ui 0.269.0 → 0.271.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-diagram-canvas.d.ts +4 -0
- package/dist/types/wcardinal/ui/d-diagram.d.ts +5 -1
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-base.d.ts +40 -0
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-blink.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-conditional.d.ts +3 -3
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-misc-html-element-base.d.ts +2 -2
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-transform-rotate.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime.d.ts +201 -7
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtimes.d.ts +5 -22
- package/dist/types/wcardinal/ui/shape/action/e-shape-actions.d.ts +24 -0
- package/dist/types/wcardinal/ui/shape/action/index.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/e-shape-runtime-impl.d.ts +54 -0
- package/dist/types/wcardinal/ui/shape/e-shape-runtime-reset.d.ts +20 -0
- package/dist/types/wcardinal/ui/shape/e-shape-runtime.d.ts +20 -37
- package/dist/types/wcardinal/ui/shape/e-shape-state-set-impl-observable.d.ts +35 -0
- package/dist/types/wcardinal/ui/shape/e-shape-state-set.d.ts +28 -0
- package/dist/types/wcardinal/ui/shape/e-shape-state.d.ts +7 -0
- package/dist/types/wcardinal/ui/shape/index.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.d.ts +2 -2
- package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime-action.d.ts +2 -2
- package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime.d.ts +2 -2
- package/dist/types/wcardinal/ui/snapper/e-snapper-grid.d.ts +3 -3
- package/dist/types/wcardinal/ui/snapper/e-snapper-target.d.ts +2 -2
- package/dist/types/wcardinal/ui/snapper/e-snapper.d.ts +1 -1
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-diagram-editor.d.ts +6 -6
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-diagram-editor.d.ts +6 -6
- package/dist/types/wcardinal/ui/util/util-pointer-event.d.ts +4 -0
- package/dist/wcardinal/ui/d-diagram-canvas.js +108 -8
- package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-layer.js +2 -2
- package/dist/wcardinal/ui/d-diagram-layer.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram.js +63 -6
- package/dist/wcardinal/ui/d-diagram.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-bases.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-bases.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js +94 -0
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js.map +1 -0
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-brighten.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-brighten.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-color-fill.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-color-fill.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-color-stroke.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-color-stroke.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-darken.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-darken.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-opacity.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-opacity.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-visibility.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink-visibility.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-blink.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-change-color-base.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-change-color-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-change-color-brightness.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-change-color-brightness.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-change-cursor.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-change-cursor.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-change-text-number.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-change-text-number.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-change-text-text.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-change-text-text.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-conditional.js +2 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-conditional.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-emit-event.js +3 -3
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-emit-event.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-layer.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-layer.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-shape.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-shape.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-emit-event.js +3 -3
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-emit-event.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-execute.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-execute.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-html-element-base.js +4 -4
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-html-element-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-write-both.js +3 -3
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-write-both.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-write-local.js +2 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-write-local.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-write-remote.js +2 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-write-remote.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-write.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-write.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dialog-extension.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dialog-extension.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dialog.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dialog.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js +3 -3
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide-layer.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide-layer.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide-shape.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide-shape.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-absolute-x.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-absolute-x.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-absolute-y.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-absolute-y.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-forward-or-backward.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-forward-or-backward.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-left-or-right.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-left-or-right.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-relative-x.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-relative-x.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-relative-y.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-relative-y.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-height-absolute.js +3 -4
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-height-absolute.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-height-relative.js +3 -4
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-height-relative.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-absolute.js +4 -5
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-absolute.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-relative.js +4 -5
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-relative.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-absolute.js +3 -4
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-absolute.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-relative.js +3 -4
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-relative.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize.js +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-rotate-absolute.js +2 -4
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-rotate-absolute.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-rotate-relative.js +2 -4
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-rotate-relative.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-rotate.js +3 -3
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-rotate.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime.js +1 -39
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js +14 -103
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-value-on-input-actions.js +6 -6
- package/dist/wcardinal/ui/shape/action/e-shape-action-value-on-input-actions.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-actions.js +117 -0
- package/dist/wcardinal/ui/shape/action/e-shape-actions.js.map +1 -0
- package/dist/wcardinal/ui/shape/action/index.js +2 -0
- package/dist/wcardinal/ui/shape/action/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js +450 -0
- package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-runtime-reset.js +32 -0
- package/dist/wcardinal/ui/shape/e-shape-runtime-reset.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-runtime.js +1 -251
- package/dist/wcardinal/ui/shape/e-shape-runtime.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js +217 -0
- package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-state-set.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-state.js +7 -0
- package/dist/wcardinal/ui/shape/e-shape-state.js.map +1 -1
- package/dist/wcardinal/ui/shape/index.js +2 -0
- package/dist/wcardinal/ui/shape/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js +20 -8
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.js +3 -3
- 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 +3 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime.js +2 -2
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime.js.map +1 -1
- package/dist/wcardinal/ui/snapper/e-snapper-grid.js +3 -3
- package/dist/wcardinal/ui/snapper/e-snapper-grid.js.map +1 -1
- package/dist/wcardinal/ui/snapper/e-snapper-target.js +2 -2
- package/dist/wcardinal/ui/snapper/e-snapper-target.js.map +1 -1
- package/dist/wcardinal/ui/snapper/e-snapper.js +1 -1
- package/dist/wcardinal/ui/snapper/e-snapper.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-diagram-editor.js +6 -6
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-diagram-editor.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-diagram-editor.js +6 -6
- package/dist/wcardinal/ui/theme/white/d-theme-white-diagram-editor.js.map +1 -1
- package/dist/wcardinal/ui/util/util-pointer-event.js +28 -0
- package/dist/wcardinal/ui/util/util-pointer-event.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +7 -7
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +7 -7
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
- package/dist/wcardinal-ui.cjs.js +1317 -603
- package/dist/wcardinal-ui.js +1305 -591
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -52,6 +52,10 @@ export declare class DDiagramCanvas<THEME extends DThemeDiagramCanvas = DThemeDi
|
|
|
52
52
|
onShapeCancel(e: interaction.InteractionEvent): boolean;
|
|
53
53
|
onShapeClick(e: interaction.InteractionEvent): boolean;
|
|
54
54
|
onShapeDblClick(e: MouseEvent | TouchEvent, interactionManager: interaction.InteractionManager): boolean;
|
|
55
|
+
onShapeRightClick(e: interaction.InteractionEvent): boolean;
|
|
56
|
+
onShapeRightDown(e: interaction.InteractionEvent): boolean;
|
|
57
|
+
onShapeRightUp(e: interaction.InteractionEvent): boolean;
|
|
58
|
+
onShapeRightCancel(e: interaction.InteractionEvent): boolean;
|
|
55
59
|
update(): void;
|
|
56
60
|
onRender(renderer: Renderer): void;
|
|
57
61
|
protected getType(): string;
|
|
@@ -38,7 +38,11 @@ export declare class DDiagram<THEME extends DThemeDiagram = DThemeDiagram, OPTIO
|
|
|
38
38
|
protected onShapeUp(e: InteractionEvent): void;
|
|
39
39
|
protected onShapeCancel(e: InteractionEvent): void;
|
|
40
40
|
protected onShapeClick(e: InteractionEvent): void;
|
|
41
|
-
|
|
41
|
+
protected onShapeRightClick(e: InteractionEvent): void;
|
|
42
|
+
protected onShapeRightDown(e: InteractionEvent): void;
|
|
43
|
+
protected onShapeRightUp(e: InteractionEvent): void;
|
|
44
|
+
protected onShapeRightCancel(e: InteractionEvent): void;
|
|
45
|
+
onDblClick(e: MouseEvent | TouchEvent, manager: InteractionManager): boolean;
|
|
42
46
|
render(renderer: Renderer): void;
|
|
43
47
|
protected getType(): string;
|
|
44
48
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { interaction, Renderer } from "pixi.js";
|
|
2
|
+
import InteractionEvent = interaction.InteractionEvent;
|
|
3
|
+
import InteractionManager = interaction.InteractionManager;
|
|
4
|
+
import { EShape } from "../e-shape";
|
|
5
|
+
import { EShapeRuntime } from "../e-shape-runtime";
|
|
6
|
+
import { EShapeRuntimeReset } from "../e-shape-runtime-reset";
|
|
7
|
+
import { EShapeActionRuntime } from "./e-shape-action-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* A base class of action runtimes.
|
|
10
|
+
*/
|
|
11
|
+
export declare class EShapeActionRuntimeBase implements EShapeActionRuntime {
|
|
12
|
+
readonly reset: EShapeRuntimeReset;
|
|
13
|
+
constructor(reset?: EShapeRuntimeReset);
|
|
14
|
+
initialize(shape: EShape, runtime: EShapeRuntime): void;
|
|
15
|
+
execute(shape: EShape, runtime: EShapeRuntime, time: number): void;
|
|
16
|
+
onResize(shape: EShape, runtime: EShapeRuntime): void;
|
|
17
|
+
onFocus(shape: EShape, runtime: EShapeRuntime): void;
|
|
18
|
+
onBlur(shape: EShape, runtime: EShapeRuntime): void;
|
|
19
|
+
onClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
20
|
+
onDblClick(shape: EShape, runtime: EShapeRuntime, e: MouseEvent | TouchEvent, manager: InteractionManager): void;
|
|
21
|
+
onDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
22
|
+
onDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
23
|
+
onMove(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
24
|
+
onOver(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
25
|
+
onOut(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
26
|
+
onUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
27
|
+
onUpOutside(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
28
|
+
onPressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
29
|
+
onUnpressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
30
|
+
onKeyDown(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void;
|
|
31
|
+
onKeyUp(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void;
|
|
32
|
+
onRightClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
33
|
+
onRightDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
34
|
+
onRightDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
35
|
+
onRightUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
36
|
+
onRightUpOutside(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
37
|
+
onRightPressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
38
|
+
onRightUnpressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
39
|
+
onRender(shape: EShape, runtime: EShapeRuntime, time: number, renderer: Renderer): void;
|
|
40
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EShape } from "../e-shape";
|
|
2
|
-
import { EShapeRuntime
|
|
2
|
+
import { EShapeRuntime } from "../e-shape-runtime";
|
|
3
|
+
import { EShapeRuntimeReset } from "../e-shape-runtime-reset";
|
|
3
4
|
import { EShapeActionRuntimeConditional } from "./e-shape-action-runtime-conditional";
|
|
4
5
|
import { EShapeActionValueBlink } from "./e-shape-action-value-blink";
|
|
5
6
|
export declare class EShapeActionRuntimeBlink extends EShapeActionRuntimeConditional {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EShapeRuntimeReset } from "../e-shape-runtime";
|
|
1
|
+
import { EShapeRuntimeReset } from "../e-shape-runtime-reset";
|
|
2
2
|
import { EShapeActionExpression } from "./e-shape-action-expression";
|
|
3
|
-
import {
|
|
3
|
+
import { EShapeActionRuntimeBase } from "./e-shape-action-runtime-base";
|
|
4
4
|
import { EShapeActionValue } from "./e-shape-action-value";
|
|
5
|
-
export declare class EShapeActionRuntimeConditional extends
|
|
5
|
+
export declare class EShapeActionRuntimeConditional extends EShapeActionRuntimeBase {
|
|
6
6
|
protected readonly condition: EShapeActionExpression<boolean>;
|
|
7
7
|
constructor(value: EShapeActionValue, reset: EShapeRuntimeReset);
|
|
8
8
|
}
|
package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-misc-html-element-base.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ import { UtilHtmlElementWhen } from "../../util/util-html-element-when";
|
|
|
6
6
|
import { EShape } from "../e-shape";
|
|
7
7
|
import { EShapeRuntime } from "../e-shape-runtime";
|
|
8
8
|
import { EShapeActionExpression } from "./e-shape-action-expression";
|
|
9
|
-
import { EShapeActionRuntime } from "./e-shape-action-runtime";
|
|
10
9
|
import { EShapeActionValueMisc } from "./e-shape-action-value-misc";
|
|
11
10
|
import { UtilHtmlElementClipperExRects } from "../../util/util-html-element-clipper-ex-rects";
|
|
12
|
-
|
|
11
|
+
import { EShapeActionRuntimeBase } from "./e-shape-action-runtime-base";
|
|
12
|
+
export declare abstract class EShapeActionRuntimeMiscHtmlElementBase<ELEMENT extends HTMLElement = HTMLElement, UTIL extends UtilHtmlElement<ELEMENT> = UtilHtmlElement<ELEMENT>> extends EShapeActionRuntimeBase {
|
|
13
13
|
protected static WORK?: Point;
|
|
14
14
|
protected readonly condition: EShapeActionExpression<string | null>;
|
|
15
15
|
protected utils: Map<EShape, UTIL>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EShapeRuntimeReset } from "../e-shape-runtime";
|
|
1
|
+
import { EShapeRuntimeReset } from "../e-shape-runtime-reset";
|
|
2
2
|
import { EShapeActionExpression } from "./e-shape-action-expression";
|
|
3
3
|
import { EShapeActionRuntimeConditional } from "./e-shape-action-runtime-conditional";
|
|
4
4
|
import { EShapeActionValueTransformMove } from "./e-shape-action-value-transform-move";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EShape } from "../e-shape";
|
|
2
|
-
import { EShapeRuntime
|
|
2
|
+
import { EShapeRuntime } from "../e-shape-runtime";
|
|
3
|
+
import { EShapeRuntimeReset } from "../e-shape-runtime-reset";
|
|
3
4
|
import { EShapeActionExpression } from "./e-shape-action-expression";
|
|
4
5
|
import { EShapeActionRuntimeConditional } from "./e-shape-action-runtime-conditional";
|
|
5
6
|
import { EShapeActionValueTransformResize } from "./e-shape-action-value-transform-resize";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EShape } from "../e-shape";
|
|
2
|
-
import { EShapeRuntime
|
|
2
|
+
import { EShapeRuntime } from "../e-shape-runtime";
|
|
3
|
+
import { EShapeRuntimeReset } from "../e-shape-runtime-reset";
|
|
3
4
|
import { EShapeActionExpression } from "./e-shape-action-expression";
|
|
4
5
|
import { EShapeActionRuntimeConditional } from "./e-shape-action-runtime-conditional";
|
|
5
6
|
import { EShapeActionValueTransformRotate } from "./e-shape-action-value-transform-rotate";
|
|
@@ -2,21 +2,215 @@ import { interaction, Renderer } from "pixi.js";
|
|
|
2
2
|
import InteractionEvent = interaction.InteractionEvent;
|
|
3
3
|
import InteractionManager = interaction.InteractionManager;
|
|
4
4
|
import { EShape } from "../e-shape";
|
|
5
|
-
import { EShapeRuntime
|
|
5
|
+
import { EShapeRuntime } from "../e-shape-runtime";
|
|
6
|
+
import { EShapeRuntimeReset } from "../e-shape-runtime-reset";
|
|
6
7
|
/**
|
|
7
8
|
* An action runtime.
|
|
8
9
|
* Please note that all the action runtimes are shared across shapes.
|
|
9
10
|
*/
|
|
10
|
-
export
|
|
11
|
-
reset: EShapeRuntimeReset;
|
|
12
|
-
|
|
11
|
+
export interface EShapeActionRuntime {
|
|
12
|
+
readonly reset: EShapeRuntimeReset;
|
|
13
|
+
/**
|
|
14
|
+
* Called to initialize this action runtime for the given shape.
|
|
15
|
+
*
|
|
16
|
+
* @param shape a shape
|
|
17
|
+
* @param runtime a runtime
|
|
18
|
+
*/
|
|
13
19
|
initialize(shape: EShape, runtime: EShapeRuntime): void;
|
|
20
|
+
/**
|
|
21
|
+
* Called to execute this action for the given shape.
|
|
22
|
+
*
|
|
23
|
+
* @param shape a shape
|
|
24
|
+
* @param runtime a runtime
|
|
25
|
+
* @param time a current time
|
|
26
|
+
*/
|
|
14
27
|
execute(shape: EShape, runtime: EShapeRuntime, time: number): void;
|
|
15
|
-
|
|
16
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Called when the shape size is changed.
|
|
30
|
+
*
|
|
31
|
+
* @param shape a shape
|
|
32
|
+
* @param runtime a runtime
|
|
33
|
+
*/
|
|
34
|
+
onResize(shape: EShape, runtime: EShapeRuntime): void;
|
|
35
|
+
/**
|
|
36
|
+
* Called when a shape is clicked.
|
|
37
|
+
*
|
|
38
|
+
* @param shape a shape
|
|
39
|
+
* @param runtime a runtime
|
|
40
|
+
* @param e an event object
|
|
41
|
+
*/
|
|
42
|
+
onClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
43
|
+
/**
|
|
44
|
+
* Called when a shape is double clicked.
|
|
45
|
+
* @param shape a shape
|
|
46
|
+
* @param runtime a runtime
|
|
47
|
+
* @param e an event object
|
|
48
|
+
* @param manager the interaction manager
|
|
49
|
+
*/
|
|
50
|
+
onDblClick(shape: EShape, runtime: EShapeRuntime, e: MouseEvent | TouchEvent, manager: InteractionManager): void;
|
|
51
|
+
/**
|
|
52
|
+
* Called when a pointer or a key are about to be pressed on a shape.
|
|
53
|
+
*
|
|
54
|
+
* @param shape a shape
|
|
55
|
+
* @param runtime a runtime
|
|
56
|
+
* @param e an event object
|
|
57
|
+
*/
|
|
17
58
|
onDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
59
|
+
/**
|
|
60
|
+
* Called when a pointer or a key get pressed on a shape.
|
|
61
|
+
*
|
|
62
|
+
* @param shape a shape
|
|
63
|
+
* @param runtime a runtime
|
|
64
|
+
* @param e an event object
|
|
65
|
+
*/
|
|
18
66
|
onDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
67
|
+
/**
|
|
68
|
+
* Called when a pointer is moved on a shape.
|
|
69
|
+
*
|
|
70
|
+
* @param shape a shape
|
|
71
|
+
* @param runtime a runtime
|
|
72
|
+
* @param e an event object
|
|
73
|
+
*/
|
|
19
74
|
onMove(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
20
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Called when a pointer gets on a shape.
|
|
77
|
+
*
|
|
78
|
+
* @param shape a shape
|
|
79
|
+
* @param runtime a runtime
|
|
80
|
+
* @param e an event object
|
|
81
|
+
*/
|
|
82
|
+
onOver(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
83
|
+
/**
|
|
84
|
+
* Called when a pointer gets out of a shape.
|
|
85
|
+
*
|
|
86
|
+
* @param shape a shape
|
|
87
|
+
* @param runtime a runtime
|
|
88
|
+
* @param e an event object
|
|
89
|
+
*/
|
|
90
|
+
onOut(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
91
|
+
/**
|
|
92
|
+
* Called when a pointer or a key get released on a shape.
|
|
93
|
+
*
|
|
94
|
+
* @param shape a shape
|
|
95
|
+
* @param runtime a runtime
|
|
96
|
+
* @param e an event object
|
|
97
|
+
*/
|
|
98
|
+
onUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
99
|
+
/**
|
|
100
|
+
* Called when a pointer or a key get released outside of a shape.
|
|
101
|
+
*
|
|
102
|
+
* @param shape a shape
|
|
103
|
+
* @param runtime a runtime
|
|
104
|
+
* @param e an event object
|
|
105
|
+
*/
|
|
106
|
+
onUpOutside(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
107
|
+
/**
|
|
108
|
+
* Called when a shape is pressed.
|
|
109
|
+
*
|
|
110
|
+
* @param shape a shape
|
|
111
|
+
* @param runtime a runtime
|
|
112
|
+
* @param e an event object
|
|
113
|
+
*/
|
|
114
|
+
onPressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
115
|
+
/**
|
|
116
|
+
* Called when a shape is released.
|
|
117
|
+
*
|
|
118
|
+
* @param shape a shape
|
|
119
|
+
* @param runtime a runtime
|
|
120
|
+
* @param e an event object
|
|
121
|
+
*/
|
|
122
|
+
onUnpressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;
|
|
123
|
+
/**
|
|
124
|
+
* Called when a key is pressed on a shape.
|
|
125
|
+
*
|
|
126
|
+
* @param shape a shape
|
|
127
|
+
* @param runtime a runtime
|
|
128
|
+
* @param e an event object
|
|
129
|
+
*/
|
|
130
|
+
onKeyDown(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void;
|
|
131
|
+
/**
|
|
132
|
+
* Called when a key is released on a shape.
|
|
133
|
+
*
|
|
134
|
+
* @param shape a shape
|
|
135
|
+
* @param runtime a runtime
|
|
136
|
+
* @param e an event object
|
|
137
|
+
*/
|
|
138
|
+
onKeyUp(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void;
|
|
139
|
+
/**
|
|
140
|
+
* Called when a shape get focused.
|
|
141
|
+
*
|
|
142
|
+
* @param shape a shape
|
|
143
|
+
* @param runtime a runtime
|
|
144
|
+
*/
|
|
145
|
+
onFocus(shape: EShape, runtime: EShapeRuntime): void;
|
|
146
|
+
/**
|
|
147
|
+
* Called when a shape losees a focuse.
|
|
148
|
+
*
|
|
149
|
+
* @param shape a shape
|
|
150
|
+
* @param runtime a runtime
|
|
151
|
+
*/
|
|
152
|
+
onBlur(shape: EShape, runtime: EShapeRuntime): void;
|
|
153
|
+
/**
|
|
154
|
+
* Called when a shape is right-clicked.
|
|
155
|
+
*
|
|
156
|
+
* @param shape a shape
|
|
157
|
+
* @param runtime a runtime
|
|
158
|
+
* @param e an event object
|
|
159
|
+
*/
|
|
160
|
+
onRightClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
161
|
+
/**
|
|
162
|
+
* Called when a secondary button is about to be pressed on a shape.
|
|
163
|
+
*
|
|
164
|
+
* @param shape a shape
|
|
165
|
+
* @param runtime a runtime
|
|
166
|
+
* @param e an event object
|
|
167
|
+
*/
|
|
168
|
+
onRightDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
169
|
+
/**
|
|
170
|
+
* Called when a secondary button gets pressed on a shape.
|
|
171
|
+
*
|
|
172
|
+
* @param shape a shape
|
|
173
|
+
* @param runtime a runtime
|
|
174
|
+
* @param e an event object
|
|
175
|
+
*/
|
|
176
|
+
onRightDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
177
|
+
/**
|
|
178
|
+
* Called when a secondary button gets released on a shape.
|
|
179
|
+
*
|
|
180
|
+
* @param shape a shape
|
|
181
|
+
* @param runtime a runtime
|
|
182
|
+
* @param e an event object
|
|
183
|
+
*/
|
|
184
|
+
onRightUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
185
|
+
/**
|
|
186
|
+
* Called when a secondary button get released outside of a shape.
|
|
187
|
+
*
|
|
188
|
+
* @param shape a shape
|
|
189
|
+
* @param runtime a runtime
|
|
190
|
+
* @param e an event object
|
|
191
|
+
*/
|
|
192
|
+
onRightUpOutside(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
193
|
+
/**
|
|
194
|
+
* Called when a secondary button is pressed on a shape.
|
|
195
|
+
*
|
|
196
|
+
* @param shape a shape
|
|
197
|
+
* @param runtime a runtime
|
|
198
|
+
* @param e an event object
|
|
199
|
+
*/
|
|
200
|
+
onRightPressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
201
|
+
/**
|
|
202
|
+
* Called when a secondary button is released on a shape.
|
|
203
|
+
*
|
|
204
|
+
* @param shape a shape
|
|
205
|
+
* @param runtime a runtime
|
|
206
|
+
* @param e an event object
|
|
207
|
+
*/
|
|
208
|
+
onRightUnpressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;
|
|
209
|
+
/**
|
|
210
|
+
* Called when a shape get rendered.
|
|
211
|
+
*
|
|
212
|
+
* @param shape a shape
|
|
213
|
+
* @param runtime a runtime
|
|
214
|
+
*/
|
|
21
215
|
onRender(shape: EShape, runtime: EShapeRuntime, time: number, renderer: Renderer): void;
|
|
22
216
|
}
|
|
@@ -1,24 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DDiagramBaseController, DDiagramBaseControllerOpenType } from "../../d-diagram-base-controller";
|
|
4
|
-
import { DDiagramData } from "../../d-diagram-data";
|
|
5
|
-
import { DDiagramSerialized } from "../../d-diagram-serialized";
|
|
6
|
-
import { EShape } from "../e-shape";
|
|
7
|
-
import { EShapeDataValueState } from "../e-shape-data-value-state";
|
|
8
|
-
import { EShapeEmbedded } from "../variant/e-shape-embedded";
|
|
9
|
-
export interface EShapeActionRuntimeContainer extends DCanvasContainer {
|
|
10
|
-
readonly shape: utils.EventEmitter;
|
|
11
|
-
readonly data: DDiagramData;
|
|
12
|
-
readonly controller: DDiagramBaseController | null;
|
|
13
|
-
set(serialized: DDiagramSerialized | null): void;
|
|
14
|
-
}
|
|
1
|
+
import { EShapeType } from "../e-shape-type";
|
|
2
|
+
import { EShapeActionRuntime } from "./e-shape-action-runtime";
|
|
15
3
|
export declare class EShapeActionRuntimes {
|
|
16
|
-
static
|
|
17
|
-
static
|
|
18
|
-
static
|
|
19
|
-
static open(shape: EShape, type: DDiagramBaseControllerOpenType, target: string, inNewWindow: boolean): void;
|
|
20
|
-
static writeLocal(shape: EShape, id: string, value: unknown, time: number, state?: EShapeDataValueState): boolean;
|
|
21
|
-
static writeRemote(shape: EShape, id: string, value: unknown): boolean;
|
|
22
|
-
static emit(shape: EShape, name: string): void;
|
|
23
|
-
static emit(shape: EShape, name: string, value: unknown, time: number): void;
|
|
4
|
+
static _typeToRuntimes?: Map<EShapeType, EShapeActionRuntime[]>;
|
|
5
|
+
static add(type: EShapeType, runtime: EShapeActionRuntime): void;
|
|
6
|
+
static get(type: EShapeType): EShapeActionRuntime[] | null | undefined;
|
|
24
7
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { utils } from "pixi.js";
|
|
2
|
+
import { DCanvasContainer } from "../../d-canvas-container";
|
|
3
|
+
import { DDiagramBaseController, DDiagramBaseControllerOpenType } from "../../d-diagram-base-controller";
|
|
4
|
+
import { DDiagramData } from "../../d-diagram-data";
|
|
5
|
+
import { DDiagramSerialized } from "../../d-diagram-serialized";
|
|
6
|
+
import { EShape } from "../e-shape";
|
|
7
|
+
import { EShapeDataValueState } from "../e-shape-data-value-state";
|
|
8
|
+
import { EShapeEmbedded } from "../variant/e-shape-embedded";
|
|
9
|
+
export interface EShapeActionsContainer extends DCanvasContainer {
|
|
10
|
+
readonly shape: utils.EventEmitter;
|
|
11
|
+
readonly data: DDiagramData;
|
|
12
|
+
readonly controller: DDiagramBaseController | null;
|
|
13
|
+
set(serialized: DDiagramSerialized | null): void;
|
|
14
|
+
}
|
|
15
|
+
export declare class EShapeActions {
|
|
16
|
+
static isContainer(target: unknown): target is EShapeActionsContainer;
|
|
17
|
+
static isEmbedded(target: unknown): target is EShapeEmbedded;
|
|
18
|
+
static toContainer(shape?: EShape | null): EShapeActionsContainer | null;
|
|
19
|
+
static open(shape: EShape, type: DDiagramBaseControllerOpenType, target: string, inNewWindow: boolean): void;
|
|
20
|
+
static writeLocal(shape: EShape, id: string, value: unknown, time: number, state?: EShapeDataValueState): boolean;
|
|
21
|
+
static writeRemote(shape: EShape, id: string, value: unknown): boolean;
|
|
22
|
+
static emit(shape: EShape, name: string): void;
|
|
23
|
+
static emit(shape: EShape, name: string, value: unknown, time: number): void;
|
|
24
|
+
}
|
|
@@ -11,6 +11,7 @@ export * from "./e-shape-action-open-extension";
|
|
|
11
11
|
export * from "./e-shape-action-open-extensions";
|
|
12
12
|
export * from "./e-shape-action-open-opener";
|
|
13
13
|
export * from "./e-shape-action-open-openers";
|
|
14
|
+
export * from "./e-shape-action-runtime-base";
|
|
14
15
|
export * from "./e-shape-action-runtime-blink-brighten";
|
|
15
16
|
export * from "./e-shape-action-runtime-blink-color-fill";
|
|
16
17
|
export * from "./e-shape-action-runtime-blink-color-stroke";
|
|
@@ -123,3 +124,4 @@ export * from "./e-shape-action-value-type";
|
|
|
123
124
|
export * from "./e-shape-action-value";
|
|
124
125
|
export * from "./e-shape-action-values";
|
|
125
126
|
export * from "./e-shape-action";
|
|
127
|
+
export * from "./e-shape-actions";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { interaction, Renderer } from "pixi.js";
|
|
2
|
+
import InteractionEvent = interaction.InteractionEvent;
|
|
3
|
+
import InteractionManager = interaction.InteractionManager;
|
|
4
|
+
import { EShapeActionRuntime } from "./action/e-shape-action-runtime";
|
|
5
|
+
import { EShape } from "./e-shape";
|
|
6
|
+
import { EShapeFillLike } from "./e-shape-fill";
|
|
7
|
+
import { EShapeStrokeLike } from "./e-shape-stroke";
|
|
8
|
+
import { EShapeTextLike } from "./e-shape-text";
|
|
9
|
+
import { DBaseStateSet } from "../d-base-state-set";
|
|
10
|
+
import { EShapeRuntime } from "./e-shape-runtime";
|
|
11
|
+
import { EShapeRuntimeReset } from "./e-shape-runtime-reset";
|
|
12
|
+
export declare class EShapeRuntimeImpl implements EShapeRuntime {
|
|
13
|
+
static readonly TRANSIENT_STATES: string[];
|
|
14
|
+
readonly x: number;
|
|
15
|
+
readonly y: number;
|
|
16
|
+
readonly sizeX: number;
|
|
17
|
+
readonly sizeY: number;
|
|
18
|
+
readonly rotation: number;
|
|
19
|
+
readonly actions: EShapeActionRuntime[];
|
|
20
|
+
readonly fill: EShapeFillLike;
|
|
21
|
+
readonly stroke: EShapeStrokeLike;
|
|
22
|
+
readonly text: EShapeTextLike;
|
|
23
|
+
readonly cursor?: string;
|
|
24
|
+
readonly interactive: boolean;
|
|
25
|
+
reset: EShapeRuntimeReset;
|
|
26
|
+
written: EShapeRuntimeReset;
|
|
27
|
+
effect: number;
|
|
28
|
+
isStateChanged: boolean;
|
|
29
|
+
constructor(shape: EShape);
|
|
30
|
+
initialize(shape: EShape): void;
|
|
31
|
+
isActionable(): boolean;
|
|
32
|
+
onResize(shape: EShape): void;
|
|
33
|
+
onClick(shape: EShape, e: InteractionEvent | KeyboardEvent): void;
|
|
34
|
+
onDblClick(shape: EShape, e: MouseEvent | TouchEvent, interactionManager: InteractionManager): boolean;
|
|
35
|
+
onOver(shape: EShape, e: InteractionEvent): void;
|
|
36
|
+
onOut(shape: EShape, e: InteractionEvent): void;
|
|
37
|
+
onDown(shape: EShape, e: InteractionEvent | KeyboardEvent): void;
|
|
38
|
+
onUp(shape: EShape, e: InteractionEvent | KeyboardEvent): void;
|
|
39
|
+
onUpOutside(shape: EShape, e: InteractionEvent): void;
|
|
40
|
+
onMove(shape: EShape, e: InteractionEvent): void;
|
|
41
|
+
onKeyDown(shape: EShape, e: KeyboardEvent): boolean;
|
|
42
|
+
onKeyUp(shape: EShape, e: KeyboardEvent): boolean;
|
|
43
|
+
onStateChange(shape: EShape, newState: DBaseStateSet, oldState: DBaseStateSet): void;
|
|
44
|
+
onFocus(shape: EShape): void;
|
|
45
|
+
onBlur(shape: EShape): void;
|
|
46
|
+
onRightClick(shape: EShape, e: InteractionEvent): void;
|
|
47
|
+
onRightDown(shape: EShape, e: InteractionEvent): void;
|
|
48
|
+
onRightUp(shape: EShape, e: InteractionEvent): void;
|
|
49
|
+
onRightUpOutside(shape: EShape, e: InteractionEvent): void;
|
|
50
|
+
update(shape: EShape, time: number): void;
|
|
51
|
+
onRender(shape: EShape, time: number, renderer: Renderer): void;
|
|
52
|
+
protected onUpdate(shape: EShape, time: number): void;
|
|
53
|
+
protected doReset(shape: EShape): void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const EShapeRuntimeReset: {
|
|
2
|
+
readonly NONE: 0;
|
|
3
|
+
readonly POSITION_X: 1;
|
|
4
|
+
readonly POSITION_Y: 2;
|
|
5
|
+
readonly POSITION: number;
|
|
6
|
+
readonly ROTATION: 4;
|
|
7
|
+
readonly COLOR_FILL: 8;
|
|
8
|
+
readonly COLOR_STROKE: 16;
|
|
9
|
+
readonly COLOR_FILL_AND_STROKE: number;
|
|
10
|
+
readonly COLOR_TEXT: 32;
|
|
11
|
+
readonly COLOR_TEXT_OUTLINE: 64;
|
|
12
|
+
readonly COLOR: number;
|
|
13
|
+
readonly VISIBILITY: 128;
|
|
14
|
+
readonly HEIGHT: 256;
|
|
15
|
+
readonly WIDTH: 512;
|
|
16
|
+
readonly SIZE: number;
|
|
17
|
+
readonly TEXT: 1024;
|
|
18
|
+
readonly CURSOR: 2048;
|
|
19
|
+
};
|
|
20
|
+
export declare type EShapeRuntimeReset = typeof EShapeRuntimeReset[keyof typeof EShapeRuntimeReset];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { interaction,
|
|
1
|
+
import { interaction, Renderer } from "pixi.js";
|
|
2
2
|
import InteractionEvent = interaction.InteractionEvent;
|
|
3
3
|
import InteractionManager = interaction.InteractionManager;
|
|
4
4
|
import { EShapeActionRuntime } from "./action/e-shape-action-runtime";
|
|
@@ -7,45 +7,27 @@ import { EShapeFillLike } from "./e-shape-fill";
|
|
|
7
7
|
import { EShapeStrokeLike } from "./e-shape-stroke";
|
|
8
8
|
import { EShapeTextLike } from "./e-shape-text";
|
|
9
9
|
import { DBaseStateSet } from "../d-base-state-set";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly HEIGHT: 256;
|
|
24
|
-
readonly WIDTH: 512;
|
|
25
|
-
readonly SIZE: number;
|
|
26
|
-
readonly TEXT: 1024;
|
|
27
|
-
readonly CURSOR: 2048;
|
|
28
|
-
};
|
|
29
|
-
export declare type EShapeRuntimeReset = typeof EShapeRuntimeReset[keyof typeof EShapeRuntimeReset];
|
|
30
|
-
export declare class EShapeRuntime {
|
|
31
|
-
x: number;
|
|
32
|
-
y: number;
|
|
33
|
-
size: Point;
|
|
34
|
-
rotation: number;
|
|
35
|
-
actions: EShapeActionRuntime[];
|
|
36
|
-
fill: EShapeFillLike;
|
|
37
|
-
stroke: EShapeStrokeLike;
|
|
38
|
-
text: EShapeTextLike;
|
|
39
|
-
cursor?: string;
|
|
10
|
+
import { EShapeRuntimeReset } from "./e-shape-runtime-reset";
|
|
11
|
+
export interface EShapeRuntime {
|
|
12
|
+
readonly x: number;
|
|
13
|
+
readonly y: number;
|
|
14
|
+
readonly sizeX: number;
|
|
15
|
+
readonly sizeY: number;
|
|
16
|
+
readonly rotation: number;
|
|
17
|
+
readonly actions: EShapeActionRuntime[];
|
|
18
|
+
readonly fill: EShapeFillLike;
|
|
19
|
+
readonly stroke: EShapeStrokeLike;
|
|
20
|
+
readonly text: EShapeTextLike;
|
|
21
|
+
readonly cursor?: string;
|
|
22
|
+
readonly interactive: boolean;
|
|
40
23
|
reset: EShapeRuntimeReset;
|
|
41
24
|
written: EShapeRuntimeReset;
|
|
42
25
|
effect: number;
|
|
43
26
|
isStateChanged: boolean;
|
|
44
|
-
interactive: boolean;
|
|
45
|
-
constructor(shape: EShape);
|
|
46
27
|
initialize(shape: EShape): void;
|
|
47
|
-
onInitialize(shape: EShape): void;
|
|
48
28
|
isActionable(): boolean;
|
|
29
|
+
update(shape: EShape, time: number): void;
|
|
30
|
+
onResize(shape: EShape): void;
|
|
49
31
|
onClick(shape: EShape, e: InteractionEvent | KeyboardEvent): void;
|
|
50
32
|
onDblClick(shape: EShape, e: MouseEvent | TouchEvent, interactionManager: InteractionManager): boolean;
|
|
51
33
|
onOver(shape: EShape, e: InteractionEvent): void;
|
|
@@ -59,8 +41,9 @@ export declare class EShapeRuntime {
|
|
|
59
41
|
onStateChange(shape: EShape, newState: DBaseStateSet, oldState: DBaseStateSet): void;
|
|
60
42
|
onFocus(shape: EShape): void;
|
|
61
43
|
onBlur(shape: EShape): void;
|
|
62
|
-
|
|
44
|
+
onRightClick(shape: EShape, e: InteractionEvent): void;
|
|
45
|
+
onRightDown(shape: EShape, e: InteractionEvent): void;
|
|
46
|
+
onRightUp(shape: EShape, e: InteractionEvent): void;
|
|
47
|
+
onRightUpOutside(shape: EShape, e: InteractionEvent): void;
|
|
63
48
|
onRender(shape: EShape, time: number, renderer: Renderer): void;
|
|
64
|
-
protected onUpdate(shape: EShape, time: number): void;
|
|
65
|
-
protected doReset(shape: EShape): void;
|
|
66
49
|
}
|
|
@@ -8,6 +8,11 @@ export declare class EShapeStateSetImplObservable extends DBaseStateSetImplObser
|
|
|
8
8
|
get inClicked(): boolean;
|
|
9
9
|
get onClicked(): boolean;
|
|
10
10
|
get underClicked(): boolean;
|
|
11
|
+
get isDblClicked(): boolean;
|
|
12
|
+
set isDblClicked(isDblClicked: boolean);
|
|
13
|
+
get inDblClicked(): boolean;
|
|
14
|
+
get onDblClicked(): boolean;
|
|
15
|
+
get underDblClicked(): boolean;
|
|
11
16
|
get isDown(): boolean;
|
|
12
17
|
set isDown(isDown: boolean);
|
|
13
18
|
get inDown(): boolean;
|
|
@@ -18,6 +23,36 @@ export declare class EShapeStateSetImplObservable extends DBaseStateSetImplObser
|
|
|
18
23
|
get inUp(): boolean;
|
|
19
24
|
get onUp(): boolean;
|
|
20
25
|
get underUp(): boolean;
|
|
26
|
+
get isUpOutside(): boolean;
|
|
27
|
+
set isUpOutside(isUpOutside: boolean);
|
|
28
|
+
get inUpOutside(): boolean;
|
|
29
|
+
get onUpOutside(): boolean;
|
|
30
|
+
get underUpOutside(): boolean;
|
|
31
|
+
get isRightClicked(): boolean;
|
|
32
|
+
set isRightClicked(isRightClicked: boolean);
|
|
33
|
+
get inRightClicked(): boolean;
|
|
34
|
+
get onRightClicked(): boolean;
|
|
35
|
+
get underRightClicked(): boolean;
|
|
36
|
+
get isRightDown(): boolean;
|
|
37
|
+
set isRightDown(isRightDown: boolean);
|
|
38
|
+
get inRightDown(): boolean;
|
|
39
|
+
get onRightDown(): boolean;
|
|
40
|
+
get underRightDown(): boolean;
|
|
41
|
+
get isRightUp(): boolean;
|
|
42
|
+
set isRightUp(isRightUp: boolean);
|
|
43
|
+
get inRightUp(): boolean;
|
|
44
|
+
get onRightUp(): boolean;
|
|
45
|
+
get underRightUp(): boolean;
|
|
46
|
+
get isRightUpOutside(): boolean;
|
|
47
|
+
set isRightUpOutside(isRightUpOutside: boolean);
|
|
48
|
+
get inRightUpOutside(): boolean;
|
|
49
|
+
get onRightUpOutside(): boolean;
|
|
50
|
+
get underRightUpOutside(): boolean;
|
|
51
|
+
get isRightPressed(): boolean;
|
|
52
|
+
set isRightPressed(isRightPressed: boolean);
|
|
53
|
+
get inRightPressed(): boolean;
|
|
54
|
+
get onRightPressed(): boolean;
|
|
55
|
+
get underRightPressed(): boolean;
|
|
21
56
|
get isActivated(): boolean;
|
|
22
57
|
set isActivated(isActivated: boolean);
|
|
23
58
|
get inActivated(): boolean;
|