@wcardinal/wcardinal-ui 0.460.0 → 0.462.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 (101) 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-drag-state.d.ts +5 -0
  17. package/dist/types/wcardinal/ui/shape/e-shape-runtime-impl.d.ts +3 -1
  18. package/dist/types/wcardinal/ui/shape/e-shape-runtime.d.ts +3 -1
  19. package/dist/types/wcardinal/ui/shape/e-shape-state-set-impl-observable.d.ts +5 -0
  20. package/dist/types/wcardinal/ui/shape/e-shape-state-set.d.ts +4 -0
  21. package/dist/types/wcardinal/ui/shape/e-shape-state.d.ts +1 -0
  22. package/dist/types/wcardinal/ui/shape/index.d.ts +1 -0
  23. package/dist/types/wcardinal/ui/theme/common/new-shape-drag-image.d.ts +1 -0
  24. package/dist/types/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.d.ts +9 -0
  25. package/dist/types/wcardinal/ui/theme/dark/index-zz-zz.d.ts +1 -0
  26. package/dist/types/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.d.ts +9 -0
  27. package/dist/types/wcardinal/ui/theme/white/index-zz-zz.d.ts +1 -0
  28. package/dist/types/wcardinal/ui/util/util-file-opener.d.ts +3 -1
  29. package/dist/wcardinal/ui/d-application-layer.js +30 -8
  30. package/dist/wcardinal/ui/d-application-layer.js.map +1 -1
  31. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-base.js.map +1 -1
  32. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-primary.js.map +1 -1
  33. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-secondary.js.map +1 -1
  34. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub.js.map +1 -1
  35. package/dist/wcardinal/ui/d-diagram-canvas-editor.js.map +1 -1
  36. package/dist/wcardinal/ui/d-diagram-canvas.js +66 -14
  37. package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
  38. package/dist/wcardinal/ui/d-diagram.js +7 -0
  39. package/dist/wcardinal/ui/d-diagram.js.map +1 -1
  40. package/dist/wcardinal/ui/d-view-to-target.js.map +1 -1
  41. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js +6 -0
  42. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js.map +1 -1
  43. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.js +17 -0
  44. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.js.map +1 -0
  45. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js +39 -0
  46. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js.map +1 -1
  47. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime.js.map +1 -1
  48. package/dist/wcardinal/ui/shape/action/e-shape-action-value-open.js.map +1 -1
  49. package/dist/wcardinal/ui/shape/action/index.js +1 -0
  50. package/dist/wcardinal/ui/shape/action/index.js.map +1 -1
  51. package/dist/wcardinal/ui/shape/e-shape-runtime-drag-state.js +19 -0
  52. package/dist/wcardinal/ui/shape/e-shape-runtime-drag-state.js.map +1 -0
  53. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js +34 -0
  54. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js.map +1 -1
  55. package/dist/wcardinal/ui/shape/e-shape-runtime.js.map +1 -1
  56. package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js +31 -0
  57. package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js.map +1 -1
  58. package/dist/wcardinal/ui/shape/e-shape-state-set.js.map +1 -1
  59. package/dist/wcardinal/ui/shape/e-shape-state.js +1 -0
  60. package/dist/wcardinal/ui/shape/e-shape-state.js.map +1 -1
  61. package/dist/wcardinal/ui/shape/index.js +1 -0
  62. package/dist/wcardinal/ui/shape/index.js.map +1 -1
  63. package/dist/wcardinal/ui/theme/common/new-shape-drag-image.js +26 -0
  64. package/dist/wcardinal/ui/theme/common/new-shape-drag-image.js.map +1 -0
  65. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.js +32 -0
  66. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.js.map +1 -0
  67. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js +1 -0
  68. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js.map +1 -1
  69. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-shape-action-value.js +2 -0
  70. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-shape-action-value.js.map +1 -1
  71. package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.js +32 -0
  72. package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.js.map +1 -0
  73. package/dist/wcardinal/ui/theme/white/index-zz-zz.js +1 -0
  74. package/dist/wcardinal/ui/theme/white/index-zz-zz.js.map +1 -1
  75. package/dist/wcardinal/ui/theme/white/load/load-theme-white-shape-action-value.js +2 -0
  76. package/dist/wcardinal/ui/theme/white/load/load-theme-white-shape-action-value.js.map +1 -1
  77. package/dist/wcardinal/ui/util/util-file-downloader.js +21 -1
  78. package/dist/wcardinal/ui/util/util-file-downloader.js.map +1 -1
  79. package/dist/wcardinal/ui/util/util-file-opener.js +5 -3
  80. package/dist/wcardinal/ui/util/util-file-opener.js.map +1 -1
  81. package/dist/wcardinal-ui-theme-dark-en-us.js +57 -1
  82. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  83. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  84. package/dist/wcardinal-ui-theme-dark-ja-jp.js +57 -1
  85. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  86. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  87. package/dist/wcardinal-ui-theme-dark.js +57 -1
  88. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  89. package/dist/wcardinal-ui-theme-white-en-us.js +57 -1
  90. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  91. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  92. package/dist/wcardinal-ui-theme-white-ja-jp.js +57 -1
  93. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  94. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  95. package/dist/wcardinal-ui-theme-white.js +57 -1
  96. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  97. package/dist/wcardinal-ui.cjs.js +38876 -38544
  98. package/dist/wcardinal-ui.js +273 -27
  99. package/dist/wcardinal-ui.min.js +2 -2
  100. package/dist/wcardinal-ui.min.js.map +1 -1
  101. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"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C7C,CAAC;QACF,CAAC;QAED,gBAAK,CAAC,OAAO,WAAE,CAAC;IACjB,CAAC;IAES,0BAAO,GAAjB;QACC,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,eAAC;AAAD,CAAC,AAjOD,CAGU,YAAY,GA8NrB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Renderer } from \"pixi.js\";\nimport { DDiagramBase, DDiagramBaseOptions, DThemeDiagramBase } from \"./d-diagram-base\";\nimport { DDiagramCanvas, DDiagramCanvasOptions } from \"./d-diagram-canvas\";\nimport { DDiagramSerialized } from \"./d-diagram-serialized\";\nimport { DDiagramShape } from \"./d-diagram-shape\";\nimport { DDiagramData, DDiagramDataOptions } from \"./d-diagram-data\";\nimport { EShape } from \"./shape/e-shape\";\nimport { DDiagramDataImpl } from \"./d-diagram-data-impl\";\nimport { DDiagramDataMapper } from \"./d-diagram-data-mapper\";\nimport { DDiagramController } from \"./d-diagram-controller\";\nimport { UtilPointerEvent } from \"./util/util-pointer-event\";\nimport { EShapeResourceManagerDeserializationMode } from \"./shape/e-shape-resource-manager-deserialization-mode\";\nimport { DApplications } from \"./d-applications\";\n\n/**\n * {@link DDiagram} options.\n */\nexport interface DDiagramOptions<THEME extends DThemeDiagram = DThemeDiagram, EMITTER = any>\n\textends DDiagramBaseOptions<\n\t\tDDiagramCanvas,\n\t\tDDiagramCanvasOptions,\n\t\tDDiagramController,\n\t\tTHEME,\n\t\tEMITTER\n\t> {\n\t/** @deprecated in favor of {@link data} */\n\ttag?: DDiagramDataOptions;\n\tdata?: DDiagramDataOptions;\n}\n\n/**\n * {@link DDiagram} theme.\n */\nexport interface DThemeDiagram extends DThemeDiagramBase {}\n\nexport class DDiagram<\n\tTHEME extends DThemeDiagram = DThemeDiagram,\n\tOPTIONS extends DDiagramOptions<THEME> = DDiagramOptions<THEME>\n> extends DDiagramBase<DDiagramCanvas, DDiagramCanvasOptions, DDiagramController, THEME, OPTIONS> {\n\t/** @deprecated in favor of {@link data} */\n\ttag: DDiagramData;\n\tdata: DDiagramData;\n\tshape: DDiagramShape;\n\n\tprotected _rendererBound?: Renderer;\n\tprotected _onPrerenderBound?: (renderer: Renderer) => void;\n\n\tconstructor(options?: OPTIONS) {\n\t\tsuper(options);\n\n\t\t// Event handlers\n\t\tthis.on(UtilPointerEvent.move, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeMove(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.up, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeUp(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.upoutside, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeCancel(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.cancel, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeCancel(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.tap, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeClick(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.righttap, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeRightClick(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.rightdown, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeRightDown(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.rightup, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeRightUp(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.rightupoutside, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeRightCancel(e);\n\t\t});\n\n\t\t// Data\n\t\tconst data = new DDiagramDataImpl(this, options && (options.data || options.tag));\n\t\tthis.data = data;\n\t\tthis.tag = data;\n\n\t\t// Shape\n\t\tthis.shape = new DDiagramShape(this);\n\t}\n\n\tprotected initLayer(\n\t\tcanvas: DDiagramCanvas,\n\t\tshapes: EShape[],\n\t\tmapper?: DDiagramDataMapper | null\n\t): DDiagramCanvas {\n\t\treturn super.initLayer(canvas, shapes, mapper || this.data.mapper);\n\t}\n\n\tprotected toMode(options?: OPTIONS): EShapeResourceManagerDeserializationMode {\n\t\treturn EShapeResourceManagerDeserializationMode.VIEWER;\n\t}\n\n\tprotected newCanvas(serialized: DDiagramSerialized): DDiagramCanvas {\n\t\treturn new DDiagramCanvas(this.toCanvasOptions(serialized));\n\t}\n\n\tprotected toCanvasOptions(serialized: DDiagramSerialized): DDiagramCanvasOptions {\n\t\treturn this.toCanvasBaseOptions(serialized);\n\t}\n\n\tprotected onDown(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tsuper.onDown(e, canvas.onShapeDown(e));\n\t\t\t} else {\n\t\t\t\tsuper.onDown(e);\n\t\t\t}\n\t\t} else {\n\t\t\tsuper.onDown(e);\n\t\t}\n\t}\n\n\tprotected onShapeMove(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeMove(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeUp(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeUp(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeCancel(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeCancel(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeClick(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeClick(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeRightClick(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeRightClick(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeRightDown(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeRightDown(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeRightUp(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeRightUp(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeRightCancel(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeRightCancel(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tonDblClick(e: MouseEvent | TouchEvent, manager: InteractionManager): boolean {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\treturn super.onDblClick(e, manager, canvas.onShapeDblClick(e, manager));\n\t\t} else {\n\t\t\treturn super.onDblClick(e, manager);\n\t\t}\n\t}\n\n\tprotected onPrerender(renderer: Renderer): void {\n\t\tconst canvas = this._canvas;\n\t\tif (canvas) {\n\t\t\tcanvas.onRender(renderer);\n\t\t}\n\t}\n\n\trender(newRenderer: Renderer): void {\n\t\tconst oldRenderer = this._rendererBound;\n\t\tif (oldRenderer !== newRenderer) {\n\t\t\tconst onPrerenderBound = (this._onPrerenderBound ??= (r: Renderer): void => {\n\t\t\t\tthis.onPrerender(r);\n\t\t\t});\n\n\t\t\tif (oldRenderer != null) {\n\t\t\t\toldRenderer.off(\"prerender\", onPrerenderBound);\n\t\t\t}\n\n\t\t\tthis._rendererBound = newRenderer;\n\t\t\tif (newRenderer != null) {\n\t\t\t\tnewRenderer.on(\"prerender\", onPrerenderBound);\n\t\t\t\tconst canvas = this._canvas;\n\t\t\t\tif (canvas != null) {\n\t\t\t\t\t// Request the update to call `canvas.onRender(Renderer)`\n\t\t\t\t\tDApplications.update(this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsuper.render(newRenderer);\n\t}\n\n\toverride destroy(): void {\n\t\t// Renderer\n\t\tconst renderer = this._rendererBound;\n\t\tif (renderer != null) {\n\t\t\tthis._rendererBound = undefined;\n\n\t\t\tconst onPrerenderBound = this._onPrerenderBound;\n\t\t\tif (onPrerenderBound != null) {\n\t\t\t\trenderer.off(\"prerender\", onPrerenderBound);\n\t\t\t}\n\t\t}\n\n\t\tsuper.destroy();\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DDiagram\";\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-diagram.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-diagram.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAA0C,MAAM,kBAAkB,CAAC;AACxF,OAAO,EAAE,cAAc,EAAyB,MAAM,oBAAoB,CAAC;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,wCAAwC,EAAE,MAAM,uDAAuD,CAAC;AACjH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAuBjD;IAGU,4BAAuF;IAShG,kBAAY,OAAiB;QAC5B,YAAA,MAAK,YAAC,OAAO,CAAC,SAAC;QAEf,iBAAiB;QACjB,KAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,UAAC,CAAmB;YAClD,KA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AI,EAAE,CAAC;gBACzB,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;YAChD,CAAC;YAED,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC;YAClC,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;gBACzB,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;gBAC9C,IAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;gBAC5B,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;oBACpB,yDAAyD;oBACzD,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC5B,CAAC;YACF,CAAC;QACF,CAAC;QACD,gBAAK,CAAC,MAAM,YAAC,WAAW,CAAC,CAAC;IAC3B,CAAC;IAEQ,0BAAO,GAAhB;QACC,WAAW;QACX,IAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC;QACrC,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;YACtB,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC;YAEhC,IAAM,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAAC;YAChD,IAAI,gBAAgB,IAAI,IAAI,EAAE,CAAC;gBAC9B,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;YAC7C,CAAC;QACF,CAAC;QAED,gBAAK,CAAC,OAAO,WAAE,CAAC;IACjB,CAAC;IAES,0BAAO,GAAjB;QACC,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,eAAC;AAAD,CAAC,AAzOD,CAGU,YAAY,GAsOrB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Renderer } from \"pixi.js\";\nimport { DDiagramBase, DDiagramBaseOptions, DThemeDiagramBase } from \"./d-diagram-base\";\nimport { DDiagramCanvas, DDiagramCanvasOptions } from \"./d-diagram-canvas\";\nimport { DDiagramSerialized } from \"./d-diagram-serialized\";\nimport { DDiagramShape } from \"./d-diagram-shape\";\nimport { DDiagramData, DDiagramDataOptions } from \"./d-diagram-data\";\nimport { EShape } from \"./shape/e-shape\";\nimport { DDiagramDataImpl } from \"./d-diagram-data-impl\";\nimport { DDiagramDataMapper } from \"./d-diagram-data-mapper\";\nimport { DDiagramController } from \"./d-diagram-controller\";\nimport { UtilPointerEvent } from \"./util/util-pointer-event\";\nimport { EShapeResourceManagerDeserializationMode } from \"./shape/e-shape-resource-manager-deserialization-mode\";\nimport { DApplications } from \"./d-applications\";\n\n/**\n * {@link DDiagram} options.\n */\nexport interface DDiagramOptions<THEME extends DThemeDiagram = DThemeDiagram, EMITTER = any>\n\textends DDiagramBaseOptions<\n\t\tDDiagramCanvas,\n\t\tDDiagramCanvasOptions,\n\t\tDDiagramController,\n\t\tTHEME,\n\t\tEMITTER\n\t> {\n\t/** @deprecated in favor of {@link data} */\n\ttag?: DDiagramDataOptions;\n\tdata?: DDiagramDataOptions;\n}\n\n/**\n * {@link DDiagram} theme.\n */\nexport interface DThemeDiagram extends DThemeDiagramBase {}\n\nexport class DDiagram<\n\tTHEME extends DThemeDiagram = DThemeDiagram,\n\tOPTIONS extends DDiagramOptions<THEME> = DDiagramOptions<THEME>\n> extends DDiagramBase<DDiagramCanvas, DDiagramCanvasOptions, DDiagramController, THEME, OPTIONS> {\n\t/** @deprecated in favor of {@link data} */\n\ttag: DDiagramData;\n\tdata: DDiagramData;\n\tshape: DDiagramShape;\n\n\tprotected _rendererBound?: Renderer;\n\tprotected _onPrerenderBound?: (renderer: Renderer) => void;\n\n\tconstructor(options?: OPTIONS) {\n\t\tsuper(options);\n\n\t\t// Event handlers\n\t\tthis.on(UtilPointerEvent.move, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeMove(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.up, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeUp(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.upoutside, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeCancel(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.cancel, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeCancel(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.tap, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeClick(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.righttap, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeRightClick(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.rightdown, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeRightDown(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.rightup, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeRightUp(e);\n\t\t});\n\t\tthis.on(UtilPointerEvent.rightupoutside, (e: InteractionEvent): void => {\n\t\t\tthis.onShapeRightCancel(e);\n\t\t});\n\n\t\t// Data\n\t\tconst data = new DDiagramDataImpl(this, options && (options.data || options.tag));\n\t\tthis.data = data;\n\t\tthis.tag = data;\n\n\t\t// Shape\n\t\tthis.shape = new DDiagramShape(this);\n\t}\n\n\tprotected initLayer(\n\t\tcanvas: DDiagramCanvas,\n\t\tshapes: EShape[],\n\t\tmapper?: DDiagramDataMapper | null\n\t): DDiagramCanvas {\n\t\treturn super.initLayer(canvas, shapes, mapper || this.data.mapper);\n\t}\n\n\tprotected toMode(options?: OPTIONS): EShapeResourceManagerDeserializationMode {\n\t\treturn EShapeResourceManagerDeserializationMode.VIEWER;\n\t}\n\n\tprotected newCanvas(serialized: DDiagramSerialized): DDiagramCanvas {\n\t\treturn new DDiagramCanvas(this.toCanvasOptions(serialized));\n\t}\n\n\tprotected toCanvasOptions(serialized: DDiagramSerialized): DDiagramCanvasOptions {\n\t\treturn this.toCanvasBaseOptions(serialized);\n\t}\n\n\tprotected onDown(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tsuper.onDown(e, canvas.onShapeDown(e));\n\t\t\t} else {\n\t\t\t\tsuper.onDown(e);\n\t\t\t}\n\t\t} else {\n\t\t\tsuper.onDown(e);\n\t\t}\n\t}\n\n\tprotected onShapeMove(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeMove(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeUp(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeUp(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeCancel(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeCancel(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeClick(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeClick(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeRightClick(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeRightClick(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeRightDown(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeRightDown(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeRightUp(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeRightUp(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onShapeRightCancel(e: InteractionEvent): void {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\tconst target = e.target;\n\t\t\tif (target === this || target === canvas) {\n\t\t\t\tcanvas.onShapeRightCancel(e);\n\t\t\t}\n\t\t}\n\t}\n\n\tonDblClick(e: MouseEvent | TouchEvent, manager: InteractionManager): boolean {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\treturn super.onDblClick(e, manager, canvas.onShapeDblClick(e, manager));\n\t\t} else {\n\t\t\treturn super.onDblClick(e, manager);\n\t\t}\n\t}\n\n\tonDragStart(e: DragEvent, manager: InteractionManager): boolean {\n\t\tconst canvas = this.canvas;\n\t\tif (canvas) {\n\t\t\treturn canvas.onShapeDragStart(e, manager);\n\t\t}\n\t\treturn false;\n\t}\n\n\tprotected onPrerender(renderer: Renderer): void {\n\t\tconst canvas = this._canvas;\n\t\tif (canvas) {\n\t\t\tcanvas.onRender(renderer);\n\t\t}\n\t}\n\n\trender(newRenderer: Renderer): void {\n\t\tconst oldRenderer = this._rendererBound;\n\t\tif (oldRenderer !== newRenderer) {\n\t\t\tconst onPrerenderBound = (this._onPrerenderBound ??= (r: Renderer): void => {\n\t\t\t\tthis.onPrerender(r);\n\t\t\t});\n\n\t\t\tif (oldRenderer != null) {\n\t\t\t\toldRenderer.off(\"prerender\", onPrerenderBound);\n\t\t\t}\n\n\t\t\tthis._rendererBound = newRenderer;\n\t\t\tif (newRenderer != null) {\n\t\t\t\tnewRenderer.on(\"prerender\", onPrerenderBound);\n\t\t\t\tconst canvas = this._canvas;\n\t\t\t\tif (canvas != null) {\n\t\t\t\t\t// Request the update to call `canvas.onRender(Renderer)`\n\t\t\t\t\tDApplications.update(this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsuper.render(newRenderer);\n\t}\n\n\toverride destroy(): void {\n\t\t// Renderer\n\t\tconst renderer = this._rendererBound;\n\t\tif (renderer != null) {\n\t\t\tthis._rendererBound = undefined;\n\n\t\t\tconst onPrerenderBound = this._onPrerenderBound;\n\t\t\tif (onPrerenderBound != null) {\n\t\t\t\trenderer.off(\"prerender\", onPrerenderBound);\n\t\t\t}\n\t\t}\n\n\t\tsuper.destroy();\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DDiagram\";\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-view-to-target.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-view-to-target.ts"],"names":[],"mappings":"","sourcesContent":["import { DisplayObject, IPointData, Point, Rectangle } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\n\nexport interface DViewTargetPoint {\n\tx: number;\n\ty: number;\n\n\tset(x?: number, y?: number): void;\n}\n\nexport interface DViewTargetParent {\n\ttoLocal(\n\t\tposition: IPointData,\n\t\tfrom?: DisplayObject,\n\t\tpoint?: Point,\n\t\tskipUpdate?: boolean\n\t): PIXI.Point;\n}\n\nexport interface DViewTarget {\n\tparent?: DViewTargetParent | null;\n\treadonly scale: DViewTargetPoint;\n\treadonly position: DViewTargetPoint;\n\tgetLocalBounds(rect: Rectangle): Rectangle;\n}\n\nexport type DViewToTarget = (parent: DBase) => DViewTarget | null;\n"]}
1
+ {"version":3,"file":"d-view-to-target.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-view-to-target.ts"],"names":[],"mappings":"","sourcesContent":["import { DisplayObject, IPointData, Point, Rectangle } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\n\nexport interface DViewTargetPoint {\n\tx: number;\n\ty: number;\n\n\tset(x?: number, y?: number): void;\n}\n\nexport interface DViewTargetParent {\n\ttoLocal(position: IPointData, from?: DisplayObject, point?: Point, skipUpdate?: boolean): Point;\n}\n\nexport interface DViewTarget {\n\tparent?: DViewTargetParent | null;\n\treadonly scale: DViewTargetPoint;\n\treadonly position: DViewTargetPoint;\n\tgetLocalBounds(rect: Rectangle): Rectangle;\n}\n\nexport type DViewToTarget = (parent: DBase) => DViewTarget | null;\n"]}
@@ -31,6 +31,12 @@ var EShapeActionRuntimeBase = /** @class */ (function () {
31
31
  EShapeActionRuntimeBase.prototype.onDblClick = function (shape, runtime, e, manager) {
32
32
  // DO NOTHING
33
33
  };
34
+ EShapeActionRuntimeBase.prototype.isDraggable = function (shape, runtime, e) {
35
+ return false;
36
+ };
37
+ EShapeActionRuntimeBase.prototype.onDragStart = function (shape, runtime, e, manager) {
38
+ return false;
39
+ };
34
40
  EShapeActionRuntimeBase.prototype.onDowning = function (shape, runtime, e) {
35
41
  // DO NOTHING
36
42
  };
@@ -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,CAAC,IAAI,CAAC;IAC/C,CAAC;IAED,4CAAU,GAAV,UAAW,KAAa,EAAE,OAAsB;QAC/C,aAAa;IACd,CAAC;IAED,yCAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,aAAa;IACd,CAAC;IAED,0CAAQ,GAAR,UAAS,KAAa,EAAE,OAAsB;QAC7C,aAAa;IACd,CAAC;IAED,yCAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB;QAC5C,aAAa;IACd,CAAC;IAED,wCAAM,GAAN,UAAO,KAAa,EAAE,OAAsB;QAC3C,aAAa;IACd,CAAC;IAED,yCAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,CAAmC;QACjF,aAAa;IACd,CAAC;IAED,4CAAU,GAAV,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AsB,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,KAAa,EAAE,OAAsB;QAC/C,aAAa;IACd,CAAC;IAED,yCAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,aAAa;IACd,CAAC;IAED,0CAAQ,GAAR,UAAS,KAAa,EAAE,OAAsB;QAC7C,aAAa;IACd,CAAC;IAED,yCAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB;QAC5C,aAAa;IACd,CAAC;IAED,wCAAM,GAAN,UAAO,KAAa,EAAE,OAAsB;QAC3C,aAAa;IACd,CAAC;IAED,yCAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,CAAmC;QACjF,aAAa;IACd,CAAC;IAED,4CAAU,GAAV,UACC,KAAa,EACb,OAAsB,EACtB,CAA0B,EAC1B,OAA2B;QAE3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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,E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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,SAAC;QACtD,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;;IAChC,CAAC;IAED,wCAAQ,GAAR,UAAS,KAAwB;QAChC,OAAO,CACN,gBAAK,CAAC,QAAQ,YAAC,KAAK,CAAC;YACrB,KAAK,YAAY,qBAAqB;YACtC,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;YAC5B,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,WAAW,CACtC,CAAC;IACH,CAAC;IAED,yCAAS,GAAT;QACC,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;YACtB,KAAK,yBAAyB,CAAC,OAAO;gBACrC,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAE,8B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CAAC,IAAI,CAAC;YACvC,KAAK,yBAAyB,CAAC,mBAAmB;gBACjD,OAAO,yBAAyB,CAAC,IAAI,CAAC;YACvC,KAAK,yBAAyB,CAAC,OAAO;gBACrC,OAAO,yBAAyB,CAAC,OAAO,CAAC;YAC1C,KAAK,yBAAyB,CAAC,IAAI;gBAClC,OAAO,yBAAyB,CAAC,IAAI,CAAC;QACxC,CAAC;QACD,OAAO,yBAAyB,CAAC,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 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;;;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;AA+C7D;IAA2C,yCAE1C;IAIA,+BACC,OAAyF,EACzF,SAAiB,EACjB,MAAc,EACd,WAAoB;QAEpB,YAAA,MAAK,YAAC,qBAAqB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAA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AAC,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,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,cAA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C;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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,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;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-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"]}
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright (C) 2026 Toshiba Corporation
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { EShapeState } from "./e-shape-state";
6
+ var EShapeRuntimeDragStates = /** @class */ (function () {
7
+ function EShapeRuntimeDragStates() {
8
+ }
9
+ EShapeRuntimeDragStates.get = function () {
10
+ return this._STATE;
11
+ };
12
+ EShapeRuntimeDragStates.set = function (state) {
13
+ this._STATE = state;
14
+ };
15
+ EShapeRuntimeDragStates._STATE = EShapeState.DRAGGED;
16
+ return EShapeRuntimeDragStates;
17
+ }());
18
+ export { EShapeRuntimeDragStates };
19
+ //# sourceMappingURL=e-shape-runtime-drag-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"e-shape-runtime-drag-state.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-runtime-drag-state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;IAAA;IAUA,CAAC;IAPc,2BAAG,GAAjB;QACC,OAAO,IAAI,CAAC,MAAM,CAAC;IACpB,CAAC;IAEa,2BAAG,GAAjB,UAAkB,KAAa;QAC9B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACrB,CAAC;IARgB,8BAAM,GAAG,WAAW,CAAC,OAAO,CAAC;IAS/C,8BAAC;CAAA,AAVD,IAUC;SAVY,uBAAuB","sourcesContent":["/*\n * Copyright (C) 2026 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeState } from \"./e-shape-state\";\n\nexport class EShapeRuntimeDragStates {\n\tprotected static _STATE = EShapeState.DRAGGED;\n\n\tpublic static get(): string {\n\t\treturn this._STATE;\n\t}\n\n\tpublic static set(state: string): void {\n\t\tthis._STATE = state;\n\t}\n}\n"]}
@@ -8,6 +8,7 @@ import { EShapeState } from "./e-shape-state";
8
8
  import { DBaseState } from "../d-base-state";
9
9
  import { EShapeRuntimeReset } from "./e-shape-runtime-reset";
10
10
  import { EShapeLockPart } from "./variant/e-shape-lock-part";
11
+ import { EShapeRuntimeDragStates } from "./e-shape-runtime-drag-state";
11
12
  var EShapeRuntimeImpl = /** @class */ (function () {
12
13
  function EShapeRuntimeImpl(shape) {
13
14
  var transform = shape.transform;
@@ -73,6 +74,39 @@ var EShapeRuntimeImpl = /** @class */ (function () {
73
74
  // Done
74
75
  return false;
75
76
  };
77
+ EShapeRuntimeImpl.prototype.isDraggable = function (shape, e) {
78
+ var state = shape.state;
79
+ var dragState = EShapeRuntimeDragStates.get();
80
+ var wasDragged = state.is(dragState);
81
+ try {
82
+ // State
83
+ if (state.isActionable) {
84
+ state.add(dragState);
85
+ }
86
+ // Actions
87
+ var actions = this.actions;
88
+ for (var i = 0, imax = actions.length; i < imax; ++i) {
89
+ if (actions[i].isDraggable(shape, this, e)) {
90
+ return true;
91
+ }
92
+ }
93
+ // Done
94
+ return false;
95
+ }
96
+ finally {
97
+ state.set(dragState, wasDragged);
98
+ }
99
+ };
100
+ EShapeRuntimeImpl.prototype.onDragStart = function (shape, e, interactionManager) {
101
+ var result = false;
102
+ var actions = this.actions;
103
+ for (var i = 0, imax = actions.length; i < imax; ++i) {
104
+ if (actions[i].onDragStart(shape, this, e, interactionManager)) {
105
+ result = true;
106
+ }
107
+ }
108
+ return result;
109
+ };
76
110
  EShapeRuntimeImpl.prototype.onOver = function (shape, e) {
77
111
  var state = shape.state;
78
112
  if (!state.isHovered) {