@wcardinal/wcardinal-ui 0.154.0 → 0.155.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 (213) hide show
  1. package/dist/types/wcardinal/ui/d-application-layer-options.d.ts +3 -4
  2. package/dist/types/wcardinal/ui/d-base-background.d.ts +2 -4
  3. package/dist/types/wcardinal/ui/d-base-border.d.ts +2 -4
  4. package/dist/types/wcardinal/ui/d-base-corner.d.ts +1 -3
  5. package/dist/types/wcardinal/ui/d-base-outline.d.ts +2 -4
  6. package/dist/types/wcardinal/ui/d-base-padding.d.ts +2 -4
  7. package/dist/types/wcardinal/ui/d-chart-series-base-coordinate-container.d.ts +1 -2
  8. package/dist/types/wcardinal/ui/d-color-gradient-point-observable.d.ts +2 -4
  9. package/dist/types/wcardinal/ui/d-diagram-canvas-data-map.d.ts +1 -3
  10. package/dist/types/wcardinal/ui/d-diagram-canvas-id-map.d.ts +1 -3
  11. package/dist/types/wcardinal/ui/d-dynamic-text-geometry.d.ts +2 -3
  12. package/dist/types/wcardinal/ui/d-dynamic-text-measure.d.ts +2 -3
  13. package/dist/types/wcardinal/ui/d-dynamic-text.d.ts +8 -8
  14. package/dist/types/wcardinal/ui/d-input-and-label.d.ts +4 -5
  15. package/dist/types/wcardinal/ui/d-on-options.d.ts +1 -3
  16. package/dist/types/wcardinal/ui/d-pagination-button-last.d.ts +8 -0
  17. package/dist/types/wcardinal/ui/d-pagination-button-next.d.ts +8 -0
  18. package/dist/types/wcardinal/ui/d-pagination-button-page.d.ts +8 -0
  19. package/dist/types/wcardinal/ui/d-pagination-button-previous.d.ts +8 -0
  20. package/dist/types/wcardinal/ui/d-pagination-button-top.d.ts +8 -0
  21. package/dist/types/wcardinal/ui/d-pagination-dots.d.ts +8 -0
  22. package/dist/types/wcardinal/ui/d-pagination-page.d.ts +8 -0
  23. package/dist/types/wcardinal/ui/d-pagination.d.ts +137 -44
  24. package/dist/types/wcardinal/ui/d-picker-color-gradient-view.d.ts +4 -5
  25. package/dist/types/wcardinal/ui/d-scalar-expression.d.ts +68 -66
  26. package/dist/types/wcardinal/ui/d-table-data-list-filter.d.ts +1 -2
  27. package/dist/types/wcardinal/ui/d-table-data-list-selection.d.ts +1 -3
  28. package/dist/types/wcardinal/ui/d-table-data-selection.d.ts +1 -3
  29. package/dist/types/wcardinal/ui/d-table-data-tree-filter.d.ts +1 -2
  30. package/dist/types/wcardinal/ui/d-table-data-tree-selection-impl.d.ts +1 -3
  31. package/dist/types/wcardinal/ui/index.d.ts +11 -3
  32. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtimes.d.ts +4 -5
  33. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-color.d.ts +5 -6
  34. package/dist/types/wcardinal/ui/shape/e-shape-capabilities.d.ts +1 -3
  35. package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-acceptor-impl.d.ts +1 -2
  36. package/dist/types/wcardinal/ui/shape/e-shape-deserializers.d.ts +2 -6
  37. package/dist/types/wcardinal/ui/shape/e-shape-runtimes.d.ts +2 -3
  38. package/dist/types/wcardinal/ui/shape/e-shape-text.d.ts +1 -3
  39. package/dist/types/wcardinal/ui/shape/e-shape-uploadeds.d.ts +1 -3
  40. package/dist/types/wcardinal/ui/shape/variant/create-line-of-any-uploaded.d.ts +1 -2
  41. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-last.d.ts +8 -0
  42. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-next.d.ts +8 -0
  43. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-page.d.ts +9 -0
  44. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-previous.d.ts +8 -0
  45. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-top.d.ts +8 -0
  46. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.d.ts +10 -0
  47. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.d.ts +13 -0
  48. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination.d.ts +2 -1
  49. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark.d.ts +2 -9
  50. package/dist/types/wcardinal/ui/theme/dark/index.d.ts +7 -3
  51. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-last.d.ts +8 -0
  52. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-next.d.ts +8 -0
  53. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-page.d.ts +9 -0
  54. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-previous.d.ts +8 -0
  55. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-top.d.ts +8 -0
  56. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-dots.d.ts +10 -0
  57. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-page.d.ts +13 -0
  58. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination.d.ts +2 -1
  59. package/dist/types/wcardinal/ui/theme/white/d-theme-white.d.ts +2 -9
  60. package/dist/types/wcardinal/ui/theme/white/index.d.ts +7 -3
  61. package/dist/types/wcardinal/ui/util/dynamic-atlas.d.ts +2 -6
  62. package/dist/types/wcardinal/ui/util/dynamic-font-atlas-characters.d.ts +1 -3
  63. package/dist/types/wcardinal/ui/util/dynamic-sdf-font-atlases.d.ts +1 -3
  64. package/dist/types/wcardinal/ui/util/format-node/{format-noder-d.d.ts → format-node-rd.d.ts} +0 -0
  65. package/dist/types/wcardinal/ui/util/format-node/index.d.ts +31 -0
  66. package/dist/types/wcardinal/ui/util/index.d.ts +5 -0
  67. package/dist/types/wcardinal/ui/util/util-name.d.ts +1 -3
  68. package/dist/types/wcardinal/ui/util/util-svg-atlas-builder.d.ts +4 -12
  69. package/dist/wcardinal/ui/d-application-layer-options.js.map +1 -1
  70. package/dist/wcardinal/ui/d-base-background.js.map +1 -1
  71. package/dist/wcardinal/ui/d-base-border.js.map +1 -1
  72. package/dist/wcardinal/ui/d-base-corner.js.map +1 -1
  73. package/dist/wcardinal/ui/d-base-outline.js.map +1 -1
  74. package/dist/wcardinal/ui/d-base-padding.js.map +1 -1
  75. package/dist/wcardinal/ui/d-chart-series-base-coordinate-container.js.map +1 -1
  76. package/dist/wcardinal/ui/d-color-gradient-point-observable.js.map +1 -1
  77. package/dist/wcardinal/ui/d-diagram-canvas-data-map.js.map +1 -1
  78. package/dist/wcardinal/ui/d-diagram-canvas-id-map.js.map +1 -1
  79. package/dist/wcardinal/ui/d-diagram.js.map +1 -1
  80. package/dist/wcardinal/ui/d-dynamic-text-geometry.js.map +1 -1
  81. package/dist/wcardinal/ui/d-dynamic-text-measure.js.map +1 -1
  82. package/dist/wcardinal/ui/d-dynamic-text.js.map +1 -1
  83. package/dist/wcardinal/ui/d-input-and-label.js.map +1 -1
  84. package/dist/wcardinal/ui/d-on-options.js.map +1 -1
  85. package/dist/wcardinal/ui/d-pagination-button-last.js +18 -0
  86. package/dist/wcardinal/ui/d-pagination-button-last.js.map +1 -0
  87. package/dist/wcardinal/ui/d-pagination-button-next.js +18 -0
  88. package/dist/wcardinal/ui/d-pagination-button-next.js.map +1 -0
  89. package/dist/wcardinal/ui/d-pagination-button-page.js +18 -0
  90. package/dist/wcardinal/ui/d-pagination-button-page.js.map +1 -0
  91. package/dist/wcardinal/ui/d-pagination-button-previous.js +18 -0
  92. package/dist/wcardinal/ui/d-pagination-button-previous.js.map +1 -0
  93. package/dist/wcardinal/ui/d-pagination-button-top.js +18 -0
  94. package/dist/wcardinal/ui/d-pagination-button-top.js.map +1 -0
  95. package/dist/wcardinal/ui/d-pagination-dots.js +18 -0
  96. package/dist/wcardinal/ui/d-pagination-dots.js.map +1 -0
  97. package/dist/wcardinal/ui/d-pagination-page.js +18 -0
  98. package/dist/wcardinal/ui/d-pagination-page.js.map +1 -0
  99. package/dist/wcardinal/ui/d-pagination.js +455 -212
  100. package/dist/wcardinal/ui/d-pagination.js.map +1 -1
  101. package/dist/wcardinal/ui/d-picker-color-gradient-view.js.map +1 -1
  102. package/dist/wcardinal/ui/d-scalar-expression.js +107 -79
  103. package/dist/wcardinal/ui/d-scalar-expression.js.map +1 -1
  104. package/dist/wcardinal/ui/d-table-data-list-filter.js.map +1 -1
  105. package/dist/wcardinal/ui/d-table-data-list-selection.js.map +1 -1
  106. package/dist/wcardinal/ui/d-table-data-selection.js.map +1 -1
  107. package/dist/wcardinal/ui/d-table-data-tree-filter.js.map +1 -1
  108. package/dist/wcardinal/ui/d-table-data-tree-selection-impl.js.map +1 -1
  109. package/dist/wcardinal/ui/index.js +11 -3
  110. package/dist/wcardinal/ui/index.js.map +1 -1
  111. package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js.map +1 -1
  112. package/dist/wcardinal/ui/shape/action/e-shape-action-value-change-color.js.map +1 -1
  113. package/dist/wcardinal/ui/shape/e-shape-capabilities.js.map +1 -1
  114. package/dist/wcardinal/ui/shape/e-shape-connector-edge-acceptor-impl.js.map +1 -1
  115. package/dist/wcardinal/ui/shape/e-shape-deserializers.js.map +1 -1
  116. package/dist/wcardinal/ui/shape/e-shape-runtimes.js.map +1 -1
  117. package/dist/wcardinal/ui/shape/e-shape-text.js.map +1 -1
  118. package/dist/wcardinal/ui/shape/e-shape-uploadeds.js.map +1 -1
  119. package/dist/wcardinal/ui/shape/variant/create-line-of-any-uploaded.js.map +1 -1
  120. package/dist/wcardinal/ui/shape/variant/to-image-element.js.map +1 -1
  121. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-last.js +28 -0
  122. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-last.js.map +1 -0
  123. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-next.js +27 -0
  124. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-next.js.map +1 -0
  125. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-page.js +24 -0
  126. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-page.js.map +1 -0
  127. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-previous.js +27 -0
  128. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-previous.js.map +1 -0
  129. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-top.js +28 -0
  130. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-top.js.map +1 -0
  131. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.js +36 -0
  132. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.js.map +1 -0
  133. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.js +35 -0
  134. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.js.map +1 -0
  135. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination.js +5 -2
  136. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination.js.map +1 -1
  137. package/dist/wcardinal/ui/theme/dark/d-theme-dark.js.map +1 -1
  138. package/dist/wcardinal/ui/theme/dark/index.js +7 -3
  139. package/dist/wcardinal/ui/theme/dark/index.js.map +1 -1
  140. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-pagination.js +14 -6
  141. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-pagination.js.map +1 -1
  142. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-last.js +28 -0
  143. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-last.js.map +1 -0
  144. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-next.js +27 -0
  145. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-next.js.map +1 -0
  146. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-page.js +24 -0
  147. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-page.js.map +1 -0
  148. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-previous.js +27 -0
  149. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-previous.js.map +1 -0
  150. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-top.js +28 -0
  151. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-top.js.map +1 -0
  152. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots.js +36 -0
  153. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots.js.map +1 -0
  154. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-page.js +35 -0
  155. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-page.js.map +1 -0
  156. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination.js +5 -2
  157. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination.js.map +1 -1
  158. package/dist/wcardinal/ui/theme/white/d-theme-white.js.map +1 -1
  159. package/dist/wcardinal/ui/theme/white/index.js +7 -3
  160. package/dist/wcardinal/ui/theme/white/index.js.map +1 -1
  161. package/dist/wcardinal/ui/theme/white/load/load-theme-white-pagination.js +14 -6
  162. package/dist/wcardinal/ui/theme/white/load/load-theme-white-pagination.js.map +1 -1
  163. package/dist/wcardinal/ui/util/dynamic-atlas.js.map +1 -1
  164. package/dist/wcardinal/ui/util/dynamic-font-atlas-characters.js.map +1 -1
  165. package/dist/wcardinal/ui/util/dynamic-sdf-font-atlases.js.map +1 -1
  166. package/dist/wcardinal/ui/util/format-node/{format-noder-d.js → format-node-rd.js} +1 -1
  167. package/dist/wcardinal/ui/util/format-node/{format-noder-d.js.map → format-node-rd.js.map} +1 -1
  168. package/dist/wcardinal/ui/util/format-node/index.js +36 -0
  169. package/dist/wcardinal/ui/util/format-node/index.js.map +1 -0
  170. package/dist/wcardinal/ui/util/index.js +5 -0
  171. package/dist/wcardinal/ui/util/index.js.map +1 -1
  172. package/dist/wcardinal/ui/util/number-formatter-impl.js +1 -1
  173. package/dist/wcardinal/ui/util/number-formatter-impl.js.map +1 -1
  174. package/dist/wcardinal/ui/util/util-name.js.map +1 -1
  175. package/dist/wcardinal/ui/util/util-svg-atlas-builder.js.map +1 -1
  176. package/dist/wcardinal-ui-theme-dark.js +163 -39
  177. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  178. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  179. package/dist/wcardinal-ui-theme-white.js +163 -39
  180. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  181. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  182. package/dist/wcardinal-ui.cjs.js +999 -446
  183. package/dist/wcardinal-ui.js +675 -370
  184. package/dist/wcardinal-ui.min.js +2 -2
  185. package/dist/wcardinal-ui.min.js.map +1 -1
  186. package/package.json +3 -3
  187. package/dist/types/wcardinal/ui/d-pagination-dots-button.d.ts +0 -8
  188. package/dist/types/wcardinal/ui/d-pagination-dynamic-buttons.d.ts +0 -21
  189. package/dist/types/wcardinal/ui/d-pagination-navigation-button.d.ts +0 -8
  190. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots-button.d.ts +0 -9
  191. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-dynamic-buttons.d.ts +0 -6
  192. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-navigation-button.d.ts +0 -4
  193. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-dots-button.d.ts +0 -9
  194. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-dynamic-buttons.d.ts +0 -6
  195. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-navigation-button.d.ts +0 -4
  196. package/dist/wcardinal/ui/d-pagination-dots-button.js +0 -18
  197. package/dist/wcardinal/ui/d-pagination-dots-button.js.map +0 -1
  198. package/dist/wcardinal/ui/d-pagination-dynamic-buttons.js +0 -81
  199. package/dist/wcardinal/ui/d-pagination-dynamic-buttons.js.map +0 -1
  200. package/dist/wcardinal/ui/d-pagination-navigation-button.js +0 -18
  201. package/dist/wcardinal/ui/d-pagination-navigation-button.js.map +0 -1
  202. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots-button.js +0 -24
  203. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots-button.js.map +0 -1
  204. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dynamic-buttons.js +0 -18
  205. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dynamic-buttons.js.map +0 -1
  206. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-navigation-button.js +0 -32
  207. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-navigation-button.js.map +0 -1
  208. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots-button.js +0 -24
  209. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots-button.js.map +0 -1
  210. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dynamic-buttons.js +0 -18
  211. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dynamic-buttons.js.map +0 -1
  212. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-navigation-button.js +0 -32
  213. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-navigation-button.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cA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,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./load\";\nexport * from \"./d-theme-white-atlas\";\nexport * from \"./d-theme-white-base\";\nexport * from \"./d-theme-white-board\";\nexport * from \"./d-theme-white-button-ambient\";\nexport * from \"./d-theme-white-button-base\";\nexport * from \"./d-theme-white-button-check\";\nexport * from \"./d-theme-white-button-check-right\";\nexport * from \"./d-theme-white-button-checks\";\nexport * from \"./d-theme-white-button-color-gradient\";\nexport * from \"./d-theme-white-button-color\";\nexport * from \"./d-theme-white-button-danger\";\nexport * from \"./d-theme-white-button-date\";\nexport * from \"./d-theme-white-button-datetime\";\nexport * from \"./d-theme-white-button-file\";\nexport * from \"./d-theme-white-button-link\";\nexport * from \"./d-theme-white-button-primary\";\nexport * from \"./d-theme-white-button-radio-right\";\nexport * from \"./d-theme-white-button-radio\";\nexport * from \"./d-theme-white-button-secondary\";\nexport * from \"./d-theme-white-button-time\";\nexport * from \"./d-theme-white-button\";\nexport * from \"./d-theme-white-canvas-container\";\nexport * from \"./d-theme-white-canvas\";\nexport * from \"./d-theme-white-chart-axis-base\";\nexport * from \"./d-theme-white-chart-axis-x-datetime\";\nexport * from \"./d-theme-white-chart-axis-x\";\nexport * from \"./d-theme-white-chart-axis-y\";\nexport * from \"./d-theme-white-chart-coordinate-tick\";\nexport * from \"./d-theme-white-chart-coordinate-transform\";\nexport * from \"./d-theme-white-chart-coordinate\";\nexport * from \"./d-theme-white-chart-legend-item\";\nexport * from \"./d-theme-white-chart-legend\";\nexport * from \"./d-theme-white-chart-overview\";\nexport * from \"./d-theme-white-chart-plot-area\";\nexport * from \"./d-theme-white-chart\";\nexport * from \"./d-theme-white-content\";\nexport * from \"./d-theme-white-diagram-base\";\nexport * from \"./d-theme-white-diagram-canvas-base\";\nexport * from \"./d-theme-white-diagram-canvas-editor\";\nexport * from \"./d-theme-white-diagram-canvas\";\nexport * from \"./d-theme-white-diagram-editor\";\nexport * from \"./d-theme-white-diagram\";\nexport * from \"./d-theme-white-dialog-color-gradient\";\nexport * from \"./d-theme-white-dialog-color\";\nexport * from \"./d-theme-white-dialog-command\";\nexport * from \"./d-theme-white-dialog-confirm-delete\";\nexport * from \"./d-theme-white-dialog-confirm-discard\";\nexport * from \"./d-theme-white-dialog-confirm-message\";\nexport * from \"./d-theme-white-dialog-confirm\";\nexport * from \"./d-theme-white-dialog-date\";\nexport * from \"./d-theme-white-dialog-datetime\";\nexport * from \"./d-theme-white-dialog-input-boolean\";\nexport * from \"./d-theme-white-dialog-input-integer\";\nexport * from \"./d-theme-white-dialog-input-real\";\nexport * from \"./d-theme-white-dialog-input-text\";\nexport * from \"./d-theme-white-dialog-input\";\nexport * from \"./d-theme-white-dialog-message\";\nexport * from \"./d-theme-white-dialog-processing-message\";\nexport * from \"./d-theme-white-dialog-processing\";\nexport * from \"./d-theme-white-dialog-save-as\";\nexport * from \"./d-theme-white-dialog-select-list-item\";\nexport * from \"./d-theme-white-dialog-select-list\";\nexport * from \"./d-theme-white-dialog-select\";\nexport * from \"./d-theme-white-dialog-time\";\nexport * from \"./d-theme-white-dialog\";\nexport * from \"./d-theme-white-dropdown\";\nexport * from \"./d-theme-white-expandable-header\";\nexport * from \"./d-theme-white-expandable\";\nexport * from \"./d-theme-white-font\";\nexport * from \"./d-theme-white-html-element\";\nexport * from \"./d-theme-white-image-base\";\nexport * from \"./d-theme-white-image\";\nexport * from \"./d-theme-white-input-and-label\";\nexport * from \"./d-theme-white-input-boolean-button-off\";\nexport * from \"./d-theme-white-input-boolean-button-on\";\nexport * from \"./d-theme-white-input-boolean\";\nexport * from \"./d-theme-white-input-input\";\nexport * from \"./d-theme-white-input-integer\";\nexport * from \"./d-theme-white-input-label\";\nexport * from \"./d-theme-white-input-number\";\nexport * from \"./d-theme-white-input-real\";\nexport * from \"./d-theme-white-input-search\";\nexport * from \"./d-theme-white-input-text-area\";\nexport * from \"./d-theme-white-input-text\";\nexport * from \"./d-theme-white-input\";\nexport * from \"./d-theme-white-layout-horizontal\";\nexport * from \"./d-theme-white-layout-space\";\nexport * from \"./d-theme-white-layout-vertical\";\nexport * from \"./d-theme-white-layout\";\nexport * from \"./d-theme-white-link\";\nexport * from \"./d-theme-white-list-item-ambient\";\nexport * from \"./d-theme-white-list-item\";\nexport * from \"./d-theme-white-list-items\";\nexport * from \"./d-theme-white-list\";\nexport * from \"./d-theme-white-menu-bar-item\";\nexport * from \"./d-theme-white-menu-bar\";\nexport * from \"./d-theme-white-menu-item-base\";\nexport * from \"./d-theme-white-menu-item-check\";\nexport * from \"./d-theme-white-menu-item-expandable-body\";\nexport * from \"./d-theme-white-menu-item-expandable-header\";\nexport * from \"./d-theme-white-menu-item-expandable-item-check\";\nexport * from \"./d-theme-white-menu-item-expandable-item-link\";\nexport * from \"./d-theme-white-menu-item-expandable-item-menu\";\nexport * from \"./d-theme-white-menu-item-expandable-item-separator\";\nexport * from \"./d-theme-white-menu-item-expandable-item-space\";\nexport * from \"./d-theme-white-menu-item-expandable-item-text\";\nexport * from \"./d-theme-white-menu-item-expandable\";\nexport * from \"./d-theme-white-menu-item-link\";\nexport * from \"./d-theme-white-menu-item-menu\";\nexport * from \"./d-theme-white-menu-item-separator\";\nexport * from \"./d-theme-white-menu-item-space\";\nexport * from \"./d-theme-white-menu-item-text\";\nexport * from \"./d-theme-white-menu-item\";\nexport * from \"./d-theme-white-menu-sided-content\";\nexport * from \"./d-theme-white-menu-sided-item-check\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-check\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-link\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-menu\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-separator\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-space\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-text\";\nexport * from \"./d-theme-white-menu-sided-item-expandable\";\nexport * from \"./d-theme-white-menu-sided-item-link\";\nexport * from \"./d-theme-white-menu-sided-item-menu\";\nexport * from \"./d-theme-white-menu-sided-item-separator\";\nexport * from \"./d-theme-white-menu-sided-item-space\";\nexport * from \"./d-theme-white-menu-sided-item-text\";\nexport * from \"./d-theme-white-menu-sided\";\nexport * from \"./d-theme-white-menu\";\nexport * from \"./d-theme-white-note-error\";\nexport * from \"./d-theme-white-note-no-items-found\";\nexport * from \"./d-theme-white-note-searching\";\nexport * from \"./d-theme-white-note-small-error\";\nexport * from \"./d-theme-white-note-small-no-items-found\";\nexport * from \"./d-theme-white-note-small-searching\";\nexport * from \"./d-theme-white-note-small\";\nexport * from \"./d-theme-white-note\";\nexport * from \"./d-theme-white-pagination\";\nexport * from \"./d-theme-white-pagination-navigation-button\";\nexport * from \"./d-theme-white-pagination-dynamic-buttons\";\nexport * from \"./d-theme-white-pagination-dots-button\";\nexport * from \"./d-theme-white-pane\";\nexport * from \"./d-theme-white-picker-color-gradient\";\nexport * from \"./d-theme-white-picker-color\";\nexport * from \"./d-theme-white-picker-date\";\nexport * from \"./d-theme-white-picker-datetime-button-back\";\nexport * from \"./d-theme-white-picker-datetime-button-date\";\nexport * from \"./d-theme-white-picker-datetime-button-next\";\nexport * from \"./d-theme-white-picker-datetime-label-date\";\nexport * from \"./d-theme-white-picker-datetime-label\";\nexport * from \"./d-theme-white-picker-datetime-space\";\nexport * from \"./d-theme-white-picker-datetime\";\nexport * from \"./d-theme-white-picker-time\";\nexport * from \"./d-theme-white-scroll-bar-thumb\";\nexport * from \"./d-theme-white-scroll-bar\";\nexport * from \"./d-theme-white-select-multiple\";\nexport * from \"./d-theme-white-select\";\nexport * from \"./d-theme-white-slider\";\nexport * from \"./d-theme-white-slider-horizontal\";\nexport * from \"./d-theme-white-slider-label\";\nexport * from \"./d-theme-white-slider-thumb\";\nexport * from \"./d-theme-white-slider-track\";\nexport * from \"./d-theme-white-slider-track-horizontal\";\nexport * from \"./d-theme-white-slider-track-vertical\";\nexport * from \"./d-theme-white-slider-value\";\nexport * from \"./d-theme-white-slider-vertical\";\nexport * from \"./d-theme-white-table-body-cell-button\";\nexport * from \"./d-theme-white-table-body-cell-check\";\nexport * from \"./d-theme-white-table-body-cell-color\";\nexport * from \"./d-theme-white-table-body-cell-date\";\nexport * from \"./d-theme-white-table-body-cell-datetime\";\nexport * from \"./d-theme-white-table-body-cell-index\";\nexport * from \"./d-theme-white-table-body-cell-input-integer\";\nexport * from \"./d-theme-white-table-body-cell-input-real\";\nexport * from \"./d-theme-white-table-body-cell-input-text\";\nexport * from \"./d-theme-white-table-body-cell-link\";\nexport * from \"./d-theme-white-table-body-cell-select-dialog\";\nexport * from \"./d-theme-white-table-body-cell-select-menu\";\nexport * from \"./d-theme-white-table-body-cell-select-promise\";\nexport * from \"./d-theme-white-table-body-cell-text\";\nexport * from \"./d-theme-white-table-body-cell-time\";\nexport * from \"./d-theme-white-table-body-cells\";\nexport * from \"./d-theme-white-table-body-row\";\nexport * from \"./d-theme-white-table-body\";\nexport * from \"./d-theme-white-table-category-cell\";\nexport * from \"./d-theme-white-table-category\";\nexport * from \"./d-theme-white-table-header-cell\";\nexport * from \"./d-theme-white-table-header\";\nexport * from \"./d-theme-white-table-row\";\nexport * from \"./d-theme-white-table\";\nexport * from \"./d-theme-white-text-base\";\nexport * from \"./d-theme-white-text\";\nexport * from \"./d-theme-white-tree-item-button\";\nexport * from \"./d-theme-white-tree-item-non-editable\";\nexport * from \"./d-theme-white-tree-item-text\";\nexport * from \"./d-theme-white-tree-items\";\nexport * from \"./d-theme-white-tree\";\nexport * from \"./d-theme-white-view\";\nexport * from \"./d-theme-white\";\nexport * from \"./e-theme-white-shape-action-value\";\nexport * from \"./e-theme-white-shape\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,QA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C5D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./load\";\nexport * from \"./d-theme-white-atlas\";\nexport * from \"./d-theme-white-base\";\nexport * from \"./d-theme-white-board\";\nexport * from \"./d-theme-white-button-ambient\";\nexport * from \"./d-theme-white-button-base\";\nexport * from \"./d-theme-white-button-check\";\nexport * from \"./d-theme-white-button-check-right\";\nexport * from \"./d-theme-white-button-checks\";\nexport * from \"./d-theme-white-button-color-gradient\";\nexport * from \"./d-theme-white-button-color\";\nexport * from \"./d-theme-white-button-danger\";\nexport * from \"./d-theme-white-button-date\";\nexport * from \"./d-theme-white-button-datetime\";\nexport * from \"./d-theme-white-button-file\";\nexport * from \"./d-theme-white-button-link\";\nexport * from \"./d-theme-white-button-primary\";\nexport * from \"./d-theme-white-button-radio-right\";\nexport * from \"./d-theme-white-button-radio\";\nexport * from \"./d-theme-white-button-secondary\";\nexport * from \"./d-theme-white-button-time\";\nexport * from \"./d-theme-white-button\";\nexport * from \"./d-theme-white-canvas-container\";\nexport * from \"./d-theme-white-canvas\";\nexport * from \"./d-theme-white-chart-axis-base\";\nexport * from \"./d-theme-white-chart-axis-x-datetime\";\nexport * from \"./d-theme-white-chart-axis-x\";\nexport * from \"./d-theme-white-chart-axis-y\";\nexport * from \"./d-theme-white-chart-coordinate-tick\";\nexport * from \"./d-theme-white-chart-coordinate-transform\";\nexport * from \"./d-theme-white-chart-coordinate\";\nexport * from \"./d-theme-white-chart-legend-item\";\nexport * from \"./d-theme-white-chart-legend\";\nexport * from \"./d-theme-white-chart-overview\";\nexport * from \"./d-theme-white-chart-plot-area\";\nexport * from \"./d-theme-white-chart\";\nexport * from \"./d-theme-white-content\";\nexport * from \"./d-theme-white-diagram-base\";\nexport * from \"./d-theme-white-diagram-canvas-base\";\nexport * from \"./d-theme-white-diagram-canvas-editor\";\nexport * from \"./d-theme-white-diagram-canvas\";\nexport * from \"./d-theme-white-diagram-editor\";\nexport * from \"./d-theme-white-diagram\";\nexport * from \"./d-theme-white-dialog-color-gradient\";\nexport * from \"./d-theme-white-dialog-color\";\nexport * from \"./d-theme-white-dialog-command\";\nexport * from \"./d-theme-white-dialog-confirm-delete\";\nexport * from \"./d-theme-white-dialog-confirm-discard\";\nexport * from \"./d-theme-white-dialog-confirm-message\";\nexport * from \"./d-theme-white-dialog-confirm\";\nexport * from \"./d-theme-white-dialog-date\";\nexport * from \"./d-theme-white-dialog-datetime\";\nexport * from \"./d-theme-white-dialog-input-boolean\";\nexport * from \"./d-theme-white-dialog-input-integer\";\nexport * from \"./d-theme-white-dialog-input-real\";\nexport * from \"./d-theme-white-dialog-input-text\";\nexport * from \"./d-theme-white-dialog-input\";\nexport * from \"./d-theme-white-dialog-message\";\nexport * from \"./d-theme-white-dialog-processing-message\";\nexport * from \"./d-theme-white-dialog-processing\";\nexport * from \"./d-theme-white-dialog-save-as\";\nexport * from \"./d-theme-white-dialog-select-list-item\";\nexport * from \"./d-theme-white-dialog-select-list\";\nexport * from \"./d-theme-white-dialog-select\";\nexport * from \"./d-theme-white-dialog-time\";\nexport * from \"./d-theme-white-dialog\";\nexport * from \"./d-theme-white-dropdown\";\nexport * from \"./d-theme-white-expandable-header\";\nexport * from \"./d-theme-white-expandable\";\nexport * from \"./d-theme-white-font\";\nexport * from \"./d-theme-white-html-element\";\nexport * from \"./d-theme-white-image-base\";\nexport * from \"./d-theme-white-image\";\nexport * from \"./d-theme-white-input-and-label\";\nexport * from \"./d-theme-white-input-boolean-button-off\";\nexport * from \"./d-theme-white-input-boolean-button-on\";\nexport * from \"./d-theme-white-input-boolean\";\nexport * from \"./d-theme-white-input-input\";\nexport * from \"./d-theme-white-input-integer\";\nexport * from \"./d-theme-white-input-label\";\nexport * from \"./d-theme-white-input-number\";\nexport * from \"./d-theme-white-input-real\";\nexport * from \"./d-theme-white-input-search\";\nexport * from \"./d-theme-white-input-text-area\";\nexport * from \"./d-theme-white-input-text\";\nexport * from \"./d-theme-white-input\";\nexport * from \"./d-theme-white-layout-horizontal\";\nexport * from \"./d-theme-white-layout-space\";\nexport * from \"./d-theme-white-layout-vertical\";\nexport * from \"./d-theme-white-layout\";\nexport * from \"./d-theme-white-link\";\nexport * from \"./d-theme-white-list-item-ambient\";\nexport * from \"./d-theme-white-list-item\";\nexport * from \"./d-theme-white-list-items\";\nexport * from \"./d-theme-white-list\";\nexport * from \"./d-theme-white-menu-bar-item\";\nexport * from \"./d-theme-white-menu-bar\";\nexport * from \"./d-theme-white-menu-item-base\";\nexport * from \"./d-theme-white-menu-item-check\";\nexport * from \"./d-theme-white-menu-item-expandable-body\";\nexport * from \"./d-theme-white-menu-item-expandable-header\";\nexport * from \"./d-theme-white-menu-item-expandable-item-check\";\nexport * from \"./d-theme-white-menu-item-expandable-item-link\";\nexport * from \"./d-theme-white-menu-item-expandable-item-menu\";\nexport * from \"./d-theme-white-menu-item-expandable-item-separator\";\nexport * from \"./d-theme-white-menu-item-expandable-item-space\";\nexport * from \"./d-theme-white-menu-item-expandable-item-text\";\nexport * from \"./d-theme-white-menu-item-expandable\";\nexport * from \"./d-theme-white-menu-item-link\";\nexport * from \"./d-theme-white-menu-item-menu\";\nexport * from \"./d-theme-white-menu-item-separator\";\nexport * from \"./d-theme-white-menu-item-space\";\nexport * from \"./d-theme-white-menu-item-text\";\nexport * from \"./d-theme-white-menu-item\";\nexport * from \"./d-theme-white-menu-sided-content\";\nexport * from \"./d-theme-white-menu-sided-item-check\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-check\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-link\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-menu\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-separator\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-space\";\nexport * from \"./d-theme-white-menu-sided-item-expandable-item-text\";\nexport * from \"./d-theme-white-menu-sided-item-expandable\";\nexport * from \"./d-theme-white-menu-sided-item-link\";\nexport * from \"./d-theme-white-menu-sided-item-menu\";\nexport * from \"./d-theme-white-menu-sided-item-separator\";\nexport * from \"./d-theme-white-menu-sided-item-space\";\nexport * from \"./d-theme-white-menu-sided-item-text\";\nexport * from \"./d-theme-white-menu-sided\";\nexport * from \"./d-theme-white-menu\";\nexport * from \"./d-theme-white-note-error\";\nexport * from \"./d-theme-white-note-no-items-found\";\nexport * from \"./d-theme-white-note-searching\";\nexport * from \"./d-theme-white-note-small-error\";\nexport * from \"./d-theme-white-note-small-no-items-found\";\nexport * from \"./d-theme-white-note-small-searching\";\nexport * from \"./d-theme-white-note-small\";\nexport * from \"./d-theme-white-note\";\nexport * from \"./d-theme-white-pagination-button-last\";\nexport * from \"./d-theme-white-pagination-button-next\";\nexport * from \"./d-theme-white-pagination-button-page\";\nexport * from \"./d-theme-white-pagination-button-previous\";\nexport * from \"./d-theme-white-pagination-button-top\";\nexport * from \"./d-theme-white-pagination-dots\";\nexport * from \"./d-theme-white-pagination-page\";\nexport * from \"./d-theme-white-pagination\";\nexport * from \"./d-theme-white-pane\";\nexport * from \"./d-theme-white-picker-color-gradient\";\nexport * from \"./d-theme-white-picker-color\";\nexport * from \"./d-theme-white-picker-date\";\nexport * from \"./d-theme-white-picker-datetime-button-back\";\nexport * from \"./d-theme-white-picker-datetime-button-date\";\nexport * from \"./d-theme-white-picker-datetime-button-next\";\nexport * from \"./d-theme-white-picker-datetime-label-date\";\nexport * from \"./d-theme-white-picker-datetime-label\";\nexport * from \"./d-theme-white-picker-datetime-space\";\nexport * from \"./d-theme-white-picker-datetime\";\nexport * from \"./d-theme-white-picker-time\";\nexport * from \"./d-theme-white-scroll-bar-thumb\";\nexport * from \"./d-theme-white-scroll-bar\";\nexport * from \"./d-theme-white-select-multiple\";\nexport * from \"./d-theme-white-select\";\nexport * from \"./d-theme-white-slider\";\nexport * from \"./d-theme-white-slider-horizontal\";\nexport * from \"./d-theme-white-slider-label\";\nexport * from \"./d-theme-white-slider-thumb\";\nexport * from \"./d-theme-white-slider-track\";\nexport * from \"./d-theme-white-slider-track-horizontal\";\nexport * from \"./d-theme-white-slider-track-vertical\";\nexport * from \"./d-theme-white-slider-value\";\nexport * from \"./d-theme-white-slider-vertical\";\nexport * from \"./d-theme-white-table-body-cell-button\";\nexport * from \"./d-theme-white-table-body-cell-check\";\nexport * from \"./d-theme-white-table-body-cell-color\";\nexport * from \"./d-theme-white-table-body-cell-date\";\nexport * from \"./d-theme-white-table-body-cell-datetime\";\nexport * from \"./d-theme-white-table-body-cell-index\";\nexport * from \"./d-theme-white-table-body-cell-input-integer\";\nexport * from \"./d-theme-white-table-body-cell-input-real\";\nexport * from \"./d-theme-white-table-body-cell-input-text\";\nexport * from \"./d-theme-white-table-body-cell-link\";\nexport * from \"./d-theme-white-table-body-cell-select-dialog\";\nexport * from \"./d-theme-white-table-body-cell-select-menu\";\nexport * from \"./d-theme-white-table-body-cell-select-promise\";\nexport * from \"./d-theme-white-table-body-cell-text\";\nexport * from \"./d-theme-white-table-body-cell-time\";\nexport * from \"./d-theme-white-table-body-cells\";\nexport * from \"./d-theme-white-table-body-row\";\nexport * from \"./d-theme-white-table-body\";\nexport * from \"./d-theme-white-table-category-cell\";\nexport * from \"./d-theme-white-table-category\";\nexport * from \"./d-theme-white-table-header-cell\";\nexport * from \"./d-theme-white-table-header\";\nexport * from \"./d-theme-white-table-row\";\nexport * from \"./d-theme-white-table\";\nexport * from \"./d-theme-white-text-base\";\nexport * from \"./d-theme-white-text\";\nexport * from \"./d-theme-white-tree-item-button\";\nexport * from \"./d-theme-white-tree-item-non-editable\";\nexport * from \"./d-theme-white-tree-item-text\";\nexport * from \"./d-theme-white-tree-items\";\nexport * from \"./d-theme-white-tree\";\nexport * from \"./d-theme-white-view\";\nexport * from \"./d-theme-white\";\nexport * from \"./e-theme-white-shape-action-value\";\nexport * from \"./e-theme-white-shape\";\n"]}
@@ -4,13 +4,21 @@
4
4
  */
5
5
  import { DThemeWhite } from "../d-theme-white";
6
6
  import { DThemeWhitePagination } from "../d-theme-white-pagination";
7
- import { DThemeWhitePaginationDotsButton } from "../d-theme-white-pagination-dots-button";
8
- import { DThemeWhitePaginationDynamicButtons } from "../d-theme-white-pagination-dynamic-buttons";
9
- import { DThemeWhitePaginationNavigationButton } from "../d-theme-white-pagination-navigation-button";
7
+ import { DThemeWhitePaginationDots } from "../d-theme-white-pagination-dots";
8
+ import { DThemeWhitePaginationButtonLast } from "../d-theme-white-pagination-button-last";
9
+ import { DThemeWhitePaginationButtonNext } from "../d-theme-white-pagination-button-next";
10
+ import { DThemeWhitePaginationButtonPage } from "../d-theme-white-pagination-button-page";
11
+ import { DThemeWhitePaginationButtonPrevious } from "../d-theme-white-pagination-button-previous";
12
+ import { DThemeWhitePaginationButtonTop } from "../d-theme-white-pagination-button-top";
13
+ import { DThemeWhitePaginationPage } from "../d-theme-white-pagination-page";
10
14
  export var loadThemeWhitePagination = function () {
11
15
  DThemeWhite.set("DPagination", DThemeWhitePagination);
12
- DThemeWhite.set("DPaginationNavigationButton", DThemeWhitePaginationNavigationButton);
13
- DThemeWhite.set("DPaginationDynamicButtons", DThemeWhitePaginationDynamicButtons);
14
- DThemeWhite.set("DPaginationDotsButton", DThemeWhitePaginationDotsButton);
16
+ DThemeWhite.set("DPaginationPage", DThemeWhitePaginationPage);
17
+ DThemeWhite.set("DPaginationDots", DThemeWhitePaginationDots);
18
+ DThemeWhite.set("DPaginationButtonLast", DThemeWhitePaginationButtonLast);
19
+ DThemeWhite.set("DPaginationButtonNext", DThemeWhitePaginationButtonNext);
20
+ DThemeWhite.set("DPaginationButtonPage", DThemeWhitePaginationButtonPage);
21
+ DThemeWhite.set("DPaginationButtonPrevious", DThemeWhitePaginationButtonPrevious);
22
+ DThemeWhite.set("DPaginationButtonTop", DThemeWhitePaginationButtonTop);
15
23
  };
16
24
  //# sourceMappingURL=load-theme-white-pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"load-theme-white-pagination.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/wcardinal/ui/theme/white/load/load-theme-white-pagination.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,mCAAmC,EAAE,MAAM,6CAA6C,CAAC;AAClG,OAAO,EAAE,qCAAqC,EAAE,MAAM,+CAA+C,CAAC;AAEtG,MAAM,CAAC,IAAM,wBAAwB,GAAG;IACvC,WAAW,CAAC,GAAG,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC;IACtD,WAAW,CAAC,GAAG,CAAC,6BAA6B,EAAE,qCAAqC,CAAC,CAAC;IACtF,WAAW,CAAC,GAAG,CAAC,2BAA2B,EAAE,mCAAmC,CAAC,CAAC;IAClF,WAAW,CAAC,GAAG,CAAC,uBAAuB,EAAE,+BAA+B,CAAC,CAAC;AAC3E,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DThemeWhite } from \"../d-theme-white\";\nimport { DThemeWhitePagination } from \"../d-theme-white-pagination\";\nimport { DThemeWhitePaginationDotsButton } from \"../d-theme-white-pagination-dots-button\";\nimport { DThemeWhitePaginationDynamicButtons } from \"../d-theme-white-pagination-dynamic-buttons\";\nimport { DThemeWhitePaginationNavigationButton } from \"../d-theme-white-pagination-navigation-button\";\n\nexport const loadThemeWhitePagination = (): void => {\n\tDThemeWhite.set(\"DPagination\", DThemeWhitePagination);\n\tDThemeWhite.set(\"DPaginationNavigationButton\", DThemeWhitePaginationNavigationButton);\n\tDThemeWhite.set(\"DPaginationDynamicButtons\", DThemeWhitePaginationDynamicButtons);\n\tDThemeWhite.set(\"DPaginationDotsButton\", DThemeWhitePaginationDotsButton);\n};\n"]}
1
+ {"version":3,"file":"load-theme-white-pagination.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/wcardinal/ui/theme/white/load/load-theme-white-pagination.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,mCAAmC,EAAE,MAAM,6CAA6C,CAAC;AAClG,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,MAAM,CAAC,IAAM,wBAAwB,GAAG;IACvC,WAAW,CAAC,GAAG,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC;IACtD,WAAW,CAAC,GAAG,CAAC,iBAAiB,EAAE,yBAAyB,CAAC,CAAC;IAC9D,WAAW,CAAC,GAAG,CAAC,iBAAiB,EAAE,yBAAyB,CAAC,CAAC;IAC9D,WAAW,CAAC,GAAG,CAAC,uBAAuB,EAAE,+BAA+B,CAAC,CAAC;IAC1E,WAAW,CAAC,GAAG,CAAC,uBAAuB,EAAE,+BAA+B,CAAC,CAAC;IAC1E,WAAW,CAAC,GAAG,CAAC,uBAAuB,EAAE,+BAA+B,CAAC,CAAC;IAC1E,WAAW,CAAC,GAAG,CAAC,2BAA2B,EAAE,mCAAmC,CAAC,CAAC;IAClF,WAAW,CAAC,GAAG,CAAC,sBAAsB,EAAE,8BAA8B,CAAC,CAAC;AACzE,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DThemeWhite } from \"../d-theme-white\";\nimport { DThemeWhitePagination } from \"../d-theme-white-pagination\";\nimport { DThemeWhitePaginationDots } from \"../d-theme-white-pagination-dots\";\nimport { DThemeWhitePaginationButtonLast } from \"../d-theme-white-pagination-button-last\";\nimport { DThemeWhitePaginationButtonNext } from \"../d-theme-white-pagination-button-next\";\nimport { DThemeWhitePaginationButtonPage } from \"../d-theme-white-pagination-button-page\";\nimport { DThemeWhitePaginationButtonPrevious } from \"../d-theme-white-pagination-button-previous\";\nimport { DThemeWhitePaginationButtonTop } from \"../d-theme-white-pagination-button-top\";\nimport { DThemeWhitePaginationPage } from \"../d-theme-white-pagination-page\";\n\nexport const loadThemeWhitePagination = (): void => {\n\tDThemeWhite.set(\"DPagination\", DThemeWhitePagination);\n\tDThemeWhite.set(\"DPaginationPage\", DThemeWhitePaginationPage);\n\tDThemeWhite.set(\"DPaginationDots\", DThemeWhitePaginationDots);\n\tDThemeWhite.set(\"DPaginationButtonLast\", DThemeWhitePaginationButtonLast);\n\tDThemeWhite.set(\"DPaginationButtonNext\", DThemeWhitePaginationButtonNext);\n\tDThemeWhite.set(\"DPaginationButtonPage\", DThemeWhitePaginationButtonPage);\n\tDThemeWhite.set(\"DPaginationButtonPrevious\", DThemeWhitePaginationButtonPrevious);\n\tDThemeWhite.set(\"DPaginationButtonTop\", DThemeWhitePaginationButtonTop);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-atlas.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/dynamic-atlas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAW,MAAM,SAAS,CAAC;AAE7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAElC;IAUC,sBAAY,UAAkB;QAC7B,IAAM,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;QAEnC,IAAM,WAAW,GAAG,CAAC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE;YACjE,MAAM,EAAE,YAAY,CAAC,GAAG;YACxB,UAAU,YAAA;SACV,CAAC,CAAC,CAAC;QAEJ,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG;YAClB,KAAK,EAAE,IAAI,qBAAqB,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC;YACjE,KAAK,EAAE,IAAI,qBAAqB,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE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EAAE;gBACf,OAAO,CAAC,CAAC;aACT;iBAAM;gBACN,OAAO,CAAC,CAAC,CAAC;aACV;SACD;aAAM;YACN,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE;gBACf,OAAO,CAAC,CAAC,CAAC;aACV;SACD;QAED,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE;YACpC,OAAO,CAAC,CAAC,CAAC;SACV;aAAM,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE;YAC3C,OAAO,CAAC,CAAC,CAAC;SACV;aAAM;YACN,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;SACrC;IACF,CAAC,CAAC;IACH,mBAAC;CAAA,AAlND,IAkNC;SAlNY,YAAY","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { BaseTexture, MIPMAP_MODES, Texture } from \"pixi.js\";\nimport { DynamicAtlasItem } from \"./dynamic-atlas-item\";\nimport { DynamicAtlasItemEmpty } from \"./dynamic-atlas-item-empty\";\nimport { DynamicAtlasItemWhite } from \"./dynamic-atlas-item-white\";\n\nconst MAXIMUM_TEXTURE_SIZE = 4096;\n\nexport class DynamicAtlas {\n\tprotected static INSTANCE: DynamicAtlas | null;\n\n\tprotected _canvas: HTMLCanvasElement;\n\tprotected _sortedData: DynamicAtlasItem[];\n\tprotected _idToDatum: { [id: string]: DynamicAtlasItem };\n\tprotected _baseTexture: BaseTexture;\n\tprotected _isDirty: boolean;\n\tprotected _predefined: { [id: string]: DynamicAtlasItem };\n\n\tconstructor(resolution: number) {\n\t\tconst canvas = (this._canvas = document.createElement(\"canvas\"));\n\t\tcanvas.width = canvas.height = 256;\n\n\t\tconst baseTexture = (this._baseTexture = BaseTexture.from(canvas, {\n\t\t\tmipmap: MIPMAP_MODES.OFF,\n\t\t\tresolution\n\t\t}));\n\n\t\tthis._idToDatum = {};\n\t\tthis._sortedData = [];\n\t\tthis._predefined = {\n\t\t\tempty: new DynamicAtlasItemEmpty(\"empty\", 10, 10, 0, baseTexture),\n\t\t\twhite: new DynamicAtlasItemWhite(\"white\", 10, 10, 0, baseTexture)\n\t\t};\n\n\t\tthis._isDirty = true;\n\t}\n\n\tupdateFrames(width: number, data: DynamicAtlasItem[]): number {\n\t\tconst padding = 4;\n\t\tlet x = padding;\n\t\tlet y = padding;\n\t\tlet maxRowHeight = 0;\n\t\tfor (let i = 0, imax = data.length; i < imax; ++i) {\n\t\t\tconst datum = data[i];\n\t\t\tif (width < x + datum.frame.width + padding) {\n\t\t\t\tx = padding;\n\t\t\t\ty += maxRowHeight + padding;\n\t\t\t\tmaxRowHeight = 0;\n\t\t\t}\n\t\t\tdatum.frame.x = x | 0;\n\t\t\tdatum.frame.y = y | 0;\n\t\t\tx += datum.frame.width + padding;\n\t\t\tmaxRowHeight = Math.max(maxRowHeight, datum.frame.height);\n\t\t}\n\n\t\tconst minHeight = y + maxRowHeight + padding;\n\t\tlet result = 256;\n\t\twhile (result < minHeight) {\n\t\t\tresult <<= 1;\n\t\t}\n\t\treturn Math.min(MAXIMUM_TEXTURE_SIZE, result);\n\t}\n\n\trenderFrames(width: number, height: number, data: DynamicAtlasItem[]): void {\n\t\tconst canvas = this._canvas;\n\t\tcanvas.width = width;\n\t\tcanvas.height = height;\n\t\tconst context = canvas.getContext(\"2d\");\n\t\tif (context != null) {\n\t\t\tfor (let i = 0, imax = data.length; i < imax; ++i) {\n\t\t\t\tconst datum = data[i];\n\t\t\t\tdatum.render(context);\n\t\t\t}\n\t\t}\n\t}\n\n\tapplyFrames(data: DynamicAtlasItem[]): void {\n\t\tfor (let i = 0, imax = data.length; i < imax; ++i) {\n\t\t\tconst datum = data[i];\n\t\t\tdatum.applyFrame();\n\t\t}\n\t}\n\n\tcalcCanvasWidth(data: DynamicAtlasItem[]): number {\n\t\tlet result = 128;\n\t\tfor (let i = data.length - 1; 0 <= i; --i) {\n\t\t\tconst datum = data[i];\n\t\t\tconst size = Math.max(datum.frame.width, datum.frame.height);\n\t\t\twhile (result < size) {\n\t\t\t\tresult <<= 1;\n\t\t\t}\n\t\t}\n\t\treturn Math.min(MAXIMUM_TEXTURE_SIZE, result << 1);\n\t}\n\n\tcleanup(data: DynamicAtlasItem[]): void {\n\t\tdata.sort(DynamicAtlas.ITEM_COMPARATOR);\n\t\tfor (let i = data.length - 1; 0 <= i; --i) {\n\t\t\tconst datum = data[i];\n\t\t\tif (0 < datum.ref) {\n\t\t\t\tdata.length = i + 1;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tdata.length = 0;\n\t}\n\n\tbegin(): void {\n\t\tconst data = this._sortedData;\n\t\tfor (let i = 0, imax = data.length; i < imax; ++i) {\n\t\t\tconst datum = data[i];\n\t\t\tdatum.ref = 0;\n\t\t}\n\n\t\tthis._isDirty = false;\n\t}\n\n\tend(): void {\n\t\tconst idToDatum = this._idToDatum;\n\t\tconst data = this._sortedData;\n\t\tfor (let i = 0, imax = data.length; i < imax; ++i) {\n\t\t\tconst datum = data[i];\n\t\t\tif (datum.ref <= 0) {\n\t\t\t\tif (!(datum.id in this._predefined)) {\n\t\t\t\t\tdatum.destroy();\n\t\t\t\t}\n\t\t\t\tdelete idToDatum[datum.id];\n\t\t\t\tthis._isDirty = true;\n\t\t\t}\n\t\t}\n\t}\n\n\trepack(forcibly?: boolean): void {\n\t\tif (forcibly === true || this._isDirty) {\n\t\t\tthis._isDirty = false;\n\t\t\tconst data = this._sortedData;\n\t\t\tthis.cleanup(data);\n\t\t\tconst canvasWidth = this.calcCanvasWidth(data);\n\t\t\tconst canvasHeight = this.updateFrames(canvasWidth, data);\n\t\t\tthis.renderFrames(canvasWidth, canvasHeight, data);\n\t\t\tthis._baseTexture.setRealSize(canvasWidth, canvasHeight);\n\t\t\tthis.applyFrames(data);\n\t\t}\n\t}\n\n\tget(id: string): DynamicAtlasItem | null {\n\t\tconst idToDatum = this._idToDatum;\n\t\tconst datum = idToDatum[id];\n\t\tif (datum != null) {\n\t\t\tdatum.ref += 1;\n\t\t\treturn datum;\n\t\t} else {\n\t\t\tconst predefined = this._predefined[id];\n\t\t\tif (predefined != null) {\n\t\t\t\tthis.set(id, predefined);\n\t\t\t\treturn predefined;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tset(id: string, item: DynamicAtlasItem): DynamicAtlasItem | undefined {\n\t\tconst result = this._idToDatum[id];\n\t\titem.ref += 1;\n\t\tthis._idToDatum[id] = item;\n\t\tthis._sortedData.push(item);\n\t\tthis._isDirty = true;\n\t\treturn result;\n\t}\n\n\ttoDirty(): void {\n\t\tthis._isDirty = true;\n\t}\n\n\tgetDefaultTexture(): Texture {\n\t\treturn this.get(\"white\")!.texture;\n\t}\n\n\tgetBaseTexture(): BaseTexture {\n\t\treturn this._baseTexture;\n\t}\n\n\trelease(id: string): void {\n\t\tconst idToDatum = this._idToDatum;\n\t\tconst datum = idToDatum[id];\n\t\tif (datum != null) {\n\t\t\tdatum.ref -= 1;\n\t\t\tif (datum.ref <= 0) {\n\t\t\t\tif (!(datum.id in this._predefined)) {\n\t\t\t\t\tdatum.destroy();\n\t\t\t\t}\n\t\t\t\tdelete idToDatum[id];\n\t\t\t\tthis._isDirty = true;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic ITEM_COMPARATOR = (a: DynamicAtlasItem, b: DynamicAtlasItem): number => {\n\t\tif (a.ref <= 0) {\n\t\t\tif (b.ref <= 0) {\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn +1;\n\t\t\t}\n\t\t} else {\n\t\t\tif (b.ref <= 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\n\t\tif (a.frame.height < b.frame.height) {\n\t\t\treturn -1;\n\t\t} else if (b.frame.height < a.frame.height) {\n\t\t\treturn +1;\n\t\t} else {\n\t\t\treturn a.frame.width - b.frame.width;\n\t\t}\n\t};\n}\n"]}
1
+ {"version":3,"file":"dynamic-atlas.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/dynamic-atlas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAW,MAAM,SAAS,CAAC;AAE7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAElC;IAUC,sBAAY,UAAkB;QAC7B,IAAM,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;QAEnC,IAAM,WAAW,GAAG,CAAC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE;YACjE,MAAM,EAAE,YAAY,CAAC,GAAG;YACxB,UAAU,YAAA;SACV,CAAC,CAAC,CAAC;QAEJ,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG;YAClB,KAAK,EAAE,IAAI,qBAAqB,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC;YACjE,KAAK,EAAE,IAAI,qBAAqB,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC;SACjE,CAAC;QAEF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,mCAAY,GAAZ,UAAa,KAAa,EAAE,IAAwB;QACnD,IAAM,OAAO,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,GAAG,OAAO,CAAC;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KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE;YACpC,OAAO,CAAC,CAAC,CAAC;SACV;aAAM,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE;YAC3C,OAAO,CAAC,CAAC,CAAC;SACV;aAAM;YACN,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;SACrC;IACF,CAAC,CAAC;IACH,mBAAC;CAAA,AAlND,IAkNC;SAlNY,YAAY","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { BaseTexture, MIPMAP_MODES, Texture } from \"pixi.js\";\nimport { DynamicAtlasItem } from \"./dynamic-atlas-item\";\nimport { DynamicAtlasItemEmpty } from \"./dynamic-atlas-item-empty\";\nimport { DynamicAtlasItemWhite } from \"./dynamic-atlas-item-white\";\n\nconst MAXIMUM_TEXTURE_SIZE = 4096;\n\nexport class DynamicAtlas {\n\tprotected static INSTANCE: DynamicAtlas | null;\n\n\tprotected _canvas: HTMLCanvasElement;\n\tprotected _sortedData: DynamicAtlasItem[];\n\tprotected _idToDatum: Record<string, DynamicAtlasItem>;\n\tprotected _baseTexture: BaseTexture;\n\tprotected _isDirty: boolean;\n\tprotected _predefined: Record<string, DynamicAtlasItem>;\n\n\tconstructor(resolution: number) {\n\t\tconst canvas = (this._canvas = document.createElement(\"canvas\"));\n\t\tcanvas.width = canvas.height = 256;\n\n\t\tconst baseTexture = (this._baseTexture = BaseTexture.from(canvas, {\n\t\t\tmipmap: MIPMAP_MODES.OFF,\n\t\t\tresolution\n\t\t}));\n\n\t\tthis._idToDatum = {};\n\t\tthis._sortedData = [];\n\t\tthis._predefined = {\n\t\t\tempty: new DynamicAtlasItemEmpty(\"empty\", 10, 10, 0, baseTexture),\n\t\t\twhite: new DynamicAtlasItemWhite(\"white\", 10, 10, 0, baseTexture)\n\t\t};\n\n\t\tthis._isDirty = true;\n\t}\n\n\tupdateFrames(width: number, data: DynamicAtlasItem[]): number {\n\t\tconst padding = 4;\n\t\tlet x = padding;\n\t\tlet y = padding;\n\t\tlet maxRowHeight = 0;\n\t\tfor (let i = 0, imax = data.length; i < imax; ++i) {\n\t\t\tconst datum = data[i];\n\t\t\tif (width < x + datum.frame.width + padding) {\n\t\t\t\tx = padding;\n\t\t\t\ty += maxRowHeight + padding;\n\t\t\t\tmaxRowHeight = 0;\n\t\t\t}\n\t\t\tdatum.frame.x = x | 0;\n\t\t\tdatum.frame.y = y | 0;\n\t\t\tx += datum.frame.width + padding;\n\t\t\tmaxRowHeight = Math.max(maxRowHeight, datum.frame.height);\n\t\t}\n\n\t\tconst minHeight = y + maxRowHeight + padding;\n\t\tlet result = 256;\n\t\twhile (result < minHeight) {\n\t\t\tresult <<= 1;\n\t\t}\n\t\treturn Math.min(MAXIMUM_TEXTURE_SIZE, result);\n\t}\n\n\trenderFrames(width: number, height: number, data: DynamicAtlasItem[]): void {\n\t\tconst canvas = this._canvas;\n\t\tcanvas.width = width;\n\t\tcanvas.height = height;\n\t\tconst context = canvas.getContext(\"2d\");\n\t\tif (context != null) {\n\t\t\tfor (let i = 0, imax = data.length; i < imax; ++i) {\n\t\t\t\tconst datum = data[i];\n\t\t\t\tdatum.render(context);\n\t\t\t}\n\t\t}\n\t}\n\n\tapplyFrames(data: DynamicAtlasItem[]): void {\n\t\tfor (let i = 0, imax = data.length; i < imax; ++i) {\n\t\t\tconst datum = data[i];\n\t\t\tdatum.applyFrame();\n\t\t}\n\t}\n\n\tcalcCanvasWidth(data: DynamicAtlasItem[]): number {\n\t\tlet result = 128;\n\t\tfor (let i = data.length - 1; 0 <= i; --i) {\n\t\t\tconst datum = data[i];\n\t\t\tconst size = Math.max(datum.frame.width, datum.frame.height);\n\t\t\twhile (result < size) {\n\t\t\t\tresult <<= 1;\n\t\t\t}\n\t\t}\n\t\treturn Math.min(MAXIMUM_TEXTURE_SIZE, result << 1);\n\t}\n\n\tcleanup(data: DynamicAtlasItem[]): void {\n\t\tdata.sort(DynamicAtlas.ITEM_COMPARATOR);\n\t\tfor (let i = data.length - 1; 0 <= i; --i) {\n\t\t\tconst datum = data[i];\n\t\t\tif (0 < datum.ref) {\n\t\t\t\tdata.length = i + 1;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tdata.length = 0;\n\t}\n\n\tbegin(): void {\n\t\tconst data = this._sortedData;\n\t\tfor (let i = 0, imax = data.length; i < imax; ++i) {\n\t\t\tconst datum = data[i];\n\t\t\tdatum.ref = 0;\n\t\t}\n\n\t\tthis._isDirty = false;\n\t}\n\n\tend(): void {\n\t\tconst idToDatum = this._idToDatum;\n\t\tconst data = this._sortedData;\n\t\tfor (let i = 0, imax = data.length; i < imax; ++i) {\n\t\t\tconst datum = data[i];\n\t\t\tif (datum.ref <= 0) {\n\t\t\t\tif (!(datum.id in this._predefined)) {\n\t\t\t\t\tdatum.destroy();\n\t\t\t\t}\n\t\t\t\tdelete idToDatum[datum.id];\n\t\t\t\tthis._isDirty = true;\n\t\t\t}\n\t\t}\n\t}\n\n\trepack(forcibly?: boolean): void {\n\t\tif (forcibly === true || this._isDirty) {\n\t\t\tthis._isDirty = false;\n\t\t\tconst data = this._sortedData;\n\t\t\tthis.cleanup(data);\n\t\t\tconst canvasWidth = this.calcCanvasWidth(data);\n\t\t\tconst canvasHeight = this.updateFrames(canvasWidth, data);\n\t\t\tthis.renderFrames(canvasWidth, canvasHeight, data);\n\t\t\tthis._baseTexture.setRealSize(canvasWidth, canvasHeight);\n\t\t\tthis.applyFrames(data);\n\t\t}\n\t}\n\n\tget(id: string): DynamicAtlasItem | null {\n\t\tconst idToDatum = this._idToDatum;\n\t\tconst datum = idToDatum[id];\n\t\tif (datum != null) {\n\t\t\tdatum.ref += 1;\n\t\t\treturn datum;\n\t\t} else {\n\t\t\tconst predefined = this._predefined[id];\n\t\t\tif (predefined != null) {\n\t\t\t\tthis.set(id, predefined);\n\t\t\t\treturn predefined;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tset(id: string, item: DynamicAtlasItem): DynamicAtlasItem | undefined {\n\t\tconst result = this._idToDatum[id];\n\t\titem.ref += 1;\n\t\tthis._idToDatum[id] = item;\n\t\tthis._sortedData.push(item);\n\t\tthis._isDirty = true;\n\t\treturn result;\n\t}\n\n\ttoDirty(): void {\n\t\tthis._isDirty = true;\n\t}\n\n\tgetDefaultTexture(): Texture {\n\t\treturn this.get(\"white\")!.texture;\n\t}\n\n\tgetBaseTexture(): BaseTexture {\n\t\treturn this._baseTexture;\n\t}\n\n\trelease(id: string): void {\n\t\tconst idToDatum = this._idToDatum;\n\t\tconst datum = idToDatum[id];\n\t\tif (datum != null) {\n\t\t\tdatum.ref -= 1;\n\t\t\tif (datum.ref <= 0) {\n\t\t\t\tif (!(datum.id in this._predefined)) {\n\t\t\t\t\tdatum.destroy();\n\t\t\t\t}\n\t\t\t\tdelete idToDatum[id];\n\t\t\t\tthis._isDirty = true;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic ITEM_COMPARATOR = (a: DynamicAtlasItem, b: DynamicAtlasItem): number => {\n\t\tif (a.ref <= 0) {\n\t\t\tif (b.ref <= 0) {\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn +1;\n\t\t\t}\n\t\t} else {\n\t\t\tif (b.ref <= 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\n\t\tif (a.frame.height < b.frame.height) {\n\t\t\treturn -1;\n\t\t} else if (b.frame.height < a.frame.height) {\n\t\t\treturn +1;\n\t\t} else {\n\t\t\treturn a.frame.width - b.frame.width;\n\t\t}\n\t};\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-font-atlas-characters.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/dynamic-font-atlas-characters.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DynamicFontAtlasCharacter } from \"./dynamic-font-atlas-character\";\n\nexport interface DynamicFontAtlasCharacters {\n\t[character: string]: DynamicFontAtlasCharacter;\n}\n"]}
1
+ {"version":3,"file":"dynamic-font-atlas-characters.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/dynamic-font-atlas-characters.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DynamicFontAtlasCharacter } from \"./dynamic-font-atlas-character\";\n\nexport type DynamicFontAtlasCharacters = Record<string, DynamicFontAtlasCharacter>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-sdf-font-atlases.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/dynamic-sdf-font-atlases.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;IAGC;QACC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACpB,CAAC;IAED,qCAAK,GAAL;QACC,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,KAAK,IAAM,MAAM,IAAI,OAAO,EAAE;YAC7B,IAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;YAC9B,KAAK,CAAC,KAAK,EAAE,CAAC;SACd;IACF,CAAC;IAED,mCAAG,GAAH;QACC,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,KAAK,IAAM,MAAM,IAAI,OAAO,EAAE;YAC7B,IAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;YAC9B,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE;gB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AI,IAAI,IAAI,EAAE;oBACjB,IAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;oBAC1B,IAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;oBAC5B,IAAM,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;oBAC1C,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;oBACzB,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;oBAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,UAAU,CAAC;oBAChC,IAAI,CAAC,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;oBAClC,SAAS,CAAC,OAAO,EAAE,CAAC;iBACpB;qBAAM;oBACN,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,yBAAyB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;iBAC1E;aACD;SACD;IACF,CAAC;IAED,uCAAO,GAAP;QACC,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,KAAK,IAAM,MAAM,IAAI,OAAO,EAAE;YAC7B,IAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;YAC9B,KAAK,CAAC,OAAO,EAAE,CAAC;SAChB;QACD,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACpB,CAAC;IACF,4BAAC;AAAD,CAAC,AAjFD,IAiFC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DynamicAtlas } from \"./dynamic-atlas\";\nimport { DynamicAtlasItemFontAtlas } from \"./dynamic-atlas-item-font-atlas\";\nimport { DynamicSDFFontAtlas } from \"./dynamic-sdf-font-atlas\";\n\nexport class DynamicSDFFontAtlases {\n\tprotected _atlases: { [family: string]: DynamicSDFFontAtlas };\n\n\tconstructor() {\n\t\tthis._atlases = {};\n\t}\n\n\tbegin(): void {\n\t\tconst atlases = this._atlases;\n\t\tfor (const family in atlases) {\n\t\t\tconst atlas = atlases[family];\n\t\t\tatlas.begin();\n\t\t}\n\t}\n\n\tend(): void {\n\t\tconst atlases = this._atlases;\n\t\tfor (const family in atlases) {\n\t\t\tconst atlas = atlases[family];\n\t\t\tif (0 < atlas.length) {\n\t\t\t\tatlas.addAscii();\n\t\t\t}\n\t\t\tatlas.end();\n\t\t\tif (atlas.length <= 0) {\n\t\t\t\tatlas.destroy();\n\t\t\t\tdelete atlases[family];\n\t\t\t}\n\t\t}\n\t}\n\n\tadd(family: string, targets: string): void {\n\t\tconst atlas = this._atlases[family];\n\t\tif (atlas != null) {\n\t\t\tatlas.add(targets);\n\t\t} else {\n\t\t\tconst newAtlas = new DynamicSDFFontAtlas(family);\n\t\t\tnewAtlas.add(targets);\n\t\t\tthis._atlases[family] = newAtlas;\n\t\t}\n\t}\n\n\tget(family: string): DynamicSDFFontAtlas | null {\n\t\tconst atlas = this._atlases[family];\n\t\tif (atlas != null) {\n\t\t\treturn atlas;\n\t\t}\n\t\treturn null;\n\t}\n\n\tupdate(baseAtlas: DynamicAtlas): void {\n\t\tconst atlases = this._atlases;\n\t\tconst baseTexture = baseAtlas.getBaseTexture();\n\t\tfor (const family in atlases) {\n\t\t\tconst atlas = atlases[family];\n\t\t\tif (atlas.update()) {\n\t\t\t\tconst atlasId = atlas.id;\n\t\t\t\tconst item = baseAtlas.get(atlasId);\n\t\t\t\tif (item != null) {\n\t\t\t\t\tconst width = atlas.width;\n\t\t\t\t\tconst height = atlas.height;\n\t\t\t\t\tconst resolution = baseTexture.resolution;\n\t\t\t\t\titem.frame.width = width;\n\t\t\t\t\titem.frame.height = height;\n\t\t\t\t\titem.width = width / resolution;\n\t\t\t\t\titem.height = height / resolution;\n\t\t\t\t\tbaseAtlas.toDirty();\n\t\t\t\t} else {\n\t\t\t\t\tbaseAtlas.set(atlasId, new DynamicAtlasItemFontAtlas(atlas, baseTexture));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tdestroy(): void {\n\t\tconst atlases = this._atlases;\n\t\tfor (const family in atlases) {\n\t\t\tconst atlas = atlases[family];\n\t\t\tatlas.destroy();\n\t\t}\n\t\tthis._atlases = {};\n\t}\n}\n"]}
1
+ {"version":3,"file":"dynamic-sdf-font-atlases.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/dynamic-sdf-font-atlases.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;IAGC;QACC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACpB,CAAC;IAED,qCAAK,GAAL;QACC,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,KAAK,IAAM,MAAM,IAAI,OAAO,EAAE;YAC7B,IAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;YAC9B,KAAK,CAAC,KAAK,EAAE,CAAC;SACd;IACF,CAAC;IAED,mCAAG,GAAH;QACC,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,KAAK,IAAM,MAAM,IAAI,OAAO,EAAE;YAC7B,IAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;YAC9B,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE;gBACrB,KAAK,CAAC,QAAQ,EAAE,CAAC;aACjB;YACD,KAAK,CAAC,GAAG,EAAE,CAAC;YACZ,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,EAAE;gBACtB,KAAK,CAAC,OAAO,EAAE,CAAC;gBAChB,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;aACvB;SACD;IACF,CAAC;IAED,mCAAG,GAAH,UAAI,MAAc,EAAE,OAAe;QAClC,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,KAAK,IAAI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MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;oBAClC,SAAS,CAAC,OAAO,EAAE,CAAC;iBACpB;qBAAM;oBACN,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,yBAAyB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;iBAC1E;aACD;SACD;IACF,CAAC;IAED,uCAAO,GAAP;QACC,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,KAAK,IAAM,MAAM,IAAI,OAAO,EAAE;YAC7B,IAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;YAC9B,KAAK,CAAC,OAAO,EAAE,CAAC;SAChB;QACD,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACpB,CAAC;IACF,4BAAC;AAAD,CAAC,AAjFD,IAiFC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DynamicAtlas } from \"./dynamic-atlas\";\nimport { DynamicAtlasItemFontAtlas } from \"./dynamic-atlas-item-font-atlas\";\nimport { DynamicSDFFontAtlas } from \"./dynamic-sdf-font-atlas\";\n\nexport class DynamicSDFFontAtlases {\n\tprotected _atlases: Record<string, DynamicSDFFontAtlas>;\n\n\tconstructor() {\n\t\tthis._atlases = {};\n\t}\n\n\tbegin(): void {\n\t\tconst atlases = this._atlases;\n\t\tfor (const family in atlases) {\n\t\t\tconst atlas = atlases[family];\n\t\t\tatlas.begin();\n\t\t}\n\t}\n\n\tend(): void {\n\t\tconst atlases = this._atlases;\n\t\tfor (const family in atlases) {\n\t\t\tconst atlas = atlases[family];\n\t\t\tif (0 < atlas.length) {\n\t\t\t\tatlas.addAscii();\n\t\t\t}\n\t\t\tatlas.end();\n\t\t\tif (atlas.length <= 0) {\n\t\t\t\tatlas.destroy();\n\t\t\t\tdelete atlases[family];\n\t\t\t}\n\t\t}\n\t}\n\n\tadd(family: string, targets: string): void {\n\t\tconst atlas = this._atlases[family];\n\t\tif (atlas != null) {\n\t\t\tatlas.add(targets);\n\t\t} else {\n\t\t\tconst newAtlas = new DynamicSDFFontAtlas(family);\n\t\t\tnewAtlas.add(targets);\n\t\t\tthis._atlases[family] = newAtlas;\n\t\t}\n\t}\n\n\tget(family: string): DynamicSDFFontAtlas | null {\n\t\tconst atlas = this._atlases[family];\n\t\tif (atlas != null) {\n\t\t\treturn atlas;\n\t\t}\n\t\treturn null;\n\t}\n\n\tupdate(baseAtlas: DynamicAtlas): void {\n\t\tconst atlases = this._atlases;\n\t\tconst baseTexture = baseAtlas.getBaseTexture();\n\t\tfor (const family in atlases) {\n\t\t\tconst atlas = atlases[family];\n\t\t\tif (atlas.update()) {\n\t\t\t\tconst atlasId = atlas.id;\n\t\t\t\tconst item = baseAtlas.get(atlasId);\n\t\t\t\tif (item != null) {\n\t\t\t\t\tconst width = atlas.width;\n\t\t\t\t\tconst height = atlas.height;\n\t\t\t\t\tconst resolution = baseTexture.resolution;\n\t\t\t\t\titem.frame.width = width;\n\t\t\t\t\titem.frame.height = height;\n\t\t\t\t\titem.width = width / resolution;\n\t\t\t\t\titem.height = height / resolution;\n\t\t\t\t\tbaseAtlas.toDirty();\n\t\t\t\t} else {\n\t\t\t\t\tbaseAtlas.set(atlasId, new DynamicAtlasItemFontAtlas(atlas, baseTexture));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tdestroy(): void {\n\t\tconst atlases = this._atlases;\n\t\tfor (const family in atlases) {\n\t\t\tconst atlas = atlases[family];\n\t\t\tatlas.destroy();\n\t\t}\n\t\tthis._atlases = {};\n\t}\n}\n"]}
@@ -11,4 +11,4 @@ var FormatNoderd = /** @class */ (function () {
11
11
  return FormatNoderd;
12
12
  }());
13
13
  export { FormatNoderd };
14
- //# sourceMappingURL=format-noder-d.js.map
14
+ //# sourceMappingURL=format-node-rd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"format-noder-d.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/util/format-node/format-noder-d.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;IAAA;IAIA,CAAC;IAHA,6BAAM,GAAN,UAAO,MAAc,EAAE,IAAY,EAAE,IAAU;QAC9C,OAAO,KAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAG,CAAC;IAChC,CAAC;IACF,mBAAC;AAAD,CAAC,AAJD,IAIC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { FormatNode } from \"./format-node\";\n\nexport class FormatNoderd implements FormatNode {\n\tformat(target: number, step: number, date: Date): string {\n\t\treturn `${Math.round(target)}`;\n\t}\n}\n"]}
1
+ {"version":3,"file":"format-node-rd.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/util/format-node/format-node-rd.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;IAAA;IAIA,CAAC;IAHA,6BAAM,GAAN,UAAO,MAAc,EAAE,IAAY,EAAE,IAAU;QAC9C,OAAO,KAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAG,CAAC;IAChC,CAAC;IACF,mBAAC;AAAD,CAAC,AAJD,IAIC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { FormatNode } from \"./format-node\";\n\nexport class FormatNoderd implements FormatNode {\n\tformat(target: number, step: number, date: Date): string {\n\t\treturn `${Math.round(target)}`;\n\t}\n}\n"]}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright (C) 2019 Toshiba Corporation
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ export * from "./format-node-a-large";
6
+ export * from "./format-node-a-small";
7
+ export * from "./format-node-d-large";
8
+ export * from "./format-node-d-small";
9
+ export * from "./format-node-e";
10
+ export * from "./format-node-f";
11
+ export * from "./format-node-fsi";
12
+ export * from "./format-node-g";
13
+ export * from "./format-node-h-large";
14
+ export * from "./format-node-h-small";
15
+ export * from "./format-node-m-large";
16
+ export * from "./format-node-m-small";
17
+ export * from "./format-node-mi";
18
+ export * from "./format-node-p-large";
19
+ export * from "./format-node-p-small";
20
+ export * from "./format-node-padding";
21
+ export * from "./format-node-parenthesis";
22
+ export * from "./format-node-plus";
23
+ export * from "./format-node-precision";
24
+ export * from "./format-node-rd";
25
+ export * from "./format-node-rp-large";
26
+ export * from "./format-node-rp-small";
27
+ export * from "./format-node-sdt";
28
+ export * from "./format-node-space";
29
+ export * from "./format-node-ssi";
30
+ export * from "./format-node-string";
31
+ export * from "./format-node-y-large";
32
+ export * from "./format-node-y-small";
33
+ export * from "./format-node-z";
34
+ export * from "./format-node";
35
+ export * from "./format-nodes";
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/util/format-node/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./format-node-a-large\";\nexport * from \"./format-node-a-small\";\nexport * from \"./format-node-d-large\";\nexport * from \"./format-node-d-small\";\nexport * from \"./format-node-e\";\nexport * from \"./format-node-f\";\nexport * from \"./format-node-fsi\";\nexport * from \"./format-node-g\";\nexport * from \"./format-node-h-large\";\nexport * from \"./format-node-h-small\";\nexport * from \"./format-node-m-large\";\nexport * from \"./format-node-m-small\";\nexport * from \"./format-node-mi\";\nexport * from \"./format-node-p-large\";\nexport * from \"./format-node-p-small\";\nexport * from \"./format-node-padding\";\nexport * from \"./format-node-parenthesis\";\nexport * from \"./format-node-plus\";\nexport * from \"./format-node-precision\";\nexport * from \"./format-node-rd\";\nexport * from \"./format-node-rp-large\";\nexport * from \"./format-node-rp-small\";\nexport * from \"./format-node-sdt\";\nexport * from \"./format-node-space\";\nexport * from \"./format-node-ssi\";\nexport * from \"./format-node-string\";\nexport * from \"./format-node-y-large\";\nexport * from \"./format-node-y-small\";\nexport * from \"./format-node-z\";\nexport * from \"./format-node\";\nexport * from \"./format-nodes\";\n"]}
@@ -2,6 +2,7 @@
2
2
  * Copyright (C) 2019 Toshiba Corporation
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
+ export * from "./format-node";
5
6
  export * from "./deep-partial";
6
7
  export * from "./dynamic-atlas-item-empty";
7
8
  export * from "./dynamic-atlas-item-font-atlas";
@@ -11,7 +12,9 @@ export * from "./dynamic-atlas-item-white";
11
12
  export * from "./dynamic-atlas-item";
12
13
  export * from "./dynamic-atlas";
13
14
  export * from "./dynamic-font-atlas-chaaracter-origin";
15
+ export * from "./dynamic-font-atlas-character-type";
14
16
  export * from "./dynamic-font-atlas-character";
17
+ export * from "./dynamic-font-atlas-characters";
15
18
  export * from "./dynamic-font-atlas-font";
16
19
  export * from "./dynamic-font-atlas";
17
20
  export * from "./dynamic-font-atlases";
@@ -39,6 +42,7 @@ export * from "./to-svg-url";
39
42
  export * from "./util-alpha";
40
43
  export * from "./util-svg-atlas-builder";
41
44
  export * from "./util-attach";
45
+ export * from "./util-character-iterator";
42
46
  export * from "./util-click-outside";
43
47
  export * from "./util-clipboard";
44
48
  export * from "./util-gesture-data";
@@ -49,6 +53,7 @@ export * from "./util-gesture-modifier";
49
53
  export * from "./util-gesture-modifiers";
50
54
  export * from "./util-gesture";
51
55
  export * from "./util-extract";
56
+ export * from "./util-extractor-pixels";
52
57
  export * from "./util-extractor";
53
58
  export * from "./util-file-downloader";
54
59
  export * from "./util-file-opener";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cA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ba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./deep-partial\";\nexport * from \"./dynamic-atlas-item-empty\";\nexport * from \"./dynamic-atlas-item-font-atlas\";\nexport * from \"./dynamic-atlas-item-image\";\nexport * from \"./dynamic-atlas-item-text\";\nexport * from \"./dynamic-atlas-item-white\";\nexport * from \"./dynamic-atlas-item\";\nexport * from \"./dynamic-atlas\";\nexport * from \"./dynamic-font-atlas-chaaracter-origin\";\nexport * from \"./dynamic-font-atlas-character\";\nexport * from \"./dynamic-font-atlas-font\";\nexport * from \"./dynamic-font-atlas\";\nexport * from \"./dynamic-font-atlases\";\nexport * from \"./dynamic-sdf-font-atlas\";\nexport * from \"./dynamic-sdf-font-atlases\";\nexport * from \"./dynamic-sdf-font-generator\";\nexport * from \"./is-array\";\nexport * from \"./is-function\";\nexport * from \"./is-nan\";\nexport * from \"./is-number\";\nexport * from \"./is-string\";\nexport * from \"./lazy\";\nexport * from \"./number-formatter-function\";\nexport * from \"./number-formatter-impl\";\nexport * from \"./number-formatter\";\nexport * from \"./number-formatters\";\nexport * from \"./to-ceiling-index\";\nexport * from \"./to-enum\";\nexport * from \"./to-index-of\";\nexport * from \"./to-label\";\nexport * from \"./to-padded\";\nexport * from \"./to-string\";\nexport * from \"./to-svg-texture\";\nexport * from \"./to-svg-url\";\nexport * from \"./util-alpha\";\nexport * from \"./util-svg-atlas-builder\";\nexport * from \"./util-attach\";\nexport * from \"./util-click-outside\";\nexport * from \"./util-clipboard\";\nexport * from \"./util-gesture-data\";\nexport * from \"./util-gesture-easing-history\";\nexport * from \"./util-gesture-easing\";\nexport * from \"./util-gesture-mode\";\nexport * from \"./util-gesture-modifier\";\nexport * from \"./util-gesture-modifiers\";\nexport * from \"./util-gesture\";\nexport * from \"./util-extract\";\nexport * from \"./util-extractor\";\nexport * from \"./util-file-downloader\";\nexport * from \"./util-file-opener\";\nexport * from \"./util-hsv\";\nexport * from \"./util-html-element-when\";\nexport * from \"./util-html-element\";\nexport * from \"./util-input-input\";\nexport * from \"./util-input-number\";\nexport * from \"./util-input-text-area\";\nexport * from \"./util-input-text\";\nexport * from \"./util-input\";\nexport * from \"./util-keyboard-event\";\nexport * from \"./util-name\";\nexport * from \"./util-overlay\";\nexport * from \"./util-pointer-event\";\nexport * from \"./util-rgb\";\nexport * from \"./util-rgba\";\nexport * from \"./util-state-blinker\";\nexport * from \"./util-transition\";\nexport * from \"./util-wheel-event\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./format-node\";\nexport * from \"./deep-partial\";\nexport * from \"./dynamic-atlas-item-empty\";\nexport * from \"./dynamic-atlas-item-font-atlas\";\nexport * from \"./dynamic-atlas-item-image\";\nexport * from \"./dynamic-atlas-item-text\";\nexport * from \"./dynamic-atlas-item-white\";\nexport * from \"./dynamic-atlas-item\";\nexport * from \"./dynamic-atlas\";\nexport * from \"./dynamic-font-atlas-chaaracter-origin\";\nexport * from \"./dynamic-font-atlas-character-type\";\nexport * from \"./dynamic-font-atlas-character\";\nexport * from \"./dynamic-font-atlas-characters\";\nexport * from \"./dynamic-font-atlas-font\";\nexport * from \"./dynamic-font-atlas\";\nexport * from \"./dynamic-font-atlases\";\nexport * from \"./dynamic-sdf-font-atlas\";\nexport * from \"./dynamic-sdf-font-atlases\";\nexport * from \"./dynamic-sdf-font-generator\";\nexport * from \"./is-array\";\nexport * from \"./is-function\";\nexport * from \"./is-nan\";\nexport * from \"./is-number\";\nexport * from \"./is-string\";\nexport * from \"./lazy\";\nexport * from \"./number-formatter-function\";\nexport * from \"./number-formatter-impl\";\nexport * from \"./number-formatter\";\nexport * from \"./number-formatters\";\nexport * from \"./to-ceiling-index\";\nexport * from \"./to-enum\";\nexport * from \"./to-index-of\";\nexport * from \"./to-label\";\nexport * from \"./to-padded\";\nexport * from \"./to-string\";\nexport * from \"./to-svg-texture\";\nexport * from \"./to-svg-url\";\nexport * from \"./util-alpha\";\nexport * from \"./util-svg-atlas-builder\";\nexport * from \"./util-attach\";\nexport * from \"./util-character-iterator\";\nexport * from \"./util-click-outside\";\nexport * from \"./util-clipboard\";\nexport * from \"./util-gesture-data\";\nexport * from \"./util-gesture-easing-history\";\nexport * from \"./util-gesture-easing\";\nexport * from \"./util-gesture-mode\";\nexport * from \"./util-gesture-modifier\";\nexport * from \"./util-gesture-modifiers\";\nexport * from \"./util-gesture\";\nexport * from \"./util-extract\";\nexport * from \"./util-extractor-pixels\";\nexport * from \"./util-extractor\";\nexport * from \"./util-file-downloader\";\nexport * from \"./util-file-opener\";\nexport * from \"./util-hsv\";\nexport * from \"./util-html-element-when\";\nexport * from \"./util-html-element\";\nexport * from \"./util-input-input\";\nexport * from \"./util-input-number\";\nexport * from \"./util-input-text-area\";\nexport * from \"./util-input-text\";\nexport * from \"./util-input\";\nexport * from \"./util-keyboard-event\";\nexport * from \"./util-name\";\nexport * from \"./util-overlay\";\nexport * from \"./util-pointer-event\";\nexport * from \"./util-rgb\";\nexport * from \"./util-rgba\";\nexport * from \"./util-state-blinker\";\nexport * from \"./util-transition\";\nexport * from \"./util-wheel-event\";\n"]}
@@ -29,7 +29,7 @@ import { FormatNodeString } from "./format-node/format-node-string";
29
29
  import { FormatNodeY } from "./format-node/format-node-y-large";
30
30
  import { FormatNodey } from "./format-node/format-node-y-small";
31
31
  import { FormatNodez } from "./format-node/format-node-z";
32
- import { FormatNoderd } from "./format-node/format-noder-d";
32
+ import { FormatNoderd } from "./format-node/format-node-rd";
33
33
  import { FormatNodes } from "./format-node/format-nodes";
34
34
  var REGEXP = undefined;
35
35
  var getRegExp = function () {
@@ -1 +1 @@
1
- {"version":3,"file":"number-formatter-impl.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/number-formatter-impl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC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AM,CAAC,CAAC;SACrB;QACD,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;YACnD,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAC9C;QACD,OAAO,MAAM,CAAC;IACf,CAAC;IACF,0BAAC;AAAD,CAAC,AA5BD,IA4BC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { FormatNode } from \"./format-node/format-node\";\nimport { FormatNodeA } from \"./format-node/format-node-a-large\";\nimport { FormatNodea } from \"./format-node/format-node-a-small\";\nimport { FormatNodeD } from \"./format-node/format-node-d-large\";\nimport { FormatNoded } from \"./format-node/format-node-d-small\";\nimport { FormatNodee } from \"./format-node/format-node-e\";\nimport { FormatNodef } from \"./format-node/format-node-f\";\nimport { FormatNodefsi } from \"./format-node/format-node-fsi\";\nimport { FormatNodeg } from \"./format-node/format-node-g\";\nimport { FormatNodeH } from \"./format-node/format-node-h-large\";\nimport { FormatNodeh } from \"./format-node/format-node-h-small\";\nimport { FormatNodeM } from \"./format-node/format-node-m-large\";\nimport { FormatNodem } from \"./format-node/format-node-m-small\";\nimport { FormatNodemi } from \"./format-node/format-node-mi\";\nimport { FormatNodeP } from \"./format-node/format-node-p-large\";\nimport { FormatNodep } from \"./format-node/format-node-p-small\";\nimport { FormatNodePadding } from \"./format-node/format-node-padding\";\nimport { FormatNodeParenthesis } from \"./format-node/format-node-parenthesis\";\nimport { FormatNodePlus } from \"./format-node/format-node-plus\";\nimport { FormatNodeRP } from \"./format-node/format-node-rp-large\";\nimport { FormatNoderp } from \"./format-node/format-node-rp-small\";\nimport { FormatNodesdt } from \"./format-node/format-node-sdt\";\nimport { FormatNodeSpace } from \"./format-node/format-node-space\";\nimport { FormatNodessi } from \"./format-node/format-node-ssi\";\nimport { FormatNodeString } from \"./format-node/format-node-string\";\nimport { FormatNodeY } from \"./format-node/format-node-y-large\";\nimport { FormatNodey } from \"./format-node/format-node-y-small\";\nimport { FormatNodez } from \"./format-node/format-node-z\";\nimport { FormatNoderd } from \"./format-node/format-noder-d\";\nimport { FormatNodes } from \"./format-node/format-nodes\";\nimport { NumberFormatter } from \"./number-formatter\";\n\nlet REGEXP: RegExp | undefined = undefined;\n\nconst getRegExp = (): RegExp => {\n\tlet result = REGEXP;\n\tif (result) {\n\t\tresult.lastIndex = 0;\n\t} else {\n\t\tresult =\n\t\t\t/%(0|_|-|\\+|\\()?(\\.\\d+)?(Y(?:MD?)?|y(?:MD?)?|MD?|D|H(?:ms?)?|h(?:ms?)?|m(?:i|s)?|a|A|s(?:s?i|dt)?|z|%|f(?:si)?|e|g|d|r(?:d|p)|p|P|RP)/g;\n\t\tREGEXP = result;\n\t}\n\treturn result;\n};\n\nconst toModifiedDatetime = (modifier: string, length: number, node: FormatNode): FormatNode => {\n\tswitch (modifier) {\n\t\tcase \"_\":\n\t\t\treturn new FormatNodePadding(length, \" \", node);\n\t\tcase \"-\":\n\t\t\treturn node;\n\t\tdefault:\n\t\t\treturn new FormatNodePadding(length, \"0\", node);\n\t}\n};\n\nconst toModifiedNumber = (modifier: string, node: FormatNode): FormatNode => {\n\tswitch (modifier) {\n\t\tcase \"_\": // space for non-negative numbers\n\t\t\treturn new FormatNodeSpace(node);\n\t\tcase \"+\": // plus sign for non-negative numbers\n\t\t\treturn new FormatNodePlus(node);\n\t\tcase \"(\": // parenthesis for the negative numbers\n\t\t\treturn new FormatNodeParenthesis(node);\n\t\tdefault:\n\t\t\treturn node;\n\t}\n};\n\ninterface Parsed {\n\t/** Nodes */\n\tnodes: FormatNode[];\n\n\t/** True if nodes contains nodes which requires a date object */\n\tdate: boolean;\n}\n\nconst toParsed = (format: string): Parsed => {\n\tlet previousIndex = 0;\n\tlet isDateRequired = false;\n\tconst result: FormatNode[] = [];\n\tconst regExp = getRegExp();\n\twhile (true) {\n\t\tconst matched = regExp.exec(format);\n\t\tif (matched != null) {\n\t\t\tconst index = matched.index;\n\t\t\tif (previousIndex < index) {\n\t\t\t\tresult.push(new FormatNodeString(format.substring(previousIndex, index)));\n\t\t\t}\n\t\t\tpreviousIndex = index + matched[0].length;\n\n\t\t\tconst all = matched[0];\n\t\t\tconst modifier = matched[1];\n\t\t\tconst precision = matched[2];\n\t\t\tconst specifier = matched[3];\n\n\t\t\tswitch (specifier) {\n\t\t\t\tcase \"Y\": // full year\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(new FormatNodeY());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"YM\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\tnew FormatNodeY(),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"YMD\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\tnew FormatNodeY(),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM()),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeD())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"y\": // short year: [0, 99]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodey()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"yM\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodey()),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"yMD\":\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodey()),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM()),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeD())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"M\": // month: [1, 12]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodeM()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MD\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM()),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeD())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"D\": // day of the month: [1, 31]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodeD()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"H\": // 24-hour clock: [0, 23]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodeH()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Hm\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeH()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Hms\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeH()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodes())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"h\": // 12-hour clock: [1, 12]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodeh()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"hm\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeh()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"hms\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeh()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodes())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"m\": // minute [0, 59]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodem()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ms\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodes())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"mi\": // milliseconds [0, 999]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 3, new FormatNodemi()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"a\": // am or pm\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(new FormatNodea());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"A\": // AM or PM\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(new FormatNodeA());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"s\": // seconds: [0, 61]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodes()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"sdt\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\tnew FormatNodesdt(\n\t\t\t\t\t\t\tnew FormatNodeY(),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM()),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeD()),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeH()),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem()),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodes()),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 3, new FormatNodemi())\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"z\": // time zone\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(new FormatNodez());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"%\": // a % literal\n\t\t\t\t\tresult.push(new FormatNodeString(\"%\"));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"f\": // fixed point notation\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodef(precision)));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"e\": // exponent notation\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodee(precision)));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"g\": // %f or %e\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodeg(precision)));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"rd\": // rounded decimal notation\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNoderd()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"d\": // decimal notation\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNoded()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"P\": // percent notation (Multiplied by 100)\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodeP()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"p\": // percent notation (Not multiplied by 100)\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodep()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RP\": // percent notation (Multiplied by 100)\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodeRP()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"rp\": // percent notation (Not multiplied by 100)\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNoderp()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"fsi\": // fixed point notation with a SI prefix\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodefsi(precision)));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ssi\": // Step-based fixed point notation with a SI prefix\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodessi(precision)));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tresult.push(new FormatNodeString(all));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\tif (previousIndex < format.length) {\n\t\t\t\tresult.push(new FormatNodeString(format.substring(previousIndex, format.length)));\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn {\n\t\tnodes: result,\n\t\tdate: isDateRequired\n\t};\n};\n\n/**\n * A NumberFormatter implementation class.\n */\nexport class NumberFormatterImpl implements NumberFormatter {\n\tprotected static DATE?: Date;\n\n\tprotected date: boolean;\n\tprotected nodes: FormatNode[];\n\n\tconstructor(format: string) {\n\t\tconst parsed = toParsed(format);\n\t\tthis.date = parsed.date;\n\t\tthis.nodes = parsed.nodes;\n\t}\n\n\tformat(target: number, step: number): string {\n\t\tconst nodes = this.nodes;\n\t\tlet date = NumberFormatterImpl.DATE;\n\t\tif (date == null) {\n\t\t\tdate = new Date();\n\t\t\tNumberFormatterImpl.DATE = date;\n\t\t}\n\t\tif (this.date) {\n\t\t\tdate.setTime(target);\n\t\t}\n\t\tlet result = \"\";\n\t\tfor (let i = 0, imax = nodes.length; i < imax; ++i) {\n\t\t\tresult += nodes[i].format(target, step, date);\n\t\t}\n\t\treturn result;\n\t}\n}\n"]}
1
+ {"version":3,"file":"number-formatter-impl.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/number-formatter-impl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAA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KAAK,CAAC;QACzB,IAAI,IAAI,GAAG,mBAAmB,CAAC,IAAI,CAAC;QACpC,IAAI,IAAI,IAAI,IAAI,EAAE;YACjB,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YAClB,mBAAmB,CAAC,IAAI,GAAG,IAAI,CAAC;SAChC;QACD,IAAI,IAAI,CAAC,IAAI,EAAE;YACd,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;SACrB;QACD,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;YACnD,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAC9C;QACD,OAAO,MAAM,CAAC;IACf,CAAC;IACF,0BAAC;AAAD,CAAC,AA5BD,IA4BC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { FormatNode } from \"./format-node/format-node\";\nimport { FormatNodeA } from \"./format-node/format-node-a-large\";\nimport { FormatNodea } from \"./format-node/format-node-a-small\";\nimport { FormatNodeD } from \"./format-node/format-node-d-large\";\nimport { FormatNoded } from \"./format-node/format-node-d-small\";\nimport { FormatNodee } from \"./format-node/format-node-e\";\nimport { FormatNodef } from \"./format-node/format-node-f\";\nimport { FormatNodefsi } from \"./format-node/format-node-fsi\";\nimport { FormatNodeg } from \"./format-node/format-node-g\";\nimport { FormatNodeH } from \"./format-node/format-node-h-large\";\nimport { FormatNodeh } from \"./format-node/format-node-h-small\";\nimport { FormatNodeM } from \"./format-node/format-node-m-large\";\nimport { FormatNodem } from \"./format-node/format-node-m-small\";\nimport { FormatNodemi } from \"./format-node/format-node-mi\";\nimport { FormatNodeP } from \"./format-node/format-node-p-large\";\nimport { FormatNodep } from \"./format-node/format-node-p-small\";\nimport { FormatNodePadding } from \"./format-node/format-node-padding\";\nimport { FormatNodeParenthesis } from \"./format-node/format-node-parenthesis\";\nimport { FormatNodePlus } from \"./format-node/format-node-plus\";\nimport { FormatNodeRP } from \"./format-node/format-node-rp-large\";\nimport { FormatNoderp } from \"./format-node/format-node-rp-small\";\nimport { FormatNodesdt } from \"./format-node/format-node-sdt\";\nimport { FormatNodeSpace } from \"./format-node/format-node-space\";\nimport { FormatNodessi } from \"./format-node/format-node-ssi\";\nimport { FormatNodeString } from \"./format-node/format-node-string\";\nimport { FormatNodeY } from \"./format-node/format-node-y-large\";\nimport { FormatNodey } from \"./format-node/format-node-y-small\";\nimport { FormatNodez } from \"./format-node/format-node-z\";\nimport { FormatNoderd } from \"./format-node/format-node-rd\";\nimport { FormatNodes } from \"./format-node/format-nodes\";\nimport { NumberFormatter } from \"./number-formatter\";\n\nlet REGEXP: RegExp | undefined = undefined;\n\nconst getRegExp = (): RegExp => {\n\tlet result = REGEXP;\n\tif (result) {\n\t\tresult.lastIndex = 0;\n\t} else {\n\t\tresult =\n\t\t\t/%(0|_|-|\\+|\\()?(\\.\\d+)?(Y(?:MD?)?|y(?:MD?)?|MD?|D|H(?:ms?)?|h(?:ms?)?|m(?:i|s)?|a|A|s(?:s?i|dt)?|z|%|f(?:si)?|e|g|d|r(?:d|p)|p|P|RP)/g;\n\t\tREGEXP = result;\n\t}\n\treturn result;\n};\n\nconst toModifiedDatetime = (modifier: string, length: number, node: FormatNode): FormatNode => {\n\tswitch (modifier) {\n\t\tcase \"_\":\n\t\t\treturn new FormatNodePadding(length, \" \", node);\n\t\tcase \"-\":\n\t\t\treturn node;\n\t\tdefault:\n\t\t\treturn new FormatNodePadding(length, \"0\", node);\n\t}\n};\n\nconst toModifiedNumber = (modifier: string, node: FormatNode): FormatNode => {\n\tswitch (modifier) {\n\t\tcase \"_\": // space for non-negative numbers\n\t\t\treturn new FormatNodeSpace(node);\n\t\tcase \"+\": // plus sign for non-negative numbers\n\t\t\treturn new FormatNodePlus(node);\n\t\tcase \"(\": // parenthesis for the negative numbers\n\t\t\treturn new FormatNodeParenthesis(node);\n\t\tdefault:\n\t\t\treturn node;\n\t}\n};\n\ninterface Parsed {\n\t/** Nodes */\n\tnodes: FormatNode[];\n\n\t/** True if nodes contains nodes which requires a date object */\n\tdate: boolean;\n}\n\nconst toParsed = (format: string): Parsed => {\n\tlet previousIndex = 0;\n\tlet isDateRequired = false;\n\tconst result: FormatNode[] = [];\n\tconst regExp = getRegExp();\n\twhile (true) {\n\t\tconst matched = regExp.exec(format);\n\t\tif (matched != null) {\n\t\t\tconst index = matched.index;\n\t\t\tif (previousIndex < index) {\n\t\t\t\tresult.push(new FormatNodeString(format.substring(previousIndex, index)));\n\t\t\t}\n\t\t\tpreviousIndex = index + matched[0].length;\n\n\t\t\tconst all = matched[0];\n\t\t\tconst modifier = matched[1];\n\t\t\tconst precision = matched[2];\n\t\t\tconst specifier = matched[3];\n\n\t\t\tswitch (specifier) {\n\t\t\t\tcase \"Y\": // full year\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(new FormatNodeY());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"YM\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\tnew FormatNodeY(),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"YMD\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\tnew FormatNodeY(),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM()),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeD())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"y\": // short year: [0, 99]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodey()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"yM\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodey()),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"yMD\":\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodey()),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM()),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeD())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"M\": // month: [1, 12]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodeM()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MD\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM()),\n\t\t\t\t\t\tnew FormatNodeString(\"/\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeD())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"D\": // day of the month: [1, 31]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodeD()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"H\": // 24-hour clock: [0, 23]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodeH()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Hm\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeH()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Hms\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeH()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodes())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"h\": // 12-hour clock: [1, 12]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodeh()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"hm\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeh()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"hms\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeh()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodes())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"m\": // minute [0, 59]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodem()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ms\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem()),\n\t\t\t\t\t\tnew FormatNodeString(\":\"),\n\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodes())\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"mi\": // milliseconds [0, 999]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 3, new FormatNodemi()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"a\": // am or pm\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(new FormatNodea());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"A\": // AM or PM\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(new FormatNodeA());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"s\": // seconds: [0, 61]\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(toModifiedDatetime(modifier, 2, new FormatNodes()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"sdt\":\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(\n\t\t\t\t\t\tnew FormatNodesdt(\n\t\t\t\t\t\t\tnew FormatNodeY(),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeM()),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeD()),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodeH()),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodem()),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 2, new FormatNodes()),\n\t\t\t\t\t\t\ttoModifiedDatetime(modifier, 3, new FormatNodemi())\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"z\": // time zone\n\t\t\t\t\tisDateRequired = true;\n\t\t\t\t\tresult.push(new FormatNodez());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"%\": // a % literal\n\t\t\t\t\tresult.push(new FormatNodeString(\"%\"));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"f\": // fixed point notation\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodef(precision)));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"e\": // exponent notation\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodee(precision)));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"g\": // %f or %e\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodeg(precision)));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"rd\": // rounded decimal notation\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNoderd()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"d\": // decimal notation\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNoded()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"P\": // percent notation (Multiplied by 100)\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodeP()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"p\": // percent notation (Not multiplied by 100)\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodep()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RP\": // percent notation (Multiplied by 100)\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodeRP()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"rp\": // percent notation (Not multiplied by 100)\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNoderp()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"fsi\": // fixed point notation with a SI prefix\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodefsi(precision)));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ssi\": // Step-based fixed point notation with a SI prefix\n\t\t\t\t\tresult.push(toModifiedNumber(modifier, new FormatNodessi(precision)));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tresult.push(new FormatNodeString(all));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\tif (previousIndex < format.length) {\n\t\t\t\tresult.push(new FormatNodeString(format.substring(previousIndex, format.length)));\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn {\n\t\tnodes: result,\n\t\tdate: isDateRequired\n\t};\n};\n\n/**\n * A NumberFormatter implementation class.\n */\nexport class NumberFormatterImpl implements NumberFormatter {\n\tprotected static DATE?: Date;\n\n\tprotected date: boolean;\n\tprotected nodes: FormatNode[];\n\n\tconstructor(format: string) {\n\t\tconst parsed = toParsed(format);\n\t\tthis.date = parsed.date;\n\t\tthis.nodes = parsed.nodes;\n\t}\n\n\tformat(target: number, step: number): string {\n\t\tconst nodes = this.nodes;\n\t\tlet date = NumberFormatterImpl.DATE;\n\t\tif (date == null) {\n\t\t\tdate = new Date();\n\t\t\tNumberFormatterImpl.DATE = date;\n\t\t}\n\t\tif (this.date) {\n\t\t\tdate.setTime(target);\n\t\t}\n\t\tlet result = \"\";\n\t\tfor (let i = 0, imax = nodes.length; i < imax; ++i) {\n\t\t\tresult += nodes[i].format(target, step, date);\n\t\t}\n\t\treturn result;\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"util-name.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/util-name.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;IAAA;IAYA,CAAC;IATO,eAAM,GAAb,UAAc,IAAY;QACzB,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,IAAI,IAAI,OAAO,EAAE;YACpB,OAAU,IAAI,SAAI,EAAE,OAAO,CAAC,IAAI,CAAG,CAAC;SACpC;aAAM;YACN,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClB,OAAU,IAAI,OAAI,CAAC;SACnB;IACF,CAAC;IAVgB,iBAAQ,GAA8B,EAAE,CAAC;IAW3D,eAAC;CAAA,AAZD,IAYC;SAZY,QAAQ","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport class UtilName {\n\tprotected static _mapping: { [key: string]: number } = {};\n\n\tstatic create(type: string): string {\n\t\tconst mapping = this._mapping;\n\t\tif (type in mapping) {\n\t\t\treturn `${type} ${++mapping[type]}`;\n\t\t} else {\n\t\t\tmapping[type] = 1;\n\t\t\treturn `${type} 1`;\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"util-name.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/util-name.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;IAAA;IAYA,CAAC;IATO,eAAM,GAAb,UAAc,IAAY;QACzB,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,IAAI,IAAI,OAAO,EAAE;YACpB,OAAU,IAAI,SAAI,EAAE,OAAO,CAAC,IAAI,CAAG,CAAC;SACpC;aAAM;YACN,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClB,OAAU,IAAI,OAAI,CAAC;SACnB;IACF,CAAC;IAVgB,iBAAQ,GAA2B,EAAE,CAAC;IAWxD,eAAC;CAAA,AAZD,IAYC;SAZY,QAAQ","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport class UtilName {\n\tprotected static _mapping: Record<string, number> = {};\n\n\tstatic create(type: string): string {\n\t\tconst mapping = this._mapping;\n\t\tif (type in mapping) {\n\t\t\treturn `${type} ${++mapping[type]}`;\n\t\t} else {\n\t\t\tmapping[type] = 1;\n\t\t\treturn `${type} 1`;\n\t\t}\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"util-svg-atlas-builder.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/util-svg-atlas-builder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAQxC;IAaC,6BAAY,KAAa,EAAE,KAAa,EAAE,MAAc;QACvD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAClB,CAAC;IAED,sBAAI,sCAAK;aAAT;YACC,OAAO,IAAI,CAAC,MAAM,CAAC;QACpB,CAAC;;;OAAA;IAED,sBAAI,sCAAK;aAAT;YACC,OAAO,IAAI,CAAC,MAAM,CAAC;QACpB,CAAC;;;OAAA;IAED,sBAAI,uCAAM;aAAV;YACC,OAAO,IAAI,CAAC,OAAO,CAAC;QACrB,CAAC;;;OAAA;IAED,iCAAG,GAAH,UAAI,IAAY,EAAE,KAAa,EAAE,MAAc,EAAE,IAAY;QAC5D,IAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,CAAC,IAAI,IAAI,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AAK,GAAG,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;YACzB,KAAK,IAAM,MAAI,IAAI,QAAM,EAAE;gBAC1B,KAAK,CAAC,MAAI,CAAC,GAAG,IAAI,OAAO,CAAC,WAAW,EAAE,QAAM,CAAC,MAAI,CAAC,CAAC,CAAC;aACrD;SACD;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,0BAAC;AAAD,CAAC,AAtGD,IAsGC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { BaseTexture, Rectangle, SCALE_MODES, Texture } from \"pixi.js\";\nimport { toSvgUrl } from \"./to-svg-url\";\n\nexport interface UtilSvgAtlasBuilderBuildOptions {\n\tforce?: boolean;\n\tscaling?: SCALE_MODES;\n\tresolution?: number;\n}\n\nexport class UtilSvgAtlasBuilder {\n\tprotected _width: number;\n\tprotected _ratio: number;\n\tprotected _margin: number;\n\n\tprotected _frames: { [name: string]: Rectangle };\n\tprotected _svg: string;\n\tprotected _nextX: number;\n\tprotected _nextY: number;\n\tprotected _height: number;\n\n\tprotected _built?: { [name: string]: Texture };\n\n\tconstructor(width: number, ratio: number, margin: number) {\n\t\tthis._width = width;\n\t\tthis._ratio = ratio;\n\t\tthis._margin = margin;\n\n\t\tthis._frames = {};\n\t\tthis._svg = \"\";\n\t\tthis._nextX = 0;\n\t\tthis._nextY = 0;\n\t\tthis._height = 0;\n\t}\n\n\tget width(): number {\n\t\treturn this._width;\n\t}\n\n\tget ratio(): number {\n\t\treturn this._ratio;\n\t}\n\n\tget margin(): number {\n\t\treturn this._margin;\n\t}\n\n\tadd(name: string, width: number, height: number, path: string): boolean {\n\t\tconst frames = this._frames;\n\t\tif (!(name in frames)) {\n\t\t\t// Position\n\t\t\tconst margin = this._margin;\n\t\t\tlet x = this._nextX;\n\t\t\tlet y = this._nextY;\n\t\t\tif (this._width <= x + width) {\n\t\t\t\tx = 0;\n\t\t\t\ty = this._nextY + this._height + margin;\n\t\t\t\tthis._height = height;\n\t\t\t\tthis._nextY = y;\n\t\t\t} else {\n\t\t\t\tthis._height = Math.max(this._height, height);\n\t\t\t}\n\t\t\tthis._nextX = x + width + margin;\n\n\t\t\t// Frame\n\t\t\tframes[name] = new Rectangle(x, y, width, height);\n\n\t\t\t// Svg\n\t\t\tconst ratio = this._ratio;\n\t\t\tthis._svg += `<g transform=\"translate(${x * ratio},${y * ratio})\">${path}</g>`;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\thas(name: string): boolean {\n\t\treturn name in this._frames;\n\t}\n\n\tget mappings(): { [name: string]: Texture } {\n\t\treturn this.build();\n\t}\n\n\tbuild(options?: UtilSvgAtlasBuilderBuildOptions): { [name: string]: Texture } {\n\t\tlet built = this._built;\n\t\tif (built == null || options?.force) {\n\t\t\tconst resolution = options?.resolution ?? window.devicePixelRatio ?? 1;\n\t\t\tconst width = this._width;\n\t\t\tconst height = Math.pow(2, Math.ceil(Math.log(this._nextY + this._height) / Math.LN2));\n\t\t\tconst realWidth = width * resolution;\n\t\t\tconst realHeight = height * resolution;\n\t\t\tconst ratio = this._ratio;\n\t\t\tconst attrWidth = `width=\"${realWidth}\"`;\n\t\t\tconst attrHeight = `height=\"${realHeight}\"`;\n\t\t\tconst attrViewBox = `viewBox=\"0 0 ${width * ratio} ${height * ratio}\"`;\n\t\t\tconst attrXmlns = `xmlns=\"http://www.w3.org/2000/svg\"`;\n\t\t\tconst url = toSvgUrl(\n\t\t\t\t`<svg ${attrWidth} ${attrHeight} ${attrViewBox} ${attrXmlns}>${this._svg}</svg>`\n\t\t\t);\n\t\t\tconst scaleMode = options?.scaling ?? SCALE_MODES.NEAREST;\n\t\t\tconst baseTexture = BaseTexture.from(url, {\n\t\t\t\tresolution,\n\t\t\t\tscaleMode\n\t\t\t});\n\t\t\tconst frames = this._frames;\n\t\t\tbuilt = this._built = {};\n\t\t\tfor (const name in frames) {\n\t\t\t\tbuilt[name] = new Texture(baseTexture, frames[name]);\n\t\t\t}\n\t\t}\n\t\treturn built;\n\t}\n}\n"]}
1
+ {"version":3,"file":"util-svg-atlas-builder.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/util-svg-atlas-builder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAQxC;IAaC,6BAAY,KAAa,EAAE,KAAa,EAAE,MAAc;QACvD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAClB,CAAC;IAED,sBAAI,sCAAK;aAAT;YACC,OAAO,IAAI,CAAC,MAAM,CAAC;QACpB,CAAC;;;OAAA;IAED,sBAAI,sCAAK;aAAT;YACC,OAAO,IAAI,CAAC,MAAM,CAAC;QACpB,CAAC;;;OAAA;IAED,sBAAI,uCAAM;aAAV;YACC,OAAO,IAAI,CAAC,OAAO,CAAC;QACrB,CAAC;;;OAAA;IAED,iCAAG,GAAH,UAAI,IAAY,EAAE,KAAa,EAAE,MAAc,EAAE,IAAY;QAC5D,IAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,EAAE;YACtB,WAAW;YACX,IAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;YAC5B,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;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,IAAI,OAAO,CAAC,WAAW,EAAE,QAAM,CAAC,MAAI,CAAC,CAAC,CAAC;aACrD;SACD;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,0BAAC;AAAD,CAAC,AAtGD,IAsGC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { BaseTexture, Rectangle, SCALE_MODES, Texture } from \"pixi.js\";\nimport { toSvgUrl } from \"./to-svg-url\";\n\nexport interface UtilSvgAtlasBuilderBuildOptions {\n\tforce?: boolean;\n\tscaling?: SCALE_MODES;\n\tresolution?: number;\n}\n\nexport class UtilSvgAtlasBuilder {\n\tprotected _width: number;\n\tprotected _ratio: number;\n\tprotected _margin: number;\n\n\tprotected _frames: Record<string, Rectangle>;\n\tprotected _svg: string;\n\tprotected _nextX: number;\n\tprotected _nextY: number;\n\tprotected _height: number;\n\n\tprotected _built?: Record<string, Texture>;\n\n\tconstructor(width: number, ratio: number, margin: number) {\n\t\tthis._width = width;\n\t\tthis._ratio = ratio;\n\t\tthis._margin = margin;\n\n\t\tthis._frames = {};\n\t\tthis._svg = \"\";\n\t\tthis._nextX = 0;\n\t\tthis._nextY = 0;\n\t\tthis._height = 0;\n\t}\n\n\tget width(): number {\n\t\treturn this._width;\n\t}\n\n\tget ratio(): number {\n\t\treturn this._ratio;\n\t}\n\n\tget margin(): number {\n\t\treturn this._margin;\n\t}\n\n\tadd(name: string, width: number, height: number, path: string): boolean {\n\t\tconst frames = this._frames;\n\t\tif (!(name in frames)) {\n\t\t\t// Position\n\t\t\tconst margin = this._margin;\n\t\t\tlet x = this._nextX;\n\t\t\tlet y = this._nextY;\n\t\t\tif (this._width <= x + width) {\n\t\t\t\tx = 0;\n\t\t\t\ty = this._nextY + this._height + margin;\n\t\t\t\tthis._height = height;\n\t\t\t\tthis._nextY = y;\n\t\t\t} else {\n\t\t\t\tthis._height = Math.max(this._height, height);\n\t\t\t}\n\t\t\tthis._nextX = x + width + margin;\n\n\t\t\t// Frame\n\t\t\tframes[name] = new Rectangle(x, y, width, height);\n\n\t\t\t// Svg\n\t\t\tconst ratio = this._ratio;\n\t\t\tthis._svg += `<g transform=\"translate(${x * ratio},${y * ratio})\">${path}</g>`;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\thas(name: string): boolean {\n\t\treturn name in this._frames;\n\t}\n\n\tget mappings(): Record<string, Texture> {\n\t\treturn this.build();\n\t}\n\n\tbuild(options?: UtilSvgAtlasBuilderBuildOptions): Record<string, Texture> {\n\t\tlet built = this._built;\n\t\tif (built == null || options?.force) {\n\t\t\tconst resolution = options?.resolution ?? window.devicePixelRatio ?? 1;\n\t\t\tconst width = this._width;\n\t\t\tconst height = Math.pow(2, Math.ceil(Math.log(this._nextY + this._height) / Math.LN2));\n\t\t\tconst realWidth = width * resolution;\n\t\t\tconst realHeight = height * resolution;\n\t\t\tconst ratio = this._ratio;\n\t\t\tconst attrWidth = `width=\"${realWidth}\"`;\n\t\t\tconst attrHeight = `height=\"${realHeight}\"`;\n\t\t\tconst attrViewBox = `viewBox=\"0 0 ${width * ratio} ${height * ratio}\"`;\n\t\t\tconst attrXmlns = `xmlns=\"http://www.w3.org/2000/svg\"`;\n\t\t\tconst url = toSvgUrl(\n\t\t\t\t`<svg ${attrWidth} ${attrHeight} ${attrViewBox} ${attrXmlns}>${this._svg}</svg>`\n\t\t\t);\n\t\t\tconst scaleMode = options?.scaling ?? SCALE_MODES.NEAREST;\n\t\t\tconst baseTexture = BaseTexture.from(url, {\n\t\t\t\tresolution,\n\t\t\t\tscaleMode\n\t\t\t});\n\t\t\tconst frames = this._frames;\n\t\t\tbuilt = this._built = {};\n\t\t\tfor (const name in frames) {\n\t\t\t\tbuilt[name] = new Texture(baseTexture, frames[name]);\n\t\t\t}\n\t\t}\n\t\treturn built;\n\t}\n}\n"]}