@wcardinal/wcardinal-ui 0.460.0-beta.0 → 0.461.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 (95) hide show
  1. package/dist/types/wcardinal/ui/d-application-layer.d.ts +5 -4
  2. package/dist/types/wcardinal/ui/d-chart-plot-area-twofold-sub-base.d.ts +1 -1
  3. package/dist/types/wcardinal/ui/d-chart-plot-area-twofold-sub-primary.d.ts +1 -1
  4. package/dist/types/wcardinal/ui/d-chart-plot-area-twofold-sub-secondary.d.ts +1 -1
  5. package/dist/types/wcardinal/ui/d-chart-plot-area-twofold-sub.d.ts +2 -1
  6. package/dist/types/wcardinal/ui/d-diagram-canvas-editor.d.ts +2 -1
  7. package/dist/types/wcardinal/ui/d-diagram-canvas.d.ts +3 -1
  8. package/dist/types/wcardinal/ui/d-diagram.d.ts +1 -0
  9. package/dist/types/wcardinal/ui/d-view-to-target.d.ts +1 -1
  10. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-base.d.ts +5 -3
  11. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.d.ts +19 -0
  12. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-open.d.ts +4 -0
  13. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime.d.ts +22 -3
  14. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-open.d.ts +7 -0
  15. package/dist/types/wcardinal/ui/shape/action/index.d.ts +1 -0
  16. package/dist/types/wcardinal/ui/shape/e-shape-runtime-impl.d.ts +3 -1
  17. package/dist/types/wcardinal/ui/shape/e-shape-runtime.d.ts +3 -1
  18. package/dist/types/wcardinal/ui/shape/e-shape-state-set-impl-observable.d.ts +5 -0
  19. package/dist/types/wcardinal/ui/shape/e-shape-state-set.d.ts +4 -0
  20. package/dist/types/wcardinal/ui/shape/e-shape-state.d.ts +1 -0
  21. package/dist/types/wcardinal/ui/theme/common/new-shape-drag-image.d.ts +1 -0
  22. package/dist/types/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.d.ts +9 -0
  23. package/dist/types/wcardinal/ui/theme/dark/index-zz-zz.d.ts +1 -0
  24. package/dist/types/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.d.ts +9 -0
  25. package/dist/types/wcardinal/ui/theme/white/index-zz-zz.d.ts +1 -0
  26. package/dist/types/wcardinal/ui/util/util-file-opener.d.ts +3 -1
  27. package/dist/wcardinal/ui/d-application-layer.js +30 -8
  28. package/dist/wcardinal/ui/d-application-layer.js.map +1 -1
  29. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-base.js.map +1 -1
  30. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-primary.js.map +1 -1
  31. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-secondary.js.map +1 -1
  32. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub.js.map +1 -1
  33. package/dist/wcardinal/ui/d-diagram-canvas-editor.js.map +1 -1
  34. package/dist/wcardinal/ui/d-diagram-canvas.js +66 -14
  35. package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
  36. package/dist/wcardinal/ui/d-diagram.js +7 -0
  37. package/dist/wcardinal/ui/d-diagram.js.map +1 -1
  38. package/dist/wcardinal/ui/d-view-to-target.js.map +1 -1
  39. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js +6 -0
  40. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js.map +1 -1
  41. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.js +17 -0
  42. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.js.map +1 -0
  43. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js +39 -0
  44. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js.map +1 -1
  45. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime.js.map +1 -1
  46. package/dist/wcardinal/ui/shape/action/e-shape-action-value-open.js.map +1 -1
  47. package/dist/wcardinal/ui/shape/action/index.js +1 -0
  48. package/dist/wcardinal/ui/shape/action/index.js.map +1 -1
  49. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js +32 -0
  50. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js.map +1 -1
  51. package/dist/wcardinal/ui/shape/e-shape-runtime.js.map +1 -1
  52. package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js +31 -0
  53. package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js.map +1 -1
  54. package/dist/wcardinal/ui/shape/e-shape-state-set.js.map +1 -1
  55. package/dist/wcardinal/ui/shape/e-shape-state.js +1 -0
  56. package/dist/wcardinal/ui/shape/e-shape-state.js.map +1 -1
  57. package/dist/wcardinal/ui/theme/common/new-shape-drag-image.js +26 -0
  58. package/dist/wcardinal/ui/theme/common/new-shape-drag-image.js.map +1 -0
  59. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.js +32 -0
  60. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.js.map +1 -0
  61. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js +1 -0
  62. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js.map +1 -1
  63. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-shape-action-value.js +2 -0
  64. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-shape-action-value.js.map +1 -1
  65. package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.js +32 -0
  66. package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.js.map +1 -0
  67. package/dist/wcardinal/ui/theme/white/index-zz-zz.js +1 -0
  68. package/dist/wcardinal/ui/theme/white/index-zz-zz.js.map +1 -1
  69. package/dist/wcardinal/ui/theme/white/load/load-theme-white-shape-action-value.js +2 -0
  70. package/dist/wcardinal/ui/theme/white/load/load-theme-white-shape-action-value.js.map +1 -1
  71. package/dist/wcardinal/ui/util/util-file-downloader.js +21 -1
  72. package/dist/wcardinal/ui/util/util-file-downloader.js.map +1 -1
  73. package/dist/wcardinal/ui/util/util-file-opener.js +5 -3
  74. package/dist/wcardinal/ui/util/util-file-opener.js.map +1 -1
  75. package/dist/wcardinal-ui-theme-dark-en-us.js +57 -1
  76. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  77. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  78. package/dist/wcardinal-ui-theme-dark-ja-jp.js +57 -1
  79. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  80. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  81. package/dist/wcardinal-ui-theme-dark.js +57 -1
  82. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  83. package/dist/wcardinal-ui-theme-white-en-us.js +57 -1
  84. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  85. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  86. package/dist/wcardinal-ui-theme-white-ja-jp.js +57 -1
  87. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  88. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  89. package/dist/wcardinal-ui-theme-white.js +57 -1
  90. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  91. package/dist/wcardinal-ui.cjs.js +38861 -38548
  92. package/dist/wcardinal-ui.js +254 -27
  93. package/dist/wcardinal-ui.min.js +2 -2
  94. package/dist/wcardinal-ui.min.js.map +1 -1
  95. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-runtime-base.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9D;;GAEG;AACH;IAGC,iCAAY,KAA0B;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,kBAAkB,CA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AsB,EAAE,CAAmC;QACrF,aAAa;IACd,CAAC;IAED,2CAAS,GAAT,UAAU,KAAa,EAAE,OAAsB,EAAE,CAAgB;QAChE,aAAa;IACd,CAAC;IAED,yCAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,CAAgB;QAC9D,aAAa;IACd,CAAC;IAED,8CAAY,GAAZ,UAAa,KAAa,EAAE,OAAsB,EAAE,CAAmB;QACtE,aAAa;IACd,CAAC;IAED,gDAAc,GAAd,UAAe,KAAa,EAAE,OAAsB,EAAE,CAAmB;QACxE,aAAa;IACd,CAAC;IAED,6CAAW,GAAX,UAAY,KAAa,EAAE,OAAsB,EAAE,CAAmB;QACrE,aAAa;IACd,CAAC;IAED,2CAAS,GAAT,UAAU,KAAa,EAAE,OAAsB,EAAE,CAAmB;QACnE,aAAa;IACd,CAAC;IAED,kDAAgB,GAAhB,UAAiB,KAAa,EAAE,OAAsB,EAAE,CAAmB;QAC1E,aAAa;IACd,CAAC;IAED,gDAAc,GAAd,UAAe,KAAa,EAAE,OAAsB,EAAE,CAAmB;QACxE,aAAa;IACd,CAAC;IAED,kDAAgB,GAAhB,UAAiB,KAAa,EAAE,OAAsB,EAAE,CAAmB;QAC1E,aAAa;IACd,CAAC;IAED,0CAAQ,GAAR,UAAS,KAAa,EAAE,OAAsB,EAAE,IAAY,EAAE,QAAkB;QAC/E,aAAa;IACd,CAAC;IACF,8BAAC;AAAD,CAAC,AAnHD,IAmHC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Renderer } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\nimport { EShapeActionRuntime } from \"./e-shape-action-runtime\";\n\n/**\n * A base class of action runtimes.\n */\nexport class EShapeActionRuntimeBase implements EShapeActionRuntime {\n\treadonly reset: EShapeRuntimeReset;\n\n\tconstructor(reset?: EShapeRuntimeReset) {\n\t\tthis.reset = reset || EShapeRuntimeReset.NONE;\n\t}\n\n\tinitialize(shape: EShape, runtime: EShapeRuntime): void {\n\t\t// DO NOTHING\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\t// DO NOTHING\n\t}\n\n\tonResize(shape: EShape, runtime: EShapeRuntime): void {\n\t\t// DO NOTHING\n\t}\n\n\tonFocus(shape: EShape, runtime: EShapeRuntime): void {\n\t\t// DO NOTHING\n\t}\n\n\tonBlur(shape: EShape, runtime: EShapeRuntime): void {\n\t\t// DO NOTHING\n\t}\n\n\tonClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonDblClick(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: MouseEvent | TouchEvent,\n\t\tmanager: InteractionManager\n\t): void {\n\t\t// DO NOTHING\n\t}\n\n\tonDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonMove(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonOver(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonOut(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonUpOutside(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonPressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonUnpressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonKeyDown(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonKeyUp(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightUpOutside(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightPressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightUnpressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRender(shape: EShape, runtime: EShapeRuntime, time: number, renderer: Renderer): void {\n\t\t// DO NOTHING\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-action-runtime-base.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-base.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9D;;GAEG;AACH;IAGC,iCAAY,KAA0B;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,kBAAkB,CAAC,IAAI,CAAC;IAC/C,CAAC;IAED,4CAAU,GAAV,UAAW,KA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C,aAAa;IACd,CAAC;IAED,2CAAS,GAAT,UACC,KAAa,EACb,OAAsB,EACtB,CAA+C;QAE/C,aAAa;IACd,CAAC;IAED,6CAAW,GAAX,UACC,KAAa,EACb,OAAsB,EACtB,CAA+C;QAE/C,aAAa;IACd,CAAC;IAED,2CAAS,GAAT,UAAU,KAAa,EAAE,OAAsB,EAAE,CAAgB;QAChE,aAAa;IACd,CAAC;IAED,yCAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,CAAgB;QAC9D,aAAa;IACd,CAAC;IAED,8CAAY,GAAZ,UAAa,KAAa,EAAE,OAAsB,EAAE,CAAmB;QACtE,aAAa;IACd,CAAC;IAED,gDAAc,GAAd,UAAe,KAAa,EAAE,OAAsB,EAAE,CAAmB;QACxE,aAAa;IACd,CAAC;IAED,6CAAW,GAAX,UAAY,KAAa,EAAE,OAAsB,EAAE,CAAmB;QACrE,aAAa;IACd,CAAC;IAED,2CAAS,GAAT,UAAU,KAAa,EAAE,OAAsB,EAAE,CAAmB;QACnE,aAAa;IACd,CAAC;IAED,kDAAgB,GAAhB,UAAiB,KAAa,EAAE,OAAsB,EAAE,CAAmB;QAC1E,aAAa;IACd,CAAC;IAED,gDAAc,GAAd,UAAe,KAAa,EAAE,OAAsB,EAAE,CAAmB;QACxE,aAAa;IACd,CAAC;IAED,kDAAgB,GAAhB,UAAiB,KAAa,EAAE,OAAsB,EAAE,CAAmB;QAC1E,aAAa;IACd,CAAC;IAED,0CAAQ,GAAR,UAAS,KAAa,EAAE,OAAsB,EAAE,IAAY,EAAE,QAAkB;QAC/E,aAAa;IACd,CAAC;IACF,8BAAC;AAAD,CAAC,AA5ID,IA4IC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Renderer } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\nimport { EShapeActionRuntime } from \"./e-shape-action-runtime\";\n\n/**\n * A base class of action runtimes.\n */\nexport class EShapeActionRuntimeBase implements EShapeActionRuntime {\n\treadonly reset: EShapeRuntimeReset;\n\n\tconstructor(reset?: EShapeRuntimeReset) {\n\t\tthis.reset = reset || EShapeRuntimeReset.NONE;\n\t}\n\n\tinitialize(shape: EShape, runtime: EShapeRuntime): void {\n\t\t// DO NOTHING\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\t// DO NOTHING\n\t}\n\n\tonResize(shape: EShape, runtime: EShapeRuntime): void {\n\t\t// DO NOTHING\n\t}\n\n\tonFocus(shape: EShape, runtime: EShapeRuntime): void {\n\t\t// DO NOTHING\n\t}\n\n\tonBlur(shape: EShape, runtime: EShapeRuntime): void {\n\t\t// DO NOTHING\n\t}\n\n\tonClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonDblClick(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: MouseEvent | TouchEvent,\n\t\tmanager: InteractionManager\n\t): void {\n\t\t// DO NOTHING\n\t}\n\n\tisDraggable(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): boolean {\n\t\treturn false;\n\t}\n\n\tonDragStart(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: DragEvent,\n\t\tmanager: InteractionManager\n\t): boolean {\n\t\treturn false;\n\t}\n\n\tonDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonMove(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonOver(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonOut(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonUpOutside(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: InteractionEvent | DragEvent | KeyboardEvent\n\t): void {\n\t\t// DO NOTHING\n\t}\n\n\tonPressed(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: InteractionEvent | DragEvent | KeyboardEvent\n\t): void {\n\t\t// DO NOTHING\n\t}\n\n\tonUnpressed(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: InteractionEvent | DragEvent | KeyboardEvent\n\t): void {\n\t\t// DO NOTHING\n\t}\n\n\tonKeyDown(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonKeyUp(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightUpOutside(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightPressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRightUnpressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void {\n\t\t// DO NOTHING\n\t}\n\n\tonRender(shape: EShape, runtime: EShapeRuntime, time: number, renderer: Renderer): void {\n\t\t// DO NOTHING\n\t}\n}\n"]}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright (C) 2026 Toshiba Corporation
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ /**
6
+ * Data that open actions set to {@link DataTransfer.setData} when users drag and drop shapes.
7
+ */
8
+ var EShapeActionRuntimeOpenDropped = /** @class */ (function () {
9
+ function EShapeActionRuntimeOpenDropped(shape, type, target) {
10
+ this.shape = shape.id;
11
+ this.type = type;
12
+ this.target = target;
13
+ }
14
+ return EShapeActionRuntimeOpenDropped;
15
+ }());
16
+ export { EShapeActionRuntimeOpenDropped };
17
+ //# sourceMappingURL=e-shape-action-runtime-open-dropped.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"e-shape-action-runtime-open-dropped.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH;IAgBC,wCAAY,KAAa,EAAE,IAAY,EAAE,MAAe;QACvD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IACF,qCAAC;AAAD,CAAC,AArBD,IAqBC","sourcesContent":["/*\n * Copyright (C) 2026 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\n\n/**\n * Data that open actions set to {@link DataTransfer.setData} when users drag and drop shapes.\n */\nexport class EShapeActionRuntimeOpenDropped {\n\t/**\n\t * The ID of {@link EShape}s on which open actions are executed.\n\t */\n\tshape: string;\n\n\t/**\n\t * {@link EShapeActionValueOpenType} or {@link EShapeActionOpenExtension.type} of open actions which set this data\n\t */\n\ttype: number;\n\n\t/**\n\t * Returned value of the `target` expression.\n\t */\n\ttarget: unknown;\n\n\tconstructor(shape: EShape, type: number, target: unknown) {\n\t\tthis.shape = shape.id;\n\t\tthis.type = type;\n\t\tthis.target = target;\n\t}\n}\n"]}
@@ -8,6 +8,8 @@ import { EShapeActionEnvironment } from "./e-shape-action-environment";
8
8
  import { EShapeActionExpressions } from "./e-shape-action-expressions";
9
9
  import { EShapeActionRuntimeConditional } from "./e-shape-action-runtime-conditional";
10
10
  import { EShapeActions } from "./e-shape-actions";
11
+ import { DThemes } from "../../theme";
12
+ import { EShapeActionRuntimeOpenDropped } from "./e-shape-action-runtime-open-dropped";
11
13
  var EShapeActionRuntimeOpen = /** @class */ (function (_super) {
12
14
  __extends(EShapeActionRuntimeOpen, _super);
13
15
  function EShapeActionRuntimeOpen(value, subtype) {
@@ -17,6 +19,43 @@ var EShapeActionRuntimeOpen = /** @class */ (function (_super) {
17
19
  _this.inNewWindow = value.inNewWindow;
18
20
  return _this;
19
21
  }
22
+ EShapeActionRuntimeOpen.prototype.isDraggable = function (shape, runtime, e) {
23
+ return this.condition(shape, e.data.originalEvent.timeStamp, EShapeActionEnvironment);
24
+ };
25
+ EShapeActionRuntimeOpen.prototype.onDragStart = function (shape, runtime, e, manager) {
26
+ var dataTransfer = e.dataTransfer;
27
+ if (dataTransfer == null) {
28
+ return false;
29
+ }
30
+ var target = this.target(shape, e.timeStamp, EShapeActionEnvironment);
31
+ if (target == null) {
32
+ return false;
33
+ }
34
+ var data = this.toDragData(new EShapeActionRuntimeOpenDropped(shape, this.subtype, target));
35
+ if (data == null) {
36
+ return false;
37
+ }
38
+ var theme = DThemes.getInstance().get("EShapeActionValueOpen");
39
+ dataTransfer.setData(theme.getDragDataFormat(), data);
40
+ dataTransfer.effectAllowed = theme.getDragEffectAllowed();
41
+ var dragImage = theme.getDragImage();
42
+ if (dragImage != null) {
43
+ document.body.appendChild(dragImage);
44
+ dataTransfer.setDragImage(dragImage, theme.getDragImageOffsetX(), theme.getDragImageOffsetY());
45
+ requestAnimationFrame(function () {
46
+ document.body.removeChild(dragImage);
47
+ });
48
+ }
49
+ return true;
50
+ };
51
+ EShapeActionRuntimeOpen.prototype.toDragData = function (target) {
52
+ try {
53
+ return JSON.stringify(target);
54
+ }
55
+ catch (_a) {
56
+ return null;
57
+ }
58
+ };
20
59
  EShapeActionRuntimeOpen.prototype.execute = function (shape, runtime, time) {
21
60
  if (this.condition(shape, time, EShapeActionEnvironment)) {
22
61
  var target = this.target(shape, time, EShapeActionEnvironment);
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-runtime-open.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-open.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAKH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIlD;IAA6C,2CAA8B;IAK1E,iCACC,KAA6D,EAC7D,OAAuC;QAEvC,YAAA,MAAK,YAAC,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,SAAC;QACtC,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,MAAM,GAAG,uBAAuB,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9D,KAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;;IACtC,CAAC;IAED,yCAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,EAAE,CAAC;YAC1D,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;YACjE,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACpB,aAAa,CAAC,IAAI,CACjB,KAAK,EACL,IAAI,CAAC,OAAO,EACZ,MAAM,EACN,IAAI,CAAC,WAAW,EAChB,uBAAuB,CACvB,CAAC;YACH,CAAC;QACF,CAAC;IACF,CAAC;IACF,8BAAC;AAAD,CAAC,AA7BD,CAA6C,8BAA8B,GA6B1E","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramBaseControllerOpenType } from \"../../d-diagram-base-controller\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\nimport { EShapeActionEnvironment } from \"./e-shape-action-environment\";\nimport { EShapeActionExpression } from \"./e-shape-action-expression\";\nimport { EShapeActionExpressions } from \"./e-shape-action-expressions\";\nimport { EShapeActionRuntimeConditional } from \"./e-shape-action-runtime-conditional\";\nimport { EShapeActions } from \"./e-shape-actions\";\nimport { EShapeActionValueOpen } from \"./e-shape-action-value-open\";\nimport { EShapeActionValueOpenExtension } from \"./e-shape-action-value-open-extension\";\n\nexport class EShapeActionRuntimeOpen extends EShapeActionRuntimeConditional {\n\tprotected subtype: number;\n\tprotected readonly target: EShapeActionExpression<unknown>;\n\tprotected inNewWindow: boolean;\n\n\tconstructor(\n\t\tvalue: EShapeActionValueOpen | EShapeActionValueOpenExtension,\n\t\tsubtype: DDiagramBaseControllerOpenType\n\t) {\n\t\tsuper(value, EShapeRuntimeReset.NONE);\n\t\tthis.subtype = subtype;\n\t\tthis.target = EShapeActionExpressions.ofUnknown(value.target);\n\t\tthis.inNewWindow = value.inNewWindow;\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time, EShapeActionEnvironment)) {\n\t\t\tconst target = this.target(shape, time, EShapeActionEnvironment);\n\t\t\tif (target != null) {\n\t\t\t\tEShapeActions.open(\n\t\t\t\t\tshape,\n\t\t\t\t\tthis.subtype,\n\t\t\t\t\ttarget,\n\t\t\t\t\tthis.inNewWindow,\n\t\t\t\t\tEShapeActionEnvironment\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-action-runtime-open.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-open.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAKH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AAEvF;IAA6C,2CAA8B;IAK1E,iCACC,KAA6D,EAC7D,OAAuC;QAEvC,YAAA,MAAK,YAAC,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,SAAC;QACtC,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,MAAM,GAAG,uBAAuB,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9D,KAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;;IACtC,CAAC;IAEQ,6CAAW,GAApB,UAAqB,KAAa,EAAE,OAAsB,EAAE,CAAmB;QAC9E,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;IAC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C;IACb,CAAC;IAES,4CAAU,GAApB,UAAqB,MAAe;QACnC,IAAI,CAAC;YACJ,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC;QAAC,WAAM,CAAC;YACR,OAAO,IAAI,CAAC;QACb,CAAC;IACF,CAAC;IAED,yCAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,EAAE,CAAC;YAC1D,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;YACjE,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACpB,aAAa,CAAC,IAAI,CACjB,KAAK,EACL,IAAI,CAAC,OAAO,EACZ,MAAM,EACN,IAAI,CAAC,WAAW,EAChB,uBAAuB,CACvB,CAAC;YACH,CAAC;QACF,CAAC;IACF,CAAC;IACF,8BAAC;AAAD,CAAC,AAhFD,CAA6C,8BAA8B,GAgF1E","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramBaseControllerOpenType } from \"../../d-diagram-base-controller\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\nimport { EShapeActionEnvironment } from \"./e-shape-action-environment\";\nimport { EShapeActionExpression } from \"./e-shape-action-expression\";\nimport { EShapeActionExpressions } from \"./e-shape-action-expressions\";\nimport { EShapeActionRuntimeConditional } from \"./e-shape-action-runtime-conditional\";\nimport { EShapeActions } from \"./e-shape-actions\";\nimport { EShapeActionValueOpen, EThemeShapeActionValueOpen } from \"./e-shape-action-value-open\";\nimport { EShapeActionValueOpenExtension } from \"./e-shape-action-value-open-extension\";\nimport { DThemes } from \"../../theme\";\nimport { InteractionEvent, InteractionManager } from \"pixi.js\";\nimport { EShapeActionRuntimeOpenDropped } from \"./e-shape-action-runtime-open-dropped\";\n\nexport class EShapeActionRuntimeOpen extends EShapeActionRuntimeConditional {\n\tprotected subtype: number;\n\tprotected readonly target: EShapeActionExpression<unknown>;\n\tprotected inNewWindow: boolean;\n\n\tconstructor(\n\t\tvalue: EShapeActionValueOpen | EShapeActionValueOpenExtension,\n\t\tsubtype: DDiagramBaseControllerOpenType\n\t) {\n\t\tsuper(value, EShapeRuntimeReset.NONE);\n\t\tthis.subtype = subtype;\n\t\tthis.target = EShapeActionExpressions.ofUnknown(value.target);\n\t\tthis.inNewWindow = value.inNewWindow;\n\t}\n\n\toverride isDraggable(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): boolean {\n\t\treturn this.condition(shape, e.data.originalEvent.timeStamp, EShapeActionEnvironment);\n\t}\n\n\toverride onDragStart(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: DragEvent,\n\t\tmanager: InteractionManager\n\t): boolean {\n\t\tconst dataTransfer = e.dataTransfer;\n\t\tif (dataTransfer == null) {\n\t\t\treturn false;\n\t\t}\n\t\tconst target = this.target(shape, e.timeStamp, EShapeActionEnvironment);\n\t\tif (target == null) {\n\t\t\treturn false;\n\t\t}\n\t\tconst data = this.toDragData(\n\t\t\tnew EShapeActionRuntimeOpenDropped(shape, this.subtype, target)\n\t\t);\n\t\tif (data == null) {\n\t\t\treturn false;\n\t\t}\n\t\tconst theme =\n\t\t\tDThemes.getInstance().get<EThemeShapeActionValueOpen>(\"EShapeActionValueOpen\");\n\t\tdataTransfer.setData(theme.getDragDataFormat(), data);\n\t\tdataTransfer.effectAllowed = theme.getDragEffectAllowed();\n\t\tconst dragImage = theme.getDragImage();\n\t\tif (dragImage != null) {\n\t\t\tdocument.body.appendChild(dragImage);\n\t\t\tdataTransfer.setDragImage(\n\t\t\t\tdragImage,\n\t\t\t\ttheme.getDragImageOffsetX(),\n\t\t\t\ttheme.getDragImageOffsetY()\n\t\t\t);\n\t\t\trequestAnimationFrame(() => {\n\t\t\t\tdocument.body.removeChild(dragImage);\n\t\t\t});\n\t\t}\n\t\treturn true;\n\t}\n\n\tprotected toDragData(target: unknown): string | null {\n\t\ttry {\n\t\t\treturn JSON.stringify(target);\n\t\t} catch {\n\t\t\treturn null;\n\t\t}\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time, EShapeActionEnvironment)) {\n\t\t\tconst target = this.target(shape, time, EShapeActionEnvironment);\n\t\t\tif (target != null) {\n\t\t\t\tEShapeActions.open(\n\t\t\t\t\tshape,\n\t\t\t\t\tthis.subtype,\n\t\t\t\t\ttarget,\n\t\t\t\t\tthis.inNewWindow,\n\t\t\t\t\tEShapeActionEnvironment\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-runtime.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Renderer } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\n\n/**\n * An action runtime.\n * Please note that all the action runtimes are shared across shapes.\n */\nexport interface EShapeActionRuntime {\n\treadonly reset: EShapeRuntimeReset;\n\n\t/**\n\t * Called to initialize this action runtime for the given shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t */\n\tinitialize(shape: EShape, runtime: EShapeRuntime): void;\n\n\t/**\n\t * Called to execute this action for the given shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param time a current time\n\t */\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void;\n\n\t/**\n\t * Called when the shape size is changed.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t */\n\tonResize(shape: EShape, runtime: EShapeRuntime): void;\n\n\t/**\n\t * Called when a shape is clicked.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a shape is double clicked.\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t * @param manager the interaction manager\n\t */\n\tonDblClick(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: MouseEvent | TouchEvent,\n\t\tmanager: InteractionManager\n\t): void;\n\n\t/**\n\t * Called when a pointer or a key are about to be pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a pointer or a key get pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a pointer is moved on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonMove(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a pointer gets on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonOver(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a pointer gets out of a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonOut(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a pointer or a key get released on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a pointer or a key get released outside of a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonUpOutside(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a shape is pressed.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonPressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a shape is released.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonUnpressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a key is pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonKeyDown(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void;\n\n\t/**\n\t * Called when a key is released on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonKeyUp(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void;\n\n\t/**\n\t * Called when a shape get focused.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t */\n\tonFocus(shape: EShape, runtime: EShapeRuntime): void;\n\n\t/**\n\t * Called when a shape losees a focuse.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t */\n\tonBlur(shape: EShape, runtime: EShapeRuntime): void;\n\n\t/**\n\t * Called when a shape is right-clicked.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button is about to be pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button gets pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button gets released on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button get released outside of a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightUpOutside(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button is pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightPressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button is released on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightUnpressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a shape get rendered.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t */\n\tonRender(shape: EShape, runtime: EShapeRuntime, time: number, renderer: Renderer): void;\n}\n"]}
1
+ {"version":3,"file":"e-shape-action-runtime.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Renderer } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\n\n/**\n * An action runtime.\n * Please note that all the action runtimes are shared across shapes.\n */\nexport interface EShapeActionRuntime {\n\treadonly reset: EShapeRuntimeReset;\n\n\t/**\n\t * Called to initialize this action runtime for the given shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t */\n\tinitialize(shape: EShape, runtime: EShapeRuntime): void;\n\n\t/**\n\t * Called to execute this action for the given shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param time a current time\n\t */\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void;\n\n\t/**\n\t * Called when the shape size is changed.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t */\n\tonResize(shape: EShape, runtime: EShapeRuntime): void;\n\n\t/**\n\t * Called when a shape is clicked.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a shape is double clicked.\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t * @param manager the interaction manager\n\t */\n\tonDblClick(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: MouseEvent | TouchEvent,\n\t\tmanager: InteractionManager\n\t): void;\n\n\t/**\n\t * Returns true if a shape supports the dragging.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t * @returns true if a shape is draggable\n\t */\n\tisDraggable(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): boolean;\n\n\t/**\n\t * Called when users start dragging a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t * @param manager the interaction manager\n\t * @return true if dragstart event is handled successfully\n\t */\n\tonDragStart(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: DragEvent,\n\t\tmanager: InteractionManager\n\t): boolean;\n\n\t/**\n\t * Called when a pointer or a key are about to be pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a pointer or a key get pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a pointer is moved on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonMove(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a pointer gets on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonOver(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a pointer gets out of a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonOut(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a pointer or a key get released on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent | KeyboardEvent): void;\n\n\t/**\n\t * Called when a pointer or a key get released outside of a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonUpOutside(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: InteractionEvent | DragEvent | KeyboardEvent\n\t): void;\n\n\t/**\n\t * Called when a shape is pressed.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonPressed(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: InteractionEvent | DragEvent | KeyboardEvent\n\t): void;\n\n\t/**\n\t * Called when a shape is released.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonUnpressed(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\te: InteractionEvent | DragEvent | KeyboardEvent\n\t): void;\n\n\t/**\n\t * Called when a key is pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonKeyDown(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void;\n\n\t/**\n\t * Called when a key is released on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonKeyUp(shape: EShape, runtime: EShapeRuntime, e: KeyboardEvent): void;\n\n\t/**\n\t * Called when a shape get focused.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t */\n\tonFocus(shape: EShape, runtime: EShapeRuntime): void;\n\n\t/**\n\t * Called when a shape losees a focuse.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t */\n\tonBlur(shape: EShape, runtime: EShapeRuntime): void;\n\n\t/**\n\t * Called when a shape is right-clicked.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightClick(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button is about to be pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightDowning(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button gets pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightDown(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button gets released on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightUp(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button get released outside of a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightUpOutside(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button is pressed on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightPressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a secondary button is released on a shape.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t * @param e an event object\n\t */\n\tonRightUnpressed(shape: EShape, runtime: EShapeRuntime, e: InteractionEvent): void;\n\n\t/**\n\t * Called when a shape get rendered.\n\t *\n\t * @param shape a shape\n\t * @param runtime a runtime\n\t */\n\tonRender(shape: EShape, runtime: EShapeRuntime, time: number, renderer: Renderer): void;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-value-open.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-value-open.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAGjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAuC7D;IAA2C,yCAE1C;IAIA,+BACC,OAAyF,EACzF,SAAiB,EACjB,MAAc,EACd,WAAoB;QAEpB,YAAA,MAAK,YAAC,qBAAqB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC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AC,AA1FD,CAA2C,yBAAyB,GA0FnE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramBaseControllerOpenType } from \"../../d-diagram-base-controller\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapeActionRuntimeOpen } from \"./e-shape-action-runtime-open\";\nimport { EShapeActionValue } from \"./e-shape-action-value\";\nimport { EShapeActionValueOnInputAction } from \"./e-shape-action-value-on-input-action\";\nimport { EShapeActionValueOpenType } from \"./e-shape-action-value-open-type\";\nimport { EShapeActionValueSubtyped } from \"./e-shape-action-value-subtyped\";\nimport { EShapeActionValueType } from \"./e-shape-action-value-type\";\nimport { EShapeActionValues } from \"./e-shape-action-values\";\n\nexport type EShapeActionValueOpenSerializedLegacy1 = [\n\ttypeof EShapeActionValueType.OPEN,\n\tnumber,\n\t(\n\t\t| typeof EShapeActionValueOpenType.DIAGRAM_LEGACY\n\t\t| typeof EShapeActionValueOpenType.PAGE_LEGACY\n\t\t| typeof EShapeActionValueOpenType.PAGE_INPLACE_LEGACY\n\t),\n\tnumber\n];\n\nexport type EShapeActionValueOpenSerializedLegacy2 = [\n\ttypeof EShapeActionValueType.OPEN,\n\tnumber,\n\t(\n\t\t| typeof EShapeActionValueOpenType.DIAGRAM_LEGACY\n\t\t| typeof EShapeActionValueOpenType.PAGE_LEGACY\n\t\t| typeof EShapeActionValueOpenType.PAGE_INPLACE_LEGACY\n\t),\n\tnumber,\n\tEShapeActionValueOnInputAction,\n\tnumber\n];\n\nexport type EShapeActionValueOpenSerializedNew = [\n\ttypeof EShapeActionValueType.OPEN,\n\tnumber,\n\ttypeof EShapeActionValueOpenType.DIAGRAM | typeof EShapeActionValueOpenType.PAGE,\n\tnumber,\n\t0 | 1\n];\n\nexport type EShapeActionValueOpenSerialized =\n\t| EShapeActionValueOpenSerializedNew\n\t| EShapeActionValueOpenSerializedLegacy1\n\t| EShapeActionValueOpenSerializedLegacy2;\n\nexport class EShapeActionValueOpen extends EShapeActionValueSubtyped<\n\ttypeof EShapeActionValueOpenType.DIAGRAM | typeof EShapeActionValueOpenType.PAGE\n> {\n\treadonly target: string;\n\treadonly inNewWindow: boolean;\n\n\tconstructor(\n\t\tsubtype: typeof EShapeActionValueOpenType.DIAGRAM | typeof EShapeActionValueOpenType.PAGE,\n\t\tcondition: string,\n\t\ttarget: string,\n\t\tinNewWindow: boolean\n\t) {\n\t\tsuper(EShapeActionValueType.OPEN, condition, subtype);\n\t\tthis.target = target;\n\t\tthis.inNewWindow = inNewWindow;\n\t}\n\n\tisEquals(value: EShapeActionValue): boolean {\n\t\treturn (\n\t\t\tsuper.isEquals(value) &&\n\t\t\tvalue instanceof EShapeActionValueOpen &&\n\t\t\tthis.target === value.target &&\n\t\t\tthis.inNewWindow === value.inNewWindow\n\t\t);\n\t}\n\n\ttoRuntime(): EShapeActionRuntimeOpen {\n\t\tswitch (this.subtype) {\n\t\t\tcase EShapeActionValueOpenType.DIAGRAM:\n\t\t\t\treturn new EShapeActionRuntimeOpen(this, DDiagramBaseControllerOpenType.DIAGRAM);\n\t\t\tcase EShapeActionValueOpenType.PAGE:\n\t\t\t\treturn new EShapeActionRuntimeOpen(this, DDiagramBaseControllerOpenType.PAGE);\n\t\t}\n\t}\n\n\tserialize(manager: EShapeResourceManagerSerialization): number {\n\t\tconst conditionId = manager.addResource(this.condition);\n\t\tconst targetId = manager.addResource(this.target);\n\t\tconst inNewWindow = this.inNewWindow ? 1 : 0;\n\t\treturn manager.addResource(\n\t\t\t`[${this.type},${conditionId},${this.subtype},${targetId},${inNewWindow}]`\n\t\t);\n\t}\n\n\tstatic deserialize(\n\t\tserialized: EShapeActionValueOpenSerialized,\n\t\tmanager: EShapeResourceManagerDeserialization\n\t): EShapeActionValueOpen {\n\t\tconst condition = EShapeActionValues.toResource(1, serialized, manager.resources);\n\t\tconst target = EShapeActionValues.toResource(3, serialized, manager.resources);\n\t\treturn new EShapeActionValueOpen(\n\t\t\tthis.toSubType(serialized),\n\t\t\tcondition,\n\t\t\ttarget,\n\t\t\tthis.inNewWindow(serialized)\n\t\t);\n\t}\n\n\tprotected static toSubType(\n\t\tserialized: EShapeActionValueOpenSerialized\n\t): typeof EShapeActionValueOpenType.DIAGRAM | typeof EShapeActionValueOpenType.PAGE {\n\t\tswitch (serialized[2]) {\n\t\t\tcase EShapeActionValueOpenType.DIAGRAM_LEGACY:\n\t\t\t\treturn EShapeActionValueOpenType.DIAGRAM;\n\t\t\tcase EShapeActionValueOpenType.PAGE_LEGACY:\n\t\t\t\treturn EShapeActionValueOpenType.PAGE;\n\t\t\tcase EShapeActionValueOpenType.PAGE_INPLACE_LEGACY:\n\t\t\t\treturn EShapeActionValueOpenType.PAGE;\n\t\t\tcase EShapeActionValueOpenType.DIAGRAM:\n\t\t\t\treturn EShapeActionValueOpenType.DIAGRAM;\n\t\t\tcase EShapeActionValueOpenType.PAGE:\n\t\t\t\treturn EShapeActionValueOpenType.PAGE;\n\t\t}\n\t\treturn EShapeActionValueOpenType.DIAGRAM;\n\t}\n\n\tprotected static inNewWindow(serialized: EShapeActionValueOpenSerialized): boolean {\n\t\tswitch (serialized[2]) {\n\t\t\tcase EShapeActionValueOpenType.DIAGRAM_LEGACY:\n\t\t\t\treturn false;\n\t\t\tcase EShapeActionValueOpenType.PAGE_LEGACY:\n\t\t\t\treturn true;\n\t\t\tcase EShapeActionValueOpenType.PAGE_INPLACE_LEGACY:\n\t\t\t\treturn false;\n\t\t\tcase EShapeActionValueOpenType.DIAGRAM:\n\t\t\tcase EShapeActionValueOpenType.PAGE:\n\t\t\t\treturn !!serialized[4];\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-action-value-open.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-value-open.ts"],"names":[],"mappings":"AAAA;;;GAG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AAC,OAAO,CAAC;IAC1C,CAAC;IAEgB,iCAAW,GAA5B,UAA6B,UAA2C;QACvE,QAAQ,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;YACvB,KAAK,yBAAyB,CAAC,cAAc;gBAC5C,OAAO,KAAK,CAAC;YACd,KAAK,yBAAyB,CAAC,WAAW;gBACzC,OAAO,IAAI,CAAC;YACb,KAAK,yBAAyB,CAAC,mBAAmB;gBACjD,OAAO,KAAK,CAAC;YACd,KAAK,yBAAyB,CAAC,OAAO,CAAC;YACvC,KAAK,yBAAyB,CAAC,IAAI;gBAClC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,4BAAC;AAAD,CAAC,AA1FD,CAA2C,yBAAyB,GA0FnE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramBaseControllerOpenType } from \"../../d-diagram-base-controller\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapeActionRuntimeOpen } from \"./e-shape-action-runtime-open\";\nimport { EShapeActionValue } from \"./e-shape-action-value\";\nimport { EShapeActionValueOnInputAction } from \"./e-shape-action-value-on-input-action\";\nimport { EShapeActionValueOpenType } from \"./e-shape-action-value-open-type\";\nimport { EShapeActionValueSubtyped } from \"./e-shape-action-value-subtyped\";\nimport { EShapeActionValueType } from \"./e-shape-action-value-type\";\nimport { EShapeActionValues } from \"./e-shape-action-values\";\n\nexport interface EThemeShapeActionValueOpen {\n\tgetDragDataFormat(): string;\n\tgetDragEffectAllowed(): DataTransfer[\"effectAllowed\"];\n\tgetDragImage(): HTMLImageElement | HTMLCanvasElement | null;\n\tgetDragImageOffsetX(): number;\n\tgetDragImageOffsetY(): number;\n}\n\nexport type EShapeActionValueOpenSerializedLegacy1 = [\n\ttypeof EShapeActionValueType.OPEN,\n\tnumber,\n\t(\n\t\t| typeof EShapeActionValueOpenType.DIAGRAM_LEGACY\n\t\t| typeof EShapeActionValueOpenType.PAGE_LEGACY\n\t\t| typeof EShapeActionValueOpenType.PAGE_INPLACE_LEGACY\n\t),\n\tnumber\n];\n\nexport type EShapeActionValueOpenSerializedLegacy2 = [\n\ttypeof EShapeActionValueType.OPEN,\n\tnumber,\n\t(\n\t\t| typeof EShapeActionValueOpenType.DIAGRAM_LEGACY\n\t\t| typeof EShapeActionValueOpenType.PAGE_LEGACY\n\t\t| typeof EShapeActionValueOpenType.PAGE_INPLACE_LEGACY\n\t),\n\tnumber,\n\tEShapeActionValueOnInputAction,\n\tnumber\n];\n\nexport type EShapeActionValueOpenSerializedNew = [\n\ttypeof EShapeActionValueType.OPEN,\n\tnumber,\n\ttypeof EShapeActionValueOpenType.DIAGRAM | typeof EShapeActionValueOpenType.PAGE,\n\tnumber,\n\t0 | 1\n];\n\nexport type EShapeActionValueOpenSerialized =\n\t| EShapeActionValueOpenSerializedNew\n\t| EShapeActionValueOpenSerializedLegacy1\n\t| EShapeActionValueOpenSerializedLegacy2;\n\nexport class EShapeActionValueOpen extends EShapeActionValueSubtyped<\n\ttypeof EShapeActionValueOpenType.DIAGRAM | typeof EShapeActionValueOpenType.PAGE\n> {\n\treadonly target: string;\n\treadonly inNewWindow: boolean;\n\n\tconstructor(\n\t\tsubtype: typeof EShapeActionValueOpenType.DIAGRAM | typeof EShapeActionValueOpenType.PAGE,\n\t\tcondition: string,\n\t\ttarget: string,\n\t\tinNewWindow: boolean\n\t) {\n\t\tsuper(EShapeActionValueType.OPEN, condition, subtype);\n\t\tthis.target = target;\n\t\tthis.inNewWindow = inNewWindow;\n\t}\n\n\tisEquals(value: EShapeActionValue): boolean {\n\t\treturn (\n\t\t\tsuper.isEquals(value) &&\n\t\t\tvalue instanceof EShapeActionValueOpen &&\n\t\t\tthis.target === value.target &&\n\t\t\tthis.inNewWindow === value.inNewWindow\n\t\t);\n\t}\n\n\ttoRuntime(): EShapeActionRuntimeOpen {\n\t\tswitch (this.subtype) {\n\t\t\tcase EShapeActionValueOpenType.DIAGRAM:\n\t\t\t\treturn new EShapeActionRuntimeOpen(this, DDiagramBaseControllerOpenType.DIAGRAM);\n\t\t\tcase EShapeActionValueOpenType.PAGE:\n\t\t\t\treturn new EShapeActionRuntimeOpen(this, DDiagramBaseControllerOpenType.PAGE);\n\t\t}\n\t}\n\n\tserialize(manager: EShapeResourceManagerSerialization): number {\n\t\tconst conditionId = manager.addResource(this.condition);\n\t\tconst targetId = manager.addResource(this.target);\n\t\tconst inNewWindow = this.inNewWindow ? 1 : 0;\n\t\treturn manager.addResource(\n\t\t\t`[${this.type},${conditionId},${this.subtype},${targetId},${inNewWindow}]`\n\t\t);\n\t}\n\n\tstatic deserialize(\n\t\tserialized: EShapeActionValueOpenSerialized,\n\t\tmanager: EShapeResourceManagerDeserialization\n\t): EShapeActionValueOpen {\n\t\tconst condition = EShapeActionValues.toResource(1, serialized, manager.resources);\n\t\tconst target = EShapeActionValues.toResource(3, serialized, manager.resources);\n\t\treturn new EShapeActionValueOpen(\n\t\t\tthis.toSubType(serialized),\n\t\t\tcondition,\n\t\t\ttarget,\n\t\t\tthis.inNewWindow(serialized)\n\t\t);\n\t}\n\n\tprotected static toSubType(\n\t\tserialized: EShapeActionValueOpenSerialized\n\t): typeof EShapeActionValueOpenType.DIAGRAM | typeof EShapeActionValueOpenType.PAGE {\n\t\tswitch (serialized[2]) {\n\t\t\tcase EShapeActionValueOpenType.DIAGRAM_LEGACY:\n\t\t\t\treturn EShapeActionValueOpenType.DIAGRAM;\n\t\t\tcase EShapeActionValueOpenType.PAGE_LEGACY:\n\t\t\t\treturn EShapeActionValueOpenType.PAGE;\n\t\t\tcase EShapeActionValueOpenType.PAGE_INPLACE_LEGACY:\n\t\t\t\treturn EShapeActionValueOpenType.PAGE;\n\t\t\tcase EShapeActionValueOpenType.DIAGRAM:\n\t\t\t\treturn EShapeActionValueOpenType.DIAGRAM;\n\t\t\tcase EShapeActionValueOpenType.PAGE:\n\t\t\t\treturn EShapeActionValueOpenType.PAGE;\n\t\t}\n\t\treturn EShapeActionValueOpenType.DIAGRAM;\n\t}\n\n\tprotected static inNewWindow(serialized: EShapeActionValueOpenSerialized): boolean {\n\t\tswitch (serialized[2]) {\n\t\t\tcase EShapeActionValueOpenType.DIAGRAM_LEGACY:\n\t\t\t\treturn false;\n\t\t\tcase EShapeActionValueOpenType.PAGE_LEGACY:\n\t\t\t\treturn true;\n\t\t\tcase EShapeActionValueOpenType.PAGE_INPLACE_LEGACY:\n\t\t\t\treturn false;\n\t\t\tcase EShapeActionValueOpenType.DIAGRAM:\n\t\t\tcase EShapeActionValueOpenType.PAGE:\n\t\t\t\treturn !!serialized[4];\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
@@ -59,6 +59,7 @@ export * from "./e-shape-action-runtime-open-dialog-real";
59
59
  export * from "./e-shape-action-runtime-open-dialog-text";
60
60
  export * from "./e-shape-action-runtime-open-dialog-time";
61
61
  export * from "./e-shape-action-runtime-open-dialog";
62
+ export * from "./e-shape-action-runtime-open-dropped";
62
63
  export * from "./e-shape-action-runtime-open";
63
64
  export * from "./e-shape-action-runtime-show-hide-layer";
64
65
  export * from "./e-shape-action-runtime-show-hide-shape";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAA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C;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./deserialize-action-value\";\nexport * from \"./e-shape-action-bases\";\nexport * from \"./e-shape-action-environment\";\nexport * from \"./e-shape-action-expression-with-parameter\";\nexport * from \"./e-shape-action-expression\";\nexport * from \"./e-shape-action-expressions\";\nexport * from \"./e-shape-action-misc-extension\";\nexport * from \"./e-shape-action-misc-extensions\";\nexport * from \"./e-shape-action-open-dialog-extension\";\nexport * from \"./e-shape-action-open-dialog-extensions\";\nexport * from \"./e-shape-action-open-dialog-opener\";\nexport * from \"./e-shape-action-open-extension\";\nexport * from \"./e-shape-action-open-extensions\";\nexport * from \"./e-shape-action-open-opener\";\nexport * from \"./e-shape-action-open-openers\";\nexport * from \"./e-shape-action-runtime-base\";\nexport * from \"./e-shape-action-runtime-blink-brighten\";\nexport * from \"./e-shape-action-runtime-blink-color-fill\";\nexport * from \"./e-shape-action-runtime-blink-color-stroke\";\nexport * from \"./e-shape-action-runtime-blink-darken\";\nexport * from \"./e-shape-action-runtime-blink-opacity\";\nexport * from \"./e-shape-action-runtime-blink-visibility\";\nexport * from \"./e-shape-action-runtime-blink\";\nexport * from \"./e-shape-action-runtime-change-color-brightness\";\nexport * from \"./e-shape-action-runtime-change-color-code\";\nexport * from \"./e-shape-action-runtime-change-color\";\nexport * from \"./e-shape-action-runtime-change-cursor\";\nexport * from \"./e-shape-action-runtime-change-fill-percent\";\nexport * from \"./e-shape-action-runtime-change-text-number\";\nexport * from \"./e-shape-action-runtime-change-text-text\";\nexport * from \"./e-shape-action-runtime-conditional\";\nexport * from \"./e-shape-action-runtime-emit-event\";\nexport * from \"./e-shape-action-runtime-gesture-layer\";\nexport * from \"./e-shape-action-runtime-gesture-shape\";\nexport * from \"./e-shape-action-runtime-misc-emit-event\";\nexport * from \"./e-shape-action-runtime-misc-execute\";\nexport * from \"./e-shape-action-runtime-misc-extension\";\nexport * from \"./e-shape-action-runtime-misc-html-element\";\nexport * from \"./e-shape-action-runtime-misc-input-input\";\nexport * from \"./e-shape-action-runtime-misc-input-integer\";\nexport * from \"./e-shape-action-runtime-misc-input-number\";\nexport * from \"./e-shape-action-runtime-misc-input-real\";\nexport * from \"./e-shape-action-runtime-misc-input-text\";\nexport * from \"./e-shape-action-runtime-misc-input\";\nexport * from \"./e-shape-action-runtime-misc-write-both\";\nexport * from \"./e-shape-action-runtime-misc-write-local\";\nexport * from \"./e-shape-action-runtime-misc-write-remote\";\nexport * from \"./e-shape-action-runtime-misc-write\";\nexport * from \"./e-shape-action-runtime-open-dialog-boolean\";\nexport * from \"./e-shape-action-runtime-open-dialog-date\";\nexport * from \"./e-shape-action-runtime-open-dialog-datetime\";\nexport * from \"./e-shape-action-runtime-open-dialog-extension\";\nexport * from \"./e-shape-action-runtime-open-dialog-integer\";\nexport * from \"./e-shape-action-runtime-open-dialog-real\";\nexport * from \"./e-shape-action-runtime-open-dialog-text\";\nexport * from \"./e-shape-action-runtime-open-dialog-time\";\nexport * from \"./e-shape-action-runtime-open-dialog\";\nexport * from \"./e-shape-action-runtime-open\";\nexport * from \"./e-shape-action-runtime-show-hide-layer\";\nexport * from \"./e-shape-action-runtime-show-hide-shape\";\nexport * from \"./e-shape-action-runtime-show-hide\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-x\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-y\";\nexport * from \"./e-shape-action-runtime-transform-move-forward-or-backward\";\nexport * from \"./e-shape-action-runtime-transform-move-left-or-right\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-x\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-y\";\nexport * from \"./e-shape-action-runtime-transform-move\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize\";\nexport * from \"./e-shape-action-runtime-transform-rotate-absolute\";\nexport * from \"./e-shape-action-runtime-transform-rotate-relative\";\nexport * from \"./e-shape-action-runtime-transform-rotate\";\nexport * from \"./e-shape-action-runtime\";\nexport * from \"./e-shape-action-runtimes\";\nexport * from \"./e-shape-action-value-base\";\nexport * from \"./e-shape-action-value-blink-type\";\nexport * from \"./e-shape-action-value-blink\";\nexport * from \"./e-shape-action-value-change-color-brightness\";\nexport * from \"./e-shape-action-value-change-color-code\";\nexport * from \"./e-shape-action-value-change-color-target\";\nexport * from \"./e-shape-action-value-change-color-type-legacy\";\nexport * from \"./e-shape-action-value-change-color-type\";\nexport * from \"./e-shape-action-value-change-color-types\";\nexport * from \"./e-shape-action-value-change-color\";\nexport * from \"./e-shape-action-value-change-cursor\";\nexport * from \"./e-shape-action-value-change-fill-percent\";\nexport * from \"./e-shape-action-value-change-text-type\";\nexport * from \"./e-shape-action-value-change-text\";\nexport * from \"./e-shape-action-value-deserializers\";\nexport * from \"./e-shape-action-value-emit-event\";\nexport * from \"./e-shape-action-value-gesture-operation-type\";\nexport * from \"./e-shape-action-value-gesture-type\";\nexport * from \"./e-shape-action-value-gesture\";\nexport * from \"./e-shape-action-value-misc-emit-event\";\nexport * from \"./e-shape-action-value-misc-execute\";\nexport * from \"./e-shape-action-value-misc-extension\";\nexport * from \"./e-shape-action-value-misc-html-element\";\nexport * from \"./e-shape-action-value-misc-input\";\nexport * from \"./e-shape-action-value-misc-type\";\nexport * from \"./e-shape-action-value-misc-write\";\nexport * from \"./e-shape-action-value-misc\";\nexport * from \"./e-shape-action-value-on-input-action\";\nexport * from \"./e-shape-action-value-on-input-actions\";\nexport * from \"./e-shape-action-value-open-dialog-extension\";\nexport * from \"./e-shape-action-value-open-dialog-type\";\nexport * from \"./e-shape-action-value-open-dialog\";\nexport * from \"./e-shape-action-value-open-extension\";\nexport * from \"./e-shape-action-value-open-type\";\nexport * from \"./e-shape-action-value-open\";\nexport * from \"./e-shape-action-value-opetyped\";\nexport * from \"./e-shape-action-value-show-hide-layer\";\nexport * from \"./e-shape-action-value-show-hide-shape\";\nexport * from \"./e-shape-action-value-show-hide-type\";\nexport * from \"./e-shape-action-value-show-hide\";\nexport * from \"./e-shape-action-value-subtyped\";\nexport * from \"./e-shape-action-value-transform-move-type\";\nexport * from \"./e-shape-action-value-transform-move\";\nexport * from \"./e-shape-action-value-transform-resize-type\";\nexport * from \"./e-shape-action-value-transform-resize\";\nexport * from \"./e-shape-action-value-transform-rotate-type\";\nexport * from \"./e-shape-action-value-transform-rotate\";\nexport * from \"./e-shape-action-value-transform-type\";\nexport * from \"./e-shape-action-value-type\";\nexport * from \"./e-shape-action-value\";\nexport * from \"./e-shape-action-values\";\nexport * from \"./e-shape-action\";\nexport * from \"./e-shape-actions\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cA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AC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./deserialize-action-value\";\nexport * from \"./e-shape-action-bases\";\nexport * from \"./e-shape-action-environment\";\nexport * from \"./e-shape-action-expression-with-parameter\";\nexport * from \"./e-shape-action-expression\";\nexport * from \"./e-shape-action-expressions\";\nexport * from \"./e-shape-action-misc-extension\";\nexport * from \"./e-shape-action-misc-extensions\";\nexport * from \"./e-shape-action-open-dialog-extension\";\nexport * from \"./e-shape-action-open-dialog-extensions\";\nexport * from \"./e-shape-action-open-dialog-opener\";\nexport * from \"./e-shape-action-open-extension\";\nexport * from \"./e-shape-action-open-extensions\";\nexport * from \"./e-shape-action-open-opener\";\nexport * from \"./e-shape-action-open-openers\";\nexport * from \"./e-shape-action-runtime-base\";\nexport * from \"./e-shape-action-runtime-blink-brighten\";\nexport * from \"./e-shape-action-runtime-blink-color-fill\";\nexport * from \"./e-shape-action-runtime-blink-color-stroke\";\nexport * from \"./e-shape-action-runtime-blink-darken\";\nexport * from \"./e-shape-action-runtime-blink-opacity\";\nexport * from \"./e-shape-action-runtime-blink-visibility\";\nexport * from \"./e-shape-action-runtime-blink\";\nexport * from \"./e-shape-action-runtime-change-color-brightness\";\nexport * from \"./e-shape-action-runtime-change-color-code\";\nexport * from \"./e-shape-action-runtime-change-color\";\nexport * from \"./e-shape-action-runtime-change-cursor\";\nexport * from \"./e-shape-action-runtime-change-fill-percent\";\nexport * from \"./e-shape-action-runtime-change-text-number\";\nexport * from \"./e-shape-action-runtime-change-text-text\";\nexport * from \"./e-shape-action-runtime-conditional\";\nexport * from \"./e-shape-action-runtime-emit-event\";\nexport * from \"./e-shape-action-runtime-gesture-layer\";\nexport * from \"./e-shape-action-runtime-gesture-shape\";\nexport * from \"./e-shape-action-runtime-misc-emit-event\";\nexport * from \"./e-shape-action-runtime-misc-execute\";\nexport * from \"./e-shape-action-runtime-misc-extension\";\nexport * from \"./e-shape-action-runtime-misc-html-element\";\nexport * from \"./e-shape-action-runtime-misc-input-input\";\nexport * from \"./e-shape-action-runtime-misc-input-integer\";\nexport * from \"./e-shape-action-runtime-misc-input-number\";\nexport * from \"./e-shape-action-runtime-misc-input-real\";\nexport * from \"./e-shape-action-runtime-misc-input-text\";\nexport * from \"./e-shape-action-runtime-misc-input\";\nexport * from \"./e-shape-action-runtime-misc-write-both\";\nexport * from \"./e-shape-action-runtime-misc-write-local\";\nexport * from \"./e-shape-action-runtime-misc-write-remote\";\nexport * from \"./e-shape-action-runtime-misc-write\";\nexport * from \"./e-shape-action-runtime-open-dialog-boolean\";\nexport * from \"./e-shape-action-runtime-open-dialog-date\";\nexport * from \"./e-shape-action-runtime-open-dialog-datetime\";\nexport * from \"./e-shape-action-runtime-open-dialog-extension\";\nexport * from \"./e-shape-action-runtime-open-dialog-integer\";\nexport * from \"./e-shape-action-runtime-open-dialog-real\";\nexport * from \"./e-shape-action-runtime-open-dialog-text\";\nexport * from \"./e-shape-action-runtime-open-dialog-time\";\nexport * from \"./e-shape-action-runtime-open-dialog\";\nexport * from \"./e-shape-action-runtime-open-dropped\";\nexport * from \"./e-shape-action-runtime-open\";\nexport * from \"./e-shape-action-runtime-show-hide-layer\";\nexport * from \"./e-shape-action-runtime-show-hide-shape\";\nexport * from \"./e-shape-action-runtime-show-hide\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-x\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-y\";\nexport * from \"./e-shape-action-runtime-transform-move-forward-or-backward\";\nexport * from \"./e-shape-action-runtime-transform-move-left-or-right\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-x\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-y\";\nexport * from \"./e-shape-action-runtime-transform-move\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize\";\nexport * from \"./e-shape-action-runtime-transform-rotate-absolute\";\nexport * from \"./e-shape-action-runtime-transform-rotate-relative\";\nexport * from \"./e-shape-action-runtime-transform-rotate\";\nexport * from \"./e-shape-action-runtime\";\nexport * from \"./e-shape-action-runtimes\";\nexport * from \"./e-shape-action-value-base\";\nexport * from \"./e-shape-action-value-blink-type\";\nexport * from \"./e-shape-action-value-blink\";\nexport * from \"./e-shape-action-value-change-color-brightness\";\nexport * from \"./e-shape-action-value-change-color-code\";\nexport * from \"./e-shape-action-value-change-color-target\";\nexport * from \"./e-shape-action-value-change-color-type-legacy\";\nexport * from \"./e-shape-action-value-change-color-type\";\nexport * from \"./e-shape-action-value-change-color-types\";\nexport * from \"./e-shape-action-value-change-color\";\nexport * from \"./e-shape-action-value-change-cursor\";\nexport * from \"./e-shape-action-value-change-fill-percent\";\nexport * from \"./e-shape-action-value-change-text-type\";\nexport * from \"./e-shape-action-value-change-text\";\nexport * from \"./e-shape-action-value-deserializers\";\nexport * from \"./e-shape-action-value-emit-event\";\nexport * from \"./e-shape-action-value-gesture-operation-type\";\nexport * from \"./e-shape-action-value-gesture-type\";\nexport * from \"./e-shape-action-value-gesture\";\nexport * from \"./e-shape-action-value-misc-emit-event\";\nexport * from \"./e-shape-action-value-misc-execute\";\nexport * from \"./e-shape-action-value-misc-extension\";\nexport * from \"./e-shape-action-value-misc-html-element\";\nexport * from \"./e-shape-action-value-misc-input\";\nexport * from \"./e-shape-action-value-misc-type\";\nexport * from \"./e-shape-action-value-misc-write\";\nexport * from \"./e-shape-action-value-misc\";\nexport * from \"./e-shape-action-value-on-input-action\";\nexport * from \"./e-shape-action-value-on-input-actions\";\nexport * from \"./e-shape-action-value-open-dialog-extension\";\nexport * from \"./e-shape-action-value-open-dialog-type\";\nexport * from \"./e-shape-action-value-open-dialog\";\nexport * from \"./e-shape-action-value-open-extension\";\nexport * from \"./e-shape-action-value-open-type\";\nexport * from \"./e-shape-action-value-open\";\nexport * from \"./e-shape-action-value-opetyped\";\nexport * from \"./e-shape-action-value-show-hide-layer\";\nexport * from \"./e-shape-action-value-show-hide-shape\";\nexport * from \"./e-shape-action-value-show-hide-type\";\nexport * from \"./e-shape-action-value-show-hide\";\nexport * from \"./e-shape-action-value-subtyped\";\nexport * from \"./e-shape-action-value-transform-move-type\";\nexport * from \"./e-shape-action-value-transform-move\";\nexport * from \"./e-shape-action-value-transform-resize-type\";\nexport * from \"./e-shape-action-value-transform-resize\";\nexport * from \"./e-shape-action-value-transform-rotate-type\";\nexport * from \"./e-shape-action-value-transform-rotate\";\nexport * from \"./e-shape-action-value-transform-type\";\nexport * from \"./e-shape-action-value-type\";\nexport * from \"./e-shape-action-value\";\nexport * from \"./e-shape-action-values\";\nexport * from \"./e-shape-action\";\nexport * from \"./e-shape-actions\";\n"]}
@@ -73,6 +73,38 @@ var EShapeRuntimeImpl = /** @class */ (function () {
73
73
  // Done
74
74
  return false;
75
75
  };
76
+ EShapeRuntimeImpl.prototype.isDraggable = function (shape, e) {
77
+ var state = shape.state;
78
+ var wasDragged = state.isDragged;
79
+ try {
80
+ // State
81
+ if (state.isActionable) {
82
+ state.isDragged = true;
83
+ }
84
+ // Actions
85
+ var actions = this.actions;
86
+ for (var i = 0, imax = actions.length; i < imax; ++i) {
87
+ if (actions[i].isDraggable(shape, this, e)) {
88
+ return true;
89
+ }
90
+ }
91
+ // Done
92
+ return false;
93
+ }
94
+ finally {
95
+ state.isDragged = wasDragged;
96
+ }
97
+ };
98
+ EShapeRuntimeImpl.prototype.onDragStart = function (shape, e, interactionManager) {
99
+ var result = false;
100
+ var actions = this.actions;
101
+ for (var i = 0, imax = actions.length; i < imax; ++i) {
102
+ if (actions[i].onDragStart(shape, this, e, interactionManager)) {
103
+ result = true;
104
+ }
105
+ }
106
+ return result;
107
+ };
76
108
  EShapeRuntimeImpl.prototype.onOver = function (shape, e) {
77
109
  var state = shape.state;
78
110
  if (!state.isHovered) {
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-runtime-impl.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-runtime-impl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAIhE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D;IAkCC,2BAAY,KAAa;QACxB,IAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;QAClC,IAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;QACpB,IAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,K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,CAAC;gBAC1C,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;YAC1C,CAAC;YACD,IAAI,MAAM,GAAG,kBAAkB,CAAC,IAAI,EAAE,CAAC;gBACtC,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;YACpC,CAAC;YACD,IAAI,MAAM,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;gBACxC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC5B,CAAC;QACF,CAAC;IACF,CAAC;IA9fe,kCAAgB,GAAG;QAClC,WAAW,CAAC,OAAO;QACnB,WAAW,CAAC,WAAW;QACvB,WAAW,CAAC,IAAI;QAChB,WAAW,CAAC,EAAE;QACd,WAAW,CAAC,UAAU;QAEtB,WAAW,CAAC,aAAa;QACzB,WAAW,CAAC,UAAU;QACtB,WAAW,CAAC,QAAQ;QACpB,WAAW,CAAC,gBAAgB;QAE5B,WAAW,CAAC,SAAS;QACrB,WAAW,CAAC,WAAW;KACvB,CAAC;IAifH,wBAAC;CAAA,AAhgBD,IAggBC;SAhgBY,iBAAiB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Renderer } from \"pixi.js\";\nimport { DApplications } from \"../d-applications\";\nimport { UtilKeyboardEvent } from \"../util/util-keyboard-event\";\nimport { EShapeActionRuntime } from \"./action/e-shape-action-runtime\";\nimport { EShape } from \"./e-shape\";\nimport { EShapeFillLike } from \"./e-shape-fill\";\nimport { EShapeState } from \"./e-shape-state\";\nimport { EShapeStrokeLike } from \"./e-shape-stroke\";\nimport { EShapeTextLike } from \"./e-shape-text\";\nimport { DBaseState } from \"../d-base-state\";\nimport { DBaseStateSet } from \"../d-base-state-set\";\nimport { EShapeRuntime } from \"./e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"./e-shape-runtime-reset\";\nimport { EShapeLockPart } from \"./variant/e-shape-lock-part\";\n\nexport class EShapeRuntimeImpl implements EShapeRuntime {\n\tstatic readonly TRANSIENT_STATES = [\n\t\tEShapeState.CLICKED,\n\t\tEShapeState.DBL_CLICKED,\n\t\tEShapeState.DOWN,\n\t\tEShapeState.UP,\n\t\tEShapeState.UP_OUTSIDE,\n\n\t\tEShapeState.RIGHT_CLICKED,\n\t\tEShapeState.RIGHT_DOWN,\n\t\tEShapeState.RIGHT_UP,\n\t\tEShapeState.RIGHT_UP_OUTSIDE,\n\n\t\tEShapeState.ACTIVATED,\n\t\tEShapeState.DEACTIVATED\n\t];\n\n\treadonly x: number;\n\treadonly y: number;\n\treadonly sizeX: number;\n\treadonly sizeY: number;\n\treadonly rotation: number;\n\treadonly actions: EShapeActionRuntime[];\n\treadonly fill: EShapeFillLike;\n\treadonly stroke: EShapeStrokeLike;\n\treadonly text: EShapeTextLike;\n\treadonly cursor?: string;\n\treadonly interactive: boolean;\n\n\treset: EShapeRuntimeReset;\n\twritten: EShapeRuntimeReset;\n\teffect: number;\n\tisStateChanged: boolean;\n\n\tconstructor(shape: EShape) {\n\t\tconst transform = shape.transform;\n\t\tconst position = transform.position;\n\t\tthis.x = position.x;\n\t\tthis.y = position.y;\n\t\tconst size = shape.size;\n\t\tthis.sizeX = size.x;\n\t\tthis.sizeY = size.y;\n\t\tthis.rotation = transform.rotation;\n\t\tthis.actions = [];\n\t\tthis.fill = shape.fill.toObject();\n\t\tthis.stroke = shape.stroke.toObject();\n\t\tthis.text = shape.text.toObject();\n\t\tthis.cursor = shape.cursor;\n\t\tthis.reset = EShapeRuntimeReset.NONE;\n\t\tthis.written = EShapeRuntimeReset.NONE;\n\t\tthis.effect = -1;\n\t\tthis.isStateChanged = false;\n\t\tthis.interactive = false;\n\t}\n\n\tinitialize(shape: EShape): void {\n\t\tshape.lock(EShapeLockPart.UPLOADED);\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].initialize(shape, this);\n\t\t}\n\t\tshape.unlock(EShapeLockPart.UPLOADED, true);\n\t}\n\n\tisActionable(): boolean {\n\t\treturn 0 < this.actions.length;\n\t}\n\n\tonResize(shape: EShape): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onResize(shape, this);\n\t\t}\n\t}\n\n\tonClick(shape: EShape, e: InteractionEvent | KeyboardEvent): void {\n\t\t// State\n\t\tconst state = shape.state;\n\t\tif (state.isActionable) {\n\t\t\tstate.isClicked = true;\n\t\t}\n\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onClick(shape, this, e);\n\t\t}\n\t}\n\n\tonDblClick(\n\t\tshape: EShape,\n\t\te: MouseEvent | TouchEvent,\n\t\tinteractionManager: InteractionManager\n\t): boolean {\n\t\t// State\n\t\tconst state = shape.state;\n\t\tif (state.isActionable) {\n\t\t\tstate.isDblClicked = true;\n\t\t}\n\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onDblClick(shape, this, e, interactionManager);\n\t\t}\n\n\t\t// Done\n\t\treturn false;\n\t}\n\n\tonOver(shape: EShape, e: InteractionEvent): void {\n\t\tconst state = shape.state;\n\t\tif (!state.isHovered) {\n\t\t\t// State\n\t\t\tstate.isHovered = true;\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tactions[i].onOver(shape, this, e);\n\t\t\t}\n\t\t}\n\t}\n\n\tonOut(shape: EShape, e: InteractionEvent): void {\n\t\tconst state = shape.state;\n\t\tif (state.isHovered) {\n\t\t\t// State\n\t\t\tshape.state.isHovered = false;\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tactions[i].onOut(shape, this, e);\n\t\t\t}\n\t\t}\n\t}\n\n\tonDown(shape: EShape, e: InteractionEvent | KeyboardEvent): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onDowning(shape, this, e);\n\t\t}\n\n\t\tconst state = shape.state;\n\t\tif (!state.isDown) {\n\t\t\tif (!state.isPressed) {\n\t\t\t\t// State\n\t\t\t\tstate.addAll(EShapeState.DOWN, DBaseState.PRESSED);\n\n\t\t\t\t// Focus\n\t\t\t\tconst layer = DApplications.getLayer(shape);\n\t\t\t\tif (layer) {\n\t\t\t\t\t// Focus\n\t\t\t\t\tconst focusController = layer.getFocusController();\n\t\t\t\t\tfocusController.focus(focusController.findParent(shape));\n\t\t\t\t}\n\n\t\t\t\t// Actions\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tconst action = actions[i];\n\t\t\t\t\taction.onDown(shape, this, e);\n\t\t\t\t\taction.onPressed(shape, this, e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// State\n\t\t\t\tstate.isDown = true;\n\n\t\t\t\t// Focus\n\t\t\t\tconst layer = DApplications.getLayer(shape);\n\t\t\t\tif (layer) {\n\t\t\t\t\tconst focusController = layer.getFocusController();\n\t\t\t\t\tfocusController.focus(focusController.findParent(shape));\n\t\t\t\t}\n\n\t\t\t\t// Actions\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tactions[i].onDown(shape, this, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tonUp(shape: EShape, e: InteractionEvent | KeyboardEvent): void {\n\t\tconst state = shape.state;\n\t\tif (!state.isUp) {\n\t\t\tif (state.isPressed) {\n\t\t\t\t// State\n\t\t\t\tstate.set(EShapeState.UP, DBaseState.PRESSED);\n\n\t\t\t\t// Actions\n\t\t\t\tconst actions = this.actions;\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tconst action = actions[i];\n\t\t\t\t\taction.onUp(shape, this, e);\n\t\t\t\t\taction.onUnpressed(shape, this, e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// State\n\t\t\t\tstate.isUp = true;\n\n\t\t\t\t// Actions\n\t\t\t\tconst actions = this.actions;\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tactions[i].onUp(shape, this, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tonUpOutside(shape: EShape, e: InteractionEvent): void {\n\t\tconst state = shape.state;\n\t\tif (state.isPressed) {\n\t\t\t// State\n\t\t\tstate.set(EShapeState.UP_OUTSIDE, DBaseState.PRESSED);\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tconst action = actions[i];\n\t\t\t\taction.onUpOutside(shape, this, e);\n\t\t\t\taction.onUnpressed(shape, this, e);\n\t\t\t}\n\t\t} else {\n\t\t\t// State\n\t\t\tstate.isUpOutside = true;\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tactions[i].onUpOutside(shape, this, e);\n\t\t\t}\n\t\t}\n\t}\n\n\tonMove(shape: EShape, e: InteractionEvent): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onMove(shape, this, e);\n\t\t}\n\t}\n\n\tonKeyDown(shape: EShape, e: KeyboardEvent): boolean {\n\t\t// State\n\t\tif (UtilKeyboardEvent.isActivateKey(e)) {\n\t\t\tthis.onDown(shape, e);\n\t\t}\n\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onKeyDown(shape, this, e);\n\t\t}\n\n\t\t// Done\n\t\treturn false;\n\t}\n\n\tonKeyUp(shape: EShape, e: KeyboardEvent): boolean {\n\t\t// State\n\t\tif (UtilKeyboardEvent.isActivateKey(e)) {\n\t\t\tconst state = shape.state;\n\t\t\tif (state.isPressed) {\n\t\t\t\tconst wasUp = state.isUp;\n\t\t\t\tthis.onUp(shape, e);\n\t\t\t\tif (!wasUp && state.isUp) {\n\t\t\t\t\tthis.onClick(shape, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onKeyUp(shape, this, e);\n\t\t}\n\n\t\t// Done\n\t\treturn false;\n\t}\n\n\tonStateChange(shape: EShape, newState: DBaseStateSet, oldState: DBaseStateSet): void {\n\t\tthis.isStateChanged = true;\n\t\tDApplications.update(shape);\n\n\t\tif (newState.isFocused) {\n\t\t\tif (!oldState.isFocused) {\n\t\t\t\tthis.onFocus(shape);\n\t\t\t}\n\t\t} else if (oldState.isFocused) {\n\t\t\tthis.onBlur(shape);\n\t\t}\n\t}\n\n\tonFocus(shape: EShape): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onFocus(shape, this);\n\t\t}\n\t}\n\n\tonBlur(shape: EShape): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onBlur(shape, this);\n\t\t}\n\t}\n\n\tonRightClick(shape: EShape, e: InteractionEvent): void {\n\t\t// State\n\t\tconst state = shape.state;\n\t\tif (state.isActionable) {\n\t\t\tstate.isRightClicked = true;\n\t\t}\n\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onRightClick(shape, this, e);\n\t\t}\n\t}\n\n\tonRightDown(shape: EShape, e: InteractionEvent): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onRightDowning(shape, this, e);\n\t\t}\n\n\t\tconst state = shape.state;\n\t\tif (!state.isRightDown) {\n\t\t\tif (state.isRightPressed) {\n\t\t\t\t// State\n\t\t\t\tstate.addAll(EShapeState.RIGHT_DOWN, EShapeState.RIGHT_PRESSED);\n\n\t\t\t\t// Focus\n\t\t\t\tconst layer = DApplications.getLayer(shape);\n\t\t\t\tif (layer) {\n\t\t\t\t\t// Focus\n\t\t\t\t\tconst focusController = layer.getFocusController();\n\t\t\t\t\tfocusController.focus(focusController.findParent(shape));\n\t\t\t\t}\n\n\t\t\t\t// Actions\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tconst action = actions[i];\n\t\t\t\t\taction.onRightDown(shape, this, e);\n\t\t\t\t\taction.onRightPressed(shape, this, e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// State\n\t\t\t\tstate.isRightDown = false;\n\n\t\t\t\t// Focus\n\t\t\t\tconst layer = DApplications.getLayer(shape);\n\t\t\t\tif (layer) {\n\t\t\t\t\tconst focusController = layer.getFocusController();\n\t\t\t\t\tfocusController.focus(focusController.findParent(shape));\n\t\t\t\t}\n\n\t\t\t\t// Actions\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tactions[i].onRightDown(shape, this, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tonRightUp(shape: EShape, e: InteractionEvent): void {\n\t\tconst state = shape.state;\n\t\tif (!state.isRightUp) {\n\t\t\tif (state.isRightPressed) {\n\t\t\t\t// State\n\t\t\t\tstate.set(EShapeState.RIGHT_UP, EShapeState.RIGHT_PRESSED);\n\n\t\t\t\t// Actions\n\t\t\t\tconst actions = this.actions;\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tconst action = actions[i];\n\t\t\t\t\taction.onRightUp(shape, this, e);\n\t\t\t\t\taction.onRightUnpressed(shape, this, e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// State\n\t\t\t\tstate.isRightUp = true;\n\n\t\t\t\t// Actions\n\t\t\t\tconst actions = this.actions;\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tactions[i].onRightUp(shape, this, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tonRightUpOutside(shape: EShape, e: InteractionEvent): void {\n\t\tconst state = shape.state;\n\t\tif (state.isRightPressed) {\n\t\t\t// State\n\t\t\tstate.set(EShapeState.RIGHT_UP_OUTSIDE, EShapeState.RIGHT_PRESSED);\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tconst action = actions[i];\n\t\t\t\taction.onRightUpOutside(shape, this, e);\n\t\t\t\taction.onRightUnpressed(shape, this, e);\n\t\t\t}\n\t\t} else {\n\t\t\t// State\n\t\t\tstate.isRightUpOutside = true;\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tactions[i].onRightUpOutside(shape, this, e);\n\t\t\t}\n\t\t}\n\t}\n\n\tupdate(shape: EShape, time: number): void {\n\t\tconst data = shape.data;\n\t\tconst effect = this.effect;\n\t\tconst isEffectTimeUp = 0 <= effect && effect <= time;\n\t\tif (data.isChanged || this.isStateChanged || isEffectTimeUp) {\n\t\t\tthis.isStateChanged = false;\n\t\t\tdata.isChanged = false;\n\t\t\tif (isEffectTimeUp) {\n\t\t\t\tthis.effect = -1;\n\t\t\t}\n\t\t\tshape.lock(EShapeLockPart.UPLOADED);\n\t\t\tthis.onUpdate(shape, time);\n\t\t\tshape.unlock(EShapeLockPart.UPLOADED, true);\n\t\t\tconst wasStateChanged = this.isStateChanged;\n\t\t\tshape.state.removeAll(EShapeRuntimeImpl.TRANSIENT_STATES);\n\t\t\tthis.isStateChanged = wasStateChanged;\n\t\t}\n\t}\n\n\tonRender(shape: EShape, time: number, renderer: Renderer): void {\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onRender(shape, this, time, renderer);\n\t\t}\n\t\tthis.update(shape, time);\n\t}\n\n\tprotected onUpdate(shape: EShape, time: number): void {\n\t\tconst actions = this.actions;\n\t\tif (0 < actions.length) {\n\t\t\tthis.written = EShapeRuntimeReset.NONE;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tactions[i].execute(shape, this, time);\n\t\t\t}\n\t\t\tthis.doReset(shape);\n\t\t}\n\t}\n\n\tprotected doReset(shape: EShape): void {\n\t\tconst target = ~this.written & this.reset;\n\t\tif (target !== EShapeRuntimeReset.NONE) {\n\t\t\tif (target & EShapeRuntimeReset.POSITION_X) {\n\t\t\t\tshape.transform.position.x = this.x;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.POSITION_Y) {\n\t\t\t\tshape.transform.position.y = this.y;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.VISIBILITY) {\n\t\t\t\tshape.visible = true;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.COLOR_FILL) {\n\t\t\t\tconst fill = this.fill;\n\t\t\t\tshape.fill.set(undefined, fill.color, fill.alpha);\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.COLOR_STROKE) {\n\t\t\t\tconst stroke = this.stroke;\n\t\t\t\tshape.stroke.set(undefined, stroke.color, stroke.alpha);\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.FILL_PERCENT) {\n\t\t\t\tconst fill = this.fill;\n\t\t\t\tshape.fill.set(undefined, undefined, undefined, undefined, fill.percent);\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.COLOR_TEXT) {\n\t\t\t\tconst text = this.text;\n\t\t\t\tshape.text.set(undefined, text.color, text.alpha);\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.COLOR_TEXT_OUTLINE) {\n\t\t\t\tconst outline = this.text.outline;\n\t\t\t\tshape.text.outline.set(undefined, outline.color, outline.alpha);\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.HEIGHT) {\n\t\t\t\tshape.size.y = this.sizeY;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.WIDTH) {\n\t\t\t\tshape.size.x = this.sizeX;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.ROTATION) {\n\t\t\t\tshape.transform.rotation = this.rotation;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.TEXT) {\n\t\t\t\tshape.text.value = this.text.value;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.CURSOR) {\n\t\t\t\tshape.cursor = this.cursor;\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-runtime-impl.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-runtime-impl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAIhE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D;IAkCC,2BAAY,KAAa;QACxB,IAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;QAClC,IAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAA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AI,MAAM,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;gBACxC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAC3B,CAAC;YACD,IAAI,MAAM,GAAG,kBAAkB,CAAC,KAAK,EAAE,CAAC;gBACvC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YAC3B,CAAC;YACD,IAAI,MAAM,GAAG,kBAAkB,CAAC,QAAQ,EAAE,CAAC;gBAC1C,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;YAC1C,CAAC;YACD,IAAI,MAAM,GAAG,kBAAkB,CAAC,IAAI,EAAE,CAAC;gBACtC,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;YACpC,CAAC;YACD,IAAI,MAAM,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;gBACxC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC5B,CAAC;QACF,CAAC;IACF,CAAC;IAjiBe,kCAAgB,GAAG;QAClC,WAAW,CAAC,OAAO;QACnB,WAAW,CAAC,WAAW;QACvB,WAAW,CAAC,IAAI;QAChB,WAAW,CAAC,EAAE;QACd,WAAW,CAAC,UAAU;QAEtB,WAAW,CAAC,aAAa;QACzB,WAAW,CAAC,UAAU;QACtB,WAAW,CAAC,QAAQ;QACpB,WAAW,CAAC,gBAAgB;QAE5B,WAAW,CAAC,SAAS;QACrB,WAAW,CAAC,WAAW;KACvB,CAAC;IAohBH,wBAAC;CAAA,AAniBD,IAmiBC;SAniBY,iBAAiB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Renderer } from \"pixi.js\";\nimport { DApplications } from \"../d-applications\";\nimport { UtilKeyboardEvent } from \"../util/util-keyboard-event\";\nimport { EShapeActionRuntime } from \"./action/e-shape-action-runtime\";\nimport { EShape } from \"./e-shape\";\nimport { EShapeFillLike } from \"./e-shape-fill\";\nimport { EShapeState } from \"./e-shape-state\";\nimport { EShapeStrokeLike } from \"./e-shape-stroke\";\nimport { EShapeTextLike } from \"./e-shape-text\";\nimport { DBaseState } from \"../d-base-state\";\nimport { DBaseStateSet } from \"../d-base-state-set\";\nimport { EShapeRuntime } from \"./e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"./e-shape-runtime-reset\";\nimport { EShapeLockPart } from \"./variant/e-shape-lock-part\";\n\nexport class EShapeRuntimeImpl implements EShapeRuntime {\n\tstatic readonly TRANSIENT_STATES = [\n\t\tEShapeState.CLICKED,\n\t\tEShapeState.DBL_CLICKED,\n\t\tEShapeState.DOWN,\n\t\tEShapeState.UP,\n\t\tEShapeState.UP_OUTSIDE,\n\n\t\tEShapeState.RIGHT_CLICKED,\n\t\tEShapeState.RIGHT_DOWN,\n\t\tEShapeState.RIGHT_UP,\n\t\tEShapeState.RIGHT_UP_OUTSIDE,\n\n\t\tEShapeState.ACTIVATED,\n\t\tEShapeState.DEACTIVATED\n\t];\n\n\treadonly x: number;\n\treadonly y: number;\n\treadonly sizeX: number;\n\treadonly sizeY: number;\n\treadonly rotation: number;\n\treadonly actions: EShapeActionRuntime[];\n\treadonly fill: EShapeFillLike;\n\treadonly stroke: EShapeStrokeLike;\n\treadonly text: EShapeTextLike;\n\treadonly cursor?: string;\n\treadonly interactive: boolean;\n\n\treset: EShapeRuntimeReset;\n\twritten: EShapeRuntimeReset;\n\teffect: number;\n\tisStateChanged: boolean;\n\n\tconstructor(shape: EShape) {\n\t\tconst transform = shape.transform;\n\t\tconst position = transform.position;\n\t\tthis.x = position.x;\n\t\tthis.y = position.y;\n\t\tconst size = shape.size;\n\t\tthis.sizeX = size.x;\n\t\tthis.sizeY = size.y;\n\t\tthis.rotation = transform.rotation;\n\t\tthis.actions = [];\n\t\tthis.fill = shape.fill.toObject();\n\t\tthis.stroke = shape.stroke.toObject();\n\t\tthis.text = shape.text.toObject();\n\t\tthis.cursor = shape.cursor;\n\t\tthis.reset = EShapeRuntimeReset.NONE;\n\t\tthis.written = EShapeRuntimeReset.NONE;\n\t\tthis.effect = -1;\n\t\tthis.isStateChanged = false;\n\t\tthis.interactive = false;\n\t}\n\n\tinitialize(shape: EShape): void {\n\t\tshape.lock(EShapeLockPart.UPLOADED);\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].initialize(shape, this);\n\t\t}\n\t\tshape.unlock(EShapeLockPart.UPLOADED, true);\n\t}\n\n\tisActionable(): boolean {\n\t\treturn 0 < this.actions.length;\n\t}\n\n\tonResize(shape: EShape): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onResize(shape, this);\n\t\t}\n\t}\n\n\tonClick(shape: EShape, e: InteractionEvent | KeyboardEvent): void {\n\t\t// State\n\t\tconst state = shape.state;\n\t\tif (state.isActionable) {\n\t\t\tstate.isClicked = true;\n\t\t}\n\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onClick(shape, this, e);\n\t\t}\n\t}\n\n\tonDblClick(\n\t\tshape: EShape,\n\t\te: MouseEvent | TouchEvent,\n\t\tinteractionManager: InteractionManager\n\t): boolean {\n\t\t// State\n\t\tconst state = shape.state;\n\t\tif (state.isActionable) {\n\t\t\tstate.isDblClicked = true;\n\t\t}\n\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onDblClick(shape, this, e, interactionManager);\n\t\t}\n\n\t\t// Done\n\t\treturn false;\n\t}\n\n\tisDraggable(shape: EShape, e: InteractionEvent): boolean {\n\t\tconst state = shape.state;\n\t\tconst wasDragged = state.isDragged;\n\t\ttry {\n\t\t\t// State\n\t\t\tif (state.isActionable) {\n\t\t\t\tstate.isDragged = true;\n\t\t\t}\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tif (actions[i].isDraggable(shape, this, e)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Done\n\t\t\treturn false;\n\t\t} finally {\n\t\t\tstate.isDragged = wasDragged;\n\t\t}\n\t}\n\n\tonDragStart(shape: EShape, e: DragEvent, interactionManager: InteractionManager): boolean {\n\t\tlet result = false;\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tif (actions[i].onDragStart(shape, this, e, interactionManager)) {\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tonOver(shape: EShape, e: InteractionEvent): void {\n\t\tconst state = shape.state;\n\t\tif (!state.isHovered) {\n\t\t\t// State\n\t\t\tstate.isHovered = true;\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tactions[i].onOver(shape, this, e);\n\t\t\t}\n\t\t}\n\t}\n\n\tonOut(shape: EShape, e: InteractionEvent): void {\n\t\tconst state = shape.state;\n\t\tif (state.isHovered) {\n\t\t\t// State\n\t\t\tshape.state.isHovered = false;\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tactions[i].onOut(shape, this, e);\n\t\t\t}\n\t\t}\n\t}\n\n\tonDown(shape: EShape, e: InteractionEvent | KeyboardEvent): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onDowning(shape, this, e);\n\t\t}\n\n\t\tconst state = shape.state;\n\t\tif (!state.isDown) {\n\t\t\tif (!state.isPressed) {\n\t\t\t\t// State\n\t\t\t\tstate.addAll(EShapeState.DOWN, DBaseState.PRESSED);\n\n\t\t\t\t// Focus\n\t\t\t\tconst layer = DApplications.getLayer(shape);\n\t\t\t\tif (layer) {\n\t\t\t\t\t// Focus\n\t\t\t\t\tconst focusController = layer.getFocusController();\n\t\t\t\t\tfocusController.focus(focusController.findParent(shape));\n\t\t\t\t}\n\n\t\t\t\t// Actions\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tconst action = actions[i];\n\t\t\t\t\taction.onDown(shape, this, e);\n\t\t\t\t\taction.onPressed(shape, this, e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// State\n\t\t\t\tstate.isDown = true;\n\n\t\t\t\t// Focus\n\t\t\t\tconst layer = DApplications.getLayer(shape);\n\t\t\t\tif (layer) {\n\t\t\t\t\tconst focusController = layer.getFocusController();\n\t\t\t\t\tfocusController.focus(focusController.findParent(shape));\n\t\t\t\t}\n\n\t\t\t\t// Actions\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tactions[i].onDown(shape, this, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tonUp(shape: EShape, e: InteractionEvent | KeyboardEvent): void {\n\t\tconst state = shape.state;\n\t\tif (!state.isUp) {\n\t\t\tif (state.isPressed) {\n\t\t\t\t// State\n\t\t\t\tstate.set(EShapeState.UP, DBaseState.PRESSED);\n\n\t\t\t\t// Actions\n\t\t\t\tconst actions = this.actions;\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tconst action = actions[i];\n\t\t\t\t\taction.onUp(shape, this, e);\n\t\t\t\t\taction.onUnpressed(shape, this, e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// State\n\t\t\t\tstate.isUp = true;\n\n\t\t\t\t// Actions\n\t\t\t\tconst actions = this.actions;\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tactions[i].onUp(shape, this, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tonUpOutside(shape: EShape, e: InteractionEvent | DragEvent): void {\n\t\tconst state = shape.state;\n\t\tif (state.isPressed) {\n\t\t\t// State\n\t\t\tstate.set(EShapeState.UP_OUTSIDE, DBaseState.PRESSED);\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tconst action = actions[i];\n\t\t\t\taction.onUpOutside(shape, this, e);\n\t\t\t\taction.onUnpressed(shape, this, e);\n\t\t\t}\n\t\t} else {\n\t\t\t// State\n\t\t\tstate.isUpOutside = true;\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tactions[i].onUpOutside(shape, this, e);\n\t\t\t}\n\t\t}\n\t}\n\n\tonMove(shape: EShape, e: InteractionEvent): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onMove(shape, this, e);\n\t\t}\n\t}\n\n\tonKeyDown(shape: EShape, e: KeyboardEvent): boolean {\n\t\t// State\n\t\tif (UtilKeyboardEvent.isActivateKey(e)) {\n\t\t\tthis.onDown(shape, e);\n\t\t}\n\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onKeyDown(shape, this, e);\n\t\t}\n\n\t\t// Done\n\t\treturn false;\n\t}\n\n\tonKeyUp(shape: EShape, e: KeyboardEvent): boolean {\n\t\t// State\n\t\tif (UtilKeyboardEvent.isActivateKey(e)) {\n\t\t\tconst state = shape.state;\n\t\t\tif (state.isPressed) {\n\t\t\t\tconst wasUp = state.isUp;\n\t\t\t\tthis.onUp(shape, e);\n\t\t\t\tif (!wasUp && state.isUp) {\n\t\t\t\t\tthis.onClick(shape, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onKeyUp(shape, this, e);\n\t\t}\n\n\t\t// Done\n\t\treturn false;\n\t}\n\n\tonStateChange(shape: EShape, newState: DBaseStateSet, oldState: DBaseStateSet): void {\n\t\tthis.isStateChanged = true;\n\t\tDApplications.update(shape);\n\n\t\tif (newState.isFocused) {\n\t\t\tif (!oldState.isFocused) {\n\t\t\t\tthis.onFocus(shape);\n\t\t\t}\n\t\t} else if (oldState.isFocused) {\n\t\t\tthis.onBlur(shape);\n\t\t}\n\t}\n\n\tonFocus(shape: EShape): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onFocus(shape, this);\n\t\t}\n\t}\n\n\tonBlur(shape: EShape): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onBlur(shape, this);\n\t\t}\n\t}\n\n\tonRightClick(shape: EShape, e: InteractionEvent): void {\n\t\t// State\n\t\tconst state = shape.state;\n\t\tif (state.isActionable) {\n\t\t\tstate.isRightClicked = true;\n\t\t}\n\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onRightClick(shape, this, e);\n\t\t}\n\t}\n\n\tonRightDown(shape: EShape, e: InteractionEvent): void {\n\t\t// Actions\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onRightDowning(shape, this, e);\n\t\t}\n\n\t\tconst state = shape.state;\n\t\tif (!state.isRightDown) {\n\t\t\tif (state.isRightPressed) {\n\t\t\t\t// State\n\t\t\t\tstate.addAll(EShapeState.RIGHT_DOWN, EShapeState.RIGHT_PRESSED);\n\n\t\t\t\t// Focus\n\t\t\t\tconst layer = DApplications.getLayer(shape);\n\t\t\t\tif (layer) {\n\t\t\t\t\t// Focus\n\t\t\t\t\tconst focusController = layer.getFocusController();\n\t\t\t\t\tfocusController.focus(focusController.findParent(shape));\n\t\t\t\t}\n\n\t\t\t\t// Actions\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tconst action = actions[i];\n\t\t\t\t\taction.onRightDown(shape, this, e);\n\t\t\t\t\taction.onRightPressed(shape, this, e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// State\n\t\t\t\tstate.isRightDown = false;\n\n\t\t\t\t// Focus\n\t\t\t\tconst layer = DApplications.getLayer(shape);\n\t\t\t\tif (layer) {\n\t\t\t\t\tconst focusController = layer.getFocusController();\n\t\t\t\t\tfocusController.focus(focusController.findParent(shape));\n\t\t\t\t}\n\n\t\t\t\t// Actions\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tactions[i].onRightDown(shape, this, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tonRightUp(shape: EShape, e: InteractionEvent): void {\n\t\tconst state = shape.state;\n\t\tif (!state.isRightUp) {\n\t\t\tif (state.isRightPressed) {\n\t\t\t\t// State\n\t\t\t\tstate.set(EShapeState.RIGHT_UP, EShapeState.RIGHT_PRESSED);\n\n\t\t\t\t// Actions\n\t\t\t\tconst actions = this.actions;\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tconst action = actions[i];\n\t\t\t\t\taction.onRightUp(shape, this, e);\n\t\t\t\t\taction.onRightUnpressed(shape, this, e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// State\n\t\t\t\tstate.isRightUp = true;\n\n\t\t\t\t// Actions\n\t\t\t\tconst actions = this.actions;\n\t\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\t\tactions[i].onRightUp(shape, this, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tonRightUpOutside(shape: EShape, e: InteractionEvent): void {\n\t\tconst state = shape.state;\n\t\tif (state.isRightPressed) {\n\t\t\t// State\n\t\t\tstate.set(EShapeState.RIGHT_UP_OUTSIDE, EShapeState.RIGHT_PRESSED);\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tconst action = actions[i];\n\t\t\t\taction.onRightUpOutside(shape, this, e);\n\t\t\t\taction.onRightUnpressed(shape, this, e);\n\t\t\t}\n\t\t} else {\n\t\t\t// State\n\t\t\tstate.isRightUpOutside = true;\n\n\t\t\t// Actions\n\t\t\tconst actions = this.actions;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tactions[i].onRightUpOutside(shape, this, e);\n\t\t\t}\n\t\t}\n\t}\n\n\tupdate(shape: EShape, time: number): void {\n\t\tconst data = shape.data;\n\t\tconst effect = this.effect;\n\t\tconst isEffectTimeUp = 0 <= effect && effect <= time;\n\t\tif (data.isChanged || this.isStateChanged || isEffectTimeUp) {\n\t\t\tthis.isStateChanged = false;\n\t\t\tdata.isChanged = false;\n\t\t\tif (isEffectTimeUp) {\n\t\t\t\tthis.effect = -1;\n\t\t\t}\n\t\t\tshape.lock(EShapeLockPart.UPLOADED);\n\t\t\tthis.onUpdate(shape, time);\n\t\t\tshape.unlock(EShapeLockPart.UPLOADED, true);\n\t\t\tconst wasStateChanged = this.isStateChanged;\n\t\t\tshape.state.removeAll(EShapeRuntimeImpl.TRANSIENT_STATES);\n\t\t\tthis.isStateChanged = wasStateChanged;\n\t\t}\n\t}\n\n\tonRender(shape: EShape, time: number, renderer: Renderer): void {\n\t\tconst actions = this.actions;\n\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\tactions[i].onRender(shape, this, time, renderer);\n\t\t}\n\t\tthis.update(shape, time);\n\t}\n\n\tprotected onUpdate(shape: EShape, time: number): void {\n\t\tconst actions = this.actions;\n\t\tif (0 < actions.length) {\n\t\t\tthis.written = EShapeRuntimeReset.NONE;\n\t\t\tfor (let i = 0, imax = actions.length; i < imax; ++i) {\n\t\t\t\tactions[i].execute(shape, this, time);\n\t\t\t}\n\t\t\tthis.doReset(shape);\n\t\t}\n\t}\n\n\tprotected doReset(shape: EShape): void {\n\t\tconst target = ~this.written & this.reset;\n\t\tif (target !== EShapeRuntimeReset.NONE) {\n\t\t\tif (target & EShapeRuntimeReset.POSITION_X) {\n\t\t\t\tshape.transform.position.x = this.x;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.POSITION_Y) {\n\t\t\t\tshape.transform.position.y = this.y;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.VISIBILITY) {\n\t\t\t\tshape.visible = true;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.COLOR_FILL) {\n\t\t\t\tconst fill = this.fill;\n\t\t\t\tshape.fill.set(undefined, fill.color, fill.alpha);\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.COLOR_STROKE) {\n\t\t\t\tconst stroke = this.stroke;\n\t\t\t\tshape.stroke.set(undefined, stroke.color, stroke.alpha);\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.FILL_PERCENT) {\n\t\t\t\tconst fill = this.fill;\n\t\t\t\tshape.fill.set(undefined, undefined, undefined, undefined, fill.percent);\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.COLOR_TEXT) {\n\t\t\t\tconst text = this.text;\n\t\t\t\tshape.text.set(undefined, text.color, text.alpha);\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.COLOR_TEXT_OUTLINE) {\n\t\t\t\tconst outline = this.text.outline;\n\t\t\t\tshape.text.outline.set(undefined, outline.color, outline.alpha);\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.HEIGHT) {\n\t\t\t\tshape.size.y = this.sizeY;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.WIDTH) {\n\t\t\t\tshape.size.x = this.sizeX;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.ROTATION) {\n\t\t\t\tshape.transform.rotation = this.rotation;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.TEXT) {\n\t\t\t\tshape.text.value = this.text.value;\n\t\t\t}\n\t\t\tif (target & EShapeRuntimeReset.CURSOR) {\n\t\t\t\tshape.cursor = this.cursor;\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-runtime.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Renderer } from \"pixi.js\";\nimport { EShapeActionRuntime } from \"./action/e-shape-action-runtime\";\nimport { EShape } from \"./e-shape\";\nimport { EShapeFillLike } from \"./e-shape-fill\";\nimport { EShapeStrokeLike } from \"./e-shape-stroke\";\nimport { EShapeTextLike } from \"./e-shape-text\";\nimport { DBaseStateSet } from \"../d-base-state-set\";\nimport { EShapeRuntimeReset } from \"./e-shape-runtime-reset\";\n\nexport interface EShapeRuntime {\n\treadonly x: number;\n\treadonly y: number;\n\treadonly sizeX: number;\n\treadonly sizeY: number;\n\treadonly rotation: number;\n\treadonly actions: EShapeActionRuntime[];\n\treadonly fill: EShapeFillLike;\n\treadonly stroke: EShapeStrokeLike;\n\treadonly text: EShapeTextLike;\n\treadonly cursor?: string;\n\treadonly interactive: boolean;\n\n\treset: EShapeRuntimeReset;\n\twritten: EShapeRuntimeReset;\n\teffect: number;\n\tisStateChanged: boolean;\n\n\tinitialize(shape: EShape): void;\n\n\tisActionable(): boolean;\n\n\tupdate(shape: EShape, time: number): void;\n\n\tonResize(shape: EShape): void;\n\n\tonClick(shape: EShape, e: InteractionEvent | KeyboardEvent): void;\n\n\tonDblClick(\n\t\tshape: EShape,\n\t\te: MouseEvent | TouchEvent,\n\t\tinteractionManager: InteractionManager\n\t): boolean;\n\n\tonOver(shape: EShape, e: InteractionEvent): void;\n\n\tonOut(shape: EShape, e: InteractionEvent): void;\n\n\tonDown(shape: EShape, e: InteractionEvent | KeyboardEvent): void;\n\n\tonUp(shape: EShape, e: InteractionEvent | KeyboardEvent): void;\n\n\tonUpOutside(shape: EShape, e: InteractionEvent): void;\n\n\tonMove(shape: EShape, e: InteractionEvent): void;\n\n\tonKeyDown(shape: EShape, e: KeyboardEvent): boolean;\n\n\tonKeyUp(shape: EShape, e: KeyboardEvent): boolean;\n\n\tonStateChange(shape: EShape, newState: DBaseStateSet, oldState: DBaseStateSet): void;\n\n\tonFocus(shape: EShape): void;\n\n\tonBlur(shape: EShape): void;\n\n\tonRightClick(shape: EShape, e: InteractionEvent): void;\n\n\tonRightDown(shape: EShape, e: InteractionEvent): void;\n\n\tonRightUp(shape: EShape, e: InteractionEvent): void;\n\n\tonRightUpOutside(shape: EShape, e: InteractionEvent): void;\n\n\tonRender(shape: EShape, time: number, renderer: Renderer): void;\n}\n"]}
1
+ {"version":3,"file":"e-shape-runtime.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Renderer } from \"pixi.js\";\nimport { EShapeActionRuntime } from \"./action/e-shape-action-runtime\";\nimport { EShape } from \"./e-shape\";\nimport { EShapeFillLike } from \"./e-shape-fill\";\nimport { EShapeStrokeLike } from \"./e-shape-stroke\";\nimport { EShapeTextLike } from \"./e-shape-text\";\nimport { DBaseStateSet } from \"../d-base-state-set\";\nimport { EShapeRuntimeReset } from \"./e-shape-runtime-reset\";\n\nexport interface EShapeRuntime {\n\treadonly x: number;\n\treadonly y: number;\n\treadonly sizeX: number;\n\treadonly sizeY: number;\n\treadonly rotation: number;\n\treadonly actions: EShapeActionRuntime[];\n\treadonly fill: EShapeFillLike;\n\treadonly stroke: EShapeStrokeLike;\n\treadonly text: EShapeTextLike;\n\treadonly cursor?: string;\n\treadonly interactive: boolean;\n\n\treset: EShapeRuntimeReset;\n\twritten: EShapeRuntimeReset;\n\teffect: number;\n\tisStateChanged: boolean;\n\n\tinitialize(shape: EShape): void;\n\n\tisActionable(): boolean;\n\n\tupdate(shape: EShape, time: number): void;\n\n\tonResize(shape: EShape): void;\n\n\tonClick(shape: EShape, e: InteractionEvent | KeyboardEvent): void;\n\n\tonDblClick(\n\t\tshape: EShape,\n\t\te: MouseEvent | TouchEvent,\n\t\tinteractionManager: InteractionManager\n\t): boolean;\n\n\tisDraggable(shape: EShape, e: InteractionEvent): boolean;\n\n\tonDragStart(shape: EShape, e: DragEvent, interactionManager: InteractionManager): boolean;\n\n\tonOver(shape: EShape, e: InteractionEvent): void;\n\n\tonOut(shape: EShape, e: InteractionEvent): void;\n\n\tonDown(shape: EShape, e: InteractionEvent | KeyboardEvent): void;\n\n\tonUp(shape: EShape, e: InteractionEvent | KeyboardEvent): void;\n\n\tonUpOutside(shape: EShape, e: InteractionEvent | DragEvent): void;\n\n\tonMove(shape: EShape, e: InteractionEvent): void;\n\n\tonKeyDown(shape: EShape, e: KeyboardEvent): boolean;\n\n\tonKeyUp(shape: EShape, e: KeyboardEvent): boolean;\n\n\tonStateChange(shape: EShape, newState: DBaseStateSet, oldState: DBaseStateSet): void;\n\n\tonFocus(shape: EShape): void;\n\n\tonBlur(shape: EShape): void;\n\n\tonRightClick(shape: EShape, e: InteractionEvent): void;\n\n\tonRightDown(shape: EShape, e: InteractionEvent): void;\n\n\tonRightUp(shape: EShape, e: InteractionEvent): void;\n\n\tonRightUpOutside(shape: EShape, e: InteractionEvent): void;\n\n\tonRender(shape: EShape, time: number, renderer: Renderer): void;\n}\n"]}
@@ -85,6 +85,37 @@ var EShapeStateSetImplObservable = /** @class */ (function (_super) {
85
85
  enumerable: false,
86
86
  configurable: true
87
87
  });
88
+ Object.defineProperty(EShapeStateSetImplObservable.prototype, "isDragged", {
89
+ get: function () {
90
+ return this.is(EShapeState.DRAGGED);
91
+ },
92
+ set: function (isDragged) {
93
+ this.set(EShapeState.DRAGGED, isDragged);
94
+ },
95
+ enumerable: false,
96
+ configurable: true
97
+ });
98
+ Object.defineProperty(EShapeStateSetImplObservable.prototype, "inDragged", {
99
+ get: function () {
100
+ return this.in(EShapeState.DRAGGED);
101
+ },
102
+ enumerable: false,
103
+ configurable: true
104
+ });
105
+ Object.defineProperty(EShapeStateSetImplObservable.prototype, "onDragged", {
106
+ get: function () {
107
+ return this.on(EShapeState.DRAGGED);
108
+ },
109
+ enumerable: false,
110
+ configurable: true
111
+ });
112
+ Object.defineProperty(EShapeStateSetImplObservable.prototype, "underDragged", {
113
+ get: function () {
114
+ return this.under(EShapeState.DRAGGED);
115
+ },
116
+ enumerable: false,
117
+ configurable: true
118
+ });
88
119
  Object.defineProperty(EShapeStateSetImplObservable.prototype, "isDown", {
89
120
  get: function () {
90
121
  return this.is(EShapeState.DOWN);