@wcardinal/wcardinal-ui 0.372.0 → 0.374.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 (372) hide show
  1. package/dist/types/wcardinal/ui/d-align-horizontal.d.ts +1 -1
  2. package/dist/types/wcardinal/ui/d-align-vertical.d.ts +1 -1
  3. package/dist/types/wcardinal/ui/d-align-with.d.ts +1 -1
  4. package/dist/types/wcardinal/ui/d-animation.d.ts +5 -5
  5. package/dist/types/wcardinal/ui/d-base-interactive.d.ts +1 -1
  6. package/dist/types/wcardinal/ui/d-base-point.d.ts +1 -1
  7. package/dist/types/wcardinal/ui/d-base-state-matcher.d.ts +1 -1
  8. package/dist/types/wcardinal/ui/d-base-state-set-impl-observable.d.ts +1 -1
  9. package/dist/types/wcardinal/ui/d-base.d.ts +1 -1
  10. package/dist/types/wcardinal/ui/d-border-mask.d.ts +1 -1
  11. package/dist/types/wcardinal/ui/d-button-base-when.d.ts +1 -1
  12. package/dist/types/wcardinal/ui/d-button-file.d.ts +1 -1
  13. package/dist/types/wcardinal/ui/d-button-select.d.ts +2 -2
  14. package/dist/types/wcardinal/ui/d-chart-axis-base-options.d.ts +4 -4
  15. package/dist/types/wcardinal/ui/d-chart-axis-position.d.ts +1 -1
  16. package/dist/types/wcardinal/ui/d-chart-axis-tick-position.d.ts +1 -1
  17. package/dist/types/wcardinal/ui/d-chart-coordinate-direction.d.ts +1 -1
  18. package/dist/types/wcardinal/ui/d-chart-coordinate-tick-major-step-function.d.ts +1 -1
  19. package/dist/types/wcardinal/ui/d-chart-coordinate-tick-minor-step-function.d.ts +1 -1
  20. package/dist/types/wcardinal/ui/d-chart-selection-shape.d.ts +1 -1
  21. package/dist/types/wcardinal/ui/d-chart-selection.d.ts +2 -2
  22. package/dist/types/wcardinal/ui/d-chart-series-scalar.d.ts +1 -1
  23. package/dist/types/wcardinal/ui/d-color-type.d.ts +1 -1
  24. package/dist/types/wcardinal/ui/d-coordinate.d.ts +3 -3
  25. package/dist/types/wcardinal/ui/d-corner-mask.d.ts +1 -1
  26. package/dist/types/wcardinal/ui/d-diagram-base-controller.d.ts +1 -1
  27. package/dist/types/wcardinal/ui/d-diagram-canvas-editor-snap.d.ts +1 -1
  28. package/dist/types/wcardinal/ui/d-diagram-canvas-tile.d.ts +1 -1
  29. package/dist/types/wcardinal/ui/d-diagram-data-mapper.d.ts +1 -1
  30. package/dist/types/wcardinal/ui/d-diagram-layers.d.ts +1 -1
  31. package/dist/types/wcardinal/ui/d-diagram-serialized.d.ts +6 -6
  32. package/dist/types/wcardinal/ui/d-dialog-close-on.d.ts +1 -1
  33. package/dist/types/wcardinal/ui/d-dialog-gesture-mode.d.ts +1 -1
  34. package/dist/types/wcardinal/ui/d-dialog-gesture.d.ts +1 -1
  35. package/dist/types/wcardinal/ui/d-dialog-mode.d.ts +1 -1
  36. package/dist/types/wcardinal/ui/d-dialog-select-search-dismissable.d.ts +1 -1
  37. package/dist/types/wcardinal/ui/d-dialog-select-search-function.d.ts +1 -1
  38. package/dist/types/wcardinal/ui/d-dialog-select.d.ts +2 -2
  39. package/dist/types/wcardinal/ui/d-dynamic-text-style-word-wrap.d.ts +1 -1
  40. package/dist/types/wcardinal/ui/d-dynamic-text-style.d.ts +1 -1
  41. package/dist/types/wcardinal/ui/d-font.d.ts +3 -3
  42. package/dist/types/wcardinal/ui/d-item-updater.d.ts +2 -2
  43. package/dist/types/wcardinal/ui/d-layout-clear-type.d.ts +1 -1
  44. package/dist/types/wcardinal/ui/d-layout-direction.d.ts +1 -1
  45. package/dist/types/wcardinal/ui/d-link-menu-item-id.d.ts +1 -1
  46. package/dist/types/wcardinal/ui/d-link-menu.d.ts +1 -1
  47. package/dist/types/wcardinal/ui/d-link-target.d.ts +1 -1
  48. package/dist/types/wcardinal/ui/d-link.d.ts +4 -4
  49. package/dist/types/wcardinal/ui/d-list-data-selection.d.ts +1 -1
  50. package/dist/types/wcardinal/ui/d-list-data.d.ts +1 -1
  51. package/dist/types/wcardinal/ui/d-list-item-accessor.d.ts +6 -6
  52. package/dist/types/wcardinal/ui/d-map-tile-url-builder.d.ts +1 -1
  53. package/dist/types/wcardinal/ui/d-menu-item-link.d.ts +2 -2
  54. package/dist/types/wcardinal/ui/d-menu-item-options-union.d.ts +1 -1
  55. package/dist/types/wcardinal/ui/d-menu-sided-selection.d.ts +1 -1
  56. package/dist/types/wcardinal/ui/d-menus.d.ts +2 -2
  57. package/dist/types/wcardinal/ui/d-on-options.d.ts +2 -2
  58. package/dist/types/wcardinal/ui/d-picker-datetime-mask.d.ts +1 -1
  59. package/dist/types/wcardinal/ui/d-picker-datetime.d.ts +3 -3
  60. package/dist/types/wcardinal/ui/d-scalar-expression.d.ts +7 -7
  61. package/dist/types/wcardinal/ui/d-scalar-function.d.ts +1 -1
  62. package/dist/types/wcardinal/ui/d-state-aware.d.ts +3 -3
  63. package/dist/types/wcardinal/ui/d-table-body-cell-link.d.ts +2 -2
  64. package/dist/types/wcardinal/ui/d-table-body-cell-options.d.ts +1 -1
  65. package/dist/types/wcardinal/ui/d-table-body-cell.d.ts +1 -1
  66. package/dist/types/wcardinal/ui/d-table-body-row.d.ts +1 -1
  67. package/dist/types/wcardinal/ui/d-table-column-editing.d.ts +4 -4
  68. package/dist/types/wcardinal/ui/d-table-column-formatter.d.ts +1 -1
  69. package/dist/types/wcardinal/ui/d-table-column-getter.d.ts +1 -1
  70. package/dist/types/wcardinal/ui/d-table-column-renderable.d.ts +1 -1
  71. package/dist/types/wcardinal/ui/d-table-column-selecting.d.ts +2 -2
  72. package/dist/types/wcardinal/ui/d-table-column-setter.d.ts +1 -1
  73. package/dist/types/wcardinal/ui/d-table-column-state.d.ts +1 -1
  74. package/dist/types/wcardinal/ui/d-table-column-type.d.ts +1 -1
  75. package/dist/types/wcardinal/ui/d-table-column-update.d.ts +1 -1
  76. package/dist/types/wcardinal/ui/d-table-data-filter.d.ts +2 -2
  77. package/dist/types/wcardinal/ui/d-table-data-selection.d.ts +3 -3
  78. package/dist/types/wcardinal/ui/d-table-data-sorter.d.ts +3 -3
  79. package/dist/types/wcardinal/ui/d-table-data-tree-item-accessor.d.ts +3 -3
  80. package/dist/types/wcardinal/ui/d-table-data-tree-selection.d.ts +1 -1
  81. package/dist/types/wcardinal/ui/d-table-data.d.ts +3 -3
  82. package/dist/types/wcardinal/ui/d-tree-data-mapped-impl.d.ts +3 -2
  83. package/dist/types/wcardinal/ui/d-tree-data-selection.d.ts +1 -1
  84. package/dist/types/wcardinal/ui/d-tree-node-iteratee.d.ts +1 -1
  85. package/dist/types/wcardinal/ui/d-view-constraint.d.ts +1 -1
  86. package/dist/types/wcardinal/ui/d-view-to-target.d.ts +1 -1
  87. package/dist/types/wcardinal/ui/d-view.d.ts +1 -1
  88. package/dist/types/wcardinal/ui/shape/action/e-shape-action-expression-with-parameter.d.ts +1 -1
  89. package/dist/types/wcardinal/ui/shape/action/e-shape-action-expression.d.ts +1 -1
  90. package/dist/types/wcardinal/ui/shape/action/e-shape-action-open-dialog-opener.d.ts +1 -1
  91. package/dist/types/wcardinal/ui/shape/action/e-shape-action-open-opener.d.ts +1 -1
  92. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-blink-type.d.ts +1 -1
  93. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-blink.d.ts +1 -1
  94. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-color-brightness.d.ts +2 -2
  95. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-color-code.d.ts +2 -2
  96. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-color-target.d.ts +1 -1
  97. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-color-type-legacy.d.ts +1 -1
  98. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-color-type.d.ts +1 -1
  99. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-color.d.ts +3 -3
  100. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-cursor.d.ts +1 -1
  101. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-text-type.d.ts +1 -1
  102. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-text.d.ts +1 -1
  103. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-deserializers.d.ts +1 -1
  104. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-emit-event.d.ts +1 -1
  105. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-gesture-operation-type.d.ts +1 -1
  106. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-gesture-type.d.ts +1 -1
  107. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-gesture.d.ts +3 -3
  108. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-misc-execute.d.ts +1 -1
  109. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-misc-type.d.ts +1 -1
  110. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-misc.d.ts +2 -2
  111. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-on-input-action.d.ts +1 -1
  112. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-open-dialog-extension.d.ts +3 -3
  113. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-open-dialog-type.d.ts +1 -1
  114. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-open-dialog.d.ts +5 -5
  115. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-open-type.d.ts +1 -1
  116. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-open.d.ts +3 -3
  117. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-show-hide-layer.d.ts +1 -1
  118. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-show-hide-shape.d.ts +1 -1
  119. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-show-hide-type.d.ts +1 -1
  120. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-show-hide.d.ts +1 -1
  121. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-transform-move-type.d.ts +1 -1
  122. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-transform-move.d.ts +1 -1
  123. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-transform-resize-type.d.ts +1 -1
  124. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-transform-resize.d.ts +1 -1
  125. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-transform-rotate-type.d.ts +1 -1
  126. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-transform-rotate.d.ts +1 -1
  127. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-transform-type.d.ts +1 -1
  128. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-type.d.ts +1 -1
  129. package/dist/types/wcardinal/ui/shape/e-shape-acceptor-edge-side.d.ts +1 -1
  130. package/dist/types/wcardinal/ui/shape/e-shape-acceptor-edge-type.d.ts +1 -1
  131. package/dist/types/wcardinal/ui/shape/e-shape-acceptor-type.d.ts +1 -1
  132. package/dist/types/wcardinal/ui/shape/e-shape-capability.d.ts +1 -1
  133. package/dist/types/wcardinal/ui/shape/e-shape-connector-body.d.ts +1 -1
  134. package/dist/types/wcardinal/ui/shape/e-shape-connector-container-impl.d.ts +1 -1
  135. package/dist/types/wcardinal/ui/shape/e-shape-connector-container.d.ts +2 -1
  136. package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-container-impl.d.ts +2 -1
  137. package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-container.d.ts +3 -2
  138. package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-impl.d.ts +1 -1
  139. package/dist/types/wcardinal/ui/shape/e-shape-connector-edge.d.ts +2 -2
  140. package/dist/types/wcardinal/ui/shape/e-shape-copy-part.d.ts +1 -1
  141. package/dist/types/wcardinal/ui/shape/e-shape-corner.d.ts +1 -1
  142. package/dist/types/wcardinal/ui/shape/e-shape-data-mapping.d.ts +1 -1
  143. package/dist/types/wcardinal/ui/shape/e-shape-data-value-formatter.d.ts +1 -1
  144. package/dist/types/wcardinal/ui/shape/e-shape-data-value-order.d.ts +1 -1
  145. package/dist/types/wcardinal/ui/shape/e-shape-data-value-range.d.ts +1 -1
  146. package/dist/types/wcardinal/ui/shape/e-shape-data-value-scope.d.ts +1 -1
  147. package/dist/types/wcardinal/ui/shape/e-shape-data-value-state.d.ts +1 -1
  148. package/dist/types/wcardinal/ui/shape/e-shape-data-value-type.d.ts +1 -1
  149. package/dist/types/wcardinal/ui/shape/e-shape-deleter.d.ts +2 -0
  150. package/dist/types/wcardinal/ui/shape/e-shape-deserializers.d.ts +2 -2
  151. package/dist/types/wcardinal/ui/shape/e-shape-points-formatted.d.ts +2 -2
  152. package/dist/types/wcardinal/ui/shape/e-shape-points-formatter.d.ts +1 -1
  153. package/dist/types/wcardinal/ui/shape/e-shape-points-marker-container.d.ts +1 -1
  154. package/dist/types/wcardinal/ui/shape/e-shape-points-marker-type.d.ts +1 -1
  155. package/dist/types/wcardinal/ui/shape/e-shape-points-marker.d.ts +1 -1
  156. package/dist/types/wcardinal/ui/shape/e-shape-points-style.d.ts +1 -1
  157. package/dist/types/wcardinal/ui/shape/e-shape-points-styles.d.ts +1 -1
  158. package/dist/types/wcardinal/ui/shape/e-shape-resource-manager-deserialization-mode.d.ts +1 -1
  159. package/dist/types/wcardinal/ui/shape/e-shape-runtime-reset.d.ts +1 -1
  160. package/dist/types/wcardinal/ui/shape/e-shape-runtimes.d.ts +1 -1
  161. package/dist/types/wcardinal/ui/shape/e-shape-stroke-side.d.ts +1 -1
  162. package/dist/types/wcardinal/ui/shape/e-shape-stroke-style.d.ts +1 -1
  163. package/dist/types/wcardinal/ui/shape/e-shape-text-align-horizontal.d.ts +1 -1
  164. package/dist/types/wcardinal/ui/shape/e-shape-text-align-vertical.d.ts +1 -1
  165. package/dist/types/wcardinal/ui/shape/e-shape-text-direction.d.ts +1 -1
  166. package/dist/types/wcardinal/ui/shape/e-shape-text.d.ts +3 -3
  167. package/dist/types/wcardinal/ui/shape/e-shape-type.d.ts +1 -1
  168. package/dist/types/wcardinal/ui/shape/e-shape-uploaded-constructor.d.ts +1 -1
  169. package/dist/types/wcardinal/ui/shape/e-shape-uploadeds.d.ts +1 -1
  170. package/dist/types/wcardinal/ui/shape/e-shape.d.ts +6 -8
  171. package/dist/types/wcardinal/ui/shape/variant/build-line.d.ts +2 -2
  172. package/dist/types/wcardinal/ui/shape/variant/create-line-of-any-uploaded.d.ts +1 -1
  173. package/dist/types/wcardinal/ui/shape/variant/deserialize-bar.d.ts +1 -1
  174. package/dist/types/wcardinal/ui/shape/variant/deserialize-button.d.ts +1 -1
  175. package/dist/types/wcardinal/ui/shape/variant/deserialize-circle.d.ts +1 -1
  176. package/dist/types/wcardinal/ui/shape/variant/deserialize-connector-elbow.d.ts +1 -1
  177. package/dist/types/wcardinal/ui/shape/variant/deserialize-connector-line.d.ts +1 -1
  178. package/dist/types/wcardinal/ui/shape/variant/deserialize-embedded-acceptor-edge.d.ts +1 -1
  179. package/dist/types/wcardinal/ui/shape/variant/deserialize-group-shadowed.d.ts +1 -1
  180. package/dist/types/wcardinal/ui/shape/variant/deserialize-group.d.ts +1 -1
  181. package/dist/types/wcardinal/ui/shape/variant/deserialize-image-sdf.d.ts +1 -1
  182. package/dist/types/wcardinal/ui/shape/variant/deserialize-image.d.ts +1 -1
  183. package/dist/types/wcardinal/ui/shape/variant/deserialize-label.d.ts +1 -1
  184. package/dist/types/wcardinal/ui/shape/variant/deserialize-line-of-circles.d.ts +1 -1
  185. package/dist/types/wcardinal/ui/shape/variant/deserialize-line-of-rectangle-roundeds.d.ts +1 -1
  186. package/dist/types/wcardinal/ui/shape/variant/deserialize-line-of-rectangles.d.ts +1 -1
  187. package/dist/types/wcardinal/ui/shape/variant/deserialize-line-of-triangle-roundeds.d.ts +1 -1
  188. package/dist/types/wcardinal/ui/shape/variant/deserialize-line-of-triangles.d.ts +1 -1
  189. package/dist/types/wcardinal/ui/shape/variant/deserialize-line.d.ts +1 -1
  190. package/dist/types/wcardinal/ui/shape/variant/deserialize-null.d.ts +1 -1
  191. package/dist/types/wcardinal/ui/shape/variant/deserialize-rectangle-pivoted.d.ts +1 -1
  192. package/dist/types/wcardinal/ui/shape/variant/deserialize-rectangle-rounded.d.ts +1 -1
  193. package/dist/types/wcardinal/ui/shape/variant/deserialize-rectangle.d.ts +1 -1
  194. package/dist/types/wcardinal/ui/shape/variant/deserialize-semicircle.d.ts +1 -1
  195. package/dist/types/wcardinal/ui/shape/variant/deserialize-triangle-rounded.d.ts +1 -1
  196. package/dist/types/wcardinal/ui/shape/variant/deserialize-triangle.d.ts +1 -1
  197. package/dist/types/wcardinal/ui/shape/variant/e-shape-bar-position.d.ts +1 -1
  198. package/dist/types/wcardinal/ui/shape/variant/e-shape-base.d.ts +10 -13
  199. package/dist/types/wcardinal/ui/shape/variant/e-shape-connector-line.d.ts +6 -5
  200. package/dist/types/wcardinal/ui/shape/variant/e-shape-group-size-parent.d.ts +4 -3
  201. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-base-hit-part.d.ts +1 -1
  202. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-base-points-hit-tester-to-range.d.ts +1 -1
  203. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-base-points-hit-tester-to-threshold.d.ts +1 -1
  204. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-base-points-hit-tester.d.ts +1 -1
  205. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-any-points-hit-tester-to-range.d.ts +1 -1
  206. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-any-points-hit-tester-to-threshold.d.ts +1 -1
  207. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-any-points-hit-tester.d.ts +1 -1
  208. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-any-value.d.ts +1 -1
  209. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-points.d.ts +1 -1
  210. package/dist/types/wcardinal/ui/shape/variant/e-shape-lock-part.d.ts +8 -0
  211. package/dist/types/wcardinal/ui/shape/variant/e-shape-lock.d.ts +9 -0
  212. package/dist/types/wcardinal/ui/shape/variant/index.d.ts +2 -0
  213. package/dist/types/wcardinal/ui/snapper/e-snapper-target-value.d.ts +1 -1
  214. package/dist/types/wcardinal/ui/snapper/e-snapper.d.ts +1 -1
  215. package/dist/types/wcardinal/ui/util/deep-partial.d.ts +1 -1
  216. package/dist/types/wcardinal/ui/util/dynamic-font-atlas-character-type.d.ts +1 -1
  217. package/dist/types/wcardinal/ui/util/dynamic-font-atlas-characters.d.ts +1 -1
  218. package/dist/types/wcardinal/ui/util/dynamic-sdf-font-generator.d.ts +1 -1
  219. package/dist/types/wcardinal/ui/util/number-formatter-function.d.ts +1 -1
  220. package/dist/types/wcardinal/ui/util/util-attach.d.ts +1 -1
  221. package/dist/types/wcardinal/ui/util/util-click-outside.d.ts +1 -1
  222. package/dist/types/wcardinal/ui/util/util-curve.d.ts +2 -2
  223. package/dist/types/wcardinal/ui/util/util-file-opener.d.ts +2 -2
  224. package/dist/types/wcardinal/ui/util/util-gesture-easing.d.ts +2 -2
  225. package/dist/types/wcardinal/ui/util/util-gesture-mode.d.ts +1 -1
  226. package/dist/types/wcardinal/ui/util/util-gesture-modifier.d.ts +1 -1
  227. package/dist/types/wcardinal/ui/util/util-gesture-modifiers.d.ts +1 -1
  228. package/dist/types/wcardinal/ui/util/util-gesture.d.ts +7 -7
  229. package/dist/types/wcardinal/ui/util/util-html-element-when.d.ts +1 -1
  230. package/dist/types/wcardinal/ui/util/util-html-element.d.ts +7 -7
  231. package/dist/types/wcardinal/ui/util/util-pointer-event.d.ts +2 -2
  232. package/dist/types/wcardinal/ui/util/util-wheel-event.d.ts +2 -2
  233. package/dist/wcardinal/ui/d-animation-base.js +1 -2
  234. package/dist/wcardinal/ui/d-animation-base.js.map +1 -1
  235. package/dist/wcardinal/ui/d-animation-empty.js +1 -2
  236. package/dist/wcardinal/ui/d-animation-empty.js.map +1 -1
  237. package/dist/wcardinal/ui/d-animation-fade-in.js +1 -2
  238. package/dist/wcardinal/ui/d-animation-fade-in.js.map +1 -1
  239. package/dist/wcardinal/ui/d-base.js +1 -2
  240. package/dist/wcardinal/ui/d-base.js.map +1 -1
  241. package/dist/wcardinal/ui/d-button-select.js +1 -2
  242. package/dist/wcardinal/ui/d-button-select.js.map +1 -1
  243. package/dist/wcardinal/ui/d-chart-axis-base-bar.js +3 -2
  244. package/dist/wcardinal/ui/d-chart-axis-base-bar.js.map +1 -1
  245. package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js +7 -6
  246. package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
  247. package/dist/wcardinal/ui/d-chart-axis-guide-simple-shape-impl.js +7 -6
  248. package/dist/wcardinal/ui/d-chart-axis-guide-simple-shape-impl.js.map +1 -1
  249. package/dist/wcardinal/ui/d-chart-selection-simple.js +1 -2
  250. package/dist/wcardinal/ui/d-chart-selection-simple.js.map +1 -1
  251. package/dist/wcardinal/ui/d-chart-selection-sub-impl.js +1 -2
  252. package/dist/wcardinal/ui/d-chart-selection-sub-impl.js.map +1 -1
  253. package/dist/wcardinal/ui/d-chart-series-line-of-any.js +4 -4
  254. package/dist/wcardinal/ui/d-chart-series-line-of-any.js.map +1 -1
  255. package/dist/wcardinal/ui/d-chart-series-line.js +4 -4
  256. package/dist/wcardinal/ui/d-chart-series-line.js.map +1 -1
  257. package/dist/wcardinal/ui/d-chart-series-linear.js +3 -2
  258. package/dist/wcardinal/ui/d-chart-series-linear.js.map +1 -1
  259. package/dist/wcardinal/ui/d-diagram-base.js +1 -2
  260. package/dist/wcardinal/ui/d-diagram-base.js.map +1 -1
  261. package/dist/wcardinal/ui/d-diagram-canvas-base.js +1 -2
  262. package/dist/wcardinal/ui/d-diagram-canvas-base.js.map +1 -1
  263. package/dist/wcardinal/ui/d-diagram-canvas-editor-snap.js +5 -4
  264. package/dist/wcardinal/ui/d-diagram-canvas-editor-snap.js.map +1 -1
  265. package/dist/wcardinal/ui/d-dialog-processing.js +1 -2
  266. package/dist/wcardinal/ui/d-dialog-processing.js.map +1 -1
  267. package/dist/wcardinal/ui/d-dialog-select.js +1 -2
  268. package/dist/wcardinal/ui/d-dialog-select.js.map +1 -1
  269. package/dist/wcardinal/ui/d-menu-item-base.js +1 -2
  270. package/dist/wcardinal/ui/d-menu-item-base.js.map +1 -1
  271. package/dist/wcardinal/ui/d-menu-sided-selection.js +1 -2
  272. package/dist/wcardinal/ui/d-menu-sided-selection.js.map +1 -1
  273. package/dist/wcardinal/ui/d-menu-sided.js +1 -2
  274. package/dist/wcardinal/ui/d-menu-sided.js.map +1 -1
  275. package/dist/wcardinal/ui/d-pagination.js +1 -2
  276. package/dist/wcardinal/ui/d-pagination.js.map +1 -1
  277. package/dist/wcardinal/ui/d-pane.js +1 -2
  278. package/dist/wcardinal/ui/d-pane.js.map +1 -1
  279. package/dist/wcardinal/ui/d-scroll-bar.js +1 -2
  280. package/dist/wcardinal/ui/d-scroll-bar.js.map +1 -1
  281. package/dist/wcardinal/ui/d-slider-value.js +1 -2
  282. package/dist/wcardinal/ui/d-slider-value.js.map +1 -1
  283. package/dist/wcardinal/ui/d-table-body-cell-button.js +1 -2
  284. package/dist/wcardinal/ui/d-table-body-cell-button.js.map +1 -1
  285. package/dist/wcardinal/ui/d-table-body-cell-select-dialog.js +1 -2
  286. package/dist/wcardinal/ui/d-table-body-cell-select-dialog.js.map +1 -1
  287. package/dist/wcardinal/ui/d-table-body-cell-select-promise.js +1 -2
  288. package/dist/wcardinal/ui/d-table-body-cell-select-promise.js.map +1 -1
  289. package/dist/wcardinal/ui/d-table-body.js +1 -2
  290. package/dist/wcardinal/ui/d-table-body.js.map +1 -1
  291. package/dist/wcardinal/ui/d-table-category.js +1 -2
  292. package/dist/wcardinal/ui/d-table-category.js.map +1 -1
  293. package/dist/wcardinal/ui/d-table-data-list-selection.js +1 -2
  294. package/dist/wcardinal/ui/d-table-data-list-selection.js.map +1 -1
  295. package/dist/wcardinal/ui/d-table-data-tree-selection-impl.js +1 -2
  296. package/dist/wcardinal/ui/d-table-data-tree-selection-impl.js.map +1 -1
  297. package/dist/wcardinal/ui/d-table-header.js +1 -2
  298. package/dist/wcardinal/ui/d-table-header.js.map +1 -1
  299. package/dist/wcardinal/ui/d-table-row.js +1 -2
  300. package/dist/wcardinal/ui/d-table-row.js.map +1 -1
  301. package/dist/wcardinal/ui/d-tree-data-mapped-impl.js.map +1 -1
  302. package/dist/wcardinal/ui/d-tree-item-button.js +1 -2
  303. package/dist/wcardinal/ui/d-tree-item-button.js.map +1 -1
  304. package/dist/wcardinal/ui/d-view-impl.js +1 -2
  305. package/dist/wcardinal/ui/d-view-impl.js.map +1 -1
  306. package/dist/wcardinal/ui/shape/e-shape-capability.js +1 -1
  307. package/dist/wcardinal/ui/shape/e-shape-capability.js.map +1 -1
  308. package/dist/wcardinal/ui/shape/e-shape-connector-container-impl.js +4 -2
  309. package/dist/wcardinal/ui/shape/e-shape-connector-container-impl.js.map +1 -1
  310. package/dist/wcardinal/ui/shape/e-shape-connector-container.js.map +1 -1
  311. package/dist/wcardinal/ui/shape/e-shape-connector-edge-container-impl.js +3 -3
  312. package/dist/wcardinal/ui/shape/e-shape-connector-edge-container-impl.js.map +1 -1
  313. package/dist/wcardinal/ui/shape/e-shape-connector-edge-container.js.map +1 -1
  314. package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js +2 -2
  315. package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js.map +1 -1
  316. package/dist/wcardinal/ui/shape/e-shape-connector-edge.js.map +1 -1
  317. package/dist/wcardinal/ui/shape/e-shape-deleter.js +18 -2
  318. package/dist/wcardinal/ui/shape/e-shape-deleter.js.map +1 -1
  319. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js +5 -4
  320. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js.map +1 -1
  321. package/dist/wcardinal/ui/shape/e-shape-transforms.js +5 -4
  322. package/dist/wcardinal/ui/shape/e-shape-transforms.js.map +1 -1
  323. package/dist/wcardinal/ui/shape/e-shape.js.map +1 -1
  324. package/dist/wcardinal/ui/shape/variant/deserialize-connector-line.js +3 -2
  325. package/dist/wcardinal/ui/shape/variant/deserialize-connector-line.js.map +1 -1
  326. package/dist/wcardinal/ui/shape/variant/e-shape-base.js +59 -73
  327. package/dist/wcardinal/ui/shape/variant/e-shape-base.js.map +1 -1
  328. package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js +18 -18
  329. package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js.map +1 -1
  330. package/dist/wcardinal/ui/shape/variant/e-shape-group-size-editor.js +33 -26
  331. package/dist/wcardinal/ui/shape/variant/e-shape-group-size-editor.js.map +1 -1
  332. package/dist/wcardinal/ui/shape/variant/e-shape-group-size-layout.js +3 -2
  333. package/dist/wcardinal/ui/shape/variant/e-shape-group-size-layout.js.map +1 -1
  334. package/dist/wcardinal/ui/shape/variant/e-shape-group-size-parent.js.map +1 -1
  335. package/dist/wcardinal/ui/shape/variant/e-shape-group.js +2 -0
  336. package/dist/wcardinal/ui/shape/variant/e-shape-group.js.map +1 -1
  337. package/dist/wcardinal/ui/shape/variant/e-shape-lock-part.js +8 -0
  338. package/dist/wcardinal/ui/shape/variant/e-shape-lock-part.js.map +1 -0
  339. package/dist/wcardinal/ui/shape/variant/e-shape-lock.js +31 -0
  340. package/dist/wcardinal/ui/shape/variant/e-shape-lock.js.map +1 -0
  341. package/dist/wcardinal/ui/shape/variant/index.js +2 -0
  342. package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
  343. package/dist/wcardinal/ui/shape/variant/to-resized.js +3 -2
  344. package/dist/wcardinal/ui/shape/variant/to-resized.js.map +1 -1
  345. package/dist/wcardinal/ui/snapper/e-snapper-grid.js +1 -2
  346. package/dist/wcardinal/ui/snapper/e-snapper-grid.js.map +1 -1
  347. package/dist/wcardinal/ui/snapper/e-snapper-target.js +1 -2
  348. package/dist/wcardinal/ui/snapper/e-snapper-target.js.map +1 -1
  349. package/dist/wcardinal/ui/snapper/e-snapper.js +1 -2
  350. package/dist/wcardinal/ui/snapper/e-snapper.js.map +1 -1
  351. package/dist/wcardinal/ui/theme/dark/d-theme-dark-atlas.js +1 -1
  352. package/dist/wcardinal/ui/theme/dark/d-theme-dark-atlas.js.map +1 -1
  353. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js.map +1 -1
  354. package/dist/wcardinal/ui/theme/white/d-theme-white-atlas.js +1 -1
  355. package/dist/wcardinal/ui/theme/white/d-theme-white-atlas.js.map +1 -1
  356. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js.map +1 -1
  357. package/dist/wcardinal/ui/util/dynamic-sdf-font-generator.js.map +1 -1
  358. package/dist/wcardinal/ui/util/util-input-number.js +1 -2
  359. package/dist/wcardinal/ui/util/util-input-number.js.map +1 -1
  360. package/dist/wcardinal/ui/util/util-input.js +1 -2
  361. package/dist/wcardinal/ui/util/util-input.js.map +1 -1
  362. package/dist/wcardinal-ui-theme-dark.js +2 -2
  363. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  364. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  365. package/dist/wcardinal-ui-theme-white.js +2 -2
  366. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  367. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  368. package/dist/wcardinal-ui.cjs.js +251 -240
  369. package/dist/wcardinal-ui.js +249 -238
  370. package/dist/wcardinal-ui.min.js +2 -2
  371. package/dist/wcardinal-ui.min.js.map +1 -1
  372. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,2B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Ac,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./build-bar\";\nexport * from \"./build-circle\";\nexport * from \"./build-color\";\nexport * from \"./build-image-sdf\";\nexport * from \"./build-line-of-any\";\nexport * from \"./build-line\";\nexport * from \"./build-null\";\nexport * from \"./build-rectangle-rounded\";\nexport * from \"./build-rectangle\";\nexport * from \"./build-semicircle\";\nexport * from \"./build-text\";\nexport * from \"./build-triangle-rounded\";\nexport * from \"./build-triangle\";\nexport * from \"./builder-bar\";\nexport * from \"./builder-base\";\nexport * from \"./builder-circle\";\nexport * from \"./builder-image-sdf\";\nexport * from \"./builder-label\";\nexport * from \"./builder-line-of-any\";\nexport * from \"./builder-line-of-circles\";\nexport * from \"./builder-line-of-rectangle-roundeds\";\nexport * from \"./builder-line-of-rectangles\";\nexport * from \"./builder-line-of-triangle-roundeds\";\nexport * from \"./builder-line-of-triangles\";\nexport * from \"./builder-line\";\nexport * from \"./builder-marker-circle-head\";\nexport * from \"./builder-marker-circle-tail\";\nexport * from \"./builder-marker-circle\";\nexport * from \"./builder-marker-rectangle-head\";\nexport * from \"./builder-marker-rectangle-tail\";\nexport * from \"./builder-marker-rectangle\";\nexport * from \"./builder-marker-triangle-head\";\nexport * from \"./builder-marker-triangle-tail\";\nexport * from \"./builder-marker-triangle\";\nexport * from \"./builder-null\";\nexport * from \"./builder-rectangle-pivoted\";\nexport * from \"./builder-rectangle-rounded\";\nexport * from \"./builder-rectangle\";\nexport * from \"./builder-semicircle\";\nexport * from \"./builder-text\";\nexport * from \"./builder-triangle-rounded\";\nexport * from \"./builder-triangle\";\nexport * from \"./builder\";\nexport * from \"./builders\";\nexport * from \"./copy-clipping\";\nexport * from \"./copy-index\";\nexport * from \"./copy-step\";\nexport * from \"./copy-uv\";\nexport * from \"./copy-vertex\";\nexport * from \"./create-bar-uploaded\";\nexport * from \"./create-button-uploaded\";\nexport * from \"./create-circle-uploaded\";\nexport * from \"./create-rectangle-pivoted-uploaded\";\nexport * from \"./create-group-uploaded\";\nexport * from \"./create-image-sdf-uploaded\";\nexport * from \"./create-image-sdf\";\nexport * from \"./create-image\";\nexport * from \"./create-label-uploaded\";\nexport * from \"./create-line-of-any-uploaded\";\nexport * from \"./create-line-of-circles-uploaded\";\nexport * from \"./create-line-of-rectangle-roundeds-uploaded\";\nexport * from \"./create-line-of-rectangles-uploaded\";\nexport * from \"./create-line-of-triangle-roundeds-uploaded\";\nexport * from \"./create-line-of-triangles-uploaded\";\nexport * from \"./create-line-uploaded\";\nexport * from \"./create-line\";\nexport * from \"./create-null-uploaded\";\nexport * from \"./create-rectangle-rounded-uploaded\";\nexport * from \"./create-rectangle-uploaded\";\nexport * from \"./create-semicircle-uploaded\";\nexport * from \"./create-triangle-rounded-uploaded\";\nexport * from \"./create-triangle-uploaded\";\nexport * from \"./deserialize-all\";\nexport * from \"./deserialize-bar\";\nexport * from \"./deserialize-base\";\nexport * from \"./deserialize-button\";\nexport * from \"./deserialize-circle\";\nexport * from \"./deserialize-connector-elbow\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded-acceptor-edge\";\nexport * from \"./deserialize-embedded-layer\";\nexport * from \"./deserialize-embedded\";\nexport * from \"./deserialize-gradient\";\nexport * from \"./deserialize-group-shadowed\";\nexport * from \"./deserialize-group\";\nexport * from \"./deserialize-image-sdf\";\nexport * from \"./deserialize-image\";\nexport * from \"./deserialize-label\";\nexport * from \"./deserialize-line-of-circles\";\nexport * from \"./deserialize-line-of-rectangle-roundeds\";\nexport * from \"./deserialize-line-of-rectangles\";\nexport * from \"./deserialize-line-of-triangle-roundeds\";\nexport * from \"./deserialize-line-of-triangles\";\nexport * from \"./deserialize-line\";\nexport * from \"./deserialize-null\";\nexport * from \"./deserialize-rectangle-pivoted\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-semicircle\";\nexport * from \"./deserialize-triangle-rounded\";\nexport * from \"./deserialize-triangle\";\nexport * from \"./deserialize\";\nexport * from \"./e-shape-bar-points\";\nexport * from \"./e-shape-bar-position\";\nexport * from \"./e-shape-bar\";\nexport * from \"./e-shape-base-hit-test-data\";\nexport * from \"./e-shape-base\";\nexport * from \"./e-shape-button-runtime-action-toggle\";\nexport * from \"./e-shape-button-runtime-action\";\nexport * from \"./e-shape-button-runtime\";\nexport * from \"./e-shape-button\";\nexport * from \"./e-shape-circle\";\nexport * from \"./e-shape-connector-elbow-points-filler\";\nexport * from \"./e-shape-connector-elbow\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-embedded-acceptor-edge\";\nexport * from \"./e-shape-embedded-acceptor\";\nexport * from \"./e-shape-embedded-datum\";\nexport * from \"./e-shape-embedded-layer-container\";\nexport * from \"./e-shape-embedded-layer\";\nexport * from \"./e-shape-embedded\";\nexport * from \"./e-shape-embeddeds\";\nexport * from \"./e-shape-fill-impl-parent\";\nexport * from \"./e-shape-fill-impl\";\nexport * from \"./e-shape-group-fill-editor\";\nexport * from \"./e-shape-group-fill-viewer\";\nexport * from \"./e-shape-group-points\";\nexport * from \"./e-shape-group-property-parent\";\nexport * from \"./e-shape-group-shadowed\";\nexport * from \"./e-shape-group-size-editor\";\nexport * from \"./e-shape-group-size-layout\";\nexport * from \"./e-shape-group-size-parent\";\nexport * from \"./e-shape-group-size-shadowed\";\nexport * from \"./e-shape-group-size-viewer\";\nexport * from \"./e-shape-group-size\";\nexport * from \"./e-shape-group-stroke-editor\";\nexport * from \"./e-shape-group-stroke-viewer\";\nexport * from \"./e-shape-group-viewer\";\nexport * from \"./e-shape-group\";\nexport * from \"./e-shape-image-sdf\";\nexport * from \"./e-shape-image\";\nexport * from \"./e-shape-label\";\nexport * from \"./e-shape-line-base-hit-part\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-base-points-hit-tester\";\nexport * from \"./e-shape-line-base-points\";\nexport * from \"./e-shape-line-base\";\nexport * from \"./e-shape-line-of-any-points-fill-impl\";\nexport * from \"./e-shape-line-of-any-points-fill\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-of-any-points-hit-tester\";\nexport * from \"./e-shape-line-of-any-points-impl\";\nexport * from \"./e-shape-line-of-any-points-point-impl\";\nexport * from \"./e-shape-line-of-any-points-point\";\nexport * from \"./e-shape-line-of-any-points-stroke-impl\";\nexport * from \"./e-shape-line-of-any-points-stroke\";\nexport * from \"./e-shape-line-of-any-points\";\nexport * from \"./e-shape-line-of-any-value\";\nexport * from \"./e-shape-line-of-any\";\nexport * from \"./e-shape-line-of-circles\";\nexport * from \"./e-shape-line-of-rectangle-roundeds\";\nexport * from \"./e-shape-line-of-rectangles\";\nexport * from \"./e-shape-line-of-triangle-roundeds\";\nexport * from \"./e-shape-line-of-triangles\";\nexport * from \"./e-shape-line-points\";\nexport * from \"./e-shape-line\";\nexport * from \"./e-shape-null\";\nexport * from \"./e-shape-primitive\";\nexport * from \"./e-shape-rectangle-pivoted\";\nexport * from \"./e-shape-rectangle-rounded\";\nexport * from \"./e-shape-rectangle\";\nexport * from \"./e-shape-semicircle\";\nexport * from \"./e-shape-stroke-impl-parent\";\nexport * from \"./e-shape-stroke-impl\";\nexport * from \"./e-shape-text-align-impl-parent\";\nexport * from \"./e-shape-text-align-impl\";\nexport * from \"./e-shape-text-impl-parent\";\nexport * from \"./e-shape-text-impl\";\nexport * from \"./e-shape-text-offset-impl-parent\";\nexport * from \"./e-shape-text-offset-impl\";\nexport * from \"./e-shape-text-outline-impl-parent\";\nexport * from \"./e-shape-text-outline-impl\";\nexport * from \"./e-shape-triangle-rounded\";\nexport * from \"./e-shape-triangle\";\nexport * from \"./hit-test-bbox\";\nexport * from \"./hit-test-circle\";\nexport * from \"./hit-test-semicircle\";\nexport * from \"./hit-test-rectangle-rounded\";\nexport * from \"./hit-test-rectangle\";\nexport * from \"./hit-test-triangle-rounded\";\nexport * from \"./hit-test-triangle\";\nexport * from \"./is-static\";\nexport * from \"./to-computed\";\nexport * from \"./to-dash\";\nexport * from \"./to-gradient-image-url\";\nexport * from \"./to-gradient-serialized\";\nexport * from \"./to-image-element\";\nexport * from \"./to-length\";\nexport * from \"./to-resized\";\nexport * from \"./to-scale-invariant\";\nexport * from \"./to-size-normalized\";\nexport * from \"./to-size-rounded\";\nexport * from \"./to-threshold-default\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;A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AC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./build-bar\";\nexport * from \"./build-circle\";\nexport * from \"./build-color\";\nexport * from \"./build-image-sdf\";\nexport * from \"./build-line-of-any\";\nexport * from \"./build-line\";\nexport * from \"./build-null\";\nexport * from \"./build-rectangle-rounded\";\nexport * from \"./build-rectangle\";\nexport * from \"./build-semicircle\";\nexport * from \"./build-text\";\nexport * from \"./build-triangle-rounded\";\nexport * from \"./build-triangle\";\nexport * from \"./builder-bar\";\nexport * from \"./builder-base\";\nexport * from \"./builder-circle\";\nexport * from \"./builder-image-sdf\";\nexport * from \"./builder-label\";\nexport * from \"./builder-line-of-any\";\nexport * from \"./builder-line-of-circles\";\nexport * from \"./builder-line-of-rectangle-roundeds\";\nexport * from \"./builder-line-of-rectangles\";\nexport * from \"./builder-line-of-triangle-roundeds\";\nexport * from \"./builder-line-of-triangles\";\nexport * from \"./builder-line\";\nexport * from \"./builder-marker-circle-head\";\nexport * from \"./builder-marker-circle-tail\";\nexport * from \"./builder-marker-circle\";\nexport * from \"./builder-marker-rectangle-head\";\nexport * from \"./builder-marker-rectangle-tail\";\nexport * from \"./builder-marker-rectangle\";\nexport * from \"./builder-marker-triangle-head\";\nexport * from \"./builder-marker-triangle-tail\";\nexport * from \"./builder-marker-triangle\";\nexport * from \"./builder-null\";\nexport * from \"./builder-rectangle-pivoted\";\nexport * from \"./builder-rectangle-rounded\";\nexport * from \"./builder-rectangle\";\nexport * from \"./builder-semicircle\";\nexport * from \"./builder-text\";\nexport * from \"./builder-triangle-rounded\";\nexport * from \"./builder-triangle\";\nexport * from \"./builder\";\nexport * from \"./builders\";\nexport * from \"./copy-clipping\";\nexport * from \"./copy-index\";\nexport * from \"./copy-step\";\nexport * from \"./copy-uv\";\nexport * from \"./copy-vertex\";\nexport * from \"./create-bar-uploaded\";\nexport * from \"./create-button-uploaded\";\nexport * from \"./create-circle-uploaded\";\nexport * from \"./create-rectangle-pivoted-uploaded\";\nexport * from \"./create-group-uploaded\";\nexport * from \"./create-image-sdf-uploaded\";\nexport * from \"./create-image-sdf\";\nexport * from \"./create-image\";\nexport * from \"./create-label-uploaded\";\nexport * from \"./create-line-of-any-uploaded\";\nexport * from \"./create-line-of-circles-uploaded\";\nexport * from \"./create-line-of-rectangle-roundeds-uploaded\";\nexport * from \"./create-line-of-rectangles-uploaded\";\nexport * from \"./create-line-of-triangle-roundeds-uploaded\";\nexport * from \"./create-line-of-triangles-uploaded\";\nexport * from \"./create-line-uploaded\";\nexport * from \"./create-line\";\nexport * from \"./create-null-uploaded\";\nexport * from \"./create-rectangle-rounded-uploaded\";\nexport * from \"./create-rectangle-uploaded\";\nexport * from \"./create-semicircle-uploaded\";\nexport * from \"./create-triangle-rounded-uploaded\";\nexport * from \"./create-triangle-uploaded\";\nexport * from \"./deserialize-all\";\nexport * from \"./deserialize-bar\";\nexport * from \"./deserialize-base\";\nexport * from \"./deserialize-button\";\nexport * from \"./deserialize-circle\";\nexport * from \"./deserialize-connector-elbow\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded-acceptor-edge\";\nexport * from \"./deserialize-embedded-layer\";\nexport * from \"./deserialize-embedded\";\nexport * from \"./deserialize-gradient\";\nexport * from \"./deserialize-group-shadowed\";\nexport * from \"./deserialize-group\";\nexport * from \"./deserialize-image-sdf\";\nexport * from \"./deserialize-image\";\nexport * from \"./deserialize-label\";\nexport * from \"./deserialize-line-of-circles\";\nexport * from \"./deserialize-line-of-rectangle-roundeds\";\nexport * from \"./deserialize-line-of-rectangles\";\nexport * from \"./deserialize-line-of-triangle-roundeds\";\nexport * from \"./deserialize-line-of-triangles\";\nexport * from \"./deserialize-line\";\nexport * from \"./deserialize-null\";\nexport * from \"./deserialize-rectangle-pivoted\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-semicircle\";\nexport * from \"./deserialize-triangle-rounded\";\nexport * from \"./deserialize-triangle\";\nexport * from \"./deserialize\";\nexport * from \"./e-shape-bar-points\";\nexport * from \"./e-shape-bar-position\";\nexport * from \"./e-shape-bar\";\nexport * from \"./e-shape-base-hit-test-data\";\nexport * from \"./e-shape-base\";\nexport * from \"./e-shape-button-runtime-action-toggle\";\nexport * from \"./e-shape-button-runtime-action\";\nexport * from \"./e-shape-button-runtime\";\nexport * from \"./e-shape-button\";\nexport * from \"./e-shape-circle\";\nexport * from \"./e-shape-connector-elbow-points-filler\";\nexport * from \"./e-shape-connector-elbow\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-embedded-acceptor-edge\";\nexport * from \"./e-shape-embedded-acceptor\";\nexport * from \"./e-shape-embedded-datum\";\nexport * from \"./e-shape-embedded-layer-container\";\nexport * from \"./e-shape-embedded-layer\";\nexport * from \"./e-shape-embedded\";\nexport * from \"./e-shape-embeddeds\";\nexport * from \"./e-shape-fill-impl-parent\";\nexport * from \"./e-shape-fill-impl\";\nexport * from \"./e-shape-group-fill-editor\";\nexport * from \"./e-shape-group-fill-viewer\";\nexport * from \"./e-shape-group-points\";\nexport * from \"./e-shape-group-property-parent\";\nexport * from \"./e-shape-group-shadowed\";\nexport * from \"./e-shape-group-size-editor\";\nexport * from \"./e-shape-group-size-layout\";\nexport * from \"./e-shape-group-size-parent\";\nexport * from \"./e-shape-group-size-shadowed\";\nexport * from \"./e-shape-group-size-viewer\";\nexport * from \"./e-shape-group-size\";\nexport * from \"./e-shape-group-stroke-editor\";\nexport * from \"./e-shape-group-stroke-viewer\";\nexport * from \"./e-shape-group-viewer\";\nexport * from \"./e-shape-group\";\nexport * from \"./e-shape-image-sdf\";\nexport * from \"./e-shape-image\";\nexport * from \"./e-shape-label\";\nexport * from \"./e-shape-line-base-hit-part\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-base-points-hit-tester\";\nexport * from \"./e-shape-line-base-points\";\nexport * from \"./e-shape-line-base\";\nexport * from \"./e-shape-line-of-any-points-fill-impl\";\nexport * from \"./e-shape-line-of-any-points-fill\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-of-any-points-hit-tester\";\nexport * from \"./e-shape-line-of-any-points-impl\";\nexport * from \"./e-shape-line-of-any-points-point-impl\";\nexport * from \"./e-shape-line-of-any-points-point\";\nexport * from \"./e-shape-line-of-any-points-stroke-impl\";\nexport * from \"./e-shape-line-of-any-points-stroke\";\nexport * from \"./e-shape-line-of-any-points\";\nexport * from \"./e-shape-line-of-any-value\";\nexport * from \"./e-shape-line-of-any\";\nexport * from \"./e-shape-line-of-circles\";\nexport * from \"./e-shape-line-of-rectangle-roundeds\";\nexport * from \"./e-shape-line-of-rectangles\";\nexport * from \"./e-shape-line-of-triangle-roundeds\";\nexport * from \"./e-shape-line-of-triangles\";\nexport * from \"./e-shape-line-points\";\nexport * from \"./e-shape-line\";\nexport * from \"./e-shape-lock-part\";\nexport * from \"./e-shape-lock\";\nexport * from \"./e-shape-null\";\nexport * from \"./e-shape-primitive\";\nexport * from \"./e-shape-rectangle-pivoted\";\nexport * from \"./e-shape-rectangle-rounded\";\nexport * from \"./e-shape-rectangle\";\nexport * from \"./e-shape-semicircle\";\nexport * from \"./e-shape-stroke-impl-parent\";\nexport * from \"./e-shape-stroke-impl\";\nexport * from \"./e-shape-text-align-impl-parent\";\nexport * from \"./e-shape-text-align-impl\";\nexport * from \"./e-shape-text-impl-parent\";\nexport * from \"./e-shape-text-impl\";\nexport * from \"./e-shape-text-offset-impl-parent\";\nexport * from \"./e-shape-text-offset-impl\";\nexport * from \"./e-shape-text-outline-impl-parent\";\nexport * from \"./e-shape-text-outline-impl\";\nexport * from \"./e-shape-triangle-rounded\";\nexport * from \"./e-shape-triangle\";\nexport * from \"./hit-test-bbox\";\nexport * from \"./hit-test-circle\";\nexport * from \"./hit-test-semicircle\";\nexport * from \"./hit-test-rectangle-rounded\";\nexport * from \"./hit-test-rectangle\";\nexport * from \"./hit-test-triangle-rounded\";\nexport * from \"./hit-test-triangle\";\nexport * from \"./is-static\";\nexport * from \"./to-computed\";\nexport * from \"./to-dash\";\nexport * from \"./to-gradient-image-url\";\nexport * from \"./to-gradient-serialized\";\nexport * from \"./to-image-element\";\nexport * from \"./to-length\";\nexport * from \"./to-resized\";\nexport * from \"./to-scale-invariant\";\nexport * from \"./to-size-normalized\";\nexport * from \"./to-size-rounded\";\nexport * from \"./to-threshold-default\";\n"]}
@@ -6,11 +6,12 @@ import { toSizeNormalized } from "./to-size-normalized";
6
6
  import { toSizeRounded } from "./to-size-rounded";
7
7
  import { EShapeCapabilities } from "../e-shape-capabilities";
8
8
  import { EShapeCapability } from "../e-shape-capability";
9
+ import { EShapeLockPart } from "./e-shape-lock-part";
9
10
  export var toResized = function (shape, from, to, centerMode, isPerfect) {
10
11
  var cposition = EShapeCapabilities.contains(shape, EShapeCapability.POSITION);
11
12
  var cwidth = EShapeCapabilities.contains(shape, EShapeCapability.WIDTH);
12
13
  var cheight = EShapeCapabilities.contains(shape, EShapeCapability.HEIGHT);
13
- shape.disallowUploadedUpdate();
14
+ shape.lock(EShapeLockPart.UPLOADED);
14
15
  var position = shape.transform.position;
15
16
  if (centerMode) {
16
17
  var dx = Math.abs(to.x - from.x);
@@ -107,6 +108,6 @@ export var toResized = function (shape, from, to, centerMode, isPerfect) {
107
108
  }
108
109
  }
109
110
  }
110
- shape.allowUploadedUpdate();
111
+ shape.unlock(EShapeLockPart.UPLOADED, true);
111
112
  };
112
113
  //# sourceMappingURL=to-resized.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"to-resized.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AAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACnB;SACD;KACD;IACD,KAAK,CAAC,mBAAmB,EAAE,CAAC;AAC7B,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { toSizeNormalized } from \"./to-size-normalized\";\nimport { toSizeRounded } from \"./to-size-rounded\";\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\n\nexport const toResized = (\n\tshape: EShape,\n\tfrom: IPoint,\n\tto: IPoint,\n\tcenterMode: boolean,\n\tisPerfect: boolean\n): void => {\n\tconst cposition = EShapeCapabilities.contains(shape, EShapeCapability.POSITION);\n\tconst cwidth = EShapeCapabilities.contains(shape, EShapeCapability.WIDTH);\n\tconst cheight = EShapeCapabilities.contains(shape, EShapeCapability.HEIGHT);\n\tshape.disallowUploadedUpdate();\n\tconst position = shape.transform.position;\n\tif (centerMode) {\n\t\tconst dx = Math.abs(to.x - from.x);\n\t\tconst dy = Math.abs(to.y - from.y);\n\t\tif (isPerfect) {\n\t\t\tconst d = Math.max(dx, dy);\n\t\t\tconst s = toSizeNormalized(d + d);\n\t\t\tconst x = toSizeRounded(from.x);\n\t\t\tconst y = toSizeRounded(from.y);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(s, s);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = s;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = s;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t} else {\n\t\t\tconst w = toSizeNormalized(dx + dx);\n\t\t\tconst h = toSizeNormalized(dy + dy);\n\t\t\tconst x = toSizeRounded(from.x);\n\t\t\tconst y = toSizeRounded(from.y);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(w, h);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = w;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = h;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tif (isPerfect) {\n\t\t\tconst dx = to.x - from.x;\n\t\t\tconst dy = to.y - from.y;\n\t\t\tconst d = Math.max(Math.abs(dx), Math.abs(dy));\n\t\t\tconst x2 = from.x + (dx < 0 ? -d : +d);\n\t\t\tconst y2 = from.y + (dy < 0 ? -d : +d);\n\t\t\tconst hd = d * 0.5;\n\t\t\tconst s = toSizeNormalized(d);\n\t\t\tconst x = toSizeRounded(Math.min(from.x, x2) + hd);\n\t\t\tconst y = toSizeRounded(Math.min(from.y, y2) + hd);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(s, s);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = s;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = s;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t} else {\n\t\t\tconst x0 = Math.min(from.x, to.x);\n\t\t\tconst y0 = Math.min(from.y, to.y);\n\t\t\tconst x1 = Math.max(from.x, to.x);\n\t\t\tconst y1 = Math.max(from.y, to.y);\n\t\t\tconst dx = x1 - x0;\n\t\t\tconst dy = y1 - y0;\n\t\t\tconst px = dx * 0.5;\n\t\t\tconst py = dy * 0.5;\n\t\t\tconst w = toSizeNormalized(dx);\n\t\t\tconst h = toSizeNormalized(dy);\n\t\t\tconst x = toSizeRounded(x0 + px);\n\t\t\tconst y = toSizeRounded(y0 + py);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(w, h);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = w;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = h;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t}\n\t}\n\tshape.allowUploadedUpdate();\n};\n"]}
1
+ {"version":3,"file":"to-resized.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-resized.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,CAAC,IAAM,SAAS,GAAG,UACxB,KAAa,EACb,IAAY,EACZ,EAAU,EACV,UAAmB,EACnB,SAAkB;IAElB,IAAM,SAAS,GAAG,kBAAkB,CAAC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAChF,IAAM,MAAM,GAAG,kBAAkB,CAAC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC1E,IAAM,OAAO,GAAG,kBAAkB,CAAC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC5E,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IACpC,IAAM,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;IAC1C,IAAI,UAAU,EAAE;QACf,IAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACnC,IAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CA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,CAAC,CAAC;aACf;iBAAM,IAAI,MAAM,EAAE;gBAClB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;aACX;iBAAM,IAAI,OAAO,EAAE;gBACnB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;aACX;YACD,IAAI,SAAS,EAAE;gBACd,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACnB;SACD;KACD;IACD,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { toSizeNormalized } from \"./to-size-normalized\";\nimport { toSizeRounded } from \"./to-size-rounded\";\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\nimport { EShapeLockPart } from \"./e-shape-lock-part\";\n\nexport const toResized = (\n\tshape: EShape,\n\tfrom: IPoint,\n\tto: IPoint,\n\tcenterMode: boolean,\n\tisPerfect: boolean\n): void => {\n\tconst cposition = EShapeCapabilities.contains(shape, EShapeCapability.POSITION);\n\tconst cwidth = EShapeCapabilities.contains(shape, EShapeCapability.WIDTH);\n\tconst cheight = EShapeCapabilities.contains(shape, EShapeCapability.HEIGHT);\n\tshape.lock(EShapeLockPart.UPLOADED);\n\tconst position = shape.transform.position;\n\tif (centerMode) {\n\t\tconst dx = Math.abs(to.x - from.x);\n\t\tconst dy = Math.abs(to.y - from.y);\n\t\tif (isPerfect) {\n\t\t\tconst d = Math.max(dx, dy);\n\t\t\tconst s = toSizeNormalized(d + d);\n\t\t\tconst x = toSizeRounded(from.x);\n\t\t\tconst y = toSizeRounded(from.y);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(s, s);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = s;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = s;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t} else {\n\t\t\tconst w = toSizeNormalized(dx + dx);\n\t\t\tconst h = toSizeNormalized(dy + dy);\n\t\t\tconst x = toSizeRounded(from.x);\n\t\t\tconst y = toSizeRounded(from.y);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(w, h);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = w;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = h;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tif (isPerfect) {\n\t\t\tconst dx = to.x - from.x;\n\t\t\tconst dy = to.y - from.y;\n\t\t\tconst d = Math.max(Math.abs(dx), Math.abs(dy));\n\t\t\tconst x2 = from.x + (dx < 0 ? -d : +d);\n\t\t\tconst y2 = from.y + (dy < 0 ? -d : +d);\n\t\t\tconst hd = d * 0.5;\n\t\t\tconst s = toSizeNormalized(d);\n\t\t\tconst x = toSizeRounded(Math.min(from.x, x2) + hd);\n\t\t\tconst y = toSizeRounded(Math.min(from.y, y2) + hd);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(s, s);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = s;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = s;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t} else {\n\t\t\tconst x0 = Math.min(from.x, to.x);\n\t\t\tconst y0 = Math.min(from.y, to.y);\n\t\t\tconst x1 = Math.max(from.x, to.x);\n\t\t\tconst y1 = Math.max(from.y, to.y);\n\t\t\tconst dx = x1 - x0;\n\t\t\tconst dy = y1 - y0;\n\t\t\tconst px = dx * 0.5;\n\t\t\tconst py = dy * 0.5;\n\t\t\tconst w = toSizeNormalized(dx);\n\t\t\tconst h = toSizeNormalized(dy);\n\t\t\tconst x = toSizeRounded(x0 + px);\n\t\t\tconst y = toSizeRounded(y0 + py);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(w, h);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = w;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = h;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t}\n\t}\n\tshape.unlock(EShapeLockPart.UPLOADED, true);\n};\n"]}
@@ -7,9 +7,8 @@ import { utils } from "pixi.js";
7
7
  var ESnapperGrid = /** @class */ (function (_super) {
8
8
  __extends(ESnapperGrid, _super);
9
9
  function ESnapperGrid(theme, options) {
10
- var _this = this;
11
10
  var _a, _b, _c;
12
- _this = _super.call(this) || this;
11
+ var _this = _super.call(this) || this;
13
12
  _this._isVisibleDefault = (_a = options === null || options === void 0 ? void 0 : options.visible) !== null && _a !== void 0 ? _a : theme.isSnapGridVisible();
14
13
  _this._isVisible = _this._isVisibleDefault;
15
14
  _this._isEnabledDefault = (_b = options === null || options === void 0 ? void 0 : options.enable) !== null && _b !== void 0 ? _b : theme.isSnapGridEnabled();
@@ -1 +1 @@
1
- {"version":3,"file":"e-snapper-grid.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/snapper/e-snapper-grid.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAehC;IAAkC,gCAAkB;IAQnD,sBAAY,KAAwB,EAAE,OAA6B;QAAnE,iBAQC;;gBAPA,iBAAO;QACP,KAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;QACvE,KA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Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { utils } from \"pixi.js\";\nimport { DDiagramSerializedSnapGrid } from \"../d-diagram-serialized\";\nimport { ESnapperResult } from \"./e-snapper-result\";\n\nexport interface ESnapperGridOptions {\n\tvisible?: boolean;\n\tenable?: boolean;\n\tsize?: number;\n}\nexport interface EThemeSnapperGrid {\n\tisSnapGridVisible(): boolean;\n\tisSnapGridEnabled(): boolean;\n\tgetSnapGridSize(): number;\n}\n\nexport class ESnapperGrid extends utils.EventEmitter {\n\tprotected _isEnabled: boolean;\n\tprotected _isEnabledDefault: boolean;\n\tprotected _size: number;\n\tprotected _sizeDefault: number;\n\tprotected _isVisible: boolean;\n\tprotected _isVisibleDefault: boolean;\n\n\tconstructor(theme: EThemeSnapperGrid, options?: ESnapperGridOptions) {\n\t\tsuper();\n\t\tthis._isVisibleDefault = options?.visible ?? theme.isSnapGridVisible();\n\t\tthis._isVisible = this._isVisibleDefault;\n\t\tthis._isEnabledDefault = options?.enable ?? theme.isSnapGridEnabled();\n\t\tthis._isEnabled = this._isEnabledDefault;\n\t\tthis._sizeDefault = options?.size ?? theme.getSnapGridSize();\n\t\tthis._size = this._sizeDefault;\n\t}\n\n\tget visible(): boolean {\n\t\treturn this._isVisible;\n\t}\n\n\tset visible(visible: boolean) {\n\t\tif (this._isVisible !== visible) {\n\t\t\tthis._isVisible = visible;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tget enable(): boolean {\n\t\treturn this._isEnabled;\n\t}\n\n\tset enable(enable: boolean) {\n\t\tif (this._isEnabled !== enable) {\n\t\t\tthis._isEnabled = enable;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tget size(): number {\n\t\treturn this._size;\n\t}\n\n\tset size(size: number) {\n\t\tif (this._size !== size) {\n\t\t\tthis._size = size;\n\t\t\tthis.emit(\"change\", size, this);\n\t\t}\n\t}\n\n\tsnap(value: number, result: ESnapperResult): void {\n\t\tif (this._isEnabled) {\n\t\t\tconst size = this._size;\n\t\t\tresult.set(value, Math.round(value / size) * size);\n\t\t}\n\t}\n\n\treset(): void {\n\t\tthis._isVisible = this._isVisibleDefault;\n\t\tthis._isEnabled = this._isEnabledDefault;\n\t\tthis._size = this._sizeDefault;\n\t\tthis.emit(\"change\", this);\n\t}\n\n\tserialize(): DDiagramSerializedSnapGrid {\n\t\treturn [this._isEnabled ? 1 : 0, this._isVisible ? 1 : 0, this._size];\n\t}\n\n\tdeserialize(serialized: DDiagramSerializedSnapGrid): void {\n\t\tthis.enable = !!serialized[0];\n\t\tif (2 in serialized) {\n\t\t\tthis.visible = !!serialized[1];\n\t\t\tthis.size = (serialized as any)[2];\n\t\t} else {\n\t\t\tthis.visible = false;\n\t\t\tthis.size = serialized[1];\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-snapper-grid.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/snapper/e-snapper-grid.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAehC;IAAkC,gCAAkB;IAQnD,sBAAY,KAAwB,EAAE,OAA6B;;QAAnE,YACC,iBAAO,SAOP;QANA,KAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;QACvE,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,iBAAiB,CAAC;QACzC,KAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;QACtE,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,iBAAiB,CAAC;QACzC,KAAI,CAAC,YAAY,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,KAAK,CAAC,eAAe,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CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;QAC/B,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,gCAAS,GAAT;QACC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACvE,CAAC;IAED,kCAAW,GAAX,UAAY,UAAsC;QACjD,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,IAAI,UAAU,EAAE;YACpB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAC/B,IAAI,CAAC,IAAI,GAAI,UAAkB,CAAC,CAAC,CAAC,CAAC;SACnC;aAAM;YACN,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;SAC1B;IACF,CAAC;IACF,mBAAC;AAAD,CAAC,AA/ED,CAAkC,KAAK,CAAC,YAAY,GA+EnD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { utils } from \"pixi.js\";\nimport { DDiagramSerializedSnapGrid } from \"../d-diagram-serialized\";\nimport { ESnapperResult } from \"./e-snapper-result\";\n\nexport interface ESnapperGridOptions {\n\tvisible?: boolean;\n\tenable?: boolean;\n\tsize?: number;\n}\nexport interface EThemeSnapperGrid {\n\tisSnapGridVisible(): boolean;\n\tisSnapGridEnabled(): boolean;\n\tgetSnapGridSize(): number;\n}\n\nexport class ESnapperGrid extends utils.EventEmitter {\n\tprotected _isEnabled: boolean;\n\tprotected _isEnabledDefault: boolean;\n\tprotected _size: number;\n\tprotected _sizeDefault: number;\n\tprotected _isVisible: boolean;\n\tprotected _isVisibleDefault: boolean;\n\n\tconstructor(theme: EThemeSnapperGrid, options?: ESnapperGridOptions) {\n\t\tsuper();\n\t\tthis._isVisibleDefault = options?.visible ?? theme.isSnapGridVisible();\n\t\tthis._isVisible = this._isVisibleDefault;\n\t\tthis._isEnabledDefault = options?.enable ?? theme.isSnapGridEnabled();\n\t\tthis._isEnabled = this._isEnabledDefault;\n\t\tthis._sizeDefault = options?.size ?? theme.getSnapGridSize();\n\t\tthis._size = this._sizeDefault;\n\t}\n\n\tget visible(): boolean {\n\t\treturn this._isVisible;\n\t}\n\n\tset visible(visible: boolean) {\n\t\tif (this._isVisible !== visible) {\n\t\t\tthis._isVisible = visible;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tget enable(): boolean {\n\t\treturn this._isEnabled;\n\t}\n\n\tset enable(enable: boolean) {\n\t\tif (this._isEnabled !== enable) {\n\t\t\tthis._isEnabled = enable;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tget size(): number {\n\t\treturn this._size;\n\t}\n\n\tset size(size: number) {\n\t\tif (this._size !== size) {\n\t\t\tthis._size = size;\n\t\t\tthis.emit(\"change\", size, this);\n\t\t}\n\t}\n\n\tsnap(value: number, result: ESnapperResult): void {\n\t\tif (this._isEnabled) {\n\t\t\tconst size = this._size;\n\t\t\tresult.set(value, Math.round(value / size) * size);\n\t\t}\n\t}\n\n\treset(): void {\n\t\tthis._isVisible = this._isVisibleDefault;\n\t\tthis._isEnabled = this._isEnabledDefault;\n\t\tthis._size = this._sizeDefault;\n\t\tthis.emit(\"change\", this);\n\t}\n\n\tserialize(): DDiagramSerializedSnapGrid {\n\t\treturn [this._isEnabled ? 1 : 0, this._isVisible ? 1 : 0, this._size];\n\t}\n\n\tdeserialize(serialized: DDiagramSerializedSnapGrid): void {\n\t\tthis.enable = !!serialized[0];\n\t\tif (2 in serialized) {\n\t\t\tthis.visible = !!serialized[1];\n\t\t\tthis.size = (serialized as any)[2];\n\t\t} else {\n\t\t\tthis.visible = false;\n\t\t\tthis.size = serialized[1];\n\t\t}\n\t}\n}\n"]}
@@ -8,9 +8,8 @@ import { ESnapperTargetValue, ESnapperTargetValueType } from "./e-snapper-target
8
8
  var ESnapperTarget = /** @class */ (function (_super) {
9
9
  __extends(ESnapperTarget, _super);
10
10
  function ESnapperTarget(theme, options) {
11
- var _this = this;
12
11
  var _a, _b;
13
- _this = _super.call(this) || this;
12
+ var _this = _super.call(this) || this;
14
13
  _this.values = [];
15
14
  _this._isVisibleDefault = (_a = options === null || options === void 0 ? void 0 : options.visible) !== null && _a !== void 0 ? _a : theme.isSnapTargetVisible();
16
15
  _this._isVisible = _this._isVisibleDefault;
@@ -1 +1 @@
1
- {"version":3,"file":"e-snapper-target.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/snapper/e-snapper-target.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMhC,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAYxF;IAAoC,kCAAkB;IAOrD,wBAAY,KAA0B,EAAE,OAA+B;QAAvE,iBAOC;;gBANA,iBAAO;QACP,KAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,KAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAC,mBAAmB,EAAE,CAAC;QACzE,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,iBAAiB,CAAC;QACzC,KAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,KAAK,CAAC,mBAAmB,EAAE,CAAC;QACxE,KA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C9B,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;YACrD,IAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,MAAM,CAAC,IAAI,CAAC,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC3D;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;IACF,qBAAC;AAAD,CAAC,AA/HD,CAAoC,KAAK,CAAC,YAAY,GA+HrD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { utils } from \"pixi.js\";\nimport {\n\tDDiagramSerializedSnapTarget,\n\tDDiagramSerializedSnapTargetValue\n} from \"../d-diagram-serialized\";\nimport { ESnapperResult } from \"./e-snapper-result\";\nimport { ESnapperTargetValue, ESnapperTargetValueType } from \"./e-snapper-target-value\";\n\nexport interface ESnapperTargetOptions {\n\tvisible?: boolean;\n\tenable?: boolean;\n}\n\nexport interface EThemeSnapperTarget {\n\tisSnapTargetVisible(): boolean;\n\tisSnapTargetEnabled(): boolean;\n}\n\nexport class ESnapperTarget extends utils.EventEmitter {\n\tvalues: ESnapperTargetValue[];\n\tprotected _isVisible: boolean;\n\tprotected _isVisibleDefault: boolean;\n\tprotected _isEnabled: boolean;\n\tprotected _isEnabledDefault: boolean;\n\n\tconstructor(theme: EThemeSnapperTarget, options?: ESnapperTargetOptions) {\n\t\tsuper();\n\t\tthis.values = [];\n\t\tthis._isVisibleDefault = options?.visible ?? theme.isSnapTargetVisible();\n\t\tthis._isVisible = this._isVisibleDefault;\n\t\tthis._isEnabledDefault = options?.enable ?? theme.isSnapTargetEnabled();\n\t\tthis._isEnabled = this._isEnabledDefault;\n\t}\n\n\tget enable(): boolean {\n\t\treturn this._isEnabled;\n\t}\n\n\tset enable(enable: boolean) {\n\t\tif (this._isEnabled !== enable) {\n\t\t\tthis._isEnabled = enable;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tget visible(): boolean {\n\t\treturn this._isVisible;\n\t}\n\n\tset visible(visible: boolean) {\n\t\tif (this._isVisible !== visible) {\n\t\t\tthis._isVisible = visible;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tget size(): number {\n\t\treturn this.values.length;\n\t}\n\n\tadd(target: ESnapperTargetValue, index?: number): void {\n\t\tif (index != null) {\n\t\t\tthis.values.splice(index, 0, target);\n\t\t} else {\n\t\t\tthis.values.push(target);\n\t\t}\n\t\tthis.emit(\"change\", this);\n\t}\n\n\tremove(index: number): void {\n\t\tconst values = this.values;\n\t\tif (0 <= index && index < values.length) {\n\t\t\tvalues.splice(index, 1);\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\treplace(index: number, value: ESnapperTargetValue): ESnapperTargetValue | null {\n\t\tconst values = this.values;\n\t\tif (0 <= index && index < values.length) {\n\t\t\tconst result = values[index];\n\t\t\tvalues[index] = value;\n\t\t\tthis.emit(\"change\", this);\n\t\t\treturn result;\n\t\t}\n\t\treturn null;\n\t}\n\n\tswap(indexA: number, indexB: number): void {\n\t\tif (indexA !== indexB) {\n\t\t\tconst values = this.values;\n\t\t\tconst valueA = values[indexA];\n\t\t\tvalues[indexA] = values[indexB];\n\t\t\tvalues[indexB] = valueA;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tsnap(px: number, py: number, x: ESnapperResult, y: ESnapperResult): void {\n\t\tif (this._isEnabled) {\n\t\t\tconst values = this.values;\n\t\t\tfor (let i = 0, imax = values.length; i < imax; ++i) {\n\t\t\t\tconst value = values[i];\n\t\t\t\tif (value.type === ESnapperTargetValueType.VERTICAL) {\n\t\t\t\t\tx.set(px, value.position);\n\t\t\t\t} else {\n\t\t\t\t\ty.set(py, value.position);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treset(): void {\n\t\tthis._isEnabled = this._isEnabledDefault;\n\t\tthis._isVisible = this._isVisibleDefault;\n\t\tthis.values.length = 0;\n\t\tthis.emit(\"change\", this);\n\t}\n\n\tserialize(): DDiagramSerializedSnapTarget {\n\t\tconst targets: DDiagramSerializedSnapTargetValue[] = [];\n\t\tconst values = this.values;\n\t\tfor (let i = 0, imax = values.length; i < imax; ++i) {\n\t\t\ttargets.push(values[i].serialize());\n\t\t}\n\t\treturn [this._isEnabled ? 1 : 0, this._isVisible ? 1 : 0, targets];\n\t}\n\n\tdeserialize(serialized: DDiagramSerializedSnapTarget): void {\n\t\t// Availability\n\t\tthis._isEnabled = !!serialized[0];\n\n\t\t// Visibility\n\t\tthis._isVisible = !!serialized[1];\n\n\t\t// Values\n\t\tconst sources = serialized[2];\n\t\tconst values = this.values;\n\t\tvalues.length = 0;\n\t\tfor (let i = 0, imax = sources.length; i < imax; ++i) {\n\t\t\tconst source = sources[i];\n\t\t\tvalues.push(new ESnapperTargetValue(source[0], source[1]));\n\t\t}\n\t\tthis.emit(\"change\", this);\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-snapper-target.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/snapper/e-snapper-target.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMhC,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAYxF;IAAoC,kCAAkB;IAOrD,wBAAY,KAA0B,EAAE,OAA+B;;QAAvE,YACC,iBAAO,SAMP;QALA,KAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,KAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO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IAED,oCAAW,GAAX,UAAY,UAAwC;QACnD,eAAe;QACf,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAElC,aAAa;QACb,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAElC,SAAS;QACT,IAAM,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;YACrD,IAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,MAAM,CAAC,IAAI,CAAC,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC3D;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;IACF,qBAAC;AAAD,CAAC,AA/HD,CAAoC,KAAK,CAAC,YAAY,GA+HrD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { utils } from \"pixi.js\";\nimport {\n\tDDiagramSerializedSnapTarget,\n\tDDiagramSerializedSnapTargetValue\n} from \"../d-diagram-serialized\";\nimport { ESnapperResult } from \"./e-snapper-result\";\nimport { ESnapperTargetValue, ESnapperTargetValueType } from \"./e-snapper-target-value\";\n\nexport interface ESnapperTargetOptions {\n\tvisible?: boolean;\n\tenable?: boolean;\n}\n\nexport interface EThemeSnapperTarget {\n\tisSnapTargetVisible(): boolean;\n\tisSnapTargetEnabled(): boolean;\n}\n\nexport class ESnapperTarget extends utils.EventEmitter {\n\tvalues: ESnapperTargetValue[];\n\tprotected _isVisible: boolean;\n\tprotected _isVisibleDefault: boolean;\n\tprotected _isEnabled: boolean;\n\tprotected _isEnabledDefault: boolean;\n\n\tconstructor(theme: EThemeSnapperTarget, options?: ESnapperTargetOptions) {\n\t\tsuper();\n\t\tthis.values = [];\n\t\tthis._isVisibleDefault = options?.visible ?? theme.isSnapTargetVisible();\n\t\tthis._isVisible = this._isVisibleDefault;\n\t\tthis._isEnabledDefault = options?.enable ?? theme.isSnapTargetEnabled();\n\t\tthis._isEnabled = this._isEnabledDefault;\n\t}\n\n\tget enable(): boolean {\n\t\treturn this._isEnabled;\n\t}\n\n\tset enable(enable: boolean) {\n\t\tif (this._isEnabled !== enable) {\n\t\t\tthis._isEnabled = enable;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tget visible(): boolean {\n\t\treturn this._isVisible;\n\t}\n\n\tset visible(visible: boolean) {\n\t\tif (this._isVisible !== visible) {\n\t\t\tthis._isVisible = visible;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tget size(): number {\n\t\treturn this.values.length;\n\t}\n\n\tadd(target: ESnapperTargetValue, index?: number): void {\n\t\tif (index != null) {\n\t\t\tthis.values.splice(index, 0, target);\n\t\t} else {\n\t\t\tthis.values.push(target);\n\t\t}\n\t\tthis.emit(\"change\", this);\n\t}\n\n\tremove(index: number): void {\n\t\tconst values = this.values;\n\t\tif (0 <= index && index < values.length) {\n\t\t\tvalues.splice(index, 1);\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\treplace(index: number, value: ESnapperTargetValue): ESnapperTargetValue | null {\n\t\tconst values = this.values;\n\t\tif (0 <= index && index < values.length) {\n\t\t\tconst result = values[index];\n\t\t\tvalues[index] = value;\n\t\t\tthis.emit(\"change\", this);\n\t\t\treturn result;\n\t\t}\n\t\treturn null;\n\t}\n\n\tswap(indexA: number, indexB: number): void {\n\t\tif (indexA !== indexB) {\n\t\t\tconst values = this.values;\n\t\t\tconst valueA = values[indexA];\n\t\t\tvalues[indexA] = values[indexB];\n\t\t\tvalues[indexB] = valueA;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tsnap(px: number, py: number, x: ESnapperResult, y: ESnapperResult): void {\n\t\tif (this._isEnabled) {\n\t\t\tconst values = this.values;\n\t\t\tfor (let i = 0, imax = values.length; i < imax; ++i) {\n\t\t\t\tconst value = values[i];\n\t\t\t\tif (value.type === ESnapperTargetValueType.VERTICAL) {\n\t\t\t\t\tx.set(px, value.position);\n\t\t\t\t} else {\n\t\t\t\t\ty.set(py, value.position);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treset(): void {\n\t\tthis._isEnabled = this._isEnabledDefault;\n\t\tthis._isVisible = this._isVisibleDefault;\n\t\tthis.values.length = 0;\n\t\tthis.emit(\"change\", this);\n\t}\n\n\tserialize(): DDiagramSerializedSnapTarget {\n\t\tconst targets: DDiagramSerializedSnapTargetValue[] = [];\n\t\tconst values = this.values;\n\t\tfor (let i = 0, imax = values.length; i < imax; ++i) {\n\t\t\ttargets.push(values[i].serialize());\n\t\t}\n\t\treturn [this._isEnabled ? 1 : 0, this._isVisible ? 1 : 0, targets];\n\t}\n\n\tdeserialize(serialized: DDiagramSerializedSnapTarget): void {\n\t\t// Availability\n\t\tthis._isEnabled = !!serialized[0];\n\n\t\t// Visibility\n\t\tthis._isVisible = !!serialized[1];\n\n\t\t// Values\n\t\tconst sources = serialized[2];\n\t\tconst values = this.values;\n\t\tvalues.length = 0;\n\t\tfor (let i = 0, imax = sources.length; i < imax; ++i) {\n\t\t\tconst source = sources[i];\n\t\t\tvalues.push(new ESnapperTargetValue(source[0], source[1]));\n\t\t}\n\t\tthis.emit(\"change\", this);\n\t}\n}\n"]}
@@ -24,9 +24,8 @@ export var ESnapperModifierAnchor = {
24
24
  var ESnapper = /** @class */ (function (_super) {
25
25
  __extends(ESnapper, _super);
26
26
  function ESnapper(parent, theme, options) {
27
- var _this = this;
28
27
  var _a;
29
- _this = _super.call(this) || this;
28
+ var _this = _super.call(this) || this;
30
29
  _this._points = [
31
30
  new Point(),
32
31
  new Point(),
@@ -1 +1 @@
1
- {"version":3,"file":"e-snapper.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/snapper/e-snapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAiC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEjF,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,YAAY,EAA0C,MAAM,kBAAkB,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,cAAc,EAA8C,MAAM,oBAAoB,CAAC;AAEhG,IAAM,OAAO,GAAG,OAAO,CAAC;AAOxB,MAAM,CAAC,IAAM,sBAAsB,GAAG;IACrC,IAAI,EAAE,CAAC;IACP,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,CAAC;IACb,SAAS,EAAE,CAAC;IACZ,WAAW,EAAE,CAAC;IACd,YAAY,EAAE,CAAC;IACf,WAAW,EAAE,CAAC;IACd,aAAa,EAAE,CAAC;IAChB,YAAY,EAAE,CAAC;IACf,QAAQ,EAAE,CAAC;CACF,CAAC;AA4BX;IAA8B,4BAAkB;IAwB/C,kBAAY,MAAsB,EAAE,KAAoB,EAAE,OAAyB;QAAnF,iBAmCC;;gBAlCA,iBAAO;QAEP,KAAI,CAAC,OAAO,GAAG;YACd,IAAI,KAAK,EAAE;YACX,IAAI,KAAK,EAAE;YACX,IAAI,KAAK,EAAE;YACX,IAAI,KAAK,EAAE;YACX,IAAI,KAAK,EAAE,CAAC,SAAS;SACrB,CAAC;QAEF,KAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,KAAK,EAAE,EAAE,IAAI,KAAK,EAAE,CAAC,CAAC;QAE3C,KAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,EAA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AAC;IAED,wBAAK,GAAL;QACC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC;QACrC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACpB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC;IAED,4BAAS,GAAT;QACC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,8BAAW,GAAX,UAAY,UAAkC;QAC7C,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QACvC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,CAAC;IACF,eAAC;AAAD,CAAC,AAtiBD,CAA8B,KAAK,CAAC,YAAY,GAsiB/C","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DisplayObject, IPoint, Matrix, Point, Rectangle, utils } from \"pixi.js\";\nimport { DDiagramSerializedSnap } from \"../d-diagram-serialized\";\nimport { isNaN } from \"../util/is-nan\";\nimport { ESnapperGrid, ESnapperGridOptions, EThemeSnapperGrid } from \"./e-snapper-grid\";\nimport { ESnapperResult } from \"./e-snapper-result\";\nimport { ESnapperResultScale } from \"./e-snapper-result-scale\";\nimport { ESnapperTarget, ESnapperTargetOptions, EThemeSnapperTarget } from \"./e-snapper-target\";\n\nconst EPSILON = 0.00001;\n\nexport interface ESnapperModifier extends DisplayObject {\n\twidth: number;\n\theight: number;\n}\n\nexport const ESnapperModifierAnchor = {\n\tNONE: 0,\n\tTOP_LEFT: 1,\n\tTOP_CENTER: 2,\n\tTOP_RIGHT: 3,\n\tMIDDLE_LEFT: 4,\n\tMIDDLE_RIGHT: 5,\n\tBOTTOM_LEFT: 6,\n\tBOTTOM_CENTER: 7,\n\tBOTTOM_RIGHT: 8,\n\tROTATION: 9\n} as const;\n\nexport type ESnapperModifierAnchor =\n\ttypeof ESnapperModifierAnchor[keyof typeof ESnapperModifierAnchor];\n\nexport interface ESnapperParentCanvas {\n\tscale: {\n\t\tx: number;\n\t\ty: number;\n\t};\n\twidth: number;\n\theight: number;\n}\n\nexport interface ESnapperParent {\n\tcanvas: ESnapperParentCanvas | null;\n}\n\nexport interface ESnapperOptions {\n\tenable?: boolean;\n\tgrid?: ESnapperGridOptions;\n\ttarget?: ESnapperTargetOptions;\n}\n\nexport interface EThemeSnapper extends EThemeSnapperGrid, EThemeSnapperTarget {\n\tisSnapEnabled(): boolean;\n}\n\nexport class ESnapper extends utils.EventEmitter {\n\tprotected _points: Point[];\n\tprotected _normals: Point[];\n\tprotected _lengths: number[];\n\n\tprotected _workScale: Point;\n\tprotected _workScaleResult: ESnapperResultScale;\n\n\tprotected _workTranslate: Point;\n\n\tprotected _workSnap: Point;\n\tprotected _workSnapRectangle: Rectangle;\n\tprotected _workSnapResultX: ESnapperResult;\n\tprotected _workSnapResultY: ESnapperResult;\n\n\tprotected _parent: ESnapperParent;\n\n\tprotected _isEnabled: boolean;\n\tprotected _isEnabledDefault: boolean;\n\n\tgrid: ESnapperGrid;\n\n\ttarget: ESnapperTarget;\n\n\tconstructor(parent: ESnapperParent, theme: EThemeSnapper, options?: ESnapperOptions) {\n\t\tsuper();\n\n\t\tthis._points = [\n\t\t\tnew Point(), // Top left\n\t\t\tnew Point(), // Top right\n\t\t\tnew Point(), // Bottom left\n\t\t\tnew Point(), // Bottom right\n\t\t\tnew Point() // Center\n\t\t];\n\n\t\tthis._normals = [new Point(), new Point()];\n\n\t\tthis._lengths = [1, 1];\n\n\t\tthis._workScale = new Point();\n\t\tthis._workSnapResultX = new ESnapperResult();\n\t\tthis._workSnapResultY = new ESnapperResult();\n\t\tthis._workScaleResult = {\n\t\t\tdistance: 0,\n\t\t\tscale: new Point()\n\t\t};\n\n\t\tthis._workTranslate = new Point();\n\n\t\tthis._workSnapRectangle = new Rectangle();\n\t\tthis._workSnap = new Point();\n\n\t\tthis.grid = new ESnapperGrid(theme, options?.grid);\n\n\t\tthis.target = new ESnapperTarget(theme, options?.target);\n\n\t\tthis._parent = parent;\n\t\tthis._isEnabledDefault = options?.enable ?? theme.isSnapEnabled();\n\t\tthis._isEnabled = this._isEnabledDefault;\n\t}\n\n\tget enable(): boolean {\n\t\treturn this._isEnabled;\n\t}\n\n\tset enable(enable: boolean) {\n\t\tif (this._isEnabled !== enable) {\n\t\t\tthis._isEnabled = enable;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tprotected prepare(modifier: ESnapperModifier): void {\n\t\tmodifier.updateTransform();\n\t\tconst localTransform = modifier.transform.localTransform;\n\t\tconst sx = modifier.width;\n\t\tconst sy = modifier.height;\n\n\t\tconst points = this._points;\n\t\tpoints[0].set(0, 0);\n\t\tpoints[1].set(sx, 0);\n\t\tpoints[2].set(sx, sy);\n\t\tpoints[3].set(0, sy);\n\t\tpoints[4].set(sx * 0.5, sy * 0.5);\n\n\t\tlocalTransform.apply(points[0], points[0]);\n\t\tlocalTransform.apply(points[1], points[1]);\n\t\tlocalTransform.apply(points[2], points[2]);\n\t\tlocalTransform.apply(points[3], points[3]);\n\t\tlocalTransform.apply(points[4], points[4]);\n\t}\n\n\tprepareForTranslate(modifier: ESnapperModifier): void {\n\t\tif (this._isEnabled) {\n\t\t\tthis.prepare(modifier);\n\t\t}\n\t}\n\n\tprotected snap(point: IPoint, result: IPoint): IPoint {\n\t\tconst px = point.x;\n\t\tconst py = point.y;\n\t\tconst canvas = this._parent.canvas;\n\t\tconst x = this._workSnapResultX;\n\t\tconst y = this._workSnapResultY;\n\n\t\t// Canvas\n\t\tif (canvas != null) {\n\t\t\tconst scale = Math.max(canvas.scale.x, canvas.scale.y);\n\t\t\tx.reset(px, scale);\n\t\t\ty.reset(py, scale);\n\t\t\tx.set(px, 0);\n\t\t\tx.set(px, canvas.width);\n\t\t\ty.set(py, 0);\n\t\t\ty.set(py, canvas.height);\n\t\t} else {\n\t\t\tx.reset(px, 1);\n\t\t\ty.reset(py, 1);\n\t\t}\n\n\t\t// Target\n\t\tthis.target.snap(px, py, x, y);\n\n\t\t// Grid\n\t\tthis.grid.snap(px, x);\n\t\tthis.grid.snap(py, y);\n\n\t\t//\n\t\tresult.x = isNaN(x.distance) ? NaN : x.result;\n\t\tresult.y = isNaN(y.distance) ? NaN : y.result;\n\t\treturn result;\n\t}\n\n\ttoSnapped(point: IPoint, result: IPoint): IPoint {\n\t\tconst px = point.x;\n\t\tconst py = point.y;\n\t\tif (this._isEnabled) {\n\t\t\tthis.snap(point, result);\n\t\t\tconst x = result.x;\n\t\t\tconst y = result.y;\n\t\t\tresult.set(isNaN(x) ? px : x, isNaN(y) ? py : y);\n\t\t} else {\n\t\t\tresult.set(px, py);\n\t\t}\n\t\treturn result;\n\t}\n\n\ttoTranslationSnapped(delta: IPoint, result: IPoint): IPoint {\n\t\tconst dx = delta.x;\n\t\tconst dy = delta.y;\n\t\tlet x = NaN;\n\t\tlet y = NaN;\n\t\tif (this._isEnabled) {\n\t\t\tconst workTranslate = this._workTranslate;\n\t\t\tconst points = this._points;\n\t\t\tfor (let i = 0, imax = points.length; i < imax; ++i) {\n\t\t\t\tconst point = points[i];\n\t\t\t\tworkTranslate.set(point.x + dx, point.y + dy);\n\t\t\t\tthis.snap(workTranslate, workTranslate);\n\n\t\t\t\t// X\n\t\t\t\tif (!isNaN(workTranslate.x)) {\n\t\t\t\t\tconst newDx = workTranslate.x - point.x;\n\t\t\t\t\tif (isNaN(x) || Math.abs(newDx - dx) < Math.abs(x - dx)) {\n\t\t\t\t\t\tx = newDx;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Y\n\t\t\t\tif (!isNaN(workTranslate.y)) {\n\t\t\t\t\tconst newDy = workTranslate.y - point.y;\n\t\t\t\t\tif (isNaN(y) || Math.abs(newDy - dy) < Math.abs(y - dy)) {\n\t\t\t\t\t\ty = newDy;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tresult.x = isNaN(x) ? dx : x;\n\t\tresult.y = isNaN(y) ? dy : y;\n\t\treturn result;\n\t}\n\n\tprepareForRotate(modifier: ESnapperModifier): void {\n\t\t//\n\t}\n\n\tprotected getGridSizeRotation(): number {\n\t\treturn 5;\n\t}\n\n\tprotected toRadian(value: number): number {\n\t\treturn (value / 180) * Math.PI;\n\t}\n\n\tprotected toDegree(value: number): number {\n\t\treturn (value / Math.PI) * 180;\n\t}\n\n\ttoRotationSnapped(baseRotation: number, deltaRotation: number): number {\n\t\tif (this._isEnabled) {\n\t\t\tconst gridSize = this.getGridSizeRotation();\n\t\t\tconst newRotation = baseRotation + deltaRotation;\n\t\t\tconst newRotationDegree = Math.round(this.toDegree(newRotation));\n\t\t\tconst newRotationDegreeResidual = newRotationDegree % 90;\n\t\t\tif (Math.abs(newRotationDegreeResidual) <= gridSize) {\n\t\t\t\treturn this.toRadian(newRotationDegree - newRotationDegreeResidual) - baseRotation;\n\t\t\t} else {\n\t\t\t\tif (90 - gridSize <= newRotationDegreeResidual) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\tthis.toRadian(newRotationDegree + (90 - newRotationDegreeResidual)) -\n\t\t\t\t\t\tbaseRotation\n\t\t\t\t\t);\n\t\t\t\t} else if (newRotationDegreeResidual <= -90 + gridSize) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\tthis.toRadian(newRotationDegree - (90 + newRotationDegreeResidual)) -\n\t\t\t\t\t\tbaseRotation\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn deltaRotation;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn deltaRotation;\n\t}\n\n\tprotected calcNormalizedVector(p0: IPoint, p1: IPoint, result: Point): number {\n\t\tconst dx = p1.x - p0.x;\n\t\tconst dy = p1.y - p0.y;\n\t\tconst l = Math.sqrt(dx * dx + dy * dy);\n\t\tif (EPSILON < l) {\n\t\t\tconst d = 1 / l;\n\t\t\tresult.x = dx * d;\n\t\t\tresult.y = dy * d;\n\t\t} else {\n\t\t\tresult.x = 1;\n\t\t\tresult.y = 0;\n\t\t}\n\t\treturn l;\n\t}\n\n\tprepareForScale(modifier: ESnapperModifier, anchor: ESnapperModifierAnchor): void {\n\t\tif (this._isEnabled) {\n\t\t\tthis.prepare(modifier);\n\n\t\t\tconst points = this._points;\n\t\t\tconst normals = this._normals;\n\t\t\tconst lengths = this._lengths;\n\t\t\tswitch (anchor) {\n\t\t\t\tcase ESnapperModifierAnchor.TOP_LEFT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[1], points[0], normals[0]);\n\t\t\t\t\tlengths[1] = this.calcNormalizedVector(points[3], points[0], normals[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.TOP_CENTER:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[3], points[0], normals[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.TOP_RIGHT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[0], points[1], normals[0]);\n\t\t\t\t\tlengths[1] = this.calcNormalizedVector(points[2], points[1], normals[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_LEFT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[1], points[0], normals[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.NONE:\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_RIGHT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[0], points[1], normals[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_LEFT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[2], points[3], normals[0]);\n\t\t\t\t\tlengths[1] = this.calcNormalizedVector(points[0], points[3], normals[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_CENTER:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[0], points[3], normals[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_RIGHT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[3], points[2], normals[0]);\n\t\t\t\t\tlengths[1] = this.calcNormalizedVector(points[1], points[2], normals[1]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected setScaleSnappedResult(\n\t\tdistance: number,\n\t\tlength: number,\n\t\tmove: number,\n\t\taxis: boolean, // true => x axis, false y axis\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tif (EPSILON < length) {\n\t\t\tif (isNaN(result.distance) || distance < result.distance) {\n\t\t\t\tresult.distance = distance;\n\t\t\t\tconst newScale = 1 + move / length;\n\t\t\t\tif (axis) {\n\t\t\t\t\tresult.scale.x = newScale;\n\t\t\t\t} else {\n\t\t\t\t\tresult.scale.y = newScale;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected calcScaleSnapped1D(\n\t\ttransform: Matrix,\n\t\tpoint: Point,\n\t\tnormal: IPoint,\n\t\tlength: number,\n\t\taxis: boolean,\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tconst work = this._workScale;\n\t\ttransform.apply(point, work);\n\t\tconst tx = work.x;\n\t\tconst ty = work.y;\n\t\tthis.snap(work, work);\n\t\tconst x = work.x;\n\t\tconst y = work.y;\n\n\t\t// X coordinate\n\t\tif (!isNaN(x)) {\n\t\t\tconst nx = Math.abs(normal.x);\n\t\t\tif (EPSILON < nx) {\n\t\t\t\tconst dx = (x - tx) / normal.x;\n\t\t\t\tconst distance = Math.abs(dx);\n\t\t\t\tconst mx = (x - point.x) / normal.x;\n\t\t\t\tthis.setScaleSnappedResult(distance, length, mx, axis, result);\n\t\t\t}\n\t\t}\n\n\t\t// Y coordinate\n\t\tif (!isNaN(y)) {\n\t\t\tconst ny = Math.abs(normal.y);\n\t\t\tif (EPSILON < ny) {\n\t\t\t\tconst dy = (y - ty) / normal.y;\n\t\t\t\tconst distance = Math.abs(dy);\n\t\t\t\tconst my = (y - point.y) / normal.y;\n\t\t\t\tthis.setScaleSnappedResult(distance, length, my, axis, result);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected calcScaleSnappedX(\n\t\ttransform: Matrix,\n\t\tpoint: Point,\n\t\tnormal: IPoint,\n\t\tlength: number,\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tthis.calcScaleSnapped1D(transform, point, normal, length, true, result);\n\t}\n\n\tprotected calcScaleSnappedY(\n\t\ttransform: Matrix,\n\t\tpoint: Point,\n\t\tnormal: IPoint,\n\t\tlength: number,\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tthis.calcScaleSnapped1D(transform, point, normal, length, false, result);\n\t}\n\n\tcalcScaleSnapped2D(\n\t\ttransform: Matrix,\n\t\tpoint: Point,\n\t\tnormals: IPoint[],\n\t\tlengths: number[],\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tconst work = this._workScale;\n\t\ttransform.apply(point, work);\n\t\tconst tx = work.x;\n\t\tconst ty = work.y;\n\n\t\tthis.snap(work, work);\n\t\tlet x = work.x;\n\t\tlet y = work.y;\n\t\tif (isNaN(x)) {\n\t\t\tif (isNaN(y)) {\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tx = tx;\n\t\t\t}\n\t\t} else {\n\t\t\tif (isNaN(y)) {\n\t\t\t\ty = ty;\n\t\t\t}\n\t\t}\n\n\t\t// (x, y) = (tx, ty) + normalA * a + normalB * b\n\t\t// dx = x - tx\n\t\t// dy = y - ty\n\t\t// V = ( a, b )^T\n\t\t// D = ( dx, dy )^T\n\t\t// A = | normalA.x normalB.x |\n\t\t// | normalA.y normalB.y |\n\t\t// A V = D\n\t\t// det A = normalA.x * normalB.y - normalB.x * normalA.y\n\t\t// A^-1 = | normalB.y -normalB.x | / det A\n\t\t// | -normalA.y normalA.x |\n\t\tconst detA = normals[0].x * normals[1].y - normals[1].x * normals[0].y;\n\t\tif (EPSILON < Math.abs(detA)) {\n\t\t\tconst dx = x - tx;\n\t\t\tconst dy = y - ty;\n\t\t\tconst distance = Math.abs(dx * dx + dy * dy);\n\t\t\tif (isNaN(result.distance) || distance < result.distance) {\n\t\t\t\tresult.distance = distance;\n\t\t\t\tconst mdx = x - point.x;\n\t\t\t\tconst mdy = y - point.y;\n\t\t\t\tconst mx = (+normals[1].y * mdx - normals[1].x * mdy) / detA;\n\t\t\t\tconst my = (-normals[0].y * mdx + normals[0].x * mdy) / detA;\n\t\t\t\tresult.scale.set(1 + mx / lengths[0], 1 + my / lengths[1]);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected calcScaleSnappedXY(\n\t\ttransform: Matrix,\n\t\tpointO: Point,\n\t\tpointX: Point,\n\t\tpointY: Point,\n\t\tnormals: IPoint[],\n\t\tlengths: number[],\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tthis.calcScaleSnapped2D(transform, pointO, normals, lengths, result);\n\t\tthis.calcScaleSnappedX(transform, pointY, normals[0], lengths[0], result);\n\t\tthis.calcScaleSnappedY(transform, pointX, normals[1], lengths[1], result);\n\t}\n\n\ttoScaleSnapped(\n\t\ttransform: Matrix,\n\t\tanchor: ESnapperModifierAnchor,\n\t\tkeepRatio: boolean,\n\t\tscale: IPoint\n\t): boolean {\n\t\tif (this._isEnabled) {\n\t\t\tconst points = this._points;\n\t\t\tconst normals = this._normals;\n\t\t\tconst lengths = this._lengths;\n\t\t\tconst work = this._workScaleResult;\n\t\t\twork.distance = NaN;\n\t\t\twork.scale.set(scale.x, scale.y);\n\n\t\t\tswitch (anchor) {\n\t\t\t\tcase ESnapperModifierAnchor.TOP_LEFT:\n\t\t\t\t\tthis.calcScaleSnappedXY(\n\t\t\t\t\t\ttransform,\n\t\t\t\t\t\tpoints[0],\n\t\t\t\t\t\tpoints[1],\n\t\t\t\t\t\tpoints[3],\n\t\t\t\t\t\tnormals,\n\t\t\t\t\t\tlengths,\n\t\t\t\t\t\twork\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.TOP_CENTER:\n\t\t\t\t\tthis.calcScaleSnappedY(transform, points[0], normals[0], lengths[0], work);\n\t\t\t\t\tthis.calcScaleSnappedY(transform, points[1], normals[0], lengths[0], work);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.TOP_RIGHT:\n\t\t\t\t\tthis.calcScaleSnappedXY(\n\t\t\t\t\t\ttransform,\n\t\t\t\t\t\tpoints[1],\n\t\t\t\t\t\tpoints[0],\n\t\t\t\t\t\tpoints[2],\n\t\t\t\t\t\tnormals,\n\t\t\t\t\t\tlengths,\n\t\t\t\t\t\twork\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_LEFT:\n\t\t\t\t\tthis.calcScaleSnappedX(transform, points[0], normals[0], lengths[0], work);\n\t\t\t\t\tthis.calcScaleSnappedX(transform, points[3], normals[0], lengths[0], work);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.NONE:\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_RIGHT:\n\t\t\t\t\tthis.calcScaleSnappedX(transform, points[1], normals[0], lengths[0], work);\n\t\t\t\t\tthis.calcScaleSnappedX(transform, points[2], normals[0], lengths[0], work);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_LEFT:\n\t\t\t\t\tthis.calcScaleSnappedXY(\n\t\t\t\t\t\ttransform,\n\t\t\t\t\t\tpoints[3],\n\t\t\t\t\t\tpoints[2],\n\t\t\t\t\t\tpoints[0],\n\t\t\t\t\t\tnormals,\n\t\t\t\t\t\tlengths,\n\t\t\t\t\t\twork\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_CENTER:\n\t\t\t\t\tthis.calcScaleSnappedY(transform, points[2], normals[0], lengths[0], work);\n\t\t\t\t\tthis.calcScaleSnappedY(transform, points[3], normals[0], lengths[0], work);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_RIGHT:\n\t\t\t\t\tthis.calcScaleSnappedXY(\n\t\t\t\t\t\ttransform,\n\t\t\t\t\t\tpoints[2],\n\t\t\t\t\t\tpoints[3],\n\t\t\t\t\t\tpoints[1],\n\t\t\t\t\t\tnormals,\n\t\t\t\t\t\tlengths,\n\t\t\t\t\t\twork\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (!isNaN(work.distance)) {\n\t\t\t\tscale.copyFrom(work.scale);\n\t\t\t\tif (keepRatio) {\n\t\t\t\t\tswitch (anchor) {\n\t\t\t\t\t\tcase ESnapperModifierAnchor.TOP_LEFT:\n\t\t\t\t\t\tcase ESnapperModifierAnchor.TOP_RIGHT:\n\t\t\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_LEFT:\n\t\t\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_RIGHT:\n\t\t\t\t\t\t\tscale.x = scale.y = Math.max(scale.x, scale.y);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase ESnapperModifierAnchor.TOP_CENTER:\n\t\t\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_CENTER:\n\t\t\t\t\t\t\tscale.x = scale.y;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_LEFT:\n\t\t\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_RIGHT:\n\t\t\t\t\t\t\tscale.y = scale.x;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase ESnapperModifierAnchor.NONE:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\treset(): void {\n\t\tthis.enable = this._isEnabledDefault;\n\t\tthis.target.reset();\n\t\tthis.grid.reset();\n\t}\n\n\tserialize(): DDiagramSerializedSnap {\n\t\treturn [this._isEnabled ? 1 : 0, this.target.serialize(), this.grid.serialize()];\n\t}\n\n\tdeserialize(serialized: DDiagramSerializedSnap): void {\n\t\tthis.enable = !!serialized[0];\n\t\tthis.target.deserialize(serialized[1]);\n\t\tthis.grid.deserialize(serialized[2]);\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-snapper.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/snapper/e-snapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAiC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEjF,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,YAAY,EAA0C,MAAM,kBAAkB,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,cAAc,EAA8C,MAAM,oBAAoB,CAAC;AAEhG,IAAM,OAAO,GAAG,OAAO,CAAC;AAOxB,MAAM,CAAC,IAAM,sBAAsB,GAAG;IACrC,IAAI,EAAE,CAAC;IACP,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,CAAC;IACb,SAAS,EAAE,CAAC;IACZ,WAAW,EAAE,CAAC;IACd,YAAY,EAAE,CAAC;IACf,WAAW,EAAE,CAAC;IACd,aAAa,EAAE,CAAC;IAChB,YAAY,EAAE,CAAC;IACf,QAAQ,EAAE,CAAC;CACF,CAAC;AA4BX;I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rix, Point, Rectangle, utils } from \"pixi.js\";\nimport { DDiagramSerializedSnap } from \"../d-diagram-serialized\";\nimport { isNaN } from \"../util/is-nan\";\nimport { ESnapperGrid, ESnapperGridOptions, EThemeSnapperGrid } from \"./e-snapper-grid\";\nimport { ESnapperResult } from \"./e-snapper-result\";\nimport { ESnapperResultScale } from \"./e-snapper-result-scale\";\nimport { ESnapperTarget, ESnapperTargetOptions, EThemeSnapperTarget } from \"./e-snapper-target\";\n\nconst EPSILON = 0.00001;\n\nexport interface ESnapperModifier extends DisplayObject {\n\twidth: number;\n\theight: number;\n}\n\nexport const ESnapperModifierAnchor = {\n\tNONE: 0,\n\tTOP_LEFT: 1,\n\tTOP_CENTER: 2,\n\tTOP_RIGHT: 3,\n\tMIDDLE_LEFT: 4,\n\tMIDDLE_RIGHT: 5,\n\tBOTTOM_LEFT: 6,\n\tBOTTOM_CENTER: 7,\n\tBOTTOM_RIGHT: 8,\n\tROTATION: 9\n} as const;\n\nexport type ESnapperModifierAnchor =\n\ttypeof ESnapperModifierAnchor[keyof typeof ESnapperModifierAnchor];\n\nexport interface ESnapperParentCanvas {\n\tscale: {\n\t\tx: number;\n\t\ty: number;\n\t};\n\twidth: number;\n\theight: number;\n}\n\nexport interface ESnapperParent {\n\tcanvas: ESnapperParentCanvas | null;\n}\n\nexport interface ESnapperOptions {\n\tenable?: boolean;\n\tgrid?: ESnapperGridOptions;\n\ttarget?: ESnapperTargetOptions;\n}\n\nexport interface EThemeSnapper extends EThemeSnapperGrid, EThemeSnapperTarget {\n\tisSnapEnabled(): boolean;\n}\n\nexport class ESnapper extends utils.EventEmitter {\n\tprotected _points: Point[];\n\tprotected _normals: Point[];\n\tprotected _lengths: number[];\n\n\tprotected _workScale: Point;\n\tprotected _workScaleResult: ESnapperResultScale;\n\n\tprotected _workTranslate: Point;\n\n\tprotected _workSnap: Point;\n\tprotected _workSnapRectangle: Rectangle;\n\tprotected _workSnapResultX: ESnapperResult;\n\tprotected _workSnapResultY: ESnapperResult;\n\n\tprotected _parent: ESnapperParent;\n\n\tprotected _isEnabled: boolean;\n\tprotected _isEnabledDefault: boolean;\n\n\tgrid: ESnapperGrid;\n\n\ttarget: ESnapperTarget;\n\n\tconstructor(parent: ESnapperParent, theme: EThemeSnapper, options?: ESnapperOptions) {\n\t\tsuper();\n\n\t\tthis._points = [\n\t\t\tnew Point(), // Top left\n\t\t\tnew Point(), // Top right\n\t\t\tnew Point(), // Bottom left\n\t\t\tnew Point(), // Bottom right\n\t\t\tnew Point() // Center\n\t\t];\n\n\t\tthis._normals = [new Point(), new Point()];\n\n\t\tthis._lengths = [1, 1];\n\n\t\tthis._workScale = new Point();\n\t\tthis._workSnapResultX = new ESnapperResult();\n\t\tthis._workSnapResultY = new ESnapperResult();\n\t\tthis._workScaleResult = {\n\t\t\tdistance: 0,\n\t\t\tscale: new Point()\n\t\t};\n\n\t\tthis._workTranslate = new Point();\n\n\t\tthis._workSnapRectangle = new Rectangle();\n\t\tthis._workSnap = new Point();\n\n\t\tthis.grid = new ESnapperGrid(theme, options?.grid);\n\n\t\tthis.target = new ESnapperTarget(theme, options?.target);\n\n\t\tthis._parent = parent;\n\t\tthis._isEnabledDefault = options?.enable ?? theme.isSnapEnabled();\n\t\tthis._isEnabled = this._isEnabledDefault;\n\t}\n\n\tget enable(): boolean {\n\t\treturn this._isEnabled;\n\t}\n\n\tset enable(enable: boolean) {\n\t\tif (this._isEnabled !== enable) {\n\t\t\tthis._isEnabled = enable;\n\t\t\tthis.emit(\"change\", this);\n\t\t}\n\t}\n\n\tprotected prepare(modifier: ESnapperModifier): void {\n\t\tmodifier.updateTransform();\n\t\tconst localTransform = modifier.transform.localTransform;\n\t\tconst sx = modifier.width;\n\t\tconst sy = modifier.height;\n\n\t\tconst points = this._points;\n\t\tpoints[0].set(0, 0);\n\t\tpoints[1].set(sx, 0);\n\t\tpoints[2].set(sx, sy);\n\t\tpoints[3].set(0, sy);\n\t\tpoints[4].set(sx * 0.5, sy * 0.5);\n\n\t\tlocalTransform.apply(points[0], points[0]);\n\t\tlocalTransform.apply(points[1], points[1]);\n\t\tlocalTransform.apply(points[2], points[2]);\n\t\tlocalTransform.apply(points[3], points[3]);\n\t\tlocalTransform.apply(points[4], points[4]);\n\t}\n\n\tprepareForTranslate(modifier: ESnapperModifier): void {\n\t\tif (this._isEnabled) {\n\t\t\tthis.prepare(modifier);\n\t\t}\n\t}\n\n\tprotected snap(point: IPoint, result: IPoint): IPoint {\n\t\tconst px = point.x;\n\t\tconst py = point.y;\n\t\tconst canvas = this._parent.canvas;\n\t\tconst x = this._workSnapResultX;\n\t\tconst y = this._workSnapResultY;\n\n\t\t// Canvas\n\t\tif (canvas != null) {\n\t\t\tconst scale = Math.max(canvas.scale.x, canvas.scale.y);\n\t\t\tx.reset(px, scale);\n\t\t\ty.reset(py, scale);\n\t\t\tx.set(px, 0);\n\t\t\tx.set(px, canvas.width);\n\t\t\ty.set(py, 0);\n\t\t\ty.set(py, canvas.height);\n\t\t} else {\n\t\t\tx.reset(px, 1);\n\t\t\ty.reset(py, 1);\n\t\t}\n\n\t\t// Target\n\t\tthis.target.snap(px, py, x, y);\n\n\t\t// Grid\n\t\tthis.grid.snap(px, x);\n\t\tthis.grid.snap(py, y);\n\n\t\t//\n\t\tresult.x = isNaN(x.distance) ? NaN : x.result;\n\t\tresult.y = isNaN(y.distance) ? NaN : y.result;\n\t\treturn result;\n\t}\n\n\ttoSnapped(point: IPoint, result: IPoint): IPoint {\n\t\tconst px = point.x;\n\t\tconst py = point.y;\n\t\tif (this._isEnabled) {\n\t\t\tthis.snap(point, result);\n\t\t\tconst x = result.x;\n\t\t\tconst y = result.y;\n\t\t\tresult.set(isNaN(x) ? px : x, isNaN(y) ? py : y);\n\t\t} else {\n\t\t\tresult.set(px, py);\n\t\t}\n\t\treturn result;\n\t}\n\n\ttoTranslationSnapped(delta: IPoint, result: IPoint): IPoint {\n\t\tconst dx = delta.x;\n\t\tconst dy = delta.y;\n\t\tlet x = NaN;\n\t\tlet y = NaN;\n\t\tif (this._isEnabled) {\n\t\t\tconst workTranslate = this._workTranslate;\n\t\t\tconst points = this._points;\n\t\t\tfor (let i = 0, imax = points.length; i < imax; ++i) {\n\t\t\t\tconst point = points[i];\n\t\t\t\tworkTranslate.set(point.x + dx, point.y + dy);\n\t\t\t\tthis.snap(workTranslate, workTranslate);\n\n\t\t\t\t// X\n\t\t\t\tif (!isNaN(workTranslate.x)) {\n\t\t\t\t\tconst newDx = workTranslate.x - point.x;\n\t\t\t\t\tif (isNaN(x) || Math.abs(newDx - dx) < Math.abs(x - dx)) {\n\t\t\t\t\t\tx = newDx;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Y\n\t\t\t\tif (!isNaN(workTranslate.y)) {\n\t\t\t\t\tconst newDy = workTranslate.y - point.y;\n\t\t\t\t\tif (isNaN(y) || Math.abs(newDy - dy) < Math.abs(y - dy)) {\n\t\t\t\t\t\ty = newDy;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tresult.x = isNaN(x) ? dx : x;\n\t\tresult.y = isNaN(y) ? dy : y;\n\t\treturn result;\n\t}\n\n\tprepareForRotate(modifier: ESnapperModifier): void {\n\t\t//\n\t}\n\n\tprotected getGridSizeRotation(): number {\n\t\treturn 5;\n\t}\n\n\tprotected toRadian(value: number): number {\n\t\treturn (value / 180) * Math.PI;\n\t}\n\n\tprotected toDegree(value: number): number {\n\t\treturn (value / Math.PI) * 180;\n\t}\n\n\ttoRotationSnapped(baseRotation: number, deltaRotation: number): number {\n\t\tif (this._isEnabled) {\n\t\t\tconst gridSize = this.getGridSizeRotation();\n\t\t\tconst newRotation = baseRotation + deltaRotation;\n\t\t\tconst newRotationDegree = Math.round(this.toDegree(newRotation));\n\t\t\tconst newRotationDegreeResidual = newRotationDegree % 90;\n\t\t\tif (Math.abs(newRotationDegreeResidual) <= gridSize) {\n\t\t\t\treturn this.toRadian(newRotationDegree - newRotationDegreeResidual) - baseRotation;\n\t\t\t} else {\n\t\t\t\tif (90 - gridSize <= newRotationDegreeResidual) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\tthis.toRadian(newRotationDegree + (90 - newRotationDegreeResidual)) -\n\t\t\t\t\t\tbaseRotation\n\t\t\t\t\t);\n\t\t\t\t} else if (newRotationDegreeResidual <= -90 + gridSize) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\tthis.toRadian(newRotationDegree - (90 + newRotationDegreeResidual)) -\n\t\t\t\t\t\tbaseRotation\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn deltaRotation;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn deltaRotation;\n\t}\n\n\tprotected calcNormalizedVector(p0: IPoint, p1: IPoint, result: Point): number {\n\t\tconst dx = p1.x - p0.x;\n\t\tconst dy = p1.y - p0.y;\n\t\tconst l = Math.sqrt(dx * dx + dy * dy);\n\t\tif (EPSILON < l) {\n\t\t\tconst d = 1 / l;\n\t\t\tresult.x = dx * d;\n\t\t\tresult.y = dy * d;\n\t\t} else {\n\t\t\tresult.x = 1;\n\t\t\tresult.y = 0;\n\t\t}\n\t\treturn l;\n\t}\n\n\tprepareForScale(modifier: ESnapperModifier, anchor: ESnapperModifierAnchor): void {\n\t\tif (this._isEnabled) {\n\t\t\tthis.prepare(modifier);\n\n\t\t\tconst points = this._points;\n\t\t\tconst normals = this._normals;\n\t\t\tconst lengths = this._lengths;\n\t\t\tswitch (anchor) {\n\t\t\t\tcase ESnapperModifierAnchor.TOP_LEFT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[1], points[0], normals[0]);\n\t\t\t\t\tlengths[1] = this.calcNormalizedVector(points[3], points[0], normals[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.TOP_CENTER:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[3], points[0], normals[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.TOP_RIGHT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[0], points[1], normals[0]);\n\t\t\t\t\tlengths[1] = this.calcNormalizedVector(points[2], points[1], normals[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_LEFT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[1], points[0], normals[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.NONE:\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_RIGHT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[0], points[1], normals[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_LEFT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[2], points[3], normals[0]);\n\t\t\t\t\tlengths[1] = this.calcNormalizedVector(points[0], points[3], normals[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_CENTER:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[0], points[3], normals[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_RIGHT:\n\t\t\t\t\tlengths[0] = this.calcNormalizedVector(points[3], points[2], normals[0]);\n\t\t\t\t\tlengths[1] = this.calcNormalizedVector(points[1], points[2], normals[1]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected setScaleSnappedResult(\n\t\tdistance: number,\n\t\tlength: number,\n\t\tmove: number,\n\t\taxis: boolean, // true => x axis, false y axis\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tif (EPSILON < length) {\n\t\t\tif (isNaN(result.distance) || distance < result.distance) {\n\t\t\t\tresult.distance = distance;\n\t\t\t\tconst newScale = 1 + move / length;\n\t\t\t\tif (axis) {\n\t\t\t\t\tresult.scale.x = newScale;\n\t\t\t\t} else {\n\t\t\t\t\tresult.scale.y = newScale;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected calcScaleSnapped1D(\n\t\ttransform: Matrix,\n\t\tpoint: Point,\n\t\tnormal: IPoint,\n\t\tlength: number,\n\t\taxis: boolean,\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tconst work = this._workScale;\n\t\ttransform.apply(point, work);\n\t\tconst tx = work.x;\n\t\tconst ty = work.y;\n\t\tthis.snap(work, work);\n\t\tconst x = work.x;\n\t\tconst y = work.y;\n\n\t\t// X coordinate\n\t\tif (!isNaN(x)) {\n\t\t\tconst nx = Math.abs(normal.x);\n\t\t\tif (EPSILON < nx) {\n\t\t\t\tconst dx = (x - tx) / normal.x;\n\t\t\t\tconst distance = Math.abs(dx);\n\t\t\t\tconst mx = (x - point.x) / normal.x;\n\t\t\t\tthis.setScaleSnappedResult(distance, length, mx, axis, result);\n\t\t\t}\n\t\t}\n\n\t\t// Y coordinate\n\t\tif (!isNaN(y)) {\n\t\t\tconst ny = Math.abs(normal.y);\n\t\t\tif (EPSILON < ny) {\n\t\t\t\tconst dy = (y - ty) / normal.y;\n\t\t\t\tconst distance = Math.abs(dy);\n\t\t\t\tconst my = (y - point.y) / normal.y;\n\t\t\t\tthis.setScaleSnappedResult(distance, length, my, axis, result);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected calcScaleSnappedX(\n\t\ttransform: Matrix,\n\t\tpoint: Point,\n\t\tnormal: IPoint,\n\t\tlength: number,\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tthis.calcScaleSnapped1D(transform, point, normal, length, true, result);\n\t}\n\n\tprotected calcScaleSnappedY(\n\t\ttransform: Matrix,\n\t\tpoint: Point,\n\t\tnormal: IPoint,\n\t\tlength: number,\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tthis.calcScaleSnapped1D(transform, point, normal, length, false, result);\n\t}\n\n\tcalcScaleSnapped2D(\n\t\ttransform: Matrix,\n\t\tpoint: Point,\n\t\tnormals: IPoint[],\n\t\tlengths: number[],\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tconst work = this._workScale;\n\t\ttransform.apply(point, work);\n\t\tconst tx = work.x;\n\t\tconst ty = work.y;\n\n\t\tthis.snap(work, work);\n\t\tlet x = work.x;\n\t\tlet y = work.y;\n\t\tif (isNaN(x)) {\n\t\t\tif (isNaN(y)) {\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tx = tx;\n\t\t\t}\n\t\t} else {\n\t\t\tif (isNaN(y)) {\n\t\t\t\ty = ty;\n\t\t\t}\n\t\t}\n\n\t\t// (x, y) = (tx, ty) + normalA * a + normalB * b\n\t\t// dx = x - tx\n\t\t// dy = y - ty\n\t\t// V = ( a, b )^T\n\t\t// D = ( dx, dy )^T\n\t\t// A = | normalA.x normalB.x |\n\t\t// | normalA.y normalB.y |\n\t\t// A V = D\n\t\t// det A = normalA.x * normalB.y - normalB.x * normalA.y\n\t\t// A^-1 = | normalB.y -normalB.x | / det A\n\t\t// | -normalA.y normalA.x |\n\t\tconst detA = normals[0].x * normals[1].y - normals[1].x * normals[0].y;\n\t\tif (EPSILON < Math.abs(detA)) {\n\t\t\tconst dx = x - tx;\n\t\t\tconst dy = y - ty;\n\t\t\tconst distance = Math.abs(dx * dx + dy * dy);\n\t\t\tif (isNaN(result.distance) || distance < result.distance) {\n\t\t\t\tresult.distance = distance;\n\t\t\t\tconst mdx = x - point.x;\n\t\t\t\tconst mdy = y - point.y;\n\t\t\t\tconst mx = (+normals[1].y * mdx - normals[1].x * mdy) / detA;\n\t\t\t\tconst my = (-normals[0].y * mdx + normals[0].x * mdy) / detA;\n\t\t\t\tresult.scale.set(1 + mx / lengths[0], 1 + my / lengths[1]);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected calcScaleSnappedXY(\n\t\ttransform: Matrix,\n\t\tpointO: Point,\n\t\tpointX: Point,\n\t\tpointY: Point,\n\t\tnormals: IPoint[],\n\t\tlengths: number[],\n\t\tresult: ESnapperResultScale\n\t): void {\n\t\tthis.calcScaleSnapped2D(transform, pointO, normals, lengths, result);\n\t\tthis.calcScaleSnappedX(transform, pointY, normals[0], lengths[0], result);\n\t\tthis.calcScaleSnappedY(transform, pointX, normals[1], lengths[1], result);\n\t}\n\n\ttoScaleSnapped(\n\t\ttransform: Matrix,\n\t\tanchor: ESnapperModifierAnchor,\n\t\tkeepRatio: boolean,\n\t\tscale: IPoint\n\t): boolean {\n\t\tif (this._isEnabled) {\n\t\t\tconst points = this._points;\n\t\t\tconst normals = this._normals;\n\t\t\tconst lengths = this._lengths;\n\t\t\tconst work = this._workScaleResult;\n\t\t\twork.distance = NaN;\n\t\t\twork.scale.set(scale.x, scale.y);\n\n\t\t\tswitch (anchor) {\n\t\t\t\tcase ESnapperModifierAnchor.TOP_LEFT:\n\t\t\t\t\tthis.calcScaleSnappedXY(\n\t\t\t\t\t\ttransform,\n\t\t\t\t\t\tpoints[0],\n\t\t\t\t\t\tpoints[1],\n\t\t\t\t\t\tpoints[3],\n\t\t\t\t\t\tnormals,\n\t\t\t\t\t\tlengths,\n\t\t\t\t\t\twork\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.TOP_CENTER:\n\t\t\t\t\tthis.calcScaleSnappedY(transform, points[0], normals[0], lengths[0], work);\n\t\t\t\t\tthis.calcScaleSnappedY(transform, points[1], normals[0], lengths[0], work);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.TOP_RIGHT:\n\t\t\t\t\tthis.calcScaleSnappedXY(\n\t\t\t\t\t\ttransform,\n\t\t\t\t\t\tpoints[1],\n\t\t\t\t\t\tpoints[0],\n\t\t\t\t\t\tpoints[2],\n\t\t\t\t\t\tnormals,\n\t\t\t\t\t\tlengths,\n\t\t\t\t\t\twork\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_LEFT:\n\t\t\t\t\tthis.calcScaleSnappedX(transform, points[0], normals[0], lengths[0], work);\n\t\t\t\t\tthis.calcScaleSnappedX(transform, points[3], normals[0], lengths[0], work);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.NONE:\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_RIGHT:\n\t\t\t\t\tthis.calcScaleSnappedX(transform, points[1], normals[0], lengths[0], work);\n\t\t\t\t\tthis.calcScaleSnappedX(transform, points[2], normals[0], lengths[0], work);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_LEFT:\n\t\t\t\t\tthis.calcScaleSnappedXY(\n\t\t\t\t\t\ttransform,\n\t\t\t\t\t\tpoints[3],\n\t\t\t\t\t\tpoints[2],\n\t\t\t\t\t\tpoints[0],\n\t\t\t\t\t\tnormals,\n\t\t\t\t\t\tlengths,\n\t\t\t\t\t\twork\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_CENTER:\n\t\t\t\t\tthis.calcScaleSnappedY(transform, points[2], normals[0], lengths[0], work);\n\t\t\t\t\tthis.calcScaleSnappedY(transform, points[3], normals[0], lengths[0], work);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_RIGHT:\n\t\t\t\t\tthis.calcScaleSnappedXY(\n\t\t\t\t\t\ttransform,\n\t\t\t\t\t\tpoints[2],\n\t\t\t\t\t\tpoints[3],\n\t\t\t\t\t\tpoints[1],\n\t\t\t\t\t\tnormals,\n\t\t\t\t\t\tlengths,\n\t\t\t\t\t\twork\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (!isNaN(work.distance)) {\n\t\t\t\tscale.copyFrom(work.scale);\n\t\t\t\tif (keepRatio) {\n\t\t\t\t\tswitch (anchor) {\n\t\t\t\t\t\tcase ESnapperModifierAnchor.TOP_LEFT:\n\t\t\t\t\t\tcase ESnapperModifierAnchor.TOP_RIGHT:\n\t\t\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_LEFT:\n\t\t\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_RIGHT:\n\t\t\t\t\t\t\tscale.x = scale.y = Math.max(scale.x, scale.y);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase ESnapperModifierAnchor.TOP_CENTER:\n\t\t\t\t\t\tcase ESnapperModifierAnchor.BOTTOM_CENTER:\n\t\t\t\t\t\t\tscale.x = scale.y;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_LEFT:\n\t\t\t\t\t\tcase ESnapperModifierAnchor.MIDDLE_RIGHT:\n\t\t\t\t\t\t\tscale.y = scale.x;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase ESnapperModifierAnchor.NONE:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\treset(): void {\n\t\tthis.enable = this._isEnabledDefault;\n\t\tthis.target.reset();\n\t\tthis.grid.reset();\n\t}\n\n\tserialize(): DDiagramSerializedSnap {\n\t\treturn [this._isEnabled ? 1 : 0, this.target.serialize(), this.grid.serialize()];\n\t}\n\n\tdeserialize(serialized: DDiagramSerializedSnap): void {\n\t\tthis.enable = !!serialized[0];\n\t\tthis.target.deserialize(serialized[1]);\n\t\tthis.grid.deserialize(serialized[2]);\n\t}\n}\n"]}
@@ -3,5 +3,5 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  import { UtilSvgAtlasBuilder } from "../../util/util-svg-atlas-builder";
6
- export var DThemeDarkAtlas = new UtilSvgAtlasBuilder(256, 1, 3);
6
+ export var DThemeDarkAtlas = new UtilSvgAtlasBuilder(512, 1, 3);
7
7
  //# sourceMappingURL=d-theme-dark-atlas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-dark-atlas.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-atlas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,CAAC,IAAM,eAAe,GAAG,IAAI,mBAAmB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilSvgAtlasBuilder } from \"../../util/util-svg-atlas-builder\";\n\nexport const DThemeDarkAtlas = new UtilSvgAtlasBuilder(256, 1, 3);\n"]}
1
+ {"version":3,"file":"d-theme-dark-atlas.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-atlas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,CAAC,IAAM,eAAe,GAAG,IAAI,mBAAmB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilSvgAtlasBuilder } from \"../../util/util-svg-atlas-builder\";\n\nexport const DThemeDarkAtlas = new UtilSvgAtlasBuilder(512, 1, 3);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-dark-table-body-cells.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,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C7B;IACF,CAAC;IAEM,iCAAQ,GAAf,UAAgB,KAAoB;QACnC,OAAO,mBAAmB,CAAC,KAAK,CAAC;IAClC,CAAC;IAEM,iCAAQ,GAAf,UAAgB,KAAoB;QACnC,IAAI,KAAK,CAAC,SAAS,EAAE;YACpB,OAAO,GAAG,CAAC;SACX;QACD,OAAO,CAAC,CAAC;IACV,CAAC;IAEM,0CAAiB,GAAxB,UAAyB,KAAoB,EAAE,QAAkB;QAChE,IAAI,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC,EAAE;YAC1E,OAAO,QAAQ,CAAC;SAChB;aAAM;YACN,OAAO,mBAAmB,CAAC,eAAe,CAAC;SAC3C;IACF,CAAC;IAEM,kCAAS,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAEM,sCAAa,GAApB;QACC,OAAO,WAAW,CAAC,GAAG,CAAC;IACxB,CAAC;;;IA/EyB,yCAAgB,GAAG,mBAAmB,CAAC,yBAA0B,CAAA;IACjE,qDAA4B,GAAG,OAAO,CAAC,QAAQ,CACxE,EAAI,CAAC,gBAAgB,EACrB,IAAI,CACH,CAAA;IACwB,oDAA2B,GAAG,OAAO,CAAC,QAAQ,CACvE,EAAI,CAAC,4BAA4B,EACjC,IAAI,CACH,CAAA;IACwB,qCAAY,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,gBAAgB,EAAE,KAAK,CAAE,CAAA;IAC5D,4CAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,YAAY,EAAE,KAAK,CAAE,CAAA;IAsE1F,+BAAC;CAAA,AAjFD,IAiFC;SAjFY,wBAAwB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DBorderMask } from \"../../d-border-mask\";\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DCornerMask } from \"../../d-corner-mask\";\nimport { DTableState } from \"../../d-table-state\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeDarkConstants } from \"./d-theme-dark-constants\";\n\nexport class DThemeDarkTableBodyCells {\n\tprotected static readonly BACKGROUND_COLOR = DThemeDarkConstants.BACKGROUND_COLOR_ON_BOARD;\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_EVEN = UtilRgb.brighten(\n\t\tthis.BACKGROUND_COLOR,\n\t\t0.03\n\t);\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_ODD = UtilRgb.brighten(\n\t\tthis.BACKGROUND_COLOR_FROZEN_EVEN,\n\t\t0.03\n\t);\n\tprotected static readonly BORDER_COLOR = UtilRgb.darken(this.BACKGROUND_COLOR, 0.035);\n\tprotected static readonly BORDER_COLOR_FROZEN = UtilRgb.darken(this.BORDER_COLOR, 0.035);\n\n\tstatic getBackgroundColor(state: DBaseStateSet): number | null {\n\t\tif (state.inDisabled) {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else if (state.isInvalid) {\n\t\t\treturn DThemeDarkConstants.INVALID_BLENDED_ON_BOARD;\n\t\t} else if (state.underActive) {\n\t\t\treturn DThemeDarkConstants.HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else if (state.onHovered || state.isHovered) {\n\t\t\treturn DThemeDarkConstants.WEAK_HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic getBackgroundAlpha(state: DBaseStateSet): number {\n\t\treturn 1;\n\t}\n\n\tstatic getBorderColor(state: DBaseStateSet): number | null {\n\t\treturn this.BORDER_COLOR;\n\t}\n\n\tstatic getBorderMask(state: DBaseStateSet): DBorderMask {\n\t\tif (state.is(DTableState.END)) {\n\t\t\treturn DBorderMask.ALL;\n\t\t} else {\n\t\t\treturn DBorderMask.NOT_RIGHT;\n\t\t}\n\t}\n\n\tstatic getColor(state: DBaseStateSet): number {\n\t\treturn DThemeDarkConstants.COLOR;\n\t}\n\n\tstatic getAlpha(state: DBaseStateSet): number {\n\t\tif (state.inEnabled) {\n\t\t\treturn 1.0;\n\t\t}\n\t\treturn 0;\n\t}\n\n\tstatic getImageTintColor(state: DBaseStateSet, isActive?: boolean): number | null {\n\t\tif (state.inDisabled || state.inReadOnly || !(state.isActive || isActive)) {\n\t\t\treturn 0x646464;\n\t\t} else {\n\t\t\treturn DThemeDarkConstants.HIGHLIGHT_COLOR;\n\t\t}\n\t}\n\n\tstatic getHeight(): DCoordinateSize {\n\t\treturn \"padding\";\n\t}\n\n\tstatic getCornerMask(): DCornerMask {\n\t\treturn DCornerMask.ALL;\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-dark-table-body-cells.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;IAAA;IAiFA,CAAC;IApEO,2CAAkB,GAAzB,UAA0B,KAA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,CAAC;IAEM,iCAAQ,GAAf,UAAgB,KAAoB;QACnC,IAAI,KAAK,CAAC,SAAS,EAAE;YACpB,OAAO,GAAG,CAAC;SACX;QACD,OAAO,CAAC,CAAC;IACV,CAAC;IAEM,0CAAiB,GAAxB,UAAyB,KAAoB,EAAE,QAAkB;QAChE,IAAI,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC,EAAE;YAC1E,OAAO,QAAQ,CAAC;SAChB;aAAM;YACN,OAAO,mBAAmB,CAAC,eAAe,CAAC;SAC3C;IACF,CAAC;IAEM,kCAAS,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAEM,sCAAa,GAApB;QACC,OAAO,WAAW,CAAC,GAAG,CAAC;IACxB,CAAC;;;IA/EyB,yCAAgB,GAAG,mBAAmB,CAAC,yBAAyB,AAAhD,CAAiD;IACjE,qDAA4B,GAAG,OAAO,CAAC,QAAQ,CACxE,EAAI,CAAC,gBAAgB,EACrB,IAAI,CACJ,AAHqD,CAGpD;IACwB,oDAA2B,GAAG,OAAO,CAAC,QAAQ,CACvE,EAAI,CAAC,4BAA4B,EACjC,IAAI,CACJ,AAHoD,CAGnD;IACwB,qCAAY,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,AAA/C,CAAgD;IAC5D,4CAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,YAAY,EAAE,KAAK,CAAC,AAA3C,CAA4C;IAsE1F,+BAAC;CAAA,AAjFD,IAiFC;SAjFY,wBAAwB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DBorderMask } from \"../../d-border-mask\";\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DCornerMask } from \"../../d-corner-mask\";\nimport { DTableState } from \"../../d-table-state\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeDarkConstants } from \"./d-theme-dark-constants\";\n\nexport class DThemeDarkTableBodyCells {\n\tprotected static readonly BACKGROUND_COLOR = DThemeDarkConstants.BACKGROUND_COLOR_ON_BOARD;\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_EVEN = UtilRgb.brighten(\n\t\tthis.BACKGROUND_COLOR,\n\t\t0.03\n\t);\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_ODD = UtilRgb.brighten(\n\t\tthis.BACKGROUND_COLOR_FROZEN_EVEN,\n\t\t0.03\n\t);\n\tprotected static readonly BORDER_COLOR = UtilRgb.darken(this.BACKGROUND_COLOR, 0.035);\n\tprotected static readonly BORDER_COLOR_FROZEN = UtilRgb.darken(this.BORDER_COLOR, 0.035);\n\n\tstatic getBackgroundColor(state: DBaseStateSet): number | null {\n\t\tif (state.inDisabled) {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else if (state.isInvalid) {\n\t\t\treturn DThemeDarkConstants.INVALID_BLENDED_ON_BOARD;\n\t\t} else if (state.underActive) {\n\t\t\treturn DThemeDarkConstants.HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else if (state.onHovered || state.isHovered) {\n\t\t\treturn DThemeDarkConstants.WEAK_HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic getBackgroundAlpha(state: DBaseStateSet): number {\n\t\treturn 1;\n\t}\n\n\tstatic getBorderColor(state: DBaseStateSet): number | null {\n\t\treturn this.BORDER_COLOR;\n\t}\n\n\tstatic getBorderMask(state: DBaseStateSet): DBorderMask {\n\t\tif (state.is(DTableState.END)) {\n\t\t\treturn DBorderMask.ALL;\n\t\t} else {\n\t\t\treturn DBorderMask.NOT_RIGHT;\n\t\t}\n\t}\n\n\tstatic getColor(state: DBaseStateSet): number {\n\t\treturn DThemeDarkConstants.COLOR;\n\t}\n\n\tstatic getAlpha(state: DBaseStateSet): number {\n\t\tif (state.inEnabled) {\n\t\t\treturn 1.0;\n\t\t}\n\t\treturn 0;\n\t}\n\n\tstatic getImageTintColor(state: DBaseStateSet, isActive?: boolean): number | null {\n\t\tif (state.inDisabled || state.inReadOnly || !(state.isActive || isActive)) {\n\t\t\treturn 0x646464;\n\t\t} else {\n\t\t\treturn DThemeDarkConstants.HIGHLIGHT_COLOR;\n\t\t}\n\t}\n\n\tstatic getHeight(): DCoordinateSize {\n\t\treturn \"padding\";\n\t}\n\n\tstatic getCornerMask(): DCornerMask {\n\t\treturn DCornerMask.ALL;\n\t}\n}\n"]}
@@ -3,5 +3,5 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  import { UtilSvgAtlasBuilder } from "../../util/util-svg-atlas-builder";
6
- export var DThemeWhiteAtlas = new UtilSvgAtlasBuilder(256, 1, 3);
6
+ export var DThemeWhiteAtlas = new UtilSvgAtlasBuilder(512, 1, 3);
7
7
  //# sourceMappingURL=d-theme-white-atlas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-atlas.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-atlas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,CAAC,IAAM,gBAAgB,GAAG,IAAI,mBAAmB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilSvgAtlasBuilder } from \"../../util/util-svg-atlas-builder\";\n\nexport const DThemeWhiteAtlas = new UtilSvgAtlasBuilder(256, 1, 3);\n"]}
1
+ {"version":3,"file":"d-theme-white-atlas.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-atlas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,CAAC,IAAM,gBAAgB,GAAG,IAAI,mBAAmB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilSvgAtlasBuilder } from \"../../util/util-svg-atlas-builder\";\n\nexport const DThemeWhiteAtlas = new UtilSvgAtlasBuilder(512, 1, 3);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-table-body-cells.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-table-body-cells.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;IAAA;IAoFA,CAAC;IAvEO,4CAAkB,GAAzB,UAA0B,KAAoB;QAC7C,IAAI,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,KAAK,CAAC,EAAE,CAAC,WAAW,CA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,CAAC,KAAK,CAAC;IACnC,CAAC;IAEM,kCAAQ,GAAf,UAAgB,KAAoB;QACnC,IAAI,KAAK,CAAC,SAAS,EAAE;YACpB,OAAO,GAAG,CAAC;SACX;QACD,OAAO,CAAC,CAAC;IACV,CAAC;IAEM,2CAAiB,GAAxB,UAAyB,KAAoB,EAAE,QAAkB;QAChE,IAAI,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC,EAAE;YAC1E,OAAO,oBAAoB,CAAC,oBAAoB,CAAC;SACjD;aAAM;YACN,OAAO,oBAAoB,CAAC,eAAe,CAAC;SAC5C;IACF,CAAC;IAEM,mCAAS,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAEM,uCAAa,GAApB;QACC,OAAO,WAAW,CAAC,GAAG,CAAC;IACxB,CAAC;;;IAlFyB,0CAAgB,GAAG,oBAAoB,CAAC,yBAA0B,CAAA;IAClE,sDAA4B,GAAG,OAAO,CAAC,MAAM,CACtE,EAAI,CAAC,gBAAgB,EACrB,KAAK,CACJ,CAAA;IACwB,qDAA2B,GAAG,OAAO,CAAC,MAAM,CACrE,EAAI,CAAC,4BAA4B,EACjC,KAAK,CACJ,CAAA;IACwB,sCAAY,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,gBAAgB,EAAE,KAAK,CAAE,CAAA;IAC5D,6CAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,YAAY,EAAE,KAAK,CAAE,CAAA;IAyE1F,gCAAC;CAAA,AApFD,IAoFC;SApFY,yBAAyB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DBorderMask } from \"../../d-border-mask\";\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DCornerMask } from \"../../d-corner-mask\";\nimport { DTableState } from \"../../d-table-state\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeWhiteConstants } from \"./d-theme-white-constants\";\n\nexport class DThemeWhiteTableBodyCells {\n\tprotected static readonly BACKGROUND_COLOR = DThemeWhiteConstants.BACKGROUND_COLOR_ON_BOARD;\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_EVEN = UtilRgb.darken(\n\t\tthis.BACKGROUND_COLOR,\n\t\t0.015\n\t);\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_ODD = UtilRgb.darken(\n\t\tthis.BACKGROUND_COLOR_FROZEN_EVEN,\n\t\t0.015\n\t);\n\tprotected static readonly BORDER_COLOR = UtilRgb.darken(this.BACKGROUND_COLOR, 0.035);\n\tprotected static readonly BORDER_COLOR_FROZEN = UtilRgb.darken(this.BORDER_COLOR, 0.035);\n\n\tstatic getBackgroundColor(state: DBaseStateSet): number | null {\n\t\tif (state.inDisabled) {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else if (state.isInvalid) {\n\t\t\treturn DThemeWhiteConstants.INVALID_BLENDED_ON_BOARD;\n\t\t} else if (state.underActive) {\n\t\t\treturn DThemeWhiteConstants.HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else if (state.onHovered || state.isHovered) {\n\t\t\treturn DThemeWhiteConstants.WEAK_HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic getBackgroundAlpha(state: DBaseStateSet): number {\n\t\treturn 1;\n\t}\n\n\tstatic getBorderColor(state: DBaseStateSet): number | null {\n\t\tif (state.is(DTableState.FROZEN_END)) {\n\t\t\treturn this.BORDER_COLOR_FROZEN;\n\t\t}\n\t\treturn this.BORDER_COLOR;\n\t}\n\n\tstatic getBorderMask(state: DBaseStateSet): DBorderMask {\n\t\tif (state.is(DTableState.END)) {\n\t\t\treturn DBorderMask.ALL;\n\t\t} else {\n\t\t\treturn DBorderMask.NOT_RIGHT;\n\t\t}\n\t}\n\n\tstatic getColor(state: DBaseStateSet): number {\n\t\treturn DThemeWhiteConstants.COLOR;\n\t}\n\n\tstatic getAlpha(state: DBaseStateSet): number {\n\t\tif (state.inEnabled) {\n\t\t\treturn 1.0;\n\t\t}\n\t\treturn 0;\n\t}\n\n\tstatic getImageTintColor(state: DBaseStateSet, isActive?: boolean): number | null {\n\t\tif (state.inDisabled || state.inReadOnly || !(state.isActive || isActive)) {\n\t\t\treturn DThemeWhiteConstants.WEAK_HIGHLIGHT_COLOR;\n\t\t} else {\n\t\t\treturn DThemeWhiteConstants.HIGHLIGHT_COLOR;\n\t\t}\n\t}\n\n\tstatic getHeight(): DCoordinateSize {\n\t\treturn \"padding\";\n\t}\n\n\tstatic getCornerMask(): DCornerMask {\n\t\treturn DCornerMask.ALL;\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-white-table-body-cells.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-table-body-cells.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;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Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DBorderMask } from \"../../d-border-mask\";\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DCornerMask } from \"../../d-corner-mask\";\nimport { DTableState } from \"../../d-table-state\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeWhiteConstants } from \"./d-theme-white-constants\";\n\nexport class DThemeWhiteTableBodyCells {\n\tprotected static readonly BACKGROUND_COLOR = DThemeWhiteConstants.BACKGROUND_COLOR_ON_BOARD;\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_EVEN = UtilRgb.darken(\n\t\tthis.BACKGROUND_COLOR,\n\t\t0.015\n\t);\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_ODD = UtilRgb.darken(\n\t\tthis.BACKGROUND_COLOR_FROZEN_EVEN,\n\t\t0.015\n\t);\n\tprotected static readonly BORDER_COLOR = UtilRgb.darken(this.BACKGROUND_COLOR, 0.035);\n\tprotected static readonly BORDER_COLOR_FROZEN = UtilRgb.darken(this.BORDER_COLOR, 0.035);\n\n\tstatic getBackgroundColor(state: DBaseStateSet): number | null {\n\t\tif (state.inDisabled) {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else if (state.isInvalid) {\n\t\t\treturn DThemeWhiteConstants.INVALID_BLENDED_ON_BOARD;\n\t\t} else if (state.underActive) {\n\t\t\treturn DThemeWhiteConstants.HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else if (state.onHovered || state.isHovered) {\n\t\t\treturn DThemeWhiteConstants.WEAK_HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic getBackgroundAlpha(state: DBaseStateSet): number {\n\t\treturn 1;\n\t}\n\n\tstatic getBorderColor(state: DBaseStateSet): number | null {\n\t\tif (state.is(DTableState.FROZEN_END)) {\n\t\t\treturn this.BORDER_COLOR_FROZEN;\n\t\t}\n\t\treturn this.BORDER_COLOR;\n\t}\n\n\tstatic getBorderMask(state: DBaseStateSet): DBorderMask {\n\t\tif (state.is(DTableState.END)) {\n\t\t\treturn DBorderMask.ALL;\n\t\t} else {\n\t\t\treturn DBorderMask.NOT_RIGHT;\n\t\t}\n\t}\n\n\tstatic getColor(state: DBaseStateSet): number {\n\t\treturn DThemeWhiteConstants.COLOR;\n\t}\n\n\tstatic getAlpha(state: DBaseStateSet): number {\n\t\tif (state.inEnabled) {\n\t\t\treturn 1.0;\n\t\t}\n\t\treturn 0;\n\t}\n\n\tstatic getImageTintColor(state: DBaseStateSet, isActive?: boolean): number | null {\n\t\tif (state.inDisabled || state.inReadOnly || !(state.isActive || isActive)) {\n\t\t\treturn DThemeWhiteConstants.WEAK_HIGHLIGHT_COLOR;\n\t\t} else {\n\t\t\treturn DThemeWhiteConstants.HIGHLIGHT_COLOR;\n\t\t}\n\t}\n\n\tstatic getHeight(): DCoordinateSize {\n\t\treturn \"padding\";\n\t}\n\n\tstatic getCornerMask(): DCornerMask {\n\t\treturn DCornerMask.ALL;\n\t}\n}\n"]}