@wcardinal/wcardinal-ui 0.167.0 → 0.170.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/types/wcardinal/ui/d-button-select.d.ts +4 -3
  2. package/dist/types/wcardinal/ui/d-command-flag.d.ts +5 -1
  3. package/dist/types/wcardinal/ui/d-controller-default-command.d.ts +7 -0
  4. package/dist/types/wcardinal/ui/d-diagram-base.d.ts +2 -1
  5. package/dist/types/wcardinal/ui/d-diagram-canvas-base.d.ts +3 -1
  6. package/dist/types/wcardinal/ui/d-diagram-canvas-data-impl.d.ts +20 -0
  7. package/dist/types/wcardinal/ui/d-diagram-canvas-data-private-impl.d.ts +7 -0
  8. package/dist/types/wcardinal/ui/d-diagram-canvas-data-private.d.ts +5 -0
  9. package/dist/types/wcardinal/ui/d-diagram-canvas-data.d.ts +16 -0
  10. package/dist/types/wcardinal/ui/d-diagram-canvas-shape-impl.d.ts +9 -0
  11. package/dist/types/wcardinal/ui/d-diagram-canvas-shape.d.ts +6 -0
  12. package/dist/types/wcardinal/ui/d-diagram-canvas-ticker-impl.d.ts +10 -0
  13. package/dist/types/wcardinal/ui/d-diagram-canvas-ticker.d.ts +6 -0
  14. package/dist/types/wcardinal/ui/d-diagram-canvas.d.ts +30 -10
  15. package/dist/types/wcardinal/ui/d-diagram-data-impl.d.ts +29 -0
  16. package/dist/types/wcardinal/ui/d-diagram-data-mapper.d.ts +8 -0
  17. package/dist/types/wcardinal/ui/d-diagram-data-private-impl.d.ts +7 -0
  18. package/dist/types/wcardinal/ui/d-diagram-data-private.d.ts +3 -0
  19. package/dist/types/wcardinal/ui/d-diagram-data-remote-impl.d.ts +6 -0
  20. package/dist/types/wcardinal/ui/d-diagram-data-remote.d.ts +1 -3
  21. package/dist/types/wcardinal/ui/d-diagram-data.d.ts +12 -21
  22. package/dist/types/wcardinal/ui/d-diagram-layer-container.d.ts +1 -1
  23. package/dist/types/wcardinal/ui/d-diagram-layer.d.ts +2 -4
  24. package/dist/types/wcardinal/ui/d-diagram-serialized.d.ts +45 -27
  25. package/dist/types/wcardinal/ui/d-diagram-shape.d.ts +4 -3
  26. package/dist/types/wcardinal/ui/d-diagram-snapshot.d.ts +1 -1
  27. package/dist/types/wcardinal/ui/d-diagram-ticker.d.ts +13 -0
  28. package/dist/types/wcardinal/ui/d-diagram.d.ts +3 -4
  29. package/dist/types/wcardinal/ui/index.d.ts +14 -2
  30. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtimes.d.ts +2 -0
  31. package/dist/types/wcardinal/ui/shape/e-shape-data-impl.d.ts +50 -0
  32. package/dist/types/wcardinal/ui/shape/e-shape-data-mapper-impl.d.ts +17 -0
  33. package/dist/types/wcardinal/ui/shape/e-shape-data-mapper.d.ts +7 -0
  34. package/dist/types/wcardinal/ui/shape/e-shape-data-mapping-impl.d.ts +21 -0
  35. package/dist/types/wcardinal/ui/shape/e-shape-data-mapping.d.ts +20 -0
  36. package/dist/types/wcardinal/ui/shape/e-shape-data-private-impl.d.ts +7 -0
  37. package/dist/types/wcardinal/ui/shape/e-shape-data-private.d.ts +5 -0
  38. package/dist/types/wcardinal/ui/shape/{variant/e-shape-data-value-impl.d.ts → e-shape-data-value-impl.d.ts} +9 -4
  39. package/dist/types/wcardinal/ui/shape/e-shape-data-value-order.d.ts +5 -0
  40. package/dist/types/wcardinal/ui/shape/{variant/e-shape-data-value-range-impl.d.ts → e-shape-data-value-range-impl.d.ts} +3 -3
  41. package/dist/types/wcardinal/ui/shape/e-shape-data-value-scope.d.ts +12 -0
  42. package/dist/types/wcardinal/ui/shape/e-shape-data-value-type.d.ts +10 -0
  43. package/dist/types/wcardinal/ui/shape/e-shape-data-value.d.ts +5 -5
  44. package/dist/types/wcardinal/ui/shape/e-shape-data.d.ts +10 -0
  45. package/dist/types/wcardinal/ui/shape/e-shape-resource-manager-deserialization.d.ts +12 -4
  46. package/dist/types/wcardinal/ui/shape/index.d.ts +12 -0
  47. package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.d.ts +1 -1
  48. package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime-action.d.ts +1 -1
  49. package/dist/types/wcardinal/ui/shape/variant/index.d.ts +0 -3
  50. package/dist/wcardinal/ui/d-button-select.js +1 -1
  51. package/dist/wcardinal/ui/d-button-select.js.map +1 -1
  52. package/dist/wcardinal/ui/d-chart-axis-base.js +1 -1
  53. package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
  54. package/dist/wcardinal/ui/d-command-flag.js +6 -2
  55. package/dist/wcardinal/ui/d-command-flag.js.map +1 -1
  56. package/dist/wcardinal/ui/d-controller-default-command.js +117 -80
  57. package/dist/wcardinal/ui/d-controller-default-command.js.map +1 -1
  58. package/dist/wcardinal/ui/d-diagram-base.js +8 -10
  59. package/dist/wcardinal/ui/d-diagram-base.js.map +1 -1
  60. package/dist/wcardinal/ui/d-diagram-canvas-base.js +6 -3
  61. package/dist/wcardinal/ui/d-diagram-canvas-base.js.map +1 -1
  62. package/dist/wcardinal/ui/d-diagram-canvas-data-impl.js +217 -0
  63. package/dist/wcardinal/ui/d-diagram-canvas-data-impl.js.map +1 -0
  64. package/dist/wcardinal/ui/d-diagram-canvas-data-private-impl.js +49 -0
  65. package/dist/wcardinal/ui/d-diagram-canvas-data-private-impl.js.map +1 -0
  66. package/dist/wcardinal/ui/d-diagram-canvas-data-private.js +6 -0
  67. package/dist/wcardinal/ui/d-diagram-canvas-data-private.js.map +1 -0
  68. package/dist/wcardinal/ui/{d-diagram-canvas-data-map.js → d-diagram-canvas-data.js} +1 -1
  69. package/dist/wcardinal/ui/d-diagram-canvas-data.js.map +1 -0
  70. package/dist/wcardinal/ui/d-diagram-canvas-shape-impl.js +32 -0
  71. package/dist/wcardinal/ui/d-diagram-canvas-shape-impl.js.map +1 -0
  72. package/dist/wcardinal/ui/d-diagram-canvas-shape.js +6 -0
  73. package/dist/wcardinal/ui/d-diagram-canvas-shape.js.map +1 -0
  74. package/dist/wcardinal/ui/d-diagram-canvas-ticker-impl.js +38 -0
  75. package/dist/wcardinal/ui/d-diagram-canvas-ticker-impl.js.map +1 -0
  76. package/dist/wcardinal/ui/d-diagram-canvas-ticker.js +6 -0
  77. package/dist/wcardinal/ui/d-diagram-canvas-ticker.js.map +1 -0
  78. package/dist/wcardinal/ui/d-diagram-canvas.js +275 -10
  79. package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
  80. package/dist/wcardinal/ui/d-diagram-data-impl.js +121 -0
  81. package/dist/wcardinal/ui/d-diagram-data-impl.js.map +1 -0
  82. package/dist/wcardinal/ui/d-diagram-data-mapper.js +6 -0
  83. package/dist/wcardinal/ui/d-diagram-data-mapper.js.map +1 -0
  84. package/dist/wcardinal/ui/d-diagram-data-private-impl.js +19 -0
  85. package/dist/wcardinal/ui/d-diagram-data-private-impl.js.map +1 -0
  86. package/dist/wcardinal/ui/d-diagram-data-private.js +6 -0
  87. package/dist/wcardinal/ui/d-diagram-data-private.js.map +1 -0
  88. package/dist/wcardinal/ui/d-diagram-data-remote-impl.js +20 -0
  89. package/dist/wcardinal/ui/d-diagram-data-remote-impl.js.map +1 -0
  90. package/dist/wcardinal/ui/d-diagram-data-remote.js +1 -15
  91. package/dist/wcardinal/ui/d-diagram-data-remote.js.map +1 -1
  92. package/dist/wcardinal/ui/d-diagram-data.js +1 -201
  93. package/dist/wcardinal/ui/d-diagram-data.js.map +1 -1
  94. package/dist/wcardinal/ui/d-diagram-layer-container.js.map +1 -1
  95. package/dist/wcardinal/ui/d-diagram-layer.js +5 -50
  96. package/dist/wcardinal/ui/d-diagram-layer.js.map +1 -1
  97. package/dist/wcardinal/ui/d-diagram-serialized.js.map +1 -1
  98. package/dist/wcardinal/ui/d-diagram-shape.js +14 -47
  99. package/dist/wcardinal/ui/d-diagram-shape.js.map +1 -1
  100. package/dist/wcardinal/ui/d-diagram-snapshot.js +1 -1
  101. package/dist/wcardinal/ui/d-diagram-snapshot.js.map +1 -1
  102. package/dist/wcardinal/ui/d-diagram-ticker.js +47 -0
  103. package/dist/wcardinal/ui/d-diagram-ticker.js.map +1 -0
  104. package/dist/wcardinal/ui/d-diagram.js +4 -115
  105. package/dist/wcardinal/ui/d-diagram.js.map +1 -1
  106. package/dist/wcardinal/ui/d-dialog.js +2 -1
  107. package/dist/wcardinal/ui/d-dialog.js.map +1 -1
  108. package/dist/wcardinal/ui/index.js +14 -2
  109. package/dist/wcardinal/ui/index.js.map +1 -1
  110. package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js +27 -7
  111. package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js.map +1 -1
  112. package/dist/wcardinal/ui/shape/{variant/e-shape-data-impl.js → e-shape-data-impl.js} +105 -20
  113. package/dist/wcardinal/ui/shape/e-shape-data-impl.js.map +1 -0
  114. package/dist/wcardinal/ui/shape/e-shape-data-mapper-impl.js +122 -0
  115. package/dist/wcardinal/ui/shape/e-shape-data-mapper-impl.js.map +1 -0
  116. package/dist/wcardinal/ui/shape/e-shape-data-mapper.js +6 -0
  117. package/dist/wcardinal/ui/shape/e-shape-data-mapper.js.map +1 -0
  118. package/dist/wcardinal/ui/shape/e-shape-data-mapping-impl.js +135 -0
  119. package/dist/wcardinal/ui/shape/e-shape-data-mapping-impl.js.map +1 -0
  120. package/dist/wcardinal/ui/shape/e-shape-data-mapping.js +6 -0
  121. package/dist/wcardinal/ui/shape/e-shape-data-mapping.js.map +1 -0
  122. package/dist/wcardinal/ui/shape/e-shape-data-private-impl.js +45 -0
  123. package/dist/wcardinal/ui/shape/e-shape-data-private-impl.js.map +1 -0
  124. package/dist/wcardinal/ui/shape/e-shape-data-private.js +2 -0
  125. package/dist/wcardinal/ui/shape/e-shape-data-private.js.map +1 -0
  126. package/dist/wcardinal/ui/shape/{variant/e-shape-data-value-impl.js → e-shape-data-value-impl.js} +17 -6
  127. package/dist/wcardinal/ui/shape/e-shape-data-value-impl.js.map +1 -0
  128. package/dist/wcardinal/ui/shape/e-shape-data-value-order.js +9 -0
  129. package/dist/wcardinal/ui/shape/e-shape-data-value-order.js.map +1 -0
  130. package/dist/wcardinal/ui/shape/{variant/e-shape-data-value-range-impl.js → e-shape-data-value-range-impl.js} +1 -1
  131. package/dist/wcardinal/ui/shape/e-shape-data-value-range-impl.js.map +1 -0
  132. package/dist/wcardinal/ui/shape/e-shape-data-value-scope.js +16 -0
  133. package/dist/wcardinal/ui/shape/e-shape-data-value-scope.js.map +1 -0
  134. package/dist/wcardinal/ui/shape/e-shape-data-value-type.js +14 -0
  135. package/dist/wcardinal/ui/shape/e-shape-data-value-type.js.map +1 -0
  136. package/dist/wcardinal/ui/shape/e-shape-data-value.js +1 -4
  137. package/dist/wcardinal/ui/shape/e-shape-data-value.js.map +1 -1
  138. package/dist/wcardinal/ui/shape/e-shape-data.js.map +1 -1
  139. package/dist/wcardinal/ui/shape/e-shape-resource-manager-deserialization.js +28 -0
  140. package/dist/wcardinal/ui/shape/e-shape-resource-manager-deserialization.js.map +1 -1
  141. package/dist/wcardinal/ui/shape/index.js +12 -0
  142. package/dist/wcardinal/ui/shape/index.js.map +1 -1
  143. package/dist/wcardinal/ui/shape/load/load-shape-rectangle-pivoted.js +1 -1
  144. package/dist/wcardinal/ui/shape/load/load-shape-rectangle-pivoted.js.map +1 -1
  145. package/dist/wcardinal/ui/shape/variant/deserialize-embedded.js +36 -0
  146. package/dist/wcardinal/ui/shape/variant/deserialize-embedded.js.map +1 -1
  147. package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.js +1 -1
  148. package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.js.map +1 -1
  149. package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action.js +1 -1
  150. package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action.js.map +1 -1
  151. package/dist/wcardinal/ui/shape/variant/e-shape-group-viewer.js +1 -1
  152. package/dist/wcardinal/ui/shape/variant/e-shape-group-viewer.js.map +1 -1
  153. package/dist/wcardinal/ui/shape/variant/e-shape-group.js +1 -1
  154. package/dist/wcardinal/ui/shape/variant/e-shape-group.js.map +1 -1
  155. package/dist/wcardinal/ui/shape/variant/e-shape-primitive.js +1 -1
  156. package/dist/wcardinal/ui/shape/variant/e-shape-primitive.js.map +1 -1
  157. package/dist/wcardinal/ui/shape/variant/index.js +0 -3
  158. package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
  159. package/dist/wcardinal-ui-theme-dark.js +1 -1
  160. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  161. package/dist/wcardinal-ui-theme-white.js +1 -1
  162. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  163. package/dist/wcardinal-ui.cjs.js +6596 -5666
  164. package/dist/wcardinal-ui.js +19893 -18963
  165. package/dist/wcardinal-ui.min.js +2 -2
  166. package/dist/wcardinal-ui.min.js.map +1 -1
  167. package/package.json +1 -1
  168. package/dist/types/wcardinal/ui/d-diagram-canvas-data-map.d.ts +0 -2
  169. package/dist/types/wcardinal/ui/d-diagram-canvas-id-map.d.ts +0 -2
  170. package/dist/types/wcardinal/ui/shape/variant/e-shape-data-impl.d.ts +0 -34
  171. package/dist/wcardinal/ui/d-diagram-canvas-data-map.js.map +0 -1
  172. package/dist/wcardinal/ui/d-diagram-canvas-id-map.js +0 -2
  173. package/dist/wcardinal/ui/d-diagram-canvas-id-map.js.map +0 -1
  174. package/dist/wcardinal/ui/shape/variant/e-shape-data-impl.js.map +0 -1
  175. package/dist/wcardinal/ui/shape/variant/e-shape-data-value-impl.js.map +0 -1
  176. package/dist/wcardinal/ui/shape/variant/e-shape-data-value-range-impl.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-resource-manager-deserialization.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-resource-manager-deserialization.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqBH;IAmBC,8CACC,UAA0D,EAC1D,MAA4B,EAC5B,SAA8D,EAC9D,UAA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Fill,\n\tDDiagramSerializedStroke,\n\tDDiagramSerializedDataRange,\n\tDDiagramSerializedDataValue,\n\tDDiagramSerializedText,\n\tDDiagramSerializedTextOutline\n} from \"../d-diagram-serialized\";\nimport { EShapeActionValue } from \"./action/e-shape-action-value\";\nimport { EShapeTextAlignHorizontal } from \"./e-shape-text-align-horizontal\";\nimport { EShapeTextAlignVertical } from \"./e-shape-text-align-vertical\";\nimport { EShapeEmbeddedDatum } from \"./variant/e-shape-embedded-datum\";\n\nexport interface EShapeResourceManagerDeserializationSerialized {\n\tresources: string[];\n\ttags?: string[];\n\tdata?: string[];\n}\n\nexport class EShapeResourceManagerDeserialization {\n\tresources: string[];\n\tdata: string[];\n\tpieces?: string[];\n\tpieceData?: Map<string, EShapeEmbeddedDatum | null>;\n\tisEditMode: boolean;\n\n\tprotected _actions: Map<number, EShapeActionValue>;\n\tprotected _fills: Map<number, DDiagramSerializedFill>;\n\tprotected _strokes: Map<number, DDiagramSerializedStroke>;\n\tprotected _dataValues: Map<number, DDiagramSerializedDataValue>;\n\tprotected _data: Map<number, number[]>;\n\tprotected _ranges: Map<number, DDiagramSerializedDataRange>;\n\tprotected _aligns: Map<number, [EShapeTextAlignHorizontal, EShapeTextAlignVertical]>;\n\tprotected _margins: Map<number, [number, number]>;\n\tprotected _texts: Map<number, DDiagramSerializedText>;\n\tprotected _textOutlines: Map<number, DDiagramSerializedTextOutline>;\n\tprotected _extensions: Map<number, unknown>;\n\n\tconstructor(\n\t\tserialized: EShapeResourceManagerDeserializationSerialized,\n\t\tpieces: string[] | undefined,\n\t\tpieceData: Map<string, EShapeEmbeddedDatum | null> | undefined,\n\t\tisEditMode: boolean\n\t) {\n\t\tthis.resources = serialized.resources;\n\t\tthis.data = serialized.data || serialized.tags || serialized.resources;\n\t\tthis.pieces = pieces;\n\t\tthis.pieceData = pieceData;\n\t\tthis.isEditMode = isEditMode;\n\n\t\tthis._actions = new Map<number, EShapeActionValue>();\n\t\tthis._fills = new Map<number, DDiagramSerializedFill>();\n\t\tthis._strokes = new Map<number, DDiagramSerializedStroke>();\n\t\tthis._data = new Map<number, number[]>();\n\t\tthis._dataValues = new Map<number, DDiagramSerializedDataValue>();\n\t\tthis._ranges = new Map<number, DDiagramSerializedDataRange>();\n\t\tthis._aligns = new Map<number, [EShapeTextAlignHorizontal, EShapeTextAlignVertical]>();\n\t\tthis._margins = new Map<number, [number, number]>();\n\t\tthis._texts = new Map<number, DDiagramSerializedText>();\n\t\tthis._textOutlines = new Map<number, DDiagramSerializedTextOutline>();\n\t\tthis._extensions = new Map<number, unknown>();\n\t}\n\n\tgetAction(id: number): EShapeActionValue | undefined {\n\t\treturn this._actions.get(id);\n\t}\n\n\tsetAction(id: number, action: EShapeActionValue): void {\n\t\tthis._actions.set(id, action);\n\t}\n\n\tgetFill(id: number): DDiagramSerializedFill | undefined {\n\t\treturn this._fills.get(id);\n\t}\n\n\tsetFill(id: number, fill: DDiagramSerializedFill): void {\n\t\tthis._fills.set(id, fill);\n\t}\n\n\tgetStroke(id: number): DDiagramSerializedStroke | undefined {\n\t\treturn this._strokes.get(id);\n\t}\n\n\tsetStroke(id: number, stroke: DDiagramSerializedStroke): void {\n\t\tthis._strokes.set(id, stroke);\n\t}\n\n\tgetData(id: number): number[] | undefined {\n\t\treturn this._data.get(id);\n\t}\n\n\tsetData(id: number, data: number[]): void {\n\t\tthis._data.set(id, data);\n\t}\n\n\tgetDataValue(id: number): DDiagramSerializedDataValue | undefined {\n\t\treturn this._dataValues.get(id);\n\t}\n\n\tsetDataValue(id: number, dataValue: DDiagramSerializedDataValue): void {\n\t\tthis._dataValues.set(id, dataValue);\n\t}\n\n\tgetRange(id: number): DDiagramSerializedDataRange | undefined {\n\t\treturn this._ranges.get(id);\n\t}\n\n\tsetRange(id: number, range: DDiagramSerializedDataRange): void {\n\t\tthis._ranges.set(id, range);\n\t}\n\n\tgetAlign(id: number): [EShapeTextAlignHorizontal, EShapeTextAlignVertical] | undefined {\n\t\treturn this._aligns.get(id);\n\t}\n\n\tsetAlign(id: number, align: [EShapeTextAlignHorizontal, EShapeTextAlignVertical]): void {\n\t\tthis._aligns.set(id, align);\n\t}\n\n\tgetMargin(id: number): [number, number] | undefined {\n\t\treturn this._margins.get(id);\n\t}\n\n\tsetMargin(id: number, margin: [number, number]): void {\n\t\tthis._margins.set(id, margin);\n\t}\n\n\tgetText(id: number): DDiagramSerializedText | undefined {\n\t\treturn this._texts.get(id);\n\t}\n\n\tsetText(id: number, text: DDiagramSerializedText): void {\n\t\tthis._texts.set(id, text);\n\t}\n\n\tgetTextOutline(id: number): DDiagramSerializedTextOutline | undefined {\n\t\treturn this._textOutlines.get(id);\n\t}\n\n\tsetTextOutline(id: number, textOutline: DDiagramSerializedTextOutline): void {\n\t\tthis._textOutlines.set(id, textOutline);\n\t}\n\n\tgetExtension<T>(id: number): T | undefined {\n\t\treturn this._extensions.get(id) as T | undefined;\n\t}\n\n\tsetExtension(id: number, extension: unknown): void {\n\t\tthis._extensions.set(id, extension);\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-resource-manager-deserialization.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-resource-manager-deserialization.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAWlE;IAsBC,8CACC,UAA0D,EAC1D,MAA4B,EAC5B,SAA8D,EAC9D,UAAmB;QAEnB,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,SAAS,CAAC;QACvE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAE7B,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,EAA6B,CAAC;QAC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,CAAC;IAC5B,CAAC;IAED,sDAAO,GAAP,UAAQ,EAAU,EAAE,IAA4B;QAC/C,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,6DAAc,GAAd,UAAe,EAAU;QACxB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAED,6DAAc,GAAd,UAAe,EAAU,EAAE,WAA0C;QACpE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IACzC,CAAC;IAED,2DAAY,GAAZ,UAAgB,EAAU;QACzB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAkB,CAAC;IAClD,CAAC;IAED,2DAAY,GAAZ,UAAa,EAAU,EAAE,SAAkB;QAC1C,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;IACrC,CAAC;IACF,2CAAC;AAAD,CAAC,AArKD,IAqKC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {\n\tDDiagramSerializedFill,\n\tDDiagramSerializedStroke,\n\tDDiagramSerializedDataRange,\n\tDDiagramSerializedDataValue,\n\tDDiagramSerializedText,\n\tDDiagramSerializedTextOutline,\n\tDDiagramSerializedData,\n\tDDiagramSerializedDataMapping\n} from \"../d-diagram-serialized\";\nimport { EShapeActionValue } from \"./action/e-shape-action-value\";\nimport { EShapeDataMapper } from \"./e-shape-data-mapper\";\nimport { EShapeDataMapperImpl } from \"./e-shape-data-mapper-impl\";\nimport { EShapeTextAlignHorizontal } from \"./e-shape-text-align-horizontal\";\nimport { EShapeTextAlignVertical } from \"./e-shape-text-align-vertical\";\nimport { EShapeEmbeddedDatum } from \"./variant/e-shape-embedded-datum\";\n\nexport interface EShapeResourceManagerDeserializationSerialized {\n\tresources: string[];\n\ttags?: string[];\n\tdata?: string[];\n}\n\nexport class EShapeResourceManagerDeserialization {\n\tresources: string[];\n\tdata: string[];\n\tpieces?: string[];\n\tpieceData?: Map<string, EShapeEmbeddedDatum | null>;\n\tisEditMode: boolean;\n\n\tprotected _actions: Map<number, EShapeActionValue>;\n\tprotected _fills: Map<number, DDiagramSerializedFill>;\n\tprotected _strokes: Map<number, DDiagramSerializedStroke>;\n\tprotected _data: Map<number, DDiagramSerializedData>;\n\tprotected _dataValues: Map<number, DDiagramSerializedDataValue>;\n\tprotected _dataMapping: Map<number, DDiagramSerializedDataMapping>;\n\tprotected _dataMappers: Map<string, EShapeDataMapper | null>;\n\tprotected _dataDestinations: Map<string, string[] | null>;\n\tprotected _ranges: Map<number, DDiagramSerializedDataRange>;\n\tprotected _aligns: Map<number, [EShapeTextAlignHorizontal, EShapeTextAlignVertical]>;\n\tprotected _margins: Map<number, [number, number]>;\n\tprotected _texts: Map<number, DDiagramSerializedText>;\n\tprotected _textOutlines: Map<number, DDiagramSerializedTextOutline>;\n\tprotected _extensions: Map<number, unknown>;\n\n\tconstructor(\n\t\tserialized: EShapeResourceManagerDeserializationSerialized,\n\t\tpieces: string[] | undefined,\n\t\tpieceData: Map<string, EShapeEmbeddedDatum | null> | undefined,\n\t\tisEditMode: boolean\n\t) {\n\t\tthis.resources = serialized.resources;\n\t\tthis.data = serialized.data || serialized.tags || serialized.resources;\n\t\tthis.pieces = pieces;\n\t\tthis.pieceData = pieceData;\n\t\tthis.isEditMode = isEditMode;\n\n\t\tthis._actions = new Map<number, EShapeActionValue>();\n\t\tthis._fills = new Map<number, DDiagramSerializedFill>();\n\t\tthis._strokes = new Map<number, DDiagramSerializedStroke>();\n\t\tthis._data = new Map<number, DDiagramSerializedData>();\n\t\tthis._dataValues = new Map<number, DDiagramSerializedDataValue>();\n\t\tthis._dataMapping = new Map<number, DDiagramSerializedDataMapping>();\n\t\tthis._dataMappers = new Map<string, EShapeDataMapper | null>();\n\t\tthis._dataDestinations = new Map<string, string[] | null>();\n\t\tthis._ranges = new Map<number, DDiagramSerializedDataRange>();\n\t\tthis._aligns = new Map<number, [EShapeTextAlignHorizontal, EShapeTextAlignVertical]>();\n\t\tthis._margins = new Map<number, [number, number]>();\n\t\tthis._texts = new Map<number, DDiagramSerializedText>();\n\t\tthis._textOutlines = new Map<number, DDiagramSerializedTextOutline>();\n\t\tthis._extensions = new Map<number, unknown>();\n\t}\n\n\tgetAction(id: number): EShapeActionValue | undefined {\n\t\treturn this._actions.get(id);\n\t}\n\n\tsetAction(id: number, action: EShapeActionValue): void {\n\t\tthis._actions.set(id, action);\n\t}\n\n\tgetFill(id: number): DDiagramSerializedFill | undefined {\n\t\treturn this._fills.get(id);\n\t}\n\n\tsetFill(id: number, fill: DDiagramSerializedFill): void {\n\t\tthis._fills.set(id, fill);\n\t}\n\n\tgetStroke(id: number): DDiagramSerializedStroke | undefined {\n\t\treturn this._strokes.get(id);\n\t}\n\n\tsetStroke(id: number, stroke: DDiagramSerializedStroke): void {\n\t\tthis._strokes.set(id, stroke);\n\t}\n\n\tgetData(id: number): DDiagramSerializedData | undefined {\n\t\treturn this._data.get(id);\n\t}\n\n\tsetData(id: number, data: DDiagramSerializedData): void {\n\t\tthis._data.set(id, data);\n\t}\n\n\tgetDataValue(id: number): DDiagramSerializedDataValue | undefined {\n\t\treturn this._dataValues.get(id);\n\t}\n\n\tsetDataValue(id: number, dataValue: DDiagramSerializedDataValue): void {\n\t\tthis._dataValues.set(id, dataValue);\n\t}\n\n\tgetDataMapping(id: number): DDiagramSerializedDataMapping | undefined {\n\t\treturn this._dataMapping.get(id);\n\t}\n\n\tsetDataMapping(id: number, dataMapping: DDiagramSerializedDataMapping): void {\n\t\tthis._dataMapping.set(id, dataMapping);\n\t}\n\n\tgetDataMapper(source: string): EShapeDataMapper | null {\n\t\tconst dataMappers = this._dataMappers;\n\t\tlet result = dataMappers.get(source);\n\t\tif (result === undefined) {\n\t\t\tresult = new EShapeDataMapperImpl(source);\n\t\t\tdataMappers.set(source, result);\n\t\t}\n\t\treturn result;\n\t}\n\n\tgetDataDestination(destination: string): string[] | null {\n\t\tconst dataDestinations = this._dataDestinations;\n\t\tlet result: string[] | null | undefined = dataDestinations.get(destination);\n\t\tif (result === undefined) {\n\t\t\tresult = EShapeDataMapperImpl.split(destination);\n\t\t\tdataDestinations.set(destination, result);\n\t\t}\n\t\treturn result;\n\t}\n\n\tgetRange(id: number): DDiagramSerializedDataRange | undefined {\n\t\treturn this._ranges.get(id);\n\t}\n\n\tsetRange(id: number, range: DDiagramSerializedDataRange): void {\n\t\tthis._ranges.set(id, range);\n\t}\n\n\tgetAlign(id: number): [EShapeTextAlignHorizontal, EShapeTextAlignVertical] | undefined {\n\t\treturn this._aligns.get(id);\n\t}\n\n\tsetAlign(id: number, align: [EShapeTextAlignHorizontal, EShapeTextAlignVertical]): void {\n\t\tthis._aligns.set(id, align);\n\t}\n\n\tgetMargin(id: number): [number, number] | undefined {\n\t\treturn this._margins.get(id);\n\t}\n\n\tsetMargin(id: number, margin: [number, number]): void {\n\t\tthis._margins.set(id, margin);\n\t}\n\n\tgetText(id: number): DDiagramSerializedText | undefined {\n\t\treturn this._texts.get(id);\n\t}\n\n\tsetText(id: number, text: DDiagramSerializedText): void {\n\t\tthis._texts.set(id, text);\n\t}\n\n\tgetTextOutline(id: number): DDiagramSerializedTextOutline | undefined {\n\t\treturn this._textOutlines.get(id);\n\t}\n\n\tsetTextOutline(id: number, textOutline: DDiagramSerializedTextOutline): void {\n\t\tthis._textOutlines.set(id, textOutline);\n\t}\n\n\tgetExtension<T>(id: number): T | undefined {\n\t\treturn this._extensions.get(id) as T | undefined;\n\t}\n\n\tsetExtension(id: number, extension: unknown): void {\n\t\tthis._extensions.set(id, extension);\n\t}\n}\n"]}
@@ -30,7 +30,19 @@ export * from "./e-shape-connectors";
30
30
  export * from "./e-shape-container";
31
31
  export * from "./e-shape-copy-part";
32
32
  export * from "./e-shape-corner";
33
+ export * from "./e-shape-data-impl";
34
+ export * from "./e-shape-data-mapper-impl";
35
+ export * from "./e-shape-data-mapper";
36
+ export * from "./e-shape-data-mapping-impl";
37
+ export * from "./e-shape-data-mapping";
38
+ export * from "./e-shape-data-private-impl";
39
+ export * from "./e-shape-data-private";
40
+ export * from "./e-shape-data-value-impl";
41
+ export * from "./e-shape-data-value-scope";
42
+ export * from "./e-shape-data-value-order";
43
+ export * from "./e-shape-data-value-range-impl";
33
44
  export * from "./e-shape-data-value-range";
45
+ export * from "./e-shape-data-value-type";
34
46
  export * from "./e-shape-data-value";
35
47
  export * from "./e-shape-data";
36
48
  export * from "./e-shape-defaults";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB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A0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./action\";\nexport * from \"./load\";\nexport * from \"./variant\";\nexport * from \"./e-shape-acceptor-impl\";\nexport * from \"./e-shape-acceptor-type\";\nexport * from \"./e-shape-acceptor\";\nexport * from \"./e-shape-acceptors\";\nexport * from \"./e-shape-buffer-unit-builder\";\nexport * from \"./e-shape-buffer-unit\";\nexport * from \"./e-shape-buffer\";\nexport * from \"./e-shape-capabilities\";\nexport * from \"./e-shape-capability\";\nexport * from \"./e-shape-connector-bodies\";\nexport * from \"./e-shape-connector-body-impl\";\nexport * from \"./e-shape-connector-body\";\nexport * from \"./e-shape-connector-container-impl\";\nexport * from \"./e-shape-connector-container\";\nexport * from \"./e-shape-connector-edge-acceptor-impl\";\nexport * from \"./e-shape-connector-edge-acceptor\";\nexport * from \"./e-shape-connector-edge-container-impl\";\nexport * from \"./e-shape-connector-edge-container\";\nexport * from \"./e-shape-connector-edge-impl\";\nexport * from \"./e-shape-connector-edge\";\nexport * from \"./e-shape-connector\";\nexport * from \"./e-shape-connectors\";\nexport * from \"./e-shape-container\";\nexport * from \"./e-shape-copy-part\";\nexport * from \"./e-shape-corner\";\nexport * from \"./e-shape-data-value-range\";\nexport * from \"./e-shape-data-value\";\nexport * from \"./e-shape-data\";\nexport * from \"./e-shape-defaults\";\nexport * from \"./e-shape-deleter\";\nexport * from \"./e-shape-deserializers\";\nexport * from \"./e-shape-editor\";\nexport * from \"./e-shape-fill\";\nexport * from \"./e-shape-gradient\";\nexport * from \"./e-shape-layer-container\";\nexport * from \"./e-shape-layer-state\";\nexport * from \"./e-shape-layer\";\nexport * from \"./e-shape-layout\";\nexport * from \"./e-shape-points-formatted\";\nexport * from \"./e-shape-points-formatter-curve\";\nexport * from \"./e-shape-points-formatter\";\nexport * from \"./e-shape-points-marker-base\";\nexport * from \"./e-shape-points-marker-container-impl-noop\";\nexport * from \"./e-shape-points-marker-container-impl\";\nexport * from \"./e-shape-points-marker-container\";\nexport * from \"./e-shape-points-marker-head\";\nexport * from \"./e-shape-points-marker-noop\";\nexport * from \"./e-shape-points-marker-tail\";\nexport * from \"./e-shape-points-marker-type\";\nexport * from \"./e-shape-points-marker\";\nexport * from \"./e-shape-points-style\";\nexport * from \"./e-shape-points-styles\";\nexport * from \"./e-shape-points\";\nexport * from \"./e-shape-renderer-iterator-datum\";\nexport * from \"./e-shape-renderer-iterator\";\nexport * from \"./e-shape-renderer\";\nexport * from \"./e-shape-resource-manager-deserialization\";\nexport * from \"./e-shape-resource-manager-serialization\";\nexport * from \"./e-shape-runtime\";\nexport * from \"./e-shape-runtimes\";\nexport * from \"./e-shape-search\";\nexport * from \"./e-shape-state-set-impl-observable\";\nexport * from \"./e-shape-state-set\";\nexport * from \"./e-shape-state\";\nexport * from \"./e-shape-stroke-side\";\nexport * from \"./e-shape-stroke-style\";\nexport * from \"./e-shape-stroke\";\nexport * from \"./e-shape-text-align-horizontal\";\nexport * from \"./e-shape-text-align-vertical\";\nexport * from \"./e-shape-text-align\";\nexport * from \"./e-shape-text-direction\";\nexport * from \"./e-shape-text-offset\";\nexport * from \"./e-shape-text-outline\";\nexport * from \"./e-shape-text\";\nexport * from \"./e-shape-transform-parent\";\nexport * from \"./e-shape-transform\";\nexport * from \"./e-shape-transforms\";\nexport * from \"./e-shape-type\";\nexport * from \"./e-shape-uploaded-constructor\";\nexport * from \"./e-shape-uploaded\";\nexport * from \"./e-shape-uploadeds\";\nexport * from \"./e-shape-uuid-mapping-impl\";\nexport * from \"./e-shape-uuid-mapping\";\nexport * from \"./e-shape\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,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AAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./action\";\nexport * from \"./load\";\nexport * from \"./variant\";\nexport * from \"./e-shape-acceptor-impl\";\nexport * from \"./e-shape-acceptor-type\";\nexport * from \"./e-shape-acceptor\";\nexport * from \"./e-shape-acceptors\";\nexport * from \"./e-shape-buffer-unit-builder\";\nexport * from \"./e-shape-buffer-unit\";\nexport * from \"./e-shape-buffer\";\nexport * from \"./e-shape-capabilities\";\nexport * from \"./e-shape-capability\";\nexport * from \"./e-shape-connector-bodies\";\nexport * from \"./e-shape-connector-body-impl\";\nexport * from \"./e-shape-connector-body\";\nexport * from \"./e-shape-connector-container-impl\";\nexport * from \"./e-shape-connector-container\";\nexport * from \"./e-shape-connector-edge-acceptor-impl\";\nexport * from \"./e-shape-connector-edge-acceptor\";\nexport * from \"./e-shape-connector-edge-container-impl\";\nexport * from \"./e-shape-connector-edge-container\";\nexport * from \"./e-shape-connector-edge-impl\";\nexport * from \"./e-shape-connector-edge\";\nexport * from \"./e-shape-connector\";\nexport * from \"./e-shape-connectors\";\nexport * from \"./e-shape-container\";\nexport * from \"./e-shape-copy-part\";\nexport * from \"./e-shape-corner\";\nexport * from \"./e-shape-data-impl\";\nexport * from \"./e-shape-data-mapper-impl\";\nexport * from \"./e-shape-data-mapper\";\nexport * from \"./e-shape-data-mapping-impl\";\nexport * from \"./e-shape-data-mapping\";\nexport * from \"./e-shape-data-private-impl\";\nexport * from \"./e-shape-data-private\";\nexport * from \"./e-shape-data-value-impl\";\nexport * from \"./e-shape-data-value-scope\";\nexport * from \"./e-shape-data-value-order\";\nexport * from \"./e-shape-data-value-range-impl\";\nexport * from \"./e-shape-data-value-range\";\nexport * from \"./e-shape-data-value-type\";\nexport * from \"./e-shape-data-value\";\nexport * from \"./e-shape-data\";\nexport * from \"./e-shape-defaults\";\nexport * from \"./e-shape-deleter\";\nexport * from \"./e-shape-deserializers\";\nexport * from \"./e-shape-editor\";\nexport * from \"./e-shape-fill\";\nexport * from \"./e-shape-gradient\";\nexport * from \"./e-shape-layer-container\";\nexport * from \"./e-shape-layer-state\";\nexport * from \"./e-shape-layer\";\nexport * from \"./e-shape-layout\";\nexport * from \"./e-shape-points-formatted\";\nexport * from \"./e-shape-points-formatter-curve\";\nexport * from \"./e-shape-points-formatter\";\nexport * from \"./e-shape-points-marker-base\";\nexport * from \"./e-shape-points-marker-container-impl-noop\";\nexport * from \"./e-shape-points-marker-container-impl\";\nexport * from \"./e-shape-points-marker-container\";\nexport * from \"./e-shape-points-marker-head\";\nexport * from \"./e-shape-points-marker-noop\";\nexport * from \"./e-shape-points-marker-tail\";\nexport * from \"./e-shape-points-marker-type\";\nexport * from \"./e-shape-points-marker\";\nexport * from \"./e-shape-points-style\";\nexport * from \"./e-shape-points-styles\";\nexport * from \"./e-shape-points\";\nexport * from \"./e-shape-renderer-iterator-datum\";\nexport * from \"./e-shape-renderer-iterator\";\nexport * from \"./e-shape-renderer\";\nexport * from \"./e-shape-resource-manager-deserialization\";\nexport * from \"./e-shape-resource-manager-serialization\";\nexport * from \"./e-shape-runtime\";\nexport * from \"./e-shape-runtimes\";\nexport * from \"./e-shape-search\";\nexport * from \"./e-shape-state-set-impl-observable\";\nexport * from \"./e-shape-state-set\";\nexport * from \"./e-shape-state\";\nexport * from \"./e-shape-stroke-side\";\nexport * from \"./e-shape-stroke-style\";\nexport * from \"./e-shape-stroke\";\nexport * from \"./e-shape-text-align-horizontal\";\nexport * from \"./e-shape-text-align-vertical\";\nexport * from \"./e-shape-text-align\";\nexport * from \"./e-shape-text-direction\";\nexport * from \"./e-shape-text-offset\";\nexport * from \"./e-shape-text-outline\";\nexport * from \"./e-shape-text\";\nexport * from \"./e-shape-transform-parent\";\nexport * from \"./e-shape-transform\";\nexport * from \"./e-shape-transforms\";\nexport * from \"./e-shape-type\";\nexport * from \"./e-shape-uploaded-constructor\";\nexport * from \"./e-shape-uploaded\";\nexport * from \"./e-shape-uploadeds\";\nexport * from \"./e-shape-uuid-mapping-impl\";\nexport * from \"./e-shape-uuid-mapping\";\nexport * from \"./e-shape\";\n"]}
@@ -7,7 +7,7 @@ import { EShapeCapability } from "../e-shape-capability";
7
7
  import { EShapeDeserializers } from "../e-shape-deserializers";
8
8
  import { EShapeType } from "../e-shape-type";
9
9
  import { EShapeUploadeds } from "../e-shape-uploadeds";
10
- import { createRectanglePivotedUploaded } from "../variant";
10
+ import { createRectanglePivotedUploaded } from "../variant/create-rectangle-pivoted-uploaded";
11
11
  import { deserializeRectanglePivoted } from "../variant/deserialize-rectangle-pivoted";
12
12
  export var loadShapeRectanglePivoted = function () {
13
13
  EShapeUploadeds[EShapeType.RECTANGLE_PIVOTED] = createRectanglePivotedUploaded;
@@ -1 +1 @@
1
- {"version":3,"file":"load-shape-rectangle-pivoted.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-rectangle-pivoted.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAEvF,MAAM,CAAC,IAAM,yBAAyB,GAAG;IACxC,eAAe,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,8BAA8B,CAAC;IAC/E,mBAAmB,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,2BAA2B,CAAC;IAChF,kBAAkB,CAAC,GAAG,CACrB,UAAU,CAAC,iBAAiB,EAC5B,gBAAgB,CAAC,SAAS,GAAG,gBAAgB,CAAC,WAAW,CACzD,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\nimport { EShapeDeserializers } from \"../e-shape-deserializers\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeUploadeds } from \"../e-shape-uploadeds\";\nimport { createRectanglePivotedUploaded } from \"../variant\";\nimport { deserializeRectanglePivoted } from \"../variant/deserialize-rectangle-pivoted\";\n\nexport const loadShapeRectanglePivoted = (): void => {\n\tEShapeUploadeds[EShapeType.RECTANGLE_PIVOTED] = createRectanglePivotedUploaded;\n\tEShapeDeserializers[EShapeType.RECTANGLE_PIVOTED] = deserializeRectanglePivoted;\n\tEShapeCapabilities.set(\n\t\tEShapeType.RECTANGLE_PIVOTED,\n\t\tEShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE\n\t);\n};\n"]}
1
+ {"version":3,"file":"load-shape-rectangle-pivoted.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-rectangle-pivoted.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAEvF,MAAM,CAAC,IAAM,yBAAyB,GAAG;IACxC,eAAe,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,8BAA8B,CAAC;IAC/E,mBAAmB,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,2BAA2B,CAAC;IAChF,kBAAkB,CAAC,GAAG,CACrB,UAAU,CAAC,iBAAiB,EAC5B,gBAAgB,CAAC,SAAS,GAAG,gBAAgB,CAAC,WAAW,CACzD,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\nimport { EShapeDeserializers } from \"../e-shape-deserializers\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeUploadeds } from \"../e-shape-uploadeds\";\nimport { createRectanglePivotedUploaded } from \"../variant/create-rectangle-pivoted-uploaded\";\nimport { deserializeRectanglePivoted } from \"../variant/deserialize-rectangle-pivoted\";\n\nexport const loadShapeRectanglePivoted = (): void => {\n\tEShapeUploadeds[EShapeType.RECTANGLE_PIVOTED] = createRectanglePivotedUploaded;\n\tEShapeDeserializers[EShapeType.RECTANGLE_PIVOTED] = deserializeRectanglePivoted;\n\tEShapeCapabilities.set(\n\t\tEShapeType.RECTANGLE_PIVOTED,\n\t\tEShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE\n\t);\n};\n"]}
@@ -16,6 +16,7 @@ var create = function (name, width, height, container, manager, item) {
16
16
  container.copyTo(shape);
17
17
  shape.size.init();
18
18
  shape.size.set(sizeX, sizeY);
19
+ applyDataMappings(shape, manager);
19
20
  return result;
20
21
  };
21
22
  var createMissing = function (name, manager, item) {
@@ -41,8 +42,43 @@ var createMissing = function (name, manager, item) {
41
42
  shape.toDirty();
42
43
  shape.onAttach();
43
44
  shape.size.init();
45
+ applyDataMappings(shape, manager);
44
46
  return result;
45
47
  };
48
+ var applyDataMappings = function (shape, manager) {
49
+ var mapping = shape.data.getMapping();
50
+ if (mapping != null) {
51
+ var values = mapping.values;
52
+ for (var i = 0, imax = values.length; i < imax; ++i) {
53
+ var value = values[i];
54
+ var source = value[0];
55
+ var mapper = manager.getDataMapper(source);
56
+ if (mapper != null) {
57
+ var children = shape.children;
58
+ var destination = manager.getDataDestination(value[1]);
59
+ var initial = value[2];
60
+ applyDataMapping(children, mapper, destination, initial);
61
+ }
62
+ }
63
+ }
64
+ };
65
+ var applyDataMapping = function (targets, mapper, destination, initial) {
66
+ for (var i = 0, imax = targets.length; i < imax; ++i) {
67
+ var target = targets[i];
68
+ var targetData = target.data;
69
+ for (var j = 0, jmax = targetData.size(); j < jmax; ++j) {
70
+ var targetDatum = targetData.get(j);
71
+ if (targetDatum) {
72
+ mapper.map(targetDatum, destination, initial);
73
+ }
74
+ }
75
+ // Children
76
+ var children = target.children;
77
+ if (0 < children.length) {
78
+ applyDataMapping(children, mapper, destination, initial);
79
+ }
80
+ }
81
+ };
46
82
  export var deserializeEmbedded = function (item, manager) {
47
83
  var pieces = manager.pieces;
48
84
  var pieceId = item[15];
@@ -1 +1 @@
1
- {"version":3,"file":"deserialize-embedded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-embedded.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAA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AG,MAAM,CAAC,MAAM,EAAE;QACtD,IAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACpC,IAAI,SAAS,EAAE;YACd,IAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAM,UAAU,GAAG,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACxC,IAAI,UAAU,EAAE;gBACf,OAAO,MAAM,CACZ,KAAK,EACL,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,MAAM,EACjB,UAAU,CAAC,KAAK,EAChB,OAAO,EACP,IAAI,CACJ,CAAC;aACF;iBAAM;gBACN,OAAO,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;aAC3C;SACD;KACD;IACD,OAAO,IAAI,CAAC;AACb,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShapeLayerContainer } from \"../e-shape-layer-container\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { deserializeBase } from \"./deserialize-base\";\nimport { EShapeEmbedded } from \"./e-shape-embedded\";\nimport { EShapeEmbeddedLayer } from \"./e-shape-embedded-layer\";\nimport { EShapeRectangle } from \"./e-shape-rectangle\";\n\nconst create = (\n\tname: string,\n\twidth: number,\n\theight: number,\n\tcontainer: EShapeLayerContainer,\n\tmanager: EShapeResourceManagerDeserialization,\n\titem: DDiagramSerializedItem\n): Promise<EShapeEmbedded> | EShapeEmbedded => {\n\tconst shape = new EShapeEmbedded(name, manager.isEditMode);\n\tconst result = deserializeBase(item, manager, shape);\n\tconst shapeSize = shape.size;\n\tconst sizeX = shapeSize.x;\n\tconst sizeY = shapeSize.y;\n\tshape.size.set(width, height);\n\tcontainer.copyTo(shape);\n\tshape.size.init();\n\tshape.size.set(sizeX, sizeY);\n\treturn result;\n};\n\nconst createMissing = (\n\tname: string,\n\tmanager: EShapeResourceManagerDeserialization,\n\titem: DDiagramSerializedItem\n): Promise<EShapeEmbedded> | EShapeEmbedded => {\n\tconst shape = new EShapeEmbedded(name, manager.isEditMode);\n\tconst result = deserializeBase(item, manager, shape);\n\n\tconst size = shape.size;\n\tconst sizeX = size.x;\n\tconst sizeY = size.y;\n\n\tconst children = shape.children;\n\tconst layer = new EShapeEmbeddedLayer(\"missing\", manager.isEditMode);\n\tconst px = 0.5 * sizeX;\n\tconst py = 0.5 * sizeX;\n\tlayer.transform.position.set(-px, -py);\n\tlayer.size.set(sizeX, sizeY);\n\tlayer.parent = shape;\n\n\tconst rectangle = new EShapeRectangle();\n\trectangle.stroke.color = 0xff0000;\n\trectangle.transform.position.set(px, py);\n\trectangle.size.copyFrom(shape.size);\n\trectangle.attach(layer);\n\n\tchildren.push(layer);\n\tshape.onChildTransformChange();\n\tshape.toDirty();\n\tshape.onAttach();\n\n\tshape.size.init();\n\treturn result;\n};\n\nexport const deserializeEmbedded = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization\n): Promise<EShapeEmbedded> | EShapeEmbedded | null => {\n\tconst pieces = manager.pieces;\n\tconst pieceId = item[15];\n\tif (pieces && 0 <= pieceId && pieceId < pieces.length) {\n\t\tconst pieceData = manager.pieceData;\n\t\tif (pieceData) {\n\t\t\tconst piece = pieces[pieceId];\n\t\t\tconst pieceDatum = pieceData.get(piece);\n\t\t\tif (pieceDatum) {\n\t\t\t\treturn create(\n\t\t\t\t\tpiece,\n\t\t\t\t\tpieceDatum.width,\n\t\t\t\t\tpieceDatum.height,\n\t\t\t\t\tpieceDatum.layer,\n\t\t\t\t\tmanager,\n\t\t\t\t\titem\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\treturn createMissing(piece, manager, item);\n\t\t\t}\n\t\t}\n\t}\n\treturn null;\n};\n"]}
1
+ {"version":3,"file":"deserialize-embedded.js","sourceRoot":"","sources":["../../../../../src/main/typesc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import { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeDataMapper } from \"../e-shape-data-mapper\";\nimport { EShapeLayerContainer } from \"../e-shape-layer-container\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { deserializeBase } from \"./deserialize-base\";\nimport { EShapeEmbedded } from \"./e-shape-embedded\";\nimport { EShapeEmbeddedLayer } from \"./e-shape-embedded-layer\";\nimport { EShapeRectangle } from \"./e-shape-rectangle\";\n\nconst create = (\n\tname: string,\n\twidth: number,\n\theight: number,\n\tcontainer: EShapeLayerContainer,\n\tmanager: EShapeResourceManagerDeserialization,\n\titem: DDiagramSerializedItem\n): Promise<EShapeEmbedded> | EShapeEmbedded => {\n\tconst shape = new EShapeEmbedded(name, manager.isEditMode);\n\tconst result = deserializeBase(item, manager, shape);\n\tconst shapeSize = shape.size;\n\tconst sizeX = shapeSize.x;\n\tconst sizeY = shapeSize.y;\n\tshape.size.set(width, height);\n\tcontainer.copyTo(shape);\n\tshape.size.init();\n\tshape.size.set(sizeX, sizeY);\n\tapplyDataMappings(shape, manager);\n\treturn result;\n};\n\nconst createMissing = (\n\tname: string,\n\tmanager: EShapeResourceManagerDeserialization,\n\titem: DDiagramSerializedItem\n): Promise<EShapeEmbedded> | EShapeEmbedded => {\n\tconst shape = new EShapeEmbedded(name, manager.isEditMode);\n\tconst result = deserializeBase(item, manager, shape);\n\n\tconst size = shape.size;\n\tconst sizeX = size.x;\n\tconst sizeY = size.y;\n\n\tconst children = shape.children;\n\tconst layer = new EShapeEmbeddedLayer(\"missing\", manager.isEditMode);\n\tconst px = 0.5 * sizeX;\n\tconst py = 0.5 * sizeX;\n\tlayer.transform.position.set(-px, -py);\n\tlayer.size.set(sizeX, sizeY);\n\tlayer.parent = shape;\n\n\tconst rectangle = new EShapeRectangle();\n\trectangle.stroke.color = 0xff0000;\n\trectangle.transform.position.set(px, py);\n\trectangle.size.copyFrom(shape.size);\n\trectangle.attach(layer);\n\n\tchildren.push(layer);\n\tshape.onChildTransformChange();\n\tshape.toDirty();\n\tshape.onAttach();\n\n\tshape.size.init();\n\tapplyDataMappings(shape, manager);\n\treturn result;\n};\n\nconst applyDataMappings = (\n\tshape: EShapeEmbedded,\n\tmanager: EShapeResourceManagerDeserialization\n): void => {\n\tconst mapping = shape.data.getMapping();\n\tif (mapping != null) {\n\t\tconst values = mapping.values;\n\t\tfor (let i = 0, imax = values.length; i < imax; ++i) {\n\t\t\tconst value = values[i];\n\t\t\tconst source = value[0];\n\t\t\tconst mapper = manager.getDataMapper(source);\n\t\t\tif (mapper != null) {\n\t\t\t\tconst children = shape.children;\n\t\t\t\tconst destination = manager.getDataDestination(value[1]);\n\t\t\t\tconst initial = value[2];\n\t\t\t\tapplyDataMapping(children, mapper, destination, initial);\n\t\t\t}\n\t\t}\n\t}\n};\n\nconst applyDataMapping = (\n\ttargets: EShape[],\n\tmapper: EShapeDataMapper,\n\tdestination: string[] | null,\n\tinitial: string\n): void => {\n\tfor (let i = 0, imax = targets.length; i < imax; ++i) {\n\t\tconst target = targets[i];\n\n\t\tconst targetData = target.data;\n\t\tfor (let j = 0, jmax = targetData.size(); j < jmax; ++j) {\n\t\t\tconst targetDatum = targetData.get(j);\n\t\t\tif (targetDatum) {\n\t\t\t\tmapper.map(targetDatum, destination, initial);\n\t\t\t}\n\t\t}\n\n\t\t// Children\n\t\tconst children = target.children;\n\t\tif (0 < children.length) {\n\t\t\tapplyDataMapping(children, mapper, destination, initial);\n\t\t}\n\t}\n};\n\nexport const deserializeEmbedded = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization\n): Promise<EShapeEmbedded> | EShapeEmbedded | null => {\n\tconst pieces = manager.pieces;\n\tconst pieceId = item[15];\n\tif (pieces && 0 <= pieceId && pieceId < pieces.length) {\n\t\tconst pieceData = manager.pieceData;\n\t\tif (pieceData) {\n\t\t\tconst piece = pieces[pieceId];\n\t\t\tconst pieceDatum = pieceData.get(piece);\n\t\t\tif (pieceDatum) {\n\t\t\t\treturn create(\n\t\t\t\t\tpiece,\n\t\t\t\t\tpieceDatum.width,\n\t\t\t\t\tpieceDatum.height,\n\t\t\t\t\tpieceDatum.layer,\n\t\t\t\t\tmanager,\n\t\t\t\t\titem\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\treturn createMissing(piece, manager, item);\n\t\t\t}\n\t\t}\n\t}\n\treturn null;\n};\n"]}
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { __extends } from "tslib";
6
6
  import { UtilRgb } from "../../util/util-rgb";
7
- import { EShapeActionRuntime } from "../action";
7
+ import { EShapeActionRuntime } from "../action/e-shape-action-runtime";
8
8
  import { EShapeRuntimeReset } from "../e-shape-runtime";
9
9
  var EShapeButtonRuntimeActionToggle = /** @class */ (function (_super) {
10
10
  __extends(EShapeButtonRuntimeActionToggle, _super);
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-button-runtime-action-toggle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGvE;IAAqD,mDAAmB;IAkCvE,yCAAY,OAAsB;QAAlC,YACC,kBACC,kBAAkB,CAAC,qBAAqB;YACvC,kBAAkB,CAAC,UAAU;YAC7B,kBAAkB,CAAC,kBAAkB;YACrC,kBAAkB,CAAC,MAAM,CAC1B,SA8DD;QA5DA,IAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAC1B,IAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC;QACnC,KAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,IAAM,wBAAwB,GAAG,KAAI,CAAC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O,IAAI,CAAC,iBAAiB,CAAC;SAC9B;IACF,CAAC;IAES,6DAAmB,GAA7B,UAA8B,KAAqB;QAClD,IAAI,KAAK,CAAC,UAAU,EAAE;YACrB,OAAO,IAAI,CAAC,yBAAyB,CAAC;SACtC;aAAM;YACN,OAAO,IAAI,CAAC,iBAAiB,CAAC;SAC9B;IACF,CAAC;IAED,mDAAS,GAAT,UAAU,KAAqB;QAC9B,IAAI,KAAK,CAAC,YAAY,EAAE;YACvB,OAAO,SAAS,CAAC;SACjB;QACD,OAAO,EAAE,CAAC;IACX,CAAC;IACF,sCAAC;AAAD,CAAC,AArOD,CAAqD,mBAAmB,GAqOvE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { EShapeActionRuntime } from \"../action\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { EShapeStateSet } from \"../e-shape-state-set\";\n\nexport class EShapeButtonRuntimeActionToggle extends EShapeActionRuntime {\n\tprotected readonly _fillColorActive: number;\n\tprotected readonly _fillColorActivePressed: number;\n\tprotected readonly _fillColorActiveHovered: number;\n\tprotected readonly _fillColor: number;\n\tprotected readonly _fillColorPressed: number;\n\tprotected readonly _fillColorHovered: number;\n\n\tprotected readonly _fillAlpha: number;\n\tprotected readonly _fillAlphaDisabled: number;\n\n\tprotected readonly _strokeColorActive: number;\n\tprotected readonly _strokeColorActivePressed: number;\n\tprotected readonly _strokeColorActiveHovered: number;\n\tprotected readonly _strokeColor: number;\n\tprotected readonly _strokeColorPressed: number;\n\tprotected readonly _strokeColorGrayscaleHovered: number;\n\n\tprotected readonly _strokeAlpha: number;\n\tprotected readonly _strokeAlphaDisabled: number;\n\n\tprotected readonly _textColorActive: number;\n\tprotected readonly _textColor: number;\n\tprotected readonly _textColorDisabled: number;\n\n\tprotected readonly _textAlpha: number;\n\tprotected readonly _textAlphaDisabled: number;\n\n\tprotected readonly _textOutlineColor: number;\n\tprotected readonly _textOutlineColorDisabled: number;\n\n\tprotected readonly _textOutlineAlpha: number;\n\tprotected readonly _textOutlineAlphaDisabled: number;\n\n\tconstructor(runtime: EShapeRuntime) {\n\t\tsuper(\n\t\t\tEShapeRuntimeReset.COLOR_FILL_AND_STROKE |\n\t\t\t\tEShapeRuntimeReset.COLOR_TEXT |\n\t\t\t\tEShapeRuntimeReset.COLOR_TEXT_OUTLINE |\n\t\t\t\tEShapeRuntimeReset.CURSOR\n\t\t);\n\n\t\tconst fill = runtime.fill;\n\t\tconst fillColorActive = fill.color;\n\t\tthis._fillColorActive = fillColorActive;\n\t\tconst fillColorActiveOnHovered = this.toOnHovered(fillColorActive);\n\t\tconst fillColorActiveOnPressed = fillColorActiveOnHovered * 2;\n\t\tthis._fillColorActivePressed = UtilRgb.darken(fillColorActive, fillColorActiveOnPressed);\n\t\tthis._fillColorActiveHovered = UtilRgb.darken(fillColorActive, fillColorActiveOnHovered);\n\t\tconst fillColor = 0xe7e5e7;\n\t\tthis._fillColor = fillColor;\n\t\tconst fillColorOnHovered = this.toOnHovered(fillColor);\n\t\tconst fillColorOnPressed = fillColorOnHovered * 2;\n\t\tthis._fillColorPressed = UtilRgb.darken(fillColor, fillColorOnPressed);\n\t\tthis._fillColorHovered = UtilRgb.darken(fillColor, fillColorOnHovered);\n\n\t\tconst fillAlpha = fill.alpha;\n\t\tthis._fillAlpha = fillAlpha;\n\t\tthis._fillAlphaDisabled = fillAlpha * 0.5;\n\n\t\tconst stroke = runtime.stroke;\n\t\tconst strokeColorActive = stroke.color;\n\t\tthis._strokeColorActive = strokeColorActive;\n\t\tconst strokeColorActiveOnHovered = this.toOnHovered(strokeColorActive);\n\t\tconst strokeColorActiveOnPressed = strokeColorActiveOnHovered * 2;\n\t\tthis._strokeColorActivePressed = UtilRgb.darken(\n\t\t\tstrokeColorActive,\n\t\t\tstrokeColorActiveOnPressed\n\t\t);\n\t\tthis._strokeColorActiveHovered = UtilRgb.darken(\n\t\t\tstrokeColorActive,\n\t\t\tstrokeColorActiveOnHovered\n\t\t);\n\t\tconst strokeColor = 0xe7e5e7;\n\t\tthis._strokeColor = strokeColor;\n\t\tconst strokeColorOnHovered = this.toOnHovered(strokeColor);\n\t\tconst strokeColorOnPressed = strokeColorOnHovered * 2;\n\t\tthis._strokeColorPressed = UtilRgb.darken(strokeColor, strokeColorOnPressed);\n\t\tthis._strokeColorGrayscaleHovered = UtilRgb.darken(strokeColor, strokeColorOnHovered);\n\n\t\tconst strokeAlpha = stroke.alpha;\n\t\tthis._strokeAlpha = strokeAlpha;\n\t\tthis._strokeAlphaDisabled = strokeAlpha * 0.5;\n\n\t\tconst text = runtime.text;\n\t\tconst textColor = text.color;\n\t\tthis._textColorActive = textColor;\n\t\tthis._textColorDisabled = UtilRgb.toGrayscale(textColor);\n\t\tthis._textColor = 0x4f4f4f;\n\n\t\tconst textAlpha = text.alpha;\n\t\tthis._textAlpha = textAlpha;\n\t\tthis._textAlphaDisabled = textAlpha * 0.5;\n\n\t\tconst textOutline = text.outline;\n\t\tconst textOutlineColor = textOutline.color;\n\t\tthis._textOutlineColor = textOutlineColor;\n\t\tthis._textOutlineColorDisabled = UtilRgb.toGrayscale(textOutlineColor);\n\n\t\tconst textOutlineAlpha = textOutline.alpha;\n\t\tthis._textOutlineAlpha = textOutlineAlpha;\n\t\tthis._textOutlineAlphaDisabled = textOutlineAlpha * 0.5;\n\t}\n\n\tprotected toOnHovered(color: number): number {\n\t\tconst luma = UtilRgb.toLuma(color);\n\t\tif (128 <= luma) {\n\t\t\tconst t = (luma - 128) / 127;\n\t\t\treturn +0.15 * (1 - t) + t * 0.03;\n\t\t} else {\n\t\t\tconst t = (127 - luma) / 127;\n\t\t\treturn -0.15 * (1 - t) - t * 0.175;\n\t\t}\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tconst state = shape.state;\n\t\tshape.fill.set(undefined, this.getFillColor(state), this.getFillAlpha(state));\n\t\tshape.stroke.set(undefined, this.getStrokeColor(state), this.getStrokeAlpha(state));\n\t\tshape.text.set(undefined, this.getTextColor(state), this.getTextAlpha(state));\n\t\tshape.text.outline.set(\n\t\t\tundefined,\n\t\t\tthis.getTextOutlineColor(state),\n\t\t\tthis.getTextOutlineAlpha(state)\n\t\t);\n\t\tshape.cursor = this.getCursor(state);\n\t\truntime.written |= this.reset;\n\t}\n\n\tprotected getFillColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._fillColor;\n\t\t} else if (state.isActive) {\n\t\t\tif (state.isPressed) {\n\t\t\t\treturn this._fillColorActivePressed;\n\t\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\t\treturn this._fillColorActiveHovered;\n\t\t\t} else {\n\t\t\t\treturn this._fillColorActive;\n\t\t\t}\n\t\t} else {\n\t\t\tif (state.isPressed) {\n\t\t\t\treturn this._fillColorPressed;\n\t\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\t\treturn this._fillColorHovered;\n\t\t\t} else {\n\t\t\t\treturn this._fillColor;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected getFillAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._fillAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._fillAlpha;\n\t\t}\n\t}\n\n\tprotected getStrokeColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._strokeColor;\n\t\t} else if (state.isActive) {\n\t\t\tif (state.isPressed) {\n\t\t\t\treturn this._strokeColorActivePressed;\n\t\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\t\treturn this._strokeColorActiveHovered;\n\t\t\t} else {\n\t\t\t\treturn this._strokeColorActive;\n\t\t\t}\n\t\t} else {\n\t\t\tif (state.isPressed) {\n\t\t\t\treturn this._strokeColorPressed;\n\t\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\t\treturn this._strokeColorGrayscaleHovered;\n\t\t\t} else {\n\t\t\t\treturn this._strokeColor;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected getStrokeAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._strokeAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._strokeAlpha;\n\t\t}\n\t}\n\n\tprotected getTextColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textColorDisabled;\n\t\t} else if (state.isActive) {\n\t\t\treturn this._textColorActive;\n\t\t} else {\n\t\t\treturn this._textColor;\n\t\t}\n\t}\n\n\tprotected getTextAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._textAlpha;\n\t\t}\n\t}\n\n\tprotected getTextOutlineColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textOutlineColorDisabled;\n\t\t} else {\n\t\t\treturn this._textOutlineColor;\n\t\t}\n\t}\n\n\tprotected getTextOutlineAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textOutlineAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._textOutlineAlpha;\n\t\t}\n\t}\n\n\tgetCursor(state: EShapeStateSet): string {\n\t\tif (state.isActionable) {\n\t\t\treturn \"pointer\";\n\t\t}\n\t\treturn \"\";\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-button-runtime-action-toggle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGvE;IAAqD,mDAAmB;IAkCvE,yCAAY,O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AC;SACvB;IACF,CAAC;IAES,sDAAY,GAAtB,UAAuB,KAAqB;QAC3C,IAAI,KAAK,CAAC,UAAU,EAAE;YACrB,OAAO,IAAI,CAAC,kBAAkB,CAAC;SAC/B;aAAM;YACN,OAAO,IAAI,CAAC,UAAU,CAAC;SACvB;IACF,CAAC;IAES,6DAAmB,GAA7B,UAA8B,KAAqB;QAClD,IAAI,KAAK,CAAC,UAAU,EAAE;YACrB,OAAO,IAAI,CAAC,yBAAyB,CAAC;SACtC;aAAM;YACN,OAAO,IAAI,CAAC,iBAAiB,CAAC;SAC9B;IACF,CAAC;IAES,6DAAmB,GAA7B,UAA8B,KAAqB;QAClD,IAAI,KAAK,CAAC,UAAU,EAAE;YACrB,OAAO,IAAI,CAAC,yBAAyB,CAAC;SACtC;aAAM;YACN,OAAO,IAAI,CAAC,iBAAiB,CAAC;SAC9B;IACF,CAAC;IAED,mDAAS,GAAT,UAAU,KAAqB;QAC9B,IAAI,KAAK,CAAC,YAAY,EAAE;YACvB,OAAO,SAAS,CAAC;SACjB;QACD,OAAO,EAAE,CAAC;IACX,CAAC;IACF,sCAAC;AAAD,CAAC,AArOD,CAAqD,mBAAmB,GAqOvE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { EShapeActionRuntime } from \"../action/e-shape-action-runtime\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { EShapeStateSet } from \"../e-shape-state-set\";\n\nexport class EShapeButtonRuntimeActionToggle extends EShapeActionRuntime {\n\tprotected readonly _fillColorActive: number;\n\tprotected readonly _fillColorActivePressed: number;\n\tprotected readonly _fillColorActiveHovered: number;\n\tprotected readonly _fillColor: number;\n\tprotected readonly _fillColorPressed: number;\n\tprotected readonly _fillColorHovered: number;\n\n\tprotected readonly _fillAlpha: number;\n\tprotected readonly _fillAlphaDisabled: number;\n\n\tprotected readonly _strokeColorActive: number;\n\tprotected readonly _strokeColorActivePressed: number;\n\tprotected readonly _strokeColorActiveHovered: number;\n\tprotected readonly _strokeColor: number;\n\tprotected readonly _strokeColorPressed: number;\n\tprotected readonly _strokeColorGrayscaleHovered: number;\n\n\tprotected readonly _strokeAlpha: number;\n\tprotected readonly _strokeAlphaDisabled: number;\n\n\tprotected readonly _textColorActive: number;\n\tprotected readonly _textColor: number;\n\tprotected readonly _textColorDisabled: number;\n\n\tprotected readonly _textAlpha: number;\n\tprotected readonly _textAlphaDisabled: number;\n\n\tprotected readonly _textOutlineColor: number;\n\tprotected readonly _textOutlineColorDisabled: number;\n\n\tprotected readonly _textOutlineAlpha: number;\n\tprotected readonly _textOutlineAlphaDisabled: number;\n\n\tconstructor(runtime: EShapeRuntime) {\n\t\tsuper(\n\t\t\tEShapeRuntimeReset.COLOR_FILL_AND_STROKE |\n\t\t\t\tEShapeRuntimeReset.COLOR_TEXT |\n\t\t\t\tEShapeRuntimeReset.COLOR_TEXT_OUTLINE |\n\t\t\t\tEShapeRuntimeReset.CURSOR\n\t\t);\n\n\t\tconst fill = runtime.fill;\n\t\tconst fillColorActive = fill.color;\n\t\tthis._fillColorActive = fillColorActive;\n\t\tconst fillColorActiveOnHovered = this.toOnHovered(fillColorActive);\n\t\tconst fillColorActiveOnPressed = fillColorActiveOnHovered * 2;\n\t\tthis._fillColorActivePressed = UtilRgb.darken(fillColorActive, fillColorActiveOnPressed);\n\t\tthis._fillColorActiveHovered = UtilRgb.darken(fillColorActive, fillColorActiveOnHovered);\n\t\tconst fillColor = 0xe7e5e7;\n\t\tthis._fillColor = fillColor;\n\t\tconst fillColorOnHovered = this.toOnHovered(fillColor);\n\t\tconst fillColorOnPressed = fillColorOnHovered * 2;\n\t\tthis._fillColorPressed = UtilRgb.darken(fillColor, fillColorOnPressed);\n\t\tthis._fillColorHovered = UtilRgb.darken(fillColor, fillColorOnHovered);\n\n\t\tconst fillAlpha = fill.alpha;\n\t\tthis._fillAlpha = fillAlpha;\n\t\tthis._fillAlphaDisabled = fillAlpha * 0.5;\n\n\t\tconst stroke = runtime.stroke;\n\t\tconst strokeColorActive = stroke.color;\n\t\tthis._strokeColorActive = strokeColorActive;\n\t\tconst strokeColorActiveOnHovered = this.toOnHovered(strokeColorActive);\n\t\tconst strokeColorActiveOnPressed = strokeColorActiveOnHovered * 2;\n\t\tthis._strokeColorActivePressed = UtilRgb.darken(\n\t\t\tstrokeColorActive,\n\t\t\tstrokeColorActiveOnPressed\n\t\t);\n\t\tthis._strokeColorActiveHovered = UtilRgb.darken(\n\t\t\tstrokeColorActive,\n\t\t\tstrokeColorActiveOnHovered\n\t\t);\n\t\tconst strokeColor = 0xe7e5e7;\n\t\tthis._strokeColor = strokeColor;\n\t\tconst strokeColorOnHovered = this.toOnHovered(strokeColor);\n\t\tconst strokeColorOnPressed = strokeColorOnHovered * 2;\n\t\tthis._strokeColorPressed = UtilRgb.darken(strokeColor, strokeColorOnPressed);\n\t\tthis._strokeColorGrayscaleHovered = UtilRgb.darken(strokeColor, strokeColorOnHovered);\n\n\t\tconst strokeAlpha = stroke.alpha;\n\t\tthis._strokeAlpha = strokeAlpha;\n\t\tthis._strokeAlphaDisabled = strokeAlpha * 0.5;\n\n\t\tconst text = runtime.text;\n\t\tconst textColor = text.color;\n\t\tthis._textColorActive = textColor;\n\t\tthis._textColorDisabled = UtilRgb.toGrayscale(textColor);\n\t\tthis._textColor = 0x4f4f4f;\n\n\t\tconst textAlpha = text.alpha;\n\t\tthis._textAlpha = textAlpha;\n\t\tthis._textAlphaDisabled = textAlpha * 0.5;\n\n\t\tconst textOutline = text.outline;\n\t\tconst textOutlineColor = textOutline.color;\n\t\tthis._textOutlineColor = textOutlineColor;\n\t\tthis._textOutlineColorDisabled = UtilRgb.toGrayscale(textOutlineColor);\n\n\t\tconst textOutlineAlpha = textOutline.alpha;\n\t\tthis._textOutlineAlpha = textOutlineAlpha;\n\t\tthis._textOutlineAlphaDisabled = textOutlineAlpha * 0.5;\n\t}\n\n\tprotected toOnHovered(color: number): number {\n\t\tconst luma = UtilRgb.toLuma(color);\n\t\tif (128 <= luma) {\n\t\t\tconst t = (luma - 128) / 127;\n\t\t\treturn +0.15 * (1 - t) + t * 0.03;\n\t\t} else {\n\t\t\tconst t = (127 - luma) / 127;\n\t\t\treturn -0.15 * (1 - t) - t * 0.175;\n\t\t}\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tconst state = shape.state;\n\t\tshape.fill.set(undefined, this.getFillColor(state), this.getFillAlpha(state));\n\t\tshape.stroke.set(undefined, this.getStrokeColor(state), this.getStrokeAlpha(state));\n\t\tshape.text.set(undefined, this.getTextColor(state), this.getTextAlpha(state));\n\t\tshape.text.outline.set(\n\t\t\tundefined,\n\t\t\tthis.getTextOutlineColor(state),\n\t\t\tthis.getTextOutlineAlpha(state)\n\t\t);\n\t\tshape.cursor = this.getCursor(state);\n\t\truntime.written |= this.reset;\n\t}\n\n\tprotected getFillColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._fillColor;\n\t\t} else if (state.isActive) {\n\t\t\tif (state.isPressed) {\n\t\t\t\treturn this._fillColorActivePressed;\n\t\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\t\treturn this._fillColorActiveHovered;\n\t\t\t} else {\n\t\t\t\treturn this._fillColorActive;\n\t\t\t}\n\t\t} else {\n\t\t\tif (state.isPressed) {\n\t\t\t\treturn this._fillColorPressed;\n\t\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\t\treturn this._fillColorHovered;\n\t\t\t} else {\n\t\t\t\treturn this._fillColor;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected getFillAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._fillAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._fillAlpha;\n\t\t}\n\t}\n\n\tprotected getStrokeColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._strokeColor;\n\t\t} else if (state.isActive) {\n\t\t\tif (state.isPressed) {\n\t\t\t\treturn this._strokeColorActivePressed;\n\t\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\t\treturn this._strokeColorActiveHovered;\n\t\t\t} else {\n\t\t\t\treturn this._strokeColorActive;\n\t\t\t}\n\t\t} else {\n\t\t\tif (state.isPressed) {\n\t\t\t\treturn this._strokeColorPressed;\n\t\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\t\treturn this._strokeColorGrayscaleHovered;\n\t\t\t} else {\n\t\t\t\treturn this._strokeColor;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected getStrokeAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._strokeAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._strokeAlpha;\n\t\t}\n\t}\n\n\tprotected getTextColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textColorDisabled;\n\t\t} else if (state.isActive) {\n\t\t\treturn this._textColorActive;\n\t\t} else {\n\t\t\treturn this._textColor;\n\t\t}\n\t}\n\n\tprotected getTextAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._textAlpha;\n\t\t}\n\t}\n\n\tprotected getTextOutlineColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textOutlineColorDisabled;\n\t\t} else {\n\t\t\treturn this._textOutlineColor;\n\t\t}\n\t}\n\n\tprotected getTextOutlineAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textOutlineAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._textOutlineAlpha;\n\t\t}\n\t}\n\n\tgetCursor(state: EShapeStateSet): string {\n\t\tif (state.isActionable) {\n\t\t\treturn \"pointer\";\n\t\t}\n\t\treturn \"\";\n\t}\n}\n"]}
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { __extends } from "tslib";
6
6
  import { UtilRgb } from "../../util/util-rgb";
7
- import { EShapeActionRuntime } from "../action";
7
+ import { EShapeActionRuntime } from "../action/e-shape-action-runtime";
8
8
  import { EShapeRuntimeReset } from "../e-shape-runtime";
9
9
  var EShapeButtonRuntimeAction = /** @class */ (function (_super) {
10
10
  __extends(EShapeButtonRuntimeAction, _super);
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-button-runtime-action.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGvE;IAA+C,6CAAmB;IA6BjE,mCAAY,OAAsB;QAAlC,YACC,kBACC,kBAAkB,CAAC,qBAAqB;YACvC,kBAAkB,CAAC,UAAU;YAC7B,kBAAkB,CAAC,kBAAkB;YACrC,kBAAkB,CAAC,MAAM,CAC1B,SA6CD;QA3CA,IAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAC1B,IAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;QAC7B,IAAM,kBAAkB,GAAG,KAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QACvD,IAAM,kBAAkB,GAAG,kBAAkB,GAAG,CAAC,CAAC;QAClD,KAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,KAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QACzD,KAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAC;QACvE,KAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,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AC,AAzLD,CAA+C,mBAAmB,GAyLjE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { EShapeActionRuntime } from \"../action\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { EShapeStateSet } from \"../e-shape-state-set\";\n\nexport class EShapeButtonRuntimeAction extends EShapeActionRuntime {\n\tprotected readonly _fillColor: number;\n\tprotected readonly _fillColorDisabled: number;\n\tprotected readonly _fillColorPressed: number;\n\tprotected readonly _fillColorHovered: number;\n\n\tprotected readonly _fillAlpha: number;\n\tprotected readonly _fillAlphaDisabled: number;\n\n\tprotected readonly _strokeColor: number;\n\tprotected readonly _strokeColorDisabled: number;\n\tprotected readonly _strokeColorPressed: number;\n\tprotected readonly _strokeColorHovered: number;\n\n\tprotected readonly _strokeAlpha: number;\n\tprotected readonly _strokeAlphaDisabled: number;\n\n\tprotected readonly _textColor: number;\n\tprotected readonly _textColorDisabled: number;\n\n\tprotected readonly _textAlpha: number;\n\tprotected readonly _textAlphaDisabled: number;\n\n\tprotected readonly _textOutlineColor: number;\n\tprotected readonly _textOutlineColorDisabled: number;\n\n\tprotected readonly _textOutlineAlpha: number;\n\tprotected readonly _textOutlineAlphaDisabled: number;\n\n\tconstructor(runtime: EShapeRuntime) {\n\t\tsuper(\n\t\t\tEShapeRuntimeReset.COLOR_FILL_AND_STROKE |\n\t\t\t\tEShapeRuntimeReset.COLOR_TEXT |\n\t\t\t\tEShapeRuntimeReset.COLOR_TEXT_OUTLINE |\n\t\t\t\tEShapeRuntimeReset.CURSOR\n\t\t);\n\n\t\tconst fill = runtime.fill;\n\t\tconst fillColor = fill.color;\n\t\tconst fillColorOnHovered = this.toOnHovered(fillColor);\n\t\tconst fillColorOnPressed = fillColorOnHovered * 2;\n\t\tthis._fillColor = fillColor;\n\t\tthis._fillColorDisabled = UtilRgb.toGrayscale(fillColor);\n\t\tthis._fillColorPressed = UtilRgb.darken(fillColor, fillColorOnPressed);\n\t\tthis._fillColorHovered = UtilRgb.darken(fillColor, fillColorOnHovered);\n\n\t\tconst fillAlpha = fill.alpha;\n\t\tthis._fillAlpha = fillAlpha;\n\t\tthis._fillAlphaDisabled = fillAlpha * 0.5;\n\n\t\tconst stroke = runtime.stroke;\n\t\tconst strokeColor = stroke.color;\n\t\tconst strokeColorOnHovered = this.toOnHovered(strokeColor);\n\t\tconst strokeColorOnPressed = strokeColorOnHovered * 2;\n\t\tthis._strokeColor = strokeColor;\n\t\tthis._strokeColorDisabled = UtilRgb.toGrayscale(strokeColor);\n\t\tthis._strokeColorPressed = UtilRgb.darken(strokeColor, strokeColorOnPressed);\n\t\tthis._strokeColorHovered = UtilRgb.darken(strokeColor, strokeColorOnHovered);\n\n\t\tconst strokeAlpha = stroke.alpha;\n\t\tthis._strokeAlpha = strokeAlpha;\n\t\tthis._strokeAlphaDisabled = strokeAlpha * 0.5;\n\n\t\tconst text = runtime.text;\n\t\tconst textColor = text.color;\n\t\tthis._textColor = textColor;\n\t\tthis._textColorDisabled = UtilRgb.toGrayscale(textColor);\n\n\t\tconst textAlpha = text.alpha;\n\t\tthis._textAlpha = textAlpha;\n\t\tthis._textAlphaDisabled = textAlpha * 0.5;\n\n\t\tconst textOutline = text.outline;\n\t\tconst textOutlineColor = textOutline.color;\n\t\tthis._textOutlineColor = textOutlineColor;\n\t\tthis._textOutlineColorDisabled = UtilRgb.toGrayscale(textOutlineColor);\n\n\t\tconst textOutlineAlpha = textOutline.alpha;\n\t\tthis._textOutlineAlpha = textOutlineAlpha;\n\t\tthis._textOutlineAlphaDisabled = textOutlineAlpha * 0.5;\n\t}\n\n\tprotected toOnHovered(color: number): number {\n\t\tconst luma = UtilRgb.toLuma(color);\n\t\tif (128 <= luma) {\n\t\t\tconst t = (luma - 128) / 127;\n\t\t\treturn +0.15 * (1 - t) + t * 0.03;\n\t\t} else {\n\t\t\tconst t = (127 - luma) / 127;\n\t\t\treturn -0.15 * (1 - t) - t * 0.175;\n\t\t}\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tconst state = shape.state;\n\t\tshape.fill.set(undefined, this.getFillColor(state), this.getFillAlpha(state));\n\t\tshape.stroke.set(undefined, this.getStrokeColor(state), this.getStrokeAlpha(state));\n\t\tshape.text.set(undefined, this.getTextColor(state), this.getTextAlpha(state));\n\t\tshape.text.outline.set(\n\t\t\tundefined,\n\t\t\tthis.getTextOutlineColor(state),\n\t\t\tthis.getTextOutlineAlpha(state)\n\t\t);\n\t\tshape.cursor = this.getCursor(state);\n\t\truntime.written |= this.reset;\n\t}\n\n\tprotected getFillColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._fillColorDisabled;\n\t\t} else if (state.isPressed || state.isActive) {\n\t\t\treturn this._fillColorPressed;\n\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\treturn this._fillColorHovered;\n\t\t} else {\n\t\t\treturn this._fillColor;\n\t\t}\n\t}\n\n\tprotected getFillAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._fillAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._fillAlpha;\n\t\t}\n\t}\n\n\tprotected getStrokeColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._strokeColorDisabled;\n\t\t} else if (state.isPressed || state.isActive) {\n\t\t\treturn this._strokeColorPressed;\n\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\treturn this._strokeColorHovered;\n\t\t} else {\n\t\t\treturn this._strokeColor;\n\t\t}\n\t}\n\n\tprotected getStrokeAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._strokeAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._strokeAlpha;\n\t\t}\n\t}\n\n\tprotected getTextColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textColorDisabled;\n\t\t} else {\n\t\t\treturn this._textColor;\n\t\t}\n\t}\n\n\tprotected getTextAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._textAlpha;\n\t\t}\n\t}\n\n\tprotected getTextOutlineColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textOutlineColorDisabled;\n\t\t} else {\n\t\t\treturn this._textOutlineColor;\n\t\t}\n\t}\n\n\tprotected getTextOutlineAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textOutlineAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._textOutlineAlpha;\n\t\t}\n\t}\n\n\tgetCursor(state: EShapeStateSet): string {\n\t\tif (state.isActionable) {\n\t\t\treturn \"pointer\";\n\t\t}\n\t\treturn \"\";\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-button-runtime-action.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-button-runtime-action.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGvE;IAA+C,6CAAmB;IA6BjE,mCAAY,OAAsB;QAAlC,YACC,kBACC,kBAAkB,CAAC,qBAAqB;YACvC,kBAAkB,CAAC,UAAU;YAC7B,kBAAkB,CAAC,kBAAkB;YACrC,kBAAkB,CAAC,MAAM,CAC1B,SA6CD;QA3CA,IAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAC1B,IAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;QAC7B,IAAM,kBAAkB,GAAG,KAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAA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B,GAA7B,UAA8B,KAAqB;QAClD,IAAI,KAAK,CAAC,UAAU,EAAE;YACrB,OAAO,IAAI,CAAC,yBAAyB,CAAC;SACtC;aAAM;YACN,OAAO,IAAI,CAAC,iBAAiB,CAAC;SAC9B;IACF,CAAC;IAED,6CAAS,GAAT,UAAU,KAAqB;QAC9B,IAAI,KAAK,CAAC,YAAY,EAAE;YACvB,OAAO,SAAS,CAAC;SACjB;QACD,OAAO,EAAE,CAAC;IACX,CAAC;IACF,gCAAC;AAAD,CAAC,AAzLD,CAA+C,mBAAmB,GAyLjE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { EShapeActionRuntime } from \"../action/e-shape-action-runtime\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { EShapeStateSet } from \"../e-shape-state-set\";\n\nexport class EShapeButtonRuntimeAction extends EShapeActionRuntime {\n\tprotected readonly _fillColor: number;\n\tprotected readonly _fillColorDisabled: number;\n\tprotected readonly _fillColorPressed: number;\n\tprotected readonly _fillColorHovered: number;\n\n\tprotected readonly _fillAlpha: number;\n\tprotected readonly _fillAlphaDisabled: number;\n\n\tprotected readonly _strokeColor: number;\n\tprotected readonly _strokeColorDisabled: number;\n\tprotected readonly _strokeColorPressed: number;\n\tprotected readonly _strokeColorHovered: number;\n\n\tprotected readonly _strokeAlpha: number;\n\tprotected readonly _strokeAlphaDisabled: number;\n\n\tprotected readonly _textColor: number;\n\tprotected readonly _textColorDisabled: number;\n\n\tprotected readonly _textAlpha: number;\n\tprotected readonly _textAlphaDisabled: number;\n\n\tprotected readonly _textOutlineColor: number;\n\tprotected readonly _textOutlineColorDisabled: number;\n\n\tprotected readonly _textOutlineAlpha: number;\n\tprotected readonly _textOutlineAlphaDisabled: number;\n\n\tconstructor(runtime: EShapeRuntime) {\n\t\tsuper(\n\t\t\tEShapeRuntimeReset.COLOR_FILL_AND_STROKE |\n\t\t\t\tEShapeRuntimeReset.COLOR_TEXT |\n\t\t\t\tEShapeRuntimeReset.COLOR_TEXT_OUTLINE |\n\t\t\t\tEShapeRuntimeReset.CURSOR\n\t\t);\n\n\t\tconst fill = runtime.fill;\n\t\tconst fillColor = fill.color;\n\t\tconst fillColorOnHovered = this.toOnHovered(fillColor);\n\t\tconst fillColorOnPressed = fillColorOnHovered * 2;\n\t\tthis._fillColor = fillColor;\n\t\tthis._fillColorDisabled = UtilRgb.toGrayscale(fillColor);\n\t\tthis._fillColorPressed = UtilRgb.darken(fillColor, fillColorOnPressed);\n\t\tthis._fillColorHovered = UtilRgb.darken(fillColor, fillColorOnHovered);\n\n\t\tconst fillAlpha = fill.alpha;\n\t\tthis._fillAlpha = fillAlpha;\n\t\tthis._fillAlphaDisabled = fillAlpha * 0.5;\n\n\t\tconst stroke = runtime.stroke;\n\t\tconst strokeColor = stroke.color;\n\t\tconst strokeColorOnHovered = this.toOnHovered(strokeColor);\n\t\tconst strokeColorOnPressed = strokeColorOnHovered * 2;\n\t\tthis._strokeColor = strokeColor;\n\t\tthis._strokeColorDisabled = UtilRgb.toGrayscale(strokeColor);\n\t\tthis._strokeColorPressed = UtilRgb.darken(strokeColor, strokeColorOnPressed);\n\t\tthis._strokeColorHovered = UtilRgb.darken(strokeColor, strokeColorOnHovered);\n\n\t\tconst strokeAlpha = stroke.alpha;\n\t\tthis._strokeAlpha = strokeAlpha;\n\t\tthis._strokeAlphaDisabled = strokeAlpha * 0.5;\n\n\t\tconst text = runtime.text;\n\t\tconst textColor = text.color;\n\t\tthis._textColor = textColor;\n\t\tthis._textColorDisabled = UtilRgb.toGrayscale(textColor);\n\n\t\tconst textAlpha = text.alpha;\n\t\tthis._textAlpha = textAlpha;\n\t\tthis._textAlphaDisabled = textAlpha * 0.5;\n\n\t\tconst textOutline = text.outline;\n\t\tconst textOutlineColor = textOutline.color;\n\t\tthis._textOutlineColor = textOutlineColor;\n\t\tthis._textOutlineColorDisabled = UtilRgb.toGrayscale(textOutlineColor);\n\n\t\tconst textOutlineAlpha = textOutline.alpha;\n\t\tthis._textOutlineAlpha = textOutlineAlpha;\n\t\tthis._textOutlineAlphaDisabled = textOutlineAlpha * 0.5;\n\t}\n\n\tprotected toOnHovered(color: number): number {\n\t\tconst luma = UtilRgb.toLuma(color);\n\t\tif (128 <= luma) {\n\t\t\tconst t = (luma - 128) / 127;\n\t\t\treturn +0.15 * (1 - t) + t * 0.03;\n\t\t} else {\n\t\t\tconst t = (127 - luma) / 127;\n\t\t\treturn -0.15 * (1 - t) - t * 0.175;\n\t\t}\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tconst state = shape.state;\n\t\tshape.fill.set(undefined, this.getFillColor(state), this.getFillAlpha(state));\n\t\tshape.stroke.set(undefined, this.getStrokeColor(state), this.getStrokeAlpha(state));\n\t\tshape.text.set(undefined, this.getTextColor(state), this.getTextAlpha(state));\n\t\tshape.text.outline.set(\n\t\t\tundefined,\n\t\t\tthis.getTextOutlineColor(state),\n\t\t\tthis.getTextOutlineAlpha(state)\n\t\t);\n\t\tshape.cursor = this.getCursor(state);\n\t\truntime.written |= this.reset;\n\t}\n\n\tprotected getFillColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._fillColorDisabled;\n\t\t} else if (state.isPressed || state.isActive) {\n\t\t\treturn this._fillColorPressed;\n\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\treturn this._fillColorHovered;\n\t\t} else {\n\t\t\treturn this._fillColor;\n\t\t}\n\t}\n\n\tprotected getFillAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._fillAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._fillAlpha;\n\t\t}\n\t}\n\n\tprotected getStrokeColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._strokeColorDisabled;\n\t\t} else if (state.isPressed || state.isActive) {\n\t\t\treturn this._strokeColorPressed;\n\t\t} else if (state.isFocused || state.isHovered) {\n\t\t\treturn this._strokeColorHovered;\n\t\t} else {\n\t\t\treturn this._strokeColor;\n\t\t}\n\t}\n\n\tprotected getStrokeAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._strokeAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._strokeAlpha;\n\t\t}\n\t}\n\n\tprotected getTextColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textColorDisabled;\n\t\t} else {\n\t\t\treturn this._textColor;\n\t\t}\n\t}\n\n\tprotected getTextAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._textAlpha;\n\t\t}\n\t}\n\n\tprotected getTextOutlineColor(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textOutlineColorDisabled;\n\t\t} else {\n\t\t\treturn this._textOutlineColor;\n\t\t}\n\t}\n\n\tprotected getTextOutlineAlpha(state: EShapeStateSet): number {\n\t\tif (state.inDisabled) {\n\t\t\treturn this._textOutlineAlphaDisabled;\n\t\t} else {\n\t\t\treturn this._textOutlineAlpha;\n\t\t}\n\t}\n\n\tgetCursor(state: EShapeStateSet): string {\n\t\tif (state.isActionable) {\n\t\t\treturn \"pointer\";\n\t\t}\n\t\treturn \"\";\n\t}\n}\n"]}
@@ -11,7 +11,7 @@ import { EShapeGroupSizeEditor } from "./e-shape-group-size-editor";
11
11
  import { EShapeGroupSizeViewer } from "./e-shape-group-size-viewer";
12
12
  import { EShapeGroupStrokeViewer } from "./e-shape-group-stroke-viewer";
13
13
  import { EShapeGroupTextViewer } from "./e-shape-group-text-viewer";
14
- import { EShapeDataImpl } from "./e-shape-data-impl";
14
+ import { EShapeDataImpl } from "../e-shape-data-impl";
15
15
  var EShapeGroupViewer = /** @class */ (function (_super) {
16
16
  __extends(EShapeGroupViewer, _super);
17
17
  function EShapeGroupViewer(isEditMode, type) {
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-group-viewer.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-group-viewer.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAQrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;IAAgD,qCAAU;IAWzD,2BAAY,UAAmB,EAAE,IAAgB;QAAjD,YACC,kBAAM,IAAI,CAAC,SASX;QARA,KAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAM,IAAI,GAAG,KAAI,CAAC,OAAO,EAAE,CAAC;QAC5B,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,KAAI,CAAC,IAAI,GAAG,KAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC1C,KAAI,CAAC,IAAI,GAAG,KAAI,CAAC,YAAY,EAAE,CAAC;QAChC,KAAI,CAAC,MAAM,GAAG,KAAI,CAAC,cAAc,EAAE,CAAC;QACpC,KAAI,CAAC,IAAI,GAAG,KAAI,CAAC,YAAY,EAAE,CAAC;;IACjC,CAAC;IAED,sBAAI,yCAAU;aAAd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,OAAO,EAAE,CAAC;QACX,CAAC;aAED,UAAW,MAAc;YACxB,aAAa;QACd,CAAC;;;OAJA;IAMD,sBAAI,uCAAQ;aAAZ;YACC,OAAO,SAAS,CAAC;QAClB,CAAC;aAED,UAAa,QAAwC;YACpD,aAAa;QACd,CAAC;;;OAJA;IAMD,sBAAI,qCAAM;aAAV;YACC,OAAO,CAAC,CAAC;QACV,CAAC;aAED,UAAW,MAAc;YACxB,aAAa;QACd,CAAC;;;OAJA;IAMD,sBAAI,oCAAK;aAAT;YACC,OAAO,SAAS,CAAC;QAClB,CAAC;aAED,UAAU,KAAmC;YAC5C,aAAa;QACd,CAAC;;;OAJA;IAMD,sBAAI,qCAAM;aAAV;YACC,OAAO,SAAS,CAAC;QAClB,CAAC;aAED,UAAW,MAAgC;YAC1C,aAAa;QACd,CAAC;;;OAJA;IAQD,uCAAW,GAAX,UACC,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;QAEV,OAAO,KAAK,CAAC;IACd,CAAC;IACF,wBAAC;AAAD,CAAC,AApID,CAAgD,UAAU,GAoIzD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport { EShapeDefaults } from \"../e-shape-defaults\";\nimport { EShapeFill } from \"../e-shape-fill\";\nimport { EShapeGradientLike } from \"../e-shape-gradient\";\nimport { EShapePoints } from \"../e-shape-points\";\nimport { EShapeStroke } from \"../e-shape-stroke\";\nimport { EShapeData } from \"../e-shape-data\";\nimport { EShapeText } from \"../e-shape-text\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeBase } from \"./e-shape-base\";\nimport { EShapeGroupFillViewer } from \"./e-shape-group-fill-viewer\";\nimport { EShapeGroupSize } from \"./e-shape-group-size\";\nimport { EShapeGroupSizeEditor } from \"./e-shape-group-size-editor\";\nimport { EShapeGroupSizeViewer } from \"./e-shape-group-size-viewer\";\nimport { EShapeGroupStrokeViewer } from \"./e-shape-group-stroke-viewer\";\nimport { EShapeGroupTextViewer } from \"./e-shape-group-text-viewer\";\nimport { EShapeDataImpl } from \"./e-shape-data-impl\";\n\nexport abstract class EShapeGroupViewer extends EShapeBase {\n\tsize: EShapeGroupSize;\n\tfill: EShapeFill;\n\tstroke: EShapeStroke;\n\t/** @deprecated in favor of {@link data} */\n\ttag: EShapeData;\n\tdata: EShapeData;\n\ttext: EShapeText;\n\n\tprotected _isEditMode: boolean;\n\n\tconstructor(isEditMode: boolean, type: EShapeType) {\n\t\tsuper(type);\n\t\tthis._isEditMode = isEditMode;\n\t\tconst data = this.newData();\n\t\tthis.data = data;\n\t\tthis.tag = data;\n\t\tthis.size = this.newGroupSize(isEditMode);\n\t\tthis.fill = this.newGroupFill();\n\t\tthis.stroke = this.newGroupStroke();\n\t\tthis.text = this.newGroupText();\n\t}\n\n\tget isEditMode(): boolean {\n\t\treturn this._isEditMode;\n\t}\n\n\tprotected newGroupSize(isEditMode: boolean): EShapeGroupSize {\n\t\tconst sizeX = EShapeDefaults.SIZE_X;\n\t\tconst sizeY = EShapeDefaults.SIZE_Y;\n\t\tif (isEditMode) {\n\t\t\treturn new EShapeGroupSizeEditor(this, sizeX, sizeY, this.isGroupSizeFittable());\n\t\t} else {\n\t\t\treturn new EShapeGroupSizeViewer(this, sizeX, sizeY, sizeX, sizeY);\n\t\t}\n\t}\n\n\tprotected isGroupSizeFittable(): boolean {\n\t\treturn true;\n\t}\n\n\tprotected newData(): EShapeData {\n\t\treturn new EShapeDataImpl();\n\t}\n\n\tprotected newGroupFill(): EShapeFill {\n\t\treturn new EShapeGroupFillViewer();\n\t}\n\n\tprotected newGroupStroke(): EShapeStroke {\n\t\treturn new EShapeGroupStrokeViewer();\n\t}\n\n\tprotected newGroupText(): EShapeText {\n\t\treturn new EShapeGroupTextViewer();\n\t}\n\n\tprotected getBoundsSize(): IPoint {\n\t\tconst size = this.size;\n\t\tif (size instanceof EShapeGroupSizeViewer) {\n\t\t\treturn size.base;\n\t\t} else {\n\t\t\treturn size;\n\t\t}\n\t}\n\n\tonChildTransformChange(): void {\n\t\tsuper.onChildTransformChange();\n\t\tthis.size.fit();\n\t}\n\n\tget corner(): EShapeCorner {\n\t\treturn EShapeCorner.NONE;\n\t}\n\n\tset corner(corner: EShapeCorner) {\n\t\t// DO NOTHING\n\t}\n\n\tget cursor(): string {\n\t\treturn \"\";\n\t}\n\n\tset cursor(cursor: string) {\n\t\t// DO NOTHING\n\t}\n\n\tget gradient(): EShapeGradientLike | undefined {\n\t\treturn undefined;\n\t}\n\n\tset gradient(gradient: EShapeGradientLike | undefined) {\n\t\t// DO NOTHING\n\t}\n\n\tget radius(): number {\n\t\treturn 0;\n\t}\n\n\tset radius(radius: number) {\n\t\t// DO NOTHING\n\t}\n\n\tget image(): HTMLImageElement | undefined {\n\t\treturn undefined;\n\t}\n\n\tset image(image: HTMLImageElement | undefined) {\n\t\t// DO NOTHING\n\t}\n\n\tget points(): EShapePoints | undefined {\n\t\treturn undefined;\n\t}\n\n\tset points(points: EShapePoints | undefined) {\n\t\t// DO NOTHING\n\t}\n\n\tabstract clone(): EShapeGroupViewer;\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\treturn false;\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-group-viewer.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-group-viewer.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAQrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,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Aa;QACd,CAAC;;;OAJA;IAMD,sBAAI,qCAAM;aAAV;YACC,OAAO,SAAS,CAAC;QAClB,CAAC;aAED,UAAW,MAAgC;YAC1C,aAAa;QACd,CAAC;;;OAJA;IAQD,uCAAW,GAAX,UACC,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;QAEV,OAAO,KAAK,CAAC;IACd,CAAC;IACF,wBAAC;AAAD,CAAC,AApID,CAAgD,UAAU,GAoIzD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport { EShapeDefaults } from \"../e-shape-defaults\";\nimport { EShapeFill } from \"../e-shape-fill\";\nimport { EShapeGradientLike } from \"../e-shape-gradient\";\nimport { EShapePoints } from \"../e-shape-points\";\nimport { EShapeStroke } from \"../e-shape-stroke\";\nimport { EShapeData } from \"../e-shape-data\";\nimport { EShapeText } from \"../e-shape-text\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeBase } from \"./e-shape-base\";\nimport { EShapeGroupFillViewer } from \"./e-shape-group-fill-viewer\";\nimport { EShapeGroupSize } from \"./e-shape-group-size\";\nimport { EShapeGroupSizeEditor } from \"./e-shape-group-size-editor\";\nimport { EShapeGroupSizeViewer } from \"./e-shape-group-size-viewer\";\nimport { EShapeGroupStrokeViewer } from \"./e-shape-group-stroke-viewer\";\nimport { EShapeGroupTextViewer } from \"./e-shape-group-text-viewer\";\nimport { EShapeDataImpl } from \"../e-shape-data-impl\";\n\nexport abstract class EShapeGroupViewer extends EShapeBase {\n\tsize: EShapeGroupSize;\n\tfill: EShapeFill;\n\tstroke: EShapeStroke;\n\t/** @deprecated in favor of {@link data} */\n\ttag: EShapeData;\n\tdata: EShapeData;\n\ttext: EShapeText;\n\n\tprotected _isEditMode: boolean;\n\n\tconstructor(isEditMode: boolean, type: EShapeType) {\n\t\tsuper(type);\n\t\tthis._isEditMode = isEditMode;\n\t\tconst data = this.newData();\n\t\tthis.data = data;\n\t\tthis.tag = data;\n\t\tthis.size = this.newGroupSize(isEditMode);\n\t\tthis.fill = this.newGroupFill();\n\t\tthis.stroke = this.newGroupStroke();\n\t\tthis.text = this.newGroupText();\n\t}\n\n\tget isEditMode(): boolean {\n\t\treturn this._isEditMode;\n\t}\n\n\tprotected newGroupSize(isEditMode: boolean): EShapeGroupSize {\n\t\tconst sizeX = EShapeDefaults.SIZE_X;\n\t\tconst sizeY = EShapeDefaults.SIZE_Y;\n\t\tif (isEditMode) {\n\t\t\treturn new EShapeGroupSizeEditor(this, sizeX, sizeY, this.isGroupSizeFittable());\n\t\t} else {\n\t\t\treturn new EShapeGroupSizeViewer(this, sizeX, sizeY, sizeX, sizeY);\n\t\t}\n\t}\n\n\tprotected isGroupSizeFittable(): boolean {\n\t\treturn true;\n\t}\n\n\tprotected newData(): EShapeData {\n\t\treturn new EShapeDataImpl();\n\t}\n\n\tprotected newGroupFill(): EShapeFill {\n\t\treturn new EShapeGroupFillViewer();\n\t}\n\n\tprotected newGroupStroke(): EShapeStroke {\n\t\treturn new EShapeGroupStrokeViewer();\n\t}\n\n\tprotected newGroupText(): EShapeText {\n\t\treturn new EShapeGroupTextViewer();\n\t}\n\n\tprotected getBoundsSize(): IPoint {\n\t\tconst size = this.size;\n\t\tif (size instanceof EShapeGroupSizeViewer) {\n\t\t\treturn size.base;\n\t\t} else {\n\t\t\treturn size;\n\t\t}\n\t}\n\n\tonChildTransformChange(): void {\n\t\tsuper.onChildTransformChange();\n\t\tthis.size.fit();\n\t}\n\n\tget corner(): EShapeCorner {\n\t\treturn EShapeCorner.NONE;\n\t}\n\n\tset corner(corner: EShapeCorner) {\n\t\t// DO NOTHING\n\t}\n\n\tget cursor(): string {\n\t\treturn \"\";\n\t}\n\n\tset cursor(cursor: string) {\n\t\t// DO NOTHING\n\t}\n\n\tget gradient(): EShapeGradientLike | undefined {\n\t\treturn undefined;\n\t}\n\n\tset gradient(gradient: EShapeGradientLike | undefined) {\n\t\t// DO NOTHING\n\t}\n\n\tget radius(): number {\n\t\treturn 0;\n\t}\n\n\tset radius(radius: number) {\n\t\t// DO NOTHING\n\t}\n\n\tget image(): HTMLImageElement | undefined {\n\t\treturn undefined;\n\t}\n\n\tset image(image: HTMLImageElement | undefined) {\n\t\t// DO NOTHING\n\t}\n\n\tget points(): EShapePoints | undefined {\n\t\treturn undefined;\n\t}\n\n\tset points(points: EShapePoints | undefined) {\n\t\t// DO NOTHING\n\t}\n\n\tabstract clone(): EShapeGroupViewer;\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\treturn false;\n\t}\n}\n"]}
@@ -13,7 +13,7 @@ import { EShapeGroupSizeEditor } from "./e-shape-group-size-editor";
13
13
  import { EShapeGroupSizeViewer } from "./e-shape-group-size-viewer";
14
14
  import { EShapeGroupStrokeEditor } from "./e-shape-group-stroke-editor";
15
15
  import { EShapeGroupTextEditor } from "./e-shape-group-text-editor";
16
- import { EShapeDataImpl } from "./e-shape-data-impl";
16
+ import { EShapeDataImpl } from "../e-shape-data-impl";
17
17
  var EShapeGroup = /** @class */ (function (_super) {
18
18
  __extends(EShapeGroup, _super);
19
19
  function EShapeGroup(isEditMode, type) {
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-group.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-group.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAOrD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,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IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,iCAAW,GAAX,UACC,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;QAEV,OAAO,KAAK,CAAC;IACd,CAAC;IACF,kBAAC;AAAD,CAAC,AAtMD,CAAiC,UAAU,GAsM1C","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport { EShapeDefaults } from \"../e-shape-defaults\";\nimport { EShapeFill } from \"../e-shape-fill\";\nimport { EShapeGradientLike } from \"../e-shape-gradient\";\nimport { EShapePoints } from \"../e-shape-points\";\nimport { EShapeStroke } from \"../e-shape-stroke\";\nimport { EShapeData } from \"../e-shape-data\";\nimport { EShapeText } from \"../e-shape-text\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeBase } from \"./e-shape-base\";\nimport { EShapeGroupFillEditor } from \"./e-shape-group-fill-editor\";\nimport { EShapeGroupPoints } from \"./e-shape-group-points\";\nimport { EShapeGroupPropertyParent } from \"./e-shape-group-property-parent\";\nimport { EShapeGroupSize } from \"./e-shape-group-size\";\nimport { EShapeGroupSizeEditor } from \"./e-shape-group-size-editor\";\nimport { EShapeGroupSizeViewer } from \"./e-shape-group-size-viewer\";\nimport { EShapeGroupStrokeEditor } from \"./e-shape-group-stroke-editor\";\nimport { EShapeGroupTextEditor } from \"./e-shape-group-text-editor\";\nimport { EShapeDataImpl } from \"./e-shape-data-impl\";\n\nexport class EShapeGroup extends EShapeBase implements EShapeGroupPropertyParent {\n\tsize: EShapeGroupSize;\n\tfill: EShapeFill;\n\tstroke: EShapeStroke;\n\t/** @deprecated in favor of {@link data} */\n\ttag: EShapeData;\n\tdata: EShapeData;\n\ttext: EShapeText;\n\n\tprotected _isEditMode: boolean;\n\tprotected _points?: EShapePoints;\n\n\tconstructor(isEditMode: boolean, type: EShapeType = EShapeType.GROUP) {\n\t\tsuper(type);\n\t\tthis._isEditMode = isEditMode;\n\t\tconst data = new EShapeDataImpl();\n\t\tthis.data = data;\n\t\tthis.tag = data;\n\t\tthis.size = this.newGroupSize(isEditMode);\n\t\tthis.fill = this.newGroupFill();\n\t\tthis.stroke = this.newGroupStroke();\n\t\tthis.text = this.newGroupText();\n\t\tthis._points = this.newGroupPoints();\n\t}\n\n\tget isEditMode(): boolean {\n\t\treturn this._isEditMode;\n\t}\n\n\tprotected newGroupSize(isEditMode: boolean): EShapeGroupSize {\n\t\tconst sizeX = EShapeDefaults.SIZE_X;\n\t\tconst sizeY = EShapeDefaults.SIZE_Y;\n\t\tif (isEditMode) {\n\t\t\treturn new EShapeGroupSizeEditor(this, sizeX, sizeY, this.isGroupSizeFittable());\n\t\t} else {\n\t\t\treturn new EShapeGroupSizeViewer(this, sizeX, sizeY, sizeX, sizeY);\n\t\t}\n\t}\n\n\tprotected isGroupSizeFittable(): boolean {\n\t\treturn true;\n\t}\n\n\tprotected newGroupFill(): EShapeFill {\n\t\treturn new EShapeGroupFillEditor(this);\n\t}\n\n\tprotected newGroupStroke(): EShapeStroke {\n\t\treturn new EShapeGroupStrokeEditor(this);\n\t}\n\n\tprotected newGroupText(): EShapeText {\n\t\treturn new EShapeGroupTextEditor(this);\n\t}\n\n\tprotected newGroupPoints(): EShapePoints | undefined {\n\t\treturn new EShapeGroupPoints(this);\n\t}\n\n\tprotected getBoundsSize(): IPoint {\n\t\tconst size = this.size;\n\t\tif (size instanceof EShapeGroupSizeViewer) {\n\t\t\treturn size.base;\n\t\t} else {\n\t\t\treturn size;\n\t\t}\n\t}\n\n\tonChildTransformChange(): void {\n\t\tsuper.onChildTransformChange();\n\t\tthis.size.fit();\n\t}\n\n\tget corner(): EShapeCorner {\n\t\tconst children = this.children;\n\t\tif (0 < children.length) {\n\t\t\treturn children[children.length - 1].corner;\n\t\t}\n\t\treturn EShapeCorner.ALL;\n\t}\n\n\tset corner(corner: EShapeCorner) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].corner = corner;\n\t\t}\n\t}\n\n\tget cursor(): string {\n\t\tconst children = this.children;\n\t\tif (0 < children.length) {\n\t\t\treturn children[children.length - 1].cursor;\n\t\t}\n\t\treturn \"\";\n\t}\n\n\tset cursor(cursor: string) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].cursor = cursor;\n\t\t}\n\t}\n\n\tget gradient(): EShapeGradientLike | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst gradient = children[i].gradient;\n\t\t\tif (gradient != null) {\n\t\t\t\treturn gradient;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset gradient(gradient: EShapeGradientLike | undefined) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].gradient = gradient;\n\t\t}\n\t}\n\n\tget radius(): number {\n\t\tconst children = this.children;\n\t\tif (0 < children.length) {\n\t\t\treturn children[children.length - 1].radius;\n\t\t}\n\t\treturn 0.5;\n\t}\n\n\tset radius(radius: number) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].radius = radius;\n\t\t}\n\t}\n\n\tget image(): HTMLImageElement | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst image = children[i].image;\n\t\t\tif (image != null) {\n\t\t\t\treturn image;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset image(image: HTMLImageElement | undefined) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].image = image;\n\t\t}\n\t}\n\n\tget points(): EShapePoints | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst points = children[i].points;\n\t\t\tif (points != null) {\n\t\t\t\treturn this._points;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset points(points: EShapePoints | undefined) {\n\t\t// DO NOTHING\n\t}\n\n\tclone(): EShapeGroup {\n\t\tconst result = this.newClone().copy(this);\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tconst clone = children[i].clone();\n\t\t\tclone.parent = result;\n\t\t\tresult.children.push(clone);\n\t\t}\n\t\tresult.onChildTransformChange();\n\t\tresult.toDirty();\n\t\treturn result;\n\t}\n\n\tprotected newClone(): EShapeGroup {\n\t\tconst constructor = this.constructor as typeof EShapeGroup;\n\t\treturn new constructor(this._isEditMode, this.type);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\treturn false;\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-group.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-group.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAOrD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B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Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport { EShapeDefaults } from \"../e-shape-defaults\";\nimport { EShapeFill } from \"../e-shape-fill\";\nimport { EShapeGradientLike } from \"../e-shape-gradient\";\nimport { EShapePoints } from \"../e-shape-points\";\nimport { EShapeStroke } from \"../e-shape-stroke\";\nimport { EShapeData } from \"../e-shape-data\";\nimport { EShapeText } from \"../e-shape-text\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeBase } from \"./e-shape-base\";\nimport { EShapeGroupFillEditor } from \"./e-shape-group-fill-editor\";\nimport { EShapeGroupPoints } from \"./e-shape-group-points\";\nimport { EShapeGroupPropertyParent } from \"./e-shape-group-property-parent\";\nimport { EShapeGroupSize } from \"./e-shape-group-size\";\nimport { EShapeGroupSizeEditor } from \"./e-shape-group-size-editor\";\nimport { EShapeGroupSizeViewer } from \"./e-shape-group-size-viewer\";\nimport { EShapeGroupStrokeEditor } from \"./e-shape-group-stroke-editor\";\nimport { EShapeGroupTextEditor } from \"./e-shape-group-text-editor\";\nimport { EShapeDataImpl } from \"../e-shape-data-impl\";\n\nexport class EShapeGroup extends EShapeBase implements EShapeGroupPropertyParent {\n\tsize: EShapeGroupSize;\n\tfill: EShapeFill;\n\tstroke: EShapeStroke;\n\t/** @deprecated in favor of {@link data} */\n\ttag: EShapeData;\n\tdata: EShapeData;\n\ttext: EShapeText;\n\n\tprotected _isEditMode: boolean;\n\tprotected _points?: EShapePoints;\n\n\tconstructor(isEditMode: boolean, type: EShapeType = EShapeType.GROUP) {\n\t\tsuper(type);\n\t\tthis._isEditMode = isEditMode;\n\t\tconst data = new EShapeDataImpl();\n\t\tthis.data = data;\n\t\tthis.tag = data;\n\t\tthis.size = this.newGroupSize(isEditMode);\n\t\tthis.fill = this.newGroupFill();\n\t\tthis.stroke = this.newGroupStroke();\n\t\tthis.text = this.newGroupText();\n\t\tthis._points = this.newGroupPoints();\n\t}\n\n\tget isEditMode(): boolean {\n\t\treturn this._isEditMode;\n\t}\n\n\tprotected newGroupSize(isEditMode: boolean): EShapeGroupSize {\n\t\tconst sizeX = EShapeDefaults.SIZE_X;\n\t\tconst sizeY = EShapeDefaults.SIZE_Y;\n\t\tif (isEditMode) {\n\t\t\treturn new EShapeGroupSizeEditor(this, sizeX, sizeY, this.isGroupSizeFittable());\n\t\t} else {\n\t\t\treturn new EShapeGroupSizeViewer(this, sizeX, sizeY, sizeX, sizeY);\n\t\t}\n\t}\n\n\tprotected isGroupSizeFittable(): boolean {\n\t\treturn true;\n\t}\n\n\tprotected newGroupFill(): EShapeFill {\n\t\treturn new EShapeGroupFillEditor(this);\n\t}\n\n\tprotected newGroupStroke(): EShapeStroke {\n\t\treturn new EShapeGroupStrokeEditor(this);\n\t}\n\n\tprotected newGroupText(): EShapeText {\n\t\treturn new EShapeGroupTextEditor(this);\n\t}\n\n\tprotected newGroupPoints(): EShapePoints | undefined {\n\t\treturn new EShapeGroupPoints(this);\n\t}\n\n\tprotected getBoundsSize(): IPoint {\n\t\tconst size = this.size;\n\t\tif (size instanceof EShapeGroupSizeViewer) {\n\t\t\treturn size.base;\n\t\t} else {\n\t\t\treturn size;\n\t\t}\n\t}\n\n\tonChildTransformChange(): void {\n\t\tsuper.onChildTransformChange();\n\t\tthis.size.fit();\n\t}\n\n\tget corner(): EShapeCorner {\n\t\tconst children = this.children;\n\t\tif (0 < children.length) {\n\t\t\treturn children[children.length - 1].corner;\n\t\t}\n\t\treturn EShapeCorner.ALL;\n\t}\n\n\tset corner(corner: EShapeCorner) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].corner = corner;\n\t\t}\n\t}\n\n\tget cursor(): string {\n\t\tconst children = this.children;\n\t\tif (0 < children.length) {\n\t\t\treturn children[children.length - 1].cursor;\n\t\t}\n\t\treturn \"\";\n\t}\n\n\tset cursor(cursor: string) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].cursor = cursor;\n\t\t}\n\t}\n\n\tget gradient(): EShapeGradientLike | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst gradient = children[i].gradient;\n\t\t\tif (gradient != null) {\n\t\t\t\treturn gradient;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset gradient(gradient: EShapeGradientLike | undefined) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].gradient = gradient;\n\t\t}\n\t}\n\n\tget radius(): number {\n\t\tconst children = this.children;\n\t\tif (0 < children.length) {\n\t\t\treturn children[children.length - 1].radius;\n\t\t}\n\t\treturn 0.5;\n\t}\n\n\tset radius(radius: number) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].radius = radius;\n\t\t}\n\t}\n\n\tget image(): HTMLImageElement | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst image = children[i].image;\n\t\t\tif (image != null) {\n\t\t\t\treturn image;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset image(image: HTMLImageElement | undefined) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].image = image;\n\t\t}\n\t}\n\n\tget points(): EShapePoints | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst points = children[i].points;\n\t\t\tif (points != null) {\n\t\t\t\treturn this._points;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset points(points: EShapePoints | undefined) {\n\t\t// DO NOTHING\n\t}\n\n\tclone(): EShapeGroup {\n\t\tconst result = this.newClone().copy(this);\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tconst clone = children[i].clone();\n\t\t\tclone.parent = result;\n\t\t\tresult.children.push(clone);\n\t\t}\n\t\tresult.onChildTransformChange();\n\t\tresult.toDirty();\n\t\treturn result;\n\t}\n\n\tprotected newClone(): EShapeGroup {\n\t\tconst constructor = this.constructor as typeof EShapeGroup;\n\t\treturn new constructor(this._isEditMode, this.type);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\treturn false;\n\t}\n}\n"]}
@@ -9,7 +9,7 @@ import { EShapeDefaults } from "../e-shape-defaults";
9
9
  import { EShapeBase } from "./e-shape-base";
10
10
  import { EShapeFillImpl } from "./e-shape-fill-impl";
11
11
  import { EShapeStrokeImpl } from "./e-shape-stroke-impl";
12
- import { EShapeDataImpl } from "./e-shape-data-impl";
12
+ import { EShapeDataImpl } from "../e-shape-data-impl";
13
13
  import { EShapeTextImpl } from "./e-shape-text-impl";
14
14
  var EShapePrimitive = /** @class */ (function (_super) {
15
15
  __extends(EShapePrimitive, _super);
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-primitive.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-primitive.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAU,eAAe,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAOrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;A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;QACF,CAAC;;;OAhBA;IAiBF,sBAAC;AAAD,CAAC,AA9GD,CAA8C,UAAU,GA8GvD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint, ObservablePoint } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport { EShapeDefaults } from \"../e-shape-defaults\";\nimport { EShapeFill } from \"../e-shape-fill\";\nimport { EShapeGradientLike } from \"../e-shape-gradient\";\nimport { EShapeStroke } from \"../e-shape-stroke\";\nimport { EShapeData } from \"../e-shape-data\";\nimport { EShapeText } from \"../e-shape-text\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeBase } from \"./e-shape-base\";\nimport { EShapeFillImpl } from \"./e-shape-fill-impl\";\nimport { EShapeStrokeImpl } from \"./e-shape-stroke-impl\";\nimport { EShapeDataImpl } from \"./e-shape-data-impl\";\nimport { EShapeTextImpl } from \"./e-shape-text-impl\";\n\nexport abstract class EShapePrimitive extends EShapeBase {\n\treadonly size: IPoint;\n\treadonly fill: EShapeFill;\n\treadonly stroke: EShapeStroke;\n\tprotected _radius: number;\n\tprotected _corner: EShapeCorner;\n\tprotected _image?: HTMLImageElement;\n\tgradient?: EShapeGradientLike;\n\treadonly text: EShapeText;\n\t/** @deprecated in favor of {@link data} */\n\treadonly tag: EShapeData;\n\treadonly data: EShapeData;\n\tcursor: string;\n\n\tconstructor(type: EShapeType) {\n\t\tsuper(type);\n\t\tthis.size = this.newSize();\n\t\tthis.fill = this.newFill();\n\t\tthis.stroke = this.newStroke();\n\t\tthis._radius = EShapeDefaults.RADIUS;\n\t\tthis._corner = EShapeCorner.ALL;\n\t\tconst data = new EShapeDataImpl();\n\t\tthis.data = data;\n\t\tthis.tag = data;\n\t\tthis.text = this.newText();\n\t\tthis.cursor = EShapeDefaults.CURSOR;\n\t}\n\n\tprotected newSize(): IPoint {\n\t\treturn new ObservablePoint(\n\t\t\t() => {\n\t\t\t\tthis.onSizeChange();\n\t\t\t},\n\t\t\tundefined,\n\t\t\tEShapeDefaults.SIZE_X,\n\t\t\tEShapeDefaults.SIZE_Y\n\t\t);\n\t}\n\n\tprotected newFill(): EShapeFill {\n\t\treturn new EShapeFillImpl(this, true, EShapeDefaults.FILL_COLOR, EShapeDefaults.FILL_ALPHA);\n\t}\n\n\tprotected newStroke(): EShapeStroke {\n\t\treturn new EShapeStrokeImpl(\n\t\t\tthis,\n\t\t\ttrue,\n\t\t\tEShapeDefaults.STROKE_COLOR,\n\t\t\tEShapeDefaults.STROKE_ALPHA,\n\t\t\tEShapeDefaults.STROKE_WIDTH,\n\t\t\tEShapeDefaults.STROKE_ALIGN,\n\t\t\tEShapeDefaults.STROKE_SIDE,\n\t\t\tEShapeDefaults.STROKE_STYLE\n\t\t);\n\t}\n\n\tprotected newText(): EShapeText {\n\t\treturn new EShapeTextImpl(\n\t\t\tthis,\n\t\t\tEShapeDefaults.TEXT_VALUE,\n\t\t\tEShapeDefaults.TEXT_COLOR,\n\t\t\tEShapeDefaults.TEXT_ALPHA,\n\t\t\tEShapeDefaults.TEXT_FAMILY,\n\t\t\tEShapeDefaults.TEXT_SIZE\n\t\t);\n\t}\n\n\tabstract clone(): EShape;\n\n\tget corner(): number {\n\t\treturn this._corner;\n\t}\n\n\tset corner(corner: number) {\n\t\tif (this._corner !== corner) {\n\t\t\tthis._corner = corner;\n\t\t\tthis.updateUploaded();\n\t\t}\n\t}\n\n\tget radius(): number {\n\t\treturn this._radius;\n\t}\n\n\tset radius(radius: number) {\n\t\tif (this._radius !== radius) {\n\t\t\tthis._radius = radius;\n\t\t\tthis.updateUploaded();\n\t\t}\n\t}\n\n\tget image(): HTMLImageElement | undefined {\n\t\treturn this._image;\n\t}\n\n\tset image(image: HTMLImageElement | undefined) {\n\t\tif (this._image !== image) {\n\t\t\tif (image != null) {\n\t\t\t\tthis._image = image;\n\t\t\t\tthis.imageSrc = image.src;\n\t\t\t} else {\n\t\t\t\tthis._image = undefined;\n\t\t\t\tthis.imageSrc = undefined;\n\t\t\t}\n\t\t\tconst parent = this.parent;\n\t\t\tif (parent != null) {\n\t\t\t\tparent.toDirty();\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-primitive.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-primitive.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAU,eAAe,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAOrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;IAA8C,mCAAU;IAcvD,yBAAY,IAAgB;QAA5B,YACC,kBAAM,IAAI,CAAC,SAWX;QAVA,KAAI,CAAC,IAAI,GAAG,KAAI,CAAC,OAAO,EAAE,CAAC;QAC3B,KAAI,CAAC,IAAI,GAAG,KAAI,CAAC,OAAO,EAAE,CAAC;QAC3B,KAAI,CAAC,MAAM,GAAG,KAAI,CAAC,SAAS,EAAE,CAAC;QAC/B,KAAI,CAAC,OAAO,GAAG,cAAc,CAAC,MAAM,CAAC;QACrC,KAAI,CAAC,OAAO,GAAG,YAAY,CAAC,GAAG,CAAC;QAChC,IAAM,IAAI,GAAG,IAAI,cAAc,EAAE,CAAC;QAClC,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,KAAI,CAAC,IAAI,GAAG,KAAI,CAA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M,EAAE;gBAC5B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;gBACtB,IAAI,CAAC,cAAc,EAAE,CAAC;aACtB;QACF,CAAC;;;OAPA;IASD,sBAAI,kCAAK;aAAT;YACC,OAAO,IAAI,CAAC,MAAM,CAAC;QACpB,CAAC;aAED,UAAU,KAAmC;YAC5C,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,EAAE;gBAC1B,IAAI,KAAK,IAAI,IAAI,EAAE;oBAClB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;oBACpB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC;iBAC1B;qBAAM;oBACN,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;oBACxB,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;iBAC1B;gBACD,IAAM,QAAM,GAAG,IAAI,CAAC,MAAM,CAAC;gBAC3B,IAAI,QAAM,IAAI,IAAI,EAAE;oBACnB,QAAM,CAAC,OAAO,EAAE,CAAC;iBACjB;aACD;QACF,CAAC;;;OAhBA;IAiBF,sBAAC;AAAD,CAAC,AA9GD,CAA8C,UAAU,GA8GvD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint, ObservablePoint } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport { EShapeDefaults } from \"../e-shape-defaults\";\nimport { EShapeFill } from \"../e-shape-fill\";\nimport { EShapeGradientLike } from \"../e-shape-gradient\";\nimport { EShapeStroke } from \"../e-shape-stroke\";\nimport { EShapeData } from \"../e-shape-data\";\nimport { EShapeText } from \"../e-shape-text\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeBase } from \"./e-shape-base\";\nimport { EShapeFillImpl } from \"./e-shape-fill-impl\";\nimport { EShapeStrokeImpl } from \"./e-shape-stroke-impl\";\nimport { EShapeDataImpl } from \"../e-shape-data-impl\";\nimport { EShapeTextImpl } from \"./e-shape-text-impl\";\n\nexport abstract class EShapePrimitive extends EShapeBase {\n\treadonly size: IPoint;\n\treadonly fill: EShapeFill;\n\treadonly stroke: EShapeStroke;\n\tprotected _radius: number;\n\tprotected _corner: EShapeCorner;\n\tprotected _image?: HTMLImageElement;\n\tgradient?: EShapeGradientLike;\n\treadonly text: EShapeText;\n\t/** @deprecated in favor of {@link data} */\n\treadonly tag: EShapeData;\n\treadonly data: EShapeData;\n\tcursor: string;\n\n\tconstructor(type: EShapeType) {\n\t\tsuper(type);\n\t\tthis.size = this.newSize();\n\t\tthis.fill = this.newFill();\n\t\tthis.stroke = this.newStroke();\n\t\tthis._radius = EShapeDefaults.RADIUS;\n\t\tthis._corner = EShapeCorner.ALL;\n\t\tconst data = new EShapeDataImpl();\n\t\tthis.data = data;\n\t\tthis.tag = data;\n\t\tthis.text = this.newText();\n\t\tthis.cursor = EShapeDefaults.CURSOR;\n\t}\n\n\tprotected newSize(): IPoint {\n\t\treturn new ObservablePoint(\n\t\t\t() => {\n\t\t\t\tthis.onSizeChange();\n\t\t\t},\n\t\t\tundefined,\n\t\t\tEShapeDefaults.SIZE_X,\n\t\t\tEShapeDefaults.SIZE_Y\n\t\t);\n\t}\n\n\tprotected newFill(): EShapeFill {\n\t\treturn new EShapeFillImpl(this, true, EShapeDefaults.FILL_COLOR, EShapeDefaults.FILL_ALPHA);\n\t}\n\n\tprotected newStroke(): EShapeStroke {\n\t\treturn new EShapeStrokeImpl(\n\t\t\tthis,\n\t\t\ttrue,\n\t\t\tEShapeDefaults.STROKE_COLOR,\n\t\t\tEShapeDefaults.STROKE_ALPHA,\n\t\t\tEShapeDefaults.STROKE_WIDTH,\n\t\t\tEShapeDefaults.STROKE_ALIGN,\n\t\t\tEShapeDefaults.STROKE_SIDE,\n\t\t\tEShapeDefaults.STROKE_STYLE\n\t\t);\n\t}\n\n\tprotected newText(): EShapeText {\n\t\treturn new EShapeTextImpl(\n\t\t\tthis,\n\t\t\tEShapeDefaults.TEXT_VALUE,\n\t\t\tEShapeDefaults.TEXT_COLOR,\n\t\t\tEShapeDefaults.TEXT_ALPHA,\n\t\t\tEShapeDefaults.TEXT_FAMILY,\n\t\t\tEShapeDefaults.TEXT_SIZE\n\t\t);\n\t}\n\n\tabstract clone(): EShape;\n\n\tget corner(): number {\n\t\treturn this._corner;\n\t}\n\n\tset corner(corner: number) {\n\t\tif (this._corner !== corner) {\n\t\t\tthis._corner = corner;\n\t\t\tthis.updateUploaded();\n\t\t}\n\t}\n\n\tget radius(): number {\n\t\treturn this._radius;\n\t}\n\n\tset radius(radius: number) {\n\t\tif (this._radius !== radius) {\n\t\t\tthis._radius = radius;\n\t\t\tthis.updateUploaded();\n\t\t}\n\t}\n\n\tget image(): HTMLImageElement | undefined {\n\t\treturn this._image;\n\t}\n\n\tset image(image: HTMLImageElement | undefined) {\n\t\tif (this._image !== image) {\n\t\t\tif (image != null) {\n\t\t\t\tthis._image = image;\n\t\t\t\tthis.imageSrc = image.src;\n\t\t\t} else {\n\t\t\t\tthis._image = undefined;\n\t\t\t\tthis.imageSrc = undefined;\n\t\t\t}\n\t\t\tconst parent = this.parent;\n\t\t\tif (parent != null) {\n\t\t\t\tparent.toDirty();\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -107,9 +107,6 @@ export * from "./e-shape-button-runtime";
107
107
  export * from "./e-shape-button";
108
108
  export * from "./e-shape-circle";
109
109
  export * from "./e-shape-connector-line";
110
- export * from "./e-shape-data-impl";
111
- export * from "./e-shape-data-value-impl";
112
- export * from "./e-shape-data-value-range-impl";
113
110
  export * from "./e-shape-embedded-datum";
114
111
  export * from "./e-shape-embedded-layer-container";
115
112
  export * from "./e-shape-embedded-layer";