vue-chrts 0.1.0-beta.2-internal-22 → 0.1.0-beta.3

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 (699) hide show
  1. package/README.md +2 -0
  2. package/dist/components/AreaChart/AreaChart.js +133 -0
  3. package/dist/components/{Area → AreaChart}/types.d.ts +10 -9
  4. package/dist/components/{AreaStacked → AreaStackedChart}/AreaStackedChart.js +21 -26
  5. package/dist/components/AreaStackedChart/types.d.ts +58 -0
  6. package/dist/components/BarChart/BarChart.js +123 -0
  7. package/dist/components/BarChart/BarChart.vue.d.ts +14 -0
  8. package/dist/components/BarChart/types.d.ts +106 -0
  9. package/dist/components/DonutChart/DonutChart.js +58 -0
  10. package/dist/components/{Donut → DonutChart}/DonutChart.vue.d.ts +1 -1
  11. package/dist/components/DonutChart/types.d.ts +36 -0
  12. package/dist/components/{Donut/index.js → DonutChart/types.js} +0 -1
  13. package/dist/components/LineChart/LineChart.js +112 -0
  14. package/dist/components/{Line → LineChart}/LineChart.vue.d.ts +2 -15
  15. package/dist/components/LineChart/types.d.ts +90 -0
  16. package/dist/components/Tooltip.vue.d.ts +1 -3
  17. package/dist/index.d.ts +8 -6
  18. package/dist/index.js +13 -9
  19. package/dist/types.d.ts +39 -2
  20. package/dist/types.js +4 -2
  21. package/package.json +4 -5
  22. package/dist/_virtual/_commonjsHelpers.cjs +0 -1
  23. package/dist/_virtual/_commonjsHelpers.js +0 -6
  24. package/dist/_virtual/browser.cjs +0 -1
  25. package/dist/_virtual/browser.js +0 -2
  26. package/dist/_virtual/striptags.cjs +0 -1
  27. package/dist/_virtual/striptags.js +0 -7
  28. package/dist/_virtual/striptags2.cjs +0 -1
  29. package/dist/_virtual/striptags2.js +0 -4
  30. package/dist/components/Area/AreaChart.cjs +0 -6
  31. package/dist/components/Area/AreaChart.js +0 -141
  32. package/dist/components/Area/AreaChart2.cjs +0 -1
  33. package/dist/components/Area/index.d.ts +0 -2
  34. package/dist/components/AreaStacked/AreaStackedChart.cjs +0 -1
  35. package/dist/components/AreaStacked/AreaStackedChart2.cjs +0 -1
  36. package/dist/components/AreaStacked/index.d.ts +0 -1
  37. package/dist/components/Bar/BarChart.cjs +0 -1
  38. package/dist/components/Bar/BarChart.js +0 -121
  39. package/dist/components/Bar/BarChart.vue.d.ts +0 -33
  40. package/dist/components/Bar/BarChart2.cjs +0 -1
  41. package/dist/components/Bar/index.d.ts +0 -1
  42. package/dist/components/Crosshair/Crosshair.vue.d.ts +0 -12
  43. package/dist/components/Crosshair/index.d.ts +0 -1
  44. package/dist/components/Donut/DonutChart.cjs +0 -5
  45. package/dist/components/Donut/DonutChart.js +0 -62
  46. package/dist/components/Donut/DonutChart2.cjs +0 -1
  47. package/dist/components/Donut/index.cjs +0 -1
  48. package/dist/components/Donut/index.d.ts +0 -17
  49. package/dist/components/Line/LineChart.cjs +0 -1
  50. package/dist/components/Line/LineChart.js +0 -97
  51. package/dist/components/Line/LineChart2.cjs +0 -1
  52. package/dist/components/Line/index.d.ts +0 -1
  53. package/dist/components/Tooltip.cjs +0 -1
  54. package/dist/components/Tooltip2.cjs +0 -1
  55. package/dist/index.cjs +0 -1
  56. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs +0 -1
  57. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -279
  58. package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.cjs +0 -1
  59. package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js +0 -86
  60. package/dist/node_modules/@emotion/css/dist/emotion-css.esm.cjs +0 -1
  61. package/dist/node_modules/@emotion/css/dist/emotion-css.esm.js +0 -8
  62. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.cjs +0 -1
  63. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -22
  64. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +0 -1
  65. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
  66. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.cjs +0 -1
  67. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -123
  68. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs +0 -1
  69. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -44
  70. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +0 -1
  71. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -53
  72. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs +0 -1
  73. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -29
  74. package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.cjs +0 -1
  75. package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js +0 -15
  76. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.cjs +0 -1
  77. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.js +0 -20
  78. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.cjs +0 -1
  79. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.js +0 -31
  80. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.cjs +0 -1
  81. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js +0 -7
  82. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.cjs +0 -1
  83. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js +0 -31
  84. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.cjs +0 -1
  85. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js +0 -9
  86. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.cjs +0 -1
  87. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js +0 -12
  88. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.cjs +0 -1
  89. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js +0 -10
  90. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.cjs +0 -1
  91. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js +0 -26
  92. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs +0 -1
  93. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js +0 -42
  94. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.cjs +0 -1
  95. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js +0 -11
  96. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.cjs +0 -1
  97. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js +0 -9
  98. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.cjs +0 -1
  99. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js +0 -12
  100. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.cjs +0 -1
  101. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js +0 -9
  102. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.cjs +0 -1
  103. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js +0 -9
  104. package/dist/node_modules/@juggle/resize-observer/lib/utils/element.cjs +0 -1
  105. package/dist/node_modules/@juggle/resize-observer/lib/utils/element.js +0 -37
  106. package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.cjs +0 -1
  107. package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.js +0 -6
  108. package/dist/node_modules/@juggle/resize-observer/lib/utils/global.cjs +0 -1
  109. package/dist/node_modules/@juggle/resize-observer/lib/utils/global.js +0 -4
  110. package/dist/node_modules/@juggle/resize-observer/lib/utils/process.cjs +0 -1
  111. package/dist/node_modules/@juggle/resize-observer/lib/utils/process.js +0 -14
  112. package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.cjs +0 -1
  113. package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js +0 -18
  114. package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.cjs +0 -1
  115. package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js +0 -9
  116. package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.cjs +0 -1
  117. package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js +0 -4
  118. package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.cjs +0 -1
  119. package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.js +0 -70
  120. package/dist/node_modules/@unovis/ts/components/area/config.cjs +0 -1
  121. package/dist/node_modules/@unovis/ts/components/area/config.js +0 -6
  122. package/dist/node_modules/@unovis/ts/components/area/index.cjs +0 -1
  123. package/dist/node_modules/@unovis/ts/components/area/index.js +0 -52
  124. package/dist/node_modules/@unovis/ts/components/area/style.cjs +0 -35
  125. package/dist/node_modules/@unovis/ts/components/area/style.js +0 -41
  126. package/dist/node_modules/@unovis/ts/components/axis/config.cjs +0 -1
  127. package/dist/node_modules/@unovis/ts/components/axis/config.js +0 -6
  128. package/dist/node_modules/@unovis/ts/components/axis/index.cjs +0 -1
  129. package/dist/node_modules/@unovis/ts/components/axis/index.js +0 -287
  130. package/dist/node_modules/@unovis/ts/components/axis/style.cjs +0 -101
  131. package/dist/node_modules/@unovis/ts/components/axis/style.js +0 -114
  132. package/dist/node_modules/@unovis/ts/components/axis/types.cjs +0 -1
  133. package/dist/node_modules/@unovis/ts/components/axis/types.js +0 -7
  134. package/dist/node_modules/@unovis/ts/components/bullet-legend/config.cjs +0 -1
  135. package/dist/node_modules/@unovis/ts/components/bullet-legend/config.js +0 -18
  136. package/dist/node_modules/@unovis/ts/components/bullet-legend/index.cjs +0 -1
  137. package/dist/node_modules/@unovis/ts/components/bullet-legend/index.js +0 -36
  138. package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.cjs +0 -1
  139. package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.js +0 -48
  140. package/dist/node_modules/@unovis/ts/components/bullet-legend/style.cjs +0 -63
  141. package/dist/node_modules/@unovis/ts/components/bullet-legend/style.js +0 -73
  142. package/dist/node_modules/@unovis/ts/components/bullet-legend/types.cjs +0 -1
  143. package/dist/node_modules/@unovis/ts/components/bullet-legend/types.js +0 -10
  144. package/dist/node_modules/@unovis/ts/components/crosshair/config.cjs +0 -1
  145. package/dist/node_modules/@unovis/ts/components/crosshair/config.js +0 -5
  146. package/dist/node_modules/@unovis/ts/components/crosshair/index.cjs +0 -1
  147. package/dist/node_modules/@unovis/ts/components/crosshair/index.js +0 -119
  148. package/dist/node_modules/@unovis/ts/components/crosshair/style.cjs +0 -22
  149. package/dist/node_modules/@unovis/ts/components/crosshair/style.js +0 -29
  150. package/dist/node_modules/@unovis/ts/components/donut/config.cjs +0 -1
  151. package/dist/node_modules/@unovis/ts/components/donut/config.js +0 -8
  152. package/dist/node_modules/@unovis/ts/components/donut/constants.cjs +0 -1
  153. package/dist/node_modules/@unovis/ts/components/donut/constants.js +0 -11
  154. package/dist/node_modules/@unovis/ts/components/donut/index.cjs +0 -1
  155. package/dist/node_modules/@unovis/ts/components/donut/index.js +0 -57
  156. package/dist/node_modules/@unovis/ts/components/donut/modules/arc.cjs +0 -1
  157. package/dist/node_modules/@unovis/ts/components/donut/modules/arc.js +0 -37
  158. package/dist/node_modules/@unovis/ts/components/donut/style.cjs +0 -58
  159. package/dist/node_modules/@unovis/ts/components/donut/style.js +0 -68
  160. package/dist/node_modules/@unovis/ts/components/grouped-bar/config.cjs +0 -1
  161. package/dist/node_modules/@unovis/ts/components/grouped-bar/config.js +0 -6
  162. package/dist/node_modules/@unovis/ts/components/grouped-bar/index.cjs +0 -1
  163. package/dist/node_modules/@unovis/ts/components/grouped-bar/index.js +0 -121
  164. package/dist/node_modules/@unovis/ts/components/grouped-bar/style.cjs +0 -35
  165. package/dist/node_modules/@unovis/ts/components/grouped-bar/style.js +0 -43
  166. package/dist/node_modules/@unovis/ts/components/line/config.cjs +0 -1
  167. package/dist/node_modules/@unovis/ts/components/line/config.js +0 -6
  168. package/dist/node_modules/@unovis/ts/components/line/index.cjs +0 -1
  169. package/dist/node_modules/@unovis/ts/components/line/index.js +0 -86
  170. package/dist/node_modules/@unovis/ts/components/line/style.cjs +0 -35
  171. package/dist/node_modules/@unovis/ts/components/line/style.js +0 -45
  172. package/dist/node_modules/@unovis/ts/components/stacked-bar/config.cjs +0 -1
  173. package/dist/node_modules/@unovis/ts/components/stacked-bar/config.js +0 -6
  174. package/dist/node_modules/@unovis/ts/components/stacked-bar/index.cjs +0 -1
  175. package/dist/node_modules/@unovis/ts/components/stacked-bar/index.js +0 -111
  176. package/dist/node_modules/@unovis/ts/components/stacked-bar/style.cjs +0 -34
  177. package/dist/node_modules/@unovis/ts/components/stacked-bar/style.js +0 -42
  178. package/dist/node_modules/@unovis/ts/components/tooltip/config.cjs +0 -1
  179. package/dist/node_modules/@unovis/ts/components/tooltip/config.js +0 -17
  180. package/dist/node_modules/@unovis/ts/components/tooltip/index.cjs +0 -1
  181. package/dist/node_modules/@unovis/ts/components/tooltip/index.js +0 -166
  182. package/dist/node_modules/@unovis/ts/components/tooltip/style.cjs +0 -61
  183. package/dist/node_modules/@unovis/ts/components/tooltip/style.js +0 -71
  184. package/dist/node_modules/@unovis/ts/containers/single-container/config.cjs +0 -1
  185. package/dist/node_modules/@unovis/ts/containers/single-container/config.js +0 -5
  186. package/dist/node_modules/@unovis/ts/containers/single-container/index.cjs +0 -1
  187. package/dist/node_modules/@unovis/ts/containers/single-container/index.js +0 -71
  188. package/dist/node_modules/@unovis/ts/containers/xy-container/config.cjs +0 -1
  189. package/dist/node_modules/@unovis/ts/containers/xy-container/config.js +0 -6
  190. package/dist/node_modules/@unovis/ts/containers/xy-container/index.cjs +0 -3
  191. package/dist/node_modules/@unovis/ts/containers/xy-container/index.js +0 -185
  192. package/dist/node_modules/@unovis/ts/core/component/config.cjs +0 -1
  193. package/dist/node_modules/@unovis/ts/core/component/config.js +0 -8
  194. package/dist/node_modules/@unovis/ts/core/component/index.cjs +0 -1
  195. package/dist/node_modules/@unovis/ts/core/component/index.js +0 -68
  196. package/dist/node_modules/@unovis/ts/core/container/config.cjs +0 -1
  197. package/dist/node_modules/@unovis/ts/core/container/config.js +0 -24
  198. package/dist/node_modules/@unovis/ts/core/container/index.cjs +0 -1
  199. package/dist/node_modules/@unovis/ts/core/container/index.js +0 -73
  200. package/dist/node_modules/@unovis/ts/core/xy-component/config.cjs +0 -1
  201. package/dist/node_modules/@unovis/ts/core/xy-component/config.js +0 -8
  202. package/dist/node_modules/@unovis/ts/core/xy-component/index.cjs +0 -1
  203. package/dist/node_modules/@unovis/ts/core/xy-component/index.js +0 -53
  204. package/dist/node_modules/@unovis/ts/data-models/core.cjs +0 -1
  205. package/dist/node_modules/@unovis/ts/data-models/core.js +0 -14
  206. package/dist/node_modules/@unovis/ts/data-models/series.cjs +0 -1
  207. package/dist/node_modules/@unovis/ts/data-models/series.js +0 -16
  208. package/dist/node_modules/@unovis/ts/styles/colors.cjs +0 -1
  209. package/dist/node_modules/@unovis/ts/styles/colors.js +0 -18
  210. package/dist/node_modules/@unovis/ts/styles/index.cjs +0 -38
  211. package/dist/node_modules/@unovis/ts/styles/index.js +0 -63
  212. package/dist/node_modules/@unovis/ts/styles/patterns.cjs +0 -15
  213. package/dist/node_modules/@unovis/ts/styles/patterns.js +0 -45
  214. package/dist/node_modules/@unovis/ts/types/component.cjs +0 -1
  215. package/dist/node_modules/@unovis/ts/types/component.js +0 -12
  216. package/dist/node_modules/@unovis/ts/types/curve.cjs +0 -1
  217. package/dist/node_modules/@unovis/ts/types/curve.js +0 -43
  218. package/dist/node_modules/@unovis/ts/types/direction.cjs +0 -1
  219. package/dist/node_modules/@unovis/ts/types/direction.js +0 -7
  220. package/dist/node_modules/@unovis/ts/types/position.cjs +0 -1
  221. package/dist/node_modules/@unovis/ts/types/position.js +0 -22
  222. package/dist/node_modules/@unovis/ts/types/scale.cjs +0 -1
  223. package/dist/node_modules/@unovis/ts/types/scale.js +0 -40
  224. package/dist/node_modules/@unovis/ts/types/svg.cjs +0 -1
  225. package/dist/node_modules/@unovis/ts/types/svg.js +0 -15
  226. package/dist/node_modules/@unovis/ts/types/symbol.cjs +0 -1
  227. package/dist/node_modules/@unovis/ts/types/symbol.js +0 -24
  228. package/dist/node_modules/@unovis/ts/types/text.cjs +0 -1
  229. package/dist/node_modules/@unovis/ts/types/text.js +0 -22
  230. package/dist/node_modules/@unovis/ts/utils/color.cjs +0 -1
  231. package/dist/node_modules/@unovis/ts/utils/color.js +0 -8
  232. package/dist/node_modules/@unovis/ts/utils/d3.cjs +0 -1
  233. package/dist/node_modules/@unovis/ts/utils/d3.js +0 -12
  234. package/dist/node_modules/@unovis/ts/utils/data.cjs +0 -1
  235. package/dist/node_modules/@unovis/ts/utils/data.js +0 -169
  236. package/dist/node_modules/@unovis/ts/utils/misc.cjs +0 -1
  237. package/dist/node_modules/@unovis/ts/utils/misc.js +0 -28
  238. package/dist/node_modules/@unovis/ts/utils/path.cjs +0 -1
  239. package/dist/node_modules/@unovis/ts/utils/path.js +0 -9
  240. package/dist/node_modules/@unovis/ts/utils/resize-observer.cjs +0 -1
  241. package/dist/node_modules/@unovis/ts/utils/resize-observer.js +0 -6
  242. package/dist/node_modules/@unovis/ts/utils/text.cjs +0 -2
  243. package/dist/node_modules/@unovis/ts/utils/text.js +0 -178
  244. package/dist/node_modules/@unovis/vue/components/area/index.cjs +0 -1
  245. package/dist/node_modules/@unovis/vue/components/area/index.js +0 -48
  246. package/dist/node_modules/@unovis/vue/components/axis/index.cjs +0 -1
  247. package/dist/node_modules/@unovis/vue/components/axis/index.js +0 -69
  248. package/dist/node_modules/@unovis/vue/components/crosshair/index.cjs +0 -1
  249. package/dist/node_modules/@unovis/vue/components/crosshair/index.js +0 -33
  250. package/dist/node_modules/@unovis/vue/components/donut/index.cjs +0 -1
  251. package/dist/node_modules/@unovis/vue/components/donut/index.js +0 -54
  252. package/dist/node_modules/@unovis/vue/components/grouped-bar/index.cjs +0 -1
  253. package/dist/node_modules/@unovis/vue/components/grouped-bar/index.js +0 -54
  254. package/dist/node_modules/@unovis/vue/components/line/index.cjs +0 -1
  255. package/dist/node_modules/@unovis/vue/components/line/index.js +0 -50
  256. package/dist/node_modules/@unovis/vue/components/stacked-bar/index.cjs +0 -1
  257. package/dist/node_modules/@unovis/vue/components/stacked-bar/index.js +0 -54
  258. package/dist/node_modules/@unovis/vue/components/tooltip/index.cjs +0 -1
  259. package/dist/node_modules/@unovis/vue/components/tooltip/index.js +0 -40
  260. package/dist/node_modules/@unovis/vue/containers/single-container/index.cjs +0 -1
  261. package/dist/node_modules/@unovis/vue/containers/single-container/index.js +0 -66
  262. package/dist/node_modules/@unovis/vue/containers/xy-container/index.cjs +0 -1
  263. package/dist/node_modules/@unovis/vue/containers/xy-container/index.js +0 -102
  264. package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.cjs +0 -1
  265. package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.js +0 -43
  266. package/dist/node_modules/@unovis/vue/index.cjs +0 -1
  267. package/dist/node_modules/@unovis/vue/index.js +0 -10
  268. package/dist/node_modules/@unovis/vue/utils/context.cjs +0 -1
  269. package/dist/node_modules/@unovis/vue/utils/context.js +0 -8
  270. package/dist/node_modules/@unovis/vue/utils/props.cjs +0 -1
  271. package/dist/node_modules/@unovis/vue/utils/props.js +0 -18
  272. package/dist/node_modules/d3-array/src/ascending.cjs +0 -1
  273. package/dist/node_modules/d3-array/src/ascending.js +0 -6
  274. package/dist/node_modules/d3-array/src/bisect.cjs +0 -1
  275. package/dist/node_modules/d3-array/src/bisect.js +0 -9
  276. package/dist/node_modules/d3-array/src/bisector.cjs +0 -1
  277. package/dist/node_modules/d3-array/src/bisector.js +0 -37
  278. package/dist/node_modules/d3-array/src/descending.cjs +0 -1
  279. package/dist/node_modules/d3-array/src/descending.js +0 -6
  280. package/dist/node_modules/d3-array/src/extent.cjs +0 -1
  281. package/dist/node_modules/d3-array/src/extent.js +0 -9
  282. package/dist/node_modules/d3-array/src/max.cjs +0 -1
  283. package/dist/node_modules/d3-array/src/max.js +0 -15
  284. package/dist/node_modules/d3-array/src/mean.cjs +0 -1
  285. package/dist/node_modules/d3-array/src/mean.js +0 -15
  286. package/dist/node_modules/d3-array/src/merge.cjs +0 -1
  287. package/dist/node_modules/d3-array/src/merge.js +0 -10
  288. package/dist/node_modules/d3-array/src/min.cjs +0 -1
  289. package/dist/node_modules/d3-array/src/min.js +0 -15
  290. package/dist/node_modules/d3-array/src/number.cjs +0 -1
  291. package/dist/node_modules/d3-array/src/number.js +0 -6
  292. package/dist/node_modules/d3-array/src/quantile.cjs +0 -1
  293. package/dist/node_modules/d3-array/src/quantile.js +0 -12
  294. package/dist/node_modules/d3-array/src/range.cjs +0 -1
  295. package/dist/node_modules/d3-array/src/range.js +0 -9
  296. package/dist/node_modules/d3-array/src/sum.cjs +0 -1
  297. package/dist/node_modules/d3-array/src/sum.js +0 -15
  298. package/dist/node_modules/d3-array/src/ticks.cjs +0 -1
  299. package/dist/node_modules/d3-array/src/ticks.js +0 -32
  300. package/dist/node_modules/d3-axis/src/axis.cjs +0 -1
  301. package/dist/node_modules/d3-axis/src/axis.js +0 -72
  302. package/dist/node_modules/d3-axis/src/identity.cjs +0 -1
  303. package/dist/node_modules/d3-axis/src/identity.js +0 -6
  304. package/dist/node_modules/d3-color/src/color.cjs +0 -1
  305. package/dist/node_modules/d3-color/src/color.js +0 -305
  306. package/dist/node_modules/d3-color/src/define.cjs +0 -1
  307. package/dist/node_modules/d3-color/src/define.js +0 -12
  308. package/dist/node_modules/d3-dispatch/src/dispatch.cjs +0 -1
  309. package/dist/node_modules/d3-dispatch/src/dispatch.js +0 -64
  310. package/dist/node_modules/d3-ease/src/cubic.cjs +0 -1
  311. package/dist/node_modules/d3-ease/src/cubic.js +0 -6
  312. package/dist/node_modules/d3-ease/src/linear.cjs +0 -1
  313. package/dist/node_modules/d3-ease/src/linear.js +0 -4
  314. package/dist/node_modules/d3-format/src/defaultLocale.cjs +0 -1
  315. package/dist/node_modules/d3-format/src/defaultLocale.js +0 -15
  316. package/dist/node_modules/d3-format/src/exponent.cjs +0 -1
  317. package/dist/node_modules/d3-format/src/exponent.js +0 -7
  318. package/dist/node_modules/d3-format/src/formatDecimal.cjs +0 -1
  319. package/dist/node_modules/d3-format/src/formatDecimal.js +0 -15
  320. package/dist/node_modules/d3-format/src/formatGroup.cjs +0 -1
  321. package/dist/node_modules/d3-format/src/formatGroup.js +0 -10
  322. package/dist/node_modules/d3-format/src/formatNumerals.cjs +0 -1
  323. package/dist/node_modules/d3-format/src/formatNumerals.js +0 -10
  324. package/dist/node_modules/d3-format/src/formatPrefixAuto.cjs +0 -1
  325. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -12
  326. package/dist/node_modules/d3-format/src/formatRounded.cjs +0 -1
  327. package/dist/node_modules/d3-format/src/formatRounded.js +0 -10
  328. package/dist/node_modules/d3-format/src/formatSpecifier.cjs +0 -1
  329. package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -28
  330. package/dist/node_modules/d3-format/src/formatTrim.cjs +0 -1
  331. package/dist/node_modules/d3-format/src/formatTrim.js +0 -19
  332. package/dist/node_modules/d3-format/src/formatTypes.cjs +0 -1
  333. package/dist/node_modules/d3-format/src/formatTypes.js +0 -21
  334. package/dist/node_modules/d3-format/src/identity.cjs +0 -1
  335. package/dist/node_modules/d3-format/src/identity.js +0 -6
  336. package/dist/node_modules/d3-format/src/locale.cjs +0 -1
  337. package/dist/node_modules/d3-format/src/locale.js +0 -68
  338. package/dist/node_modules/d3-format/src/precisionFixed.cjs +0 -1
  339. package/dist/node_modules/d3-format/src/precisionFixed.js +0 -7
  340. package/dist/node_modules/d3-format/src/precisionPrefix.cjs +0 -1
  341. package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -7
  342. package/dist/node_modules/d3-format/src/precisionRound.cjs +0 -1
  343. package/dist/node_modules/d3-format/src/precisionRound.js +0 -7
  344. package/dist/node_modules/d3-interpolate/src/array.cjs +0 -1
  345. package/dist/node_modules/d3-interpolate/src/array.js +0 -13
  346. package/dist/node_modules/d3-interpolate/src/color.cjs +0 -1
  347. package/dist/node_modules/d3-interpolate/src/color.js +0 -24
  348. package/dist/node_modules/d3-interpolate/src/constant.cjs +0 -1
  349. package/dist/node_modules/d3-interpolate/src/constant.js +0 -4
  350. package/dist/node_modules/d3-interpolate/src/date.cjs +0 -1
  351. package/dist/node_modules/d3-interpolate/src/date.js +0 -9
  352. package/dist/node_modules/d3-interpolate/src/number.cjs +0 -1
  353. package/dist/node_modules/d3-interpolate/src/number.js +0 -8
  354. package/dist/node_modules/d3-interpolate/src/numberArray.cjs +0 -1
  355. package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -15
  356. package/dist/node_modules/d3-interpolate/src/object.cjs +0 -1
  357. package/dist/node_modules/d3-interpolate/src/object.js +0 -14
  358. package/dist/node_modules/d3-interpolate/src/piecewise.cjs +0 -1
  359. package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -12
  360. package/dist/node_modules/d3-interpolate/src/rgb.cjs +0 -1
  361. package/dist/node_modules/d3-interpolate/src/rgb.js +0 -15
  362. package/dist/node_modules/d3-interpolate/src/round.cjs +0 -1
  363. package/dist/node_modules/d3-interpolate/src/round.js +0 -8
  364. package/dist/node_modules/d3-interpolate/src/string.cjs +0 -1
  365. package/dist/node_modules/d3-interpolate/src/string.js +0 -24
  366. package/dist/node_modules/d3-interpolate/src/transform/decompose.cjs +0 -1
  367. package/dist/node_modules/d3-interpolate/src/transform/decompose.js +0 -23
  368. package/dist/node_modules/d3-interpolate/src/transform/index.cjs +0 -1
  369. package/dist/node_modules/d3-interpolate/src/transform/index.js +0 -37
  370. package/dist/node_modules/d3-interpolate/src/transform/parse.cjs +0 -1
  371. package/dist/node_modules/d3-interpolate/src/transform/parse.js +0 -13
  372. package/dist/node_modules/d3-interpolate/src/value.cjs +0 -1
  373. package/dist/node_modules/d3-interpolate/src/value.js +0 -16
  374. package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.cjs +0 -2
  375. package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.js +0 -301
  376. package/dist/node_modules/d3-path/src/path.cjs +0 -1
  377. package/dist/node_modules/d3-path/src/path.js +0 -64
  378. package/dist/node_modules/d3-scale/src/band.cjs +0 -1
  379. package/dist/node_modules/d3-scale/src/band.js +0 -51
  380. package/dist/node_modules/d3-scale/src/constant.cjs +0 -1
  381. package/dist/node_modules/d3-scale/src/constant.js +0 -8
  382. package/dist/node_modules/d3-scale/src/continuous.cjs +0 -1
  383. package/dist/node_modules/d3-scale/src/continuous.js +0 -75
  384. package/dist/node_modules/d3-scale/src/diverging.cjs +0 -1
  385. package/dist/node_modules/d3-scale/src/diverging.js +0 -40
  386. package/dist/node_modules/d3-scale/src/identity.cjs +0 -1
  387. package/dist/node_modules/d3-scale/src/identity.js +0 -18
  388. package/dist/node_modules/d3-scale/src/init.cjs +0 -1
  389. package/dist/node_modules/d3-scale/src/init.js +0 -32
  390. package/dist/node_modules/d3-scale/src/linear.cjs +0 -1
  391. package/dist/node_modules/d3-scale/src/linear.js +0 -39
  392. package/dist/node_modules/d3-scale/src/log.cjs +0 -1
  393. package/dist/node_modules/d3-scale/src/log.js +0 -86
  394. package/dist/node_modules/d3-scale/src/nice.cjs +0 -1
  395. package/dist/node_modules/d3-scale/src/nice.js +0 -8
  396. package/dist/node_modules/d3-scale/src/number.cjs +0 -1
  397. package/dist/node_modules/d3-scale/src/number.js +0 -6
  398. package/dist/node_modules/d3-scale/src/ordinal.cjs +0 -1
  399. package/dist/node_modules/d3-scale/src/ordinal.js +0 -31
  400. package/dist/node_modules/d3-scale/src/pow.cjs +0 -1
  401. package/dist/node_modules/d3-scale/src/pow.js +0 -37
  402. package/dist/node_modules/d3-scale/src/quantile.cjs +0 -1
  403. package/dist/node_modules/d3-scale/src/quantile.js +0 -38
  404. package/dist/node_modules/d3-scale/src/quantize.cjs +0 -1
  405. package/dist/node_modules/d3-scale/src/quantize.js +0 -31
  406. package/dist/node_modules/d3-scale/src/sequential.cjs +0 -1
  407. package/dist/node_modules/d3-scale/src/sequential.js +0 -42
  408. package/dist/node_modules/d3-scale/src/symlog.cjs +0 -1
  409. package/dist/node_modules/d3-scale/src/symlog.js +0 -29
  410. package/dist/node_modules/d3-scale/src/threshold.cjs +0 -1
  411. package/dist/node_modules/d3-scale/src/threshold.js +0 -23
  412. package/dist/node_modules/d3-scale/src/tickFormat.cjs +0 -1
  413. package/dist/node_modules/d3-scale/src/tickFormat.js +0 -32
  414. package/dist/node_modules/d3-scale/src/time.cjs +0 -1
  415. package/dist/node_modules/d3-scale/src/time.js +0 -46
  416. package/dist/node_modules/d3-scale/src/utcTime.cjs +0 -1
  417. package/dist/node_modules/d3-scale/src/utcTime.js +0 -17
  418. package/dist/node_modules/d3-selection/src/array.cjs +0 -1
  419. package/dist/node_modules/d3-selection/src/array.js +0 -6
  420. package/dist/node_modules/d3-selection/src/constant.cjs +0 -1
  421. package/dist/node_modules/d3-selection/src/constant.js +0 -8
  422. package/dist/node_modules/d3-selection/src/creator.cjs +0 -1
  423. package/dist/node_modules/d3-selection/src/creator.js +0 -20
  424. package/dist/node_modules/d3-selection/src/matcher.cjs +0 -1
  425. package/dist/node_modules/d3-selection/src/matcher.js +0 -14
  426. package/dist/node_modules/d3-selection/src/namespace.cjs +0 -1
  427. package/dist/node_modules/d3-selection/src/namespace.js +0 -8
  428. package/dist/node_modules/d3-selection/src/namespaces.cjs +0 -1
  429. package/dist/node_modules/d3-selection/src/namespaces.js +0 -12
  430. package/dist/node_modules/d3-selection/src/pointer.cjs +0 -1
  431. package/dist/node_modules/d3-selection/src/pointer.js +0 -18
  432. package/dist/node_modules/d3-selection/src/select.cjs +0 -1
  433. package/dist/node_modules/d3-selection/src/select.js +0 -7
  434. package/dist/node_modules/d3-selection/src/selection/append.cjs +0 -1
  435. package/dist/node_modules/d3-selection/src/selection/append.js +0 -10
  436. package/dist/node_modules/d3-selection/src/selection/attr.cjs +0 -1
  437. package/dist/node_modules/d3-selection/src/selection/attr.js +0 -44
  438. package/dist/node_modules/d3-selection/src/selection/call.cjs +0 -1
  439. package/dist/node_modules/d3-selection/src/selection/call.js +0 -7
  440. package/dist/node_modules/d3-selection/src/selection/classed.cjs +0 -1
  441. package/dist/node_modules/d3-selection/src/selection/classed.js +0 -54
  442. package/dist/node_modules/d3-selection/src/selection/clone.cjs +0 -1
  443. package/dist/node_modules/d3-selection/src/selection/clone.js +0 -14
  444. package/dist/node_modules/d3-selection/src/selection/data.cjs +0 -1
  445. package/dist/node_modules/d3-selection/src/selection/data.js +0 -42
  446. package/dist/node_modules/d3-selection/src/selection/datum.cjs +0 -1
  447. package/dist/node_modules/d3-selection/src/selection/datum.js +0 -6
  448. package/dist/node_modules/d3-selection/src/selection/dispatch.cjs +0 -1
  449. package/dist/node_modules/d3-selection/src/selection/dispatch.js +0 -21
  450. package/dist/node_modules/d3-selection/src/selection/each.cjs +0 -1
  451. package/dist/node_modules/d3-selection/src/selection/each.js +0 -9
  452. package/dist/node_modules/d3-selection/src/selection/empty.cjs +0 -1
  453. package/dist/node_modules/d3-selection/src/selection/empty.js +0 -6
  454. package/dist/node_modules/d3-selection/src/selection/enter.cjs +0 -1
  455. package/dist/node_modules/d3-selection/src/selection/enter.js +0 -27
  456. package/dist/node_modules/d3-selection/src/selection/exit.cjs +0 -1
  457. package/dist/node_modules/d3-selection/src/selection/exit.js +0 -8
  458. package/dist/node_modules/d3-selection/src/selection/filter.cjs +0 -1
  459. package/dist/node_modules/d3-selection/src/selection/filter.js +0 -12
  460. package/dist/node_modules/d3-selection/src/selection/html.cjs +0 -1
  461. package/dist/node_modules/d3-selection/src/selection/html.js +0 -20
  462. package/dist/node_modules/d3-selection/src/selection/index.cjs +0 -1
  463. package/dist/node_modules/d3-selection/src/selection/index.js +0 -87
  464. package/dist/node_modules/d3-selection/src/selection/insert.cjs +0 -1
  465. package/dist/node_modules/d3-selection/src/selection/insert.js +0 -14
  466. package/dist/node_modules/d3-selection/src/selection/iterator.cjs +0 -1
  467. package/dist/node_modules/d3-selection/src/selection/iterator.js +0 -8
  468. package/dist/node_modules/d3-selection/src/selection/join.cjs +0 -1
  469. package/dist/node_modules/d3-selection/src/selection/join.js +0 -7
  470. package/dist/node_modules/d3-selection/src/selection/lower.cjs +0 -1
  471. package/dist/node_modules/d3-selection/src/selection/lower.js +0 -9
  472. package/dist/node_modules/d3-selection/src/selection/merge.cjs +0 -1
  473. package/dist/node_modules/d3-selection/src/selection/merge.js +0 -12
  474. package/dist/node_modules/d3-selection/src/selection/node.cjs +0 -1
  475. package/dist/node_modules/d3-selection/src/selection/node.js +0 -11
  476. package/dist/node_modules/d3-selection/src/selection/nodes.cjs +0 -1
  477. package/dist/node_modules/d3-selection/src/selection/nodes.js +0 -6
  478. package/dist/node_modules/d3-selection/src/selection/on.cjs +0 -1
  479. package/dist/node_modules/d3-selection/src/selection/on.js +0 -52
  480. package/dist/node_modules/d3-selection/src/selection/order.cjs +0 -1
  481. package/dist/node_modules/d3-selection/src/selection/order.js +0 -9
  482. package/dist/node_modules/d3-selection/src/selection/property.cjs +0 -1
  483. package/dist/node_modules/d3-selection/src/selection/property.js +0 -22
  484. package/dist/node_modules/d3-selection/src/selection/raise.cjs +0 -1
  485. package/dist/node_modules/d3-selection/src/selection/raise.js +0 -9
  486. package/dist/node_modules/d3-selection/src/selection/remove.cjs +0 -1
  487. package/dist/node_modules/d3-selection/src/selection/remove.js +0 -10
  488. package/dist/node_modules/d3-selection/src/selection/select.cjs +0 -1
  489. package/dist/node_modules/d3-selection/src/selection/select.js +0 -12
  490. package/dist/node_modules/d3-selection/src/selection/selectAll.cjs +0 -1
  491. package/dist/node_modules/d3-selection/src/selection/selectAll.js +0 -18
  492. package/dist/node_modules/d3-selection/src/selection/selectChild.cjs +0 -1
  493. package/dist/node_modules/d3-selection/src/selection/selectChild.js +0 -16
  494. package/dist/node_modules/d3-selection/src/selection/selectChildren.cjs +0 -1
  495. package/dist/node_modules/d3-selection/src/selection/selectChildren.js +0 -16
  496. package/dist/node_modules/d3-selection/src/selection/size.cjs +0 -1
  497. package/dist/node_modules/d3-selection/src/selection/size.js +0 -8
  498. package/dist/node_modules/d3-selection/src/selection/sort.cjs +0 -1
  499. package/dist/node_modules/d3-selection/src/selection/sort.js +0 -19
  500. package/dist/node_modules/d3-selection/src/selection/sparse.cjs +0 -1
  501. package/dist/node_modules/d3-selection/src/selection/sparse.js +0 -6
  502. package/dist/node_modules/d3-selection/src/selection/style.cjs +0 -1
  503. package/dist/node_modules/d3-selection/src/selection/style.js +0 -27
  504. package/dist/node_modules/d3-selection/src/selection/text.cjs +0 -1
  505. package/dist/node_modules/d3-selection/src/selection/text.js +0 -20
  506. package/dist/node_modules/d3-selection/src/selector.cjs +0 -1
  507. package/dist/node_modules/d3-selection/src/selector.js +0 -10
  508. package/dist/node_modules/d3-selection/src/selectorAll.cjs +0 -1
  509. package/dist/node_modules/d3-selection/src/selectorAll.js +0 -11
  510. package/dist/node_modules/d3-selection/src/sourceEvent.cjs +0 -1
  511. package/dist/node_modules/d3-selection/src/sourceEvent.js +0 -8
  512. package/dist/node_modules/d3-selection/src/window.cjs +0 -1
  513. package/dist/node_modules/d3-selection/src/window.js +0 -6
  514. package/dist/node_modules/d3-shape/src/arc.cjs +0 -1
  515. package/dist/node_modules/d3-shape/src/arc.js +0 -85
  516. package/dist/node_modules/d3-shape/src/area.cjs +0 -1
  517. package/dist/node_modules/d3-shape/src/area.js +0 -56
  518. package/dist/node_modules/d3-shape/src/array.cjs +0 -1
  519. package/dist/node_modules/d3-shape/src/array.js +0 -6
  520. package/dist/node_modules/d3-shape/src/constant.cjs +0 -1
  521. package/dist/node_modules/d3-shape/src/constant.js +0 -8
  522. package/dist/node_modules/d3-shape/src/curve/basis.cjs +0 -1
  523. package/dist/node_modules/d3-shape/src/curve/basis.js +0 -60
  524. package/dist/node_modules/d3-shape/src/curve/basisClosed.cjs +0 -1
  525. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -51
  526. package/dist/node_modules/d3-shape/src/curve/basisOpen.cjs +0 -1
  527. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -46
  528. package/dist/node_modules/d3-shape/src/curve/bundle.cjs +0 -1
  529. package/dist/node_modules/d3-shape/src/curve/bundle.js +0 -33
  530. package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +0 -1
  531. package/dist/node_modules/d3-shape/src/curve/cardinal.js +0 -65
  532. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.cjs +0 -1
  533. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +0 -57
  534. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.cjs +0 -1
  535. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +0 -50
  536. package/dist/node_modules/d3-shape/src/curve/catmullRom.cjs +0 -1
  537. package/dist/node_modules/d3-shape/src/curve/catmullRom.js +0 -72
  538. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.cjs +0 -1
  539. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +0 -61
  540. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.cjs +0 -1
  541. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +0 -54
  542. package/dist/node_modules/d3-shape/src/curve/linear.cjs +0 -1
  543. package/dist/node_modules/d3-shape/src/curve/linear.js +0 -36
  544. package/dist/node_modules/d3-shape/src/curve/linearClosed.cjs +0 -1
  545. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -23
  546. package/dist/node_modules/d3-shape/src/curve/monotone.cjs +0 -1
  547. package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -93
  548. package/dist/node_modules/d3-shape/src/curve/natural.cjs +0 -1
  549. package/dist/node_modules/d3-shape/src/curve/natural.js +0 -41
  550. package/dist/node_modules/d3-shape/src/curve/step.cjs +0 -1
  551. package/dist/node_modules/d3-shape/src/curve/step.js +0 -51
  552. package/dist/node_modules/d3-shape/src/descending.cjs +0 -1
  553. package/dist/node_modules/d3-shape/src/descending.js +0 -6
  554. package/dist/node_modules/d3-shape/src/identity.cjs +0 -1
  555. package/dist/node_modules/d3-shape/src/identity.js +0 -6
  556. package/dist/node_modules/d3-shape/src/line.cjs +0 -1
  557. package/dist/node_modules/d3-shape/src/line.js +0 -29
  558. package/dist/node_modules/d3-shape/src/math.cjs +0 -1
  559. package/dist/node_modules/d3-shape/src/math.js +0 -22
  560. package/dist/node_modules/d3-shape/src/noop.cjs +0 -1
  561. package/dist/node_modules/d3-shape/src/noop.js +0 -5
  562. package/dist/node_modules/d3-shape/src/path.cjs +0 -1
  563. package/dist/node_modules/d3-shape/src/path.js +0 -18
  564. package/dist/node_modules/d3-shape/src/pie.cjs +0 -1
  565. package/dist/node_modules/d3-shape/src/pie.js +0 -43
  566. package/dist/node_modules/d3-shape/src/point.cjs +0 -1
  567. package/dist/node_modules/d3-shape/src/point.js +0 -10
  568. package/dist/node_modules/d3-shape/src/symbol/circle.cjs +0 -1
  569. package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -10
  570. package/dist/node_modules/d3-shape/src/symbol/cross.cjs +0 -1
  571. package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -10
  572. package/dist/node_modules/d3-shape/src/symbol/diamond.cjs +0 -1
  573. package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -10
  574. package/dist/node_modules/d3-shape/src/symbol/square.cjs +0 -1
  575. package/dist/node_modules/d3-shape/src/symbol/square.js +0 -10
  576. package/dist/node_modules/d3-shape/src/symbol/star.cjs +0 -1
  577. package/dist/node_modules/d3-shape/src/symbol/star.js +0 -15
  578. package/dist/node_modules/d3-shape/src/symbol/triangle.cjs +0 -1
  579. package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -10
  580. package/dist/node_modules/d3-shape/src/symbol/wye.cjs +0 -1
  581. package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -10
  582. package/dist/node_modules/d3-shape/src/symbol.cjs +0 -1
  583. package/dist/node_modules/d3-shape/src/symbol.js +0 -21
  584. package/dist/node_modules/d3-time/src/day.cjs +0 -1
  585. package/dist/node_modules/d3-time/src/day.js +0 -26
  586. package/dist/node_modules/d3-time/src/duration.cjs +0 -1
  587. package/dist/node_modules/d3-time/src/duration.js +0 -10
  588. package/dist/node_modules/d3-time/src/hour.cjs +0 -1
  589. package/dist/node_modules/d3-time/src/hour.js +0 -18
  590. package/dist/node_modules/d3-time/src/interval.cjs +0 -1
  591. package/dist/node_modules/d3-time/src/interval.js +0 -31
  592. package/dist/node_modules/d3-time/src/millisecond.cjs +0 -1
  593. package/dist/node_modules/d3-time/src/millisecond.js +0 -14
  594. package/dist/node_modules/d3-time/src/minute.cjs +0 -1
  595. package/dist/node_modules/d3-time/src/minute.js +0 -18
  596. package/dist/node_modules/d3-time/src/month.cjs +0 -1
  597. package/dist/node_modules/d3-time/src/month.js +0 -17
  598. package/dist/node_modules/d3-time/src/second.cjs +0 -1
  599. package/dist/node_modules/d3-time/src/second.js +0 -11
  600. package/dist/node_modules/d3-time/src/ticks.cjs +0 -1
  601. package/dist/node_modules/d3-time/src/ticks.js +0 -54
  602. package/dist/node_modules/d3-time/src/week.cjs +0 -1
  603. package/dist/node_modules/d3-time/src/week.js +0 -48
  604. package/dist/node_modules/d3-time/src/year.cjs +0 -1
  605. package/dist/node_modules/d3-time/src/year.js +0 -27
  606. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +0 -1
  607. package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -20
  608. package/dist/node_modules/d3-time-format/src/locale.cjs +0 -1
  609. package/dist/node_modules/d3-time-format/src/locale.js +0 -478
  610. package/dist/node_modules/d3-timer/src/timeout.cjs +0 -1
  611. package/dist/node_modules/d3-timer/src/timeout.js +0 -10
  612. package/dist/node_modules/d3-timer/src/timer.cjs +0 -1
  613. package/dist/node_modules/d3-timer/src/timer.js +0 -62
  614. package/dist/node_modules/d3-transition/src/interrupt.cjs +0 -1
  615. package/dist/node_modules/d3-transition/src/interrupt.js +0 -18
  616. package/dist/node_modules/d3-transition/src/selection/index.cjs +0 -1
  617. package/dist/node_modules/d3-transition/src/selection/index.js +0 -5
  618. package/dist/node_modules/d3-transition/src/selection/interrupt.cjs +0 -1
  619. package/dist/node_modules/d3-transition/src/selection/interrupt.js +0 -9
  620. package/dist/node_modules/d3-transition/src/selection/transition.cjs +0 -1
  621. package/dist/node_modules/d3-transition/src/selection/transition.js +0 -28
  622. package/dist/node_modules/d3-transition/src/transition/attr.cjs +0 -1
  623. package/dist/node_modules/d3-transition/src/transition/attr.js +0 -49
  624. package/dist/node_modules/d3-transition/src/transition/attrTween.cjs +0 -1
  625. package/dist/node_modules/d3-transition/src/transition/attrTween.js +0 -38
  626. package/dist/node_modules/d3-transition/src/transition/delay.cjs +0 -1
  627. package/dist/node_modules/d3-transition/src/transition/delay.js +0 -18
  628. package/dist/node_modules/d3-transition/src/transition/duration.cjs +0 -1
  629. package/dist/node_modules/d3-transition/src/transition/duration.js +0 -18
  630. package/dist/node_modules/d3-transition/src/transition/ease.cjs +0 -1
  631. package/dist/node_modules/d3-transition/src/transition/ease.js +0 -14
  632. package/dist/node_modules/d3-transition/src/transition/easeVarying.cjs +0 -1
  633. package/dist/node_modules/d3-transition/src/transition/easeVarying.js +0 -15
  634. package/dist/node_modules/d3-transition/src/transition/end.cjs +0 -1
  635. package/dist/node_modules/d3-transition/src/transition/end.js +0 -16
  636. package/dist/node_modules/d3-transition/src/transition/filter.cjs +0 -1
  637. package/dist/node_modules/d3-transition/src/transition/filter.js +0 -12
  638. package/dist/node_modules/d3-transition/src/transition/index.cjs +0 -1
  639. package/dist/node_modules/d3-transition/src/transition/index.js +0 -65
  640. package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +0 -1
  641. package/dist/node_modules/d3-transition/src/transition/interpolate.js +0 -11
  642. package/dist/node_modules/d3-transition/src/transition/merge.cjs +0 -1
  643. package/dist/node_modules/d3-transition/src/transition/merge.js +0 -13
  644. package/dist/node_modules/d3-transition/src/transition/on.cjs +0 -1
  645. package/dist/node_modules/d3-transition/src/transition/on.js +0 -21
  646. package/dist/node_modules/d3-transition/src/transition/remove.cjs +0 -1
  647. package/dist/node_modules/d3-transition/src/transition/remove.js +0 -13
  648. package/dist/node_modules/d3-transition/src/transition/schedule.cjs +0 -1
  649. package/dist/node_modules/d3-transition/src/transition/schedule.js +0 -85
  650. package/dist/node_modules/d3-transition/src/transition/select.cjs +0 -1
  651. package/dist/node_modules/d3-transition/src/transition/select.js +0 -14
  652. package/dist/node_modules/d3-transition/src/transition/selectAll.cjs +0 -1
  653. package/dist/node_modules/d3-transition/src/transition/selectAll.js +0 -18
  654. package/dist/node_modules/d3-transition/src/transition/selection.cjs +0 -1
  655. package/dist/node_modules/d3-transition/src/transition/selection.js +0 -8
  656. package/dist/node_modules/d3-transition/src/transition/style.cjs +0 -1
  657. package/dist/node_modules/d3-transition/src/transition/style.js +0 -45
  658. package/dist/node_modules/d3-transition/src/transition/styleTween.cjs +0 -1
  659. package/dist/node_modules/d3-transition/src/transition/styleTween.js +0 -23
  660. package/dist/node_modules/d3-transition/src/transition/text.cjs +0 -1
  661. package/dist/node_modules/d3-transition/src/transition/text.js +0 -18
  662. package/dist/node_modules/d3-transition/src/transition/textTween.cjs +0 -1
  663. package/dist/node_modules/d3-transition/src/transition/textTween.js +0 -23
  664. package/dist/node_modules/d3-transition/src/transition/transition.cjs +0 -1
  665. package/dist/node_modules/d3-transition/src/transition/transition.js +0 -19
  666. package/dist/node_modules/d3-transition/src/transition/tween.cjs +0 -1
  667. package/dist/node_modules/d3-transition/src/transition/tween.js +0 -56
  668. package/dist/node_modules/internmap/src/index.cjs +0 -1
  669. package/dist/node_modules/internmap/src/index.js +0 -35
  670. package/dist/node_modules/parse-unit/index.cjs +0 -1
  671. package/dist/node_modules/parse-unit/index.js +0 -11
  672. package/dist/node_modules/striptags/src/striptags.cjs +0 -2
  673. package/dist/node_modules/striptags/src/striptags.js +0 -118
  674. package/dist/node_modules/stylis/src/Enum.cjs +0 -1
  675. package/dist/node_modules/stylis/src/Enum.js +0 -12
  676. package/dist/node_modules/stylis/src/Middleware.cjs +0 -1
  677. package/dist/node_modules/stylis/src/Middleware.js +0 -18
  678. package/dist/node_modules/stylis/src/Parser.cjs +0 -1
  679. package/dist/node_modules/stylis/src/Parser.js +0 -131
  680. package/dist/node_modules/stylis/src/Serializer.cjs +0 -1
  681. package/dist/node_modules/stylis/src/Serializer.js +0 -27
  682. package/dist/node_modules/stylis/src/Tokenizer.cjs +0 -1
  683. package/dist/node_modules/stylis/src/Tokenizer.js +0 -141
  684. package/dist/node_modules/stylis/src/Utility.cjs +0 -1
  685. package/dist/node_modules/stylis/src/Utility.js +0 -50
  686. package/dist/node_modules/throttle-debounce/esm/index.cjs +0 -1
  687. package/dist/node_modules/throttle-debounce/esm/index.js +0 -28
  688. package/dist/node_modules/to-px/browser.cjs +0 -1
  689. package/dist/node_modules/to-px/browser.js +0 -63
  690. package/dist/types.cjs +0 -1
  691. package/dist/utils.cjs +0 -1
  692. package/dist/vite.svg +0 -1
  693. /package/dist/components/{Area → AreaChart}/AreaChart.vue.d.ts +0 -0
  694. /package/dist/components/{Area → AreaChart}/AreaChart2.js +0 -0
  695. /package/dist/components/{AreaStacked → AreaStackedChart}/AreaStackedChart.vue.d.ts +0 -0
  696. /package/dist/components/{AreaStacked → AreaStackedChart}/AreaStackedChart2.js +0 -0
  697. /package/dist/components/{Bar → BarChart}/BarChart2.js +0 -0
  698. /package/dist/components/{Donut → DonutChart}/DonutChart2.js +0 -0
  699. /package/dist/components/{Line → LineChart}/LineChart2.js +0 -0
@@ -1,58 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../@emotion/css/dist/emotion-css.esm.cjs"),l=t.css`
2
- label: donut-component;
3
- `,e=t.injectGlobal`
4
- :root {
5
- --vis-donut-central-label-font-size: 16px;
6
- --vis-donut-central-label-text-color: #5b5f6d;
7
- // Undefined by default to allow proper fallback to var(--vis-font-family)
8
- /* --vis-donut-central-label-font-family: */
9
- --vis-donut-central-label-font-weight: 600;
10
-
11
- --vis-donut-central-sub-label-font-size: 12px;
12
- --vis-donut-central-sub-label-text-color: #5b5f6d;
13
- // Undefined by default to allow proper fallback to var(--vis-font-family)
14
- /* --vis-donut-central-sub-label-font-family: */
15
- --vis-donut-central-sub-label-font-weight: 500;
16
-
17
- --vis-donut-background-color: #E7E9F3;
18
- --vis-donut-segment-stroke-width: 0;
19
- // The line segment color variable is not defined by default
20
- // to allow it to fallback to the donut background color
21
- /* --vis-donut-segment-stroke-color: none; */
22
-
23
- --vis-dark-donut-central-label-text-color: #C2BECE;
24
- --vis-dark-donut-central-sub-label-text-color: #C2BECE;
25
- --vis-dark-donut-background-color: #18160C;
26
- }
27
-
28
- body.theme-dark ${`.${l}`} {
29
- --vis-donut-central-label-text-color: var(--vis-dark-donut-central-label-text-color);
30
- --vis-donut-central-sub-label-text-color: var(--vis-dark-donut-central-sub-label-text-color);
31
- --vis-donut-background-color: var(--vis-dark-donut-background-color);
32
- }
33
- `,o=t.css`
34
- label: background;
35
- fill: var(--vis-donut-background-color);
36
- `,n=t.css`
37
- label: segment;
38
- stroke-width: var(--vis-donut-segment-stroke-width);
39
- stroke: var(--vis-donut-segment-stroke-color, var(--vis-donut-background-color));
40
- `,a=t.css`
41
- label: segment-exit;
42
- `,r=t.css`
43
- label: central-label;
44
- text-anchor: middle;
45
- dominant-baseline: middle;
46
- font-size: var(--vis-donut-central-label-font-size);
47
- font-family: var(--vis-donut-central-label-font-family, var(--vis-font-family));
48
- font-weight: var(--vis-donut-central-label-font-weight);
49
- fill: var(--vis-donut-central-label-text-color);
50
- `,s=t.css`
51
- label: central-label;
52
- text-anchor: middle;
53
- dominant-baseline: middle;
54
- font-size: var(--vis-donut-central-sub-label-font-size);
55
- font-family: var(--vis-donut-central-sub-label-font-family, var(--vis-font-family));
56
- font-weight: var(--vis-donut-central-sub-label-font-weight);
57
- fill: var(--vis-donut-central-sub-label-text-color);
58
- `;exports.background=o;exports.centralLabel=r;exports.centralSubLabel=s;exports.root=l;exports.segment=n;exports.segmentExit=a;exports.variables=e;
@@ -1,68 +0,0 @@
1
- import { css as t, injectGlobal as l } from "../../../../@emotion/css/dist/emotion-css.esm.js";
2
- const o = t`
3
- label: donut-component;
4
- `, n = l`
5
- :root {
6
- --vis-donut-central-label-font-size: 16px;
7
- --vis-donut-central-label-text-color: #5b5f6d;
8
- // Undefined by default to allow proper fallback to var(--vis-font-family)
9
- /* --vis-donut-central-label-font-family: */
10
- --vis-donut-central-label-font-weight: 600;
11
-
12
- --vis-donut-central-sub-label-font-size: 12px;
13
- --vis-donut-central-sub-label-text-color: #5b5f6d;
14
- // Undefined by default to allow proper fallback to var(--vis-font-family)
15
- /* --vis-donut-central-sub-label-font-family: */
16
- --vis-donut-central-sub-label-font-weight: 500;
17
-
18
- --vis-donut-background-color: #E7E9F3;
19
- --vis-donut-segment-stroke-width: 0;
20
- // The line segment color variable is not defined by default
21
- // to allow it to fallback to the donut background color
22
- /* --vis-donut-segment-stroke-color: none; */
23
-
24
- --vis-dark-donut-central-label-text-color: #C2BECE;
25
- --vis-dark-donut-central-sub-label-text-color: #C2BECE;
26
- --vis-dark-donut-background-color: #18160C;
27
- }
28
-
29
- body.theme-dark ${`.${o}`} {
30
- --vis-donut-central-label-text-color: var(--vis-dark-donut-central-label-text-color);
31
- --vis-donut-central-sub-label-text-color: var(--vis-dark-donut-central-sub-label-text-color);
32
- --vis-donut-background-color: var(--vis-dark-donut-background-color);
33
- }
34
- `, a = t`
35
- label: background;
36
- fill: var(--vis-donut-background-color);
37
- `, r = t`
38
- label: segment;
39
- stroke-width: var(--vis-donut-segment-stroke-width);
40
- stroke: var(--vis-donut-segment-stroke-color, var(--vis-donut-background-color));
41
- `, i = t`
42
- label: segment-exit;
43
- `, s = t`
44
- label: central-label;
45
- text-anchor: middle;
46
- dominant-baseline: middle;
47
- font-size: var(--vis-donut-central-label-font-size);
48
- font-family: var(--vis-donut-central-label-font-family, var(--vis-font-family));
49
- font-weight: var(--vis-donut-central-label-font-weight);
50
- fill: var(--vis-donut-central-label-text-color);
51
- `, d = t`
52
- label: central-label;
53
- text-anchor: middle;
54
- dominant-baseline: middle;
55
- font-size: var(--vis-donut-central-sub-label-font-size);
56
- font-family: var(--vis-donut-central-sub-label-font-family, var(--vis-font-family));
57
- font-weight: var(--vis-donut-central-sub-label-font-weight);
58
- fill: var(--vis-donut-central-sub-label-text-color);
59
- `;
60
- export {
61
- a as background,
62
- s as centralLabel,
63
- d as centralSubLabel,
64
- o as root,
65
- r as segment,
66
- i as segmentExit,
67
- n as variables
68
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../core/xy-component/config.cjs"),n=require("../../types/position.cjs"),i=Object.assign(Object.assign({},e.XYComponentDefaultConfig),{color:void 0,groupMaxWidth:void 0,groupWidth:void 0,dataStep:void 0,groupPadding:.05,barPadding:0,roundedCorners:2,barMinHeight:2,cursor:null,orientation:n.Orientation.Vertical});exports.GroupedBarDefaultConfig=i;
@@ -1,6 +0,0 @@
1
- import { XYComponentDefaultConfig as n } from "../../core/xy-component/config.js";
2
- import { Orientation as e } from "../../types/position.js";
3
- const r = Object.assign(Object.assign({}, n), { color: void 0, groupMaxWidth: void 0, groupWidth: void 0, dataStep: void 0, groupPadding: 0.05, barPadding: 0, roundedCorners: 2, barMinHeight: 2, cursor: null, orientation: e.Vertical });
4
- export {
5
- r as GroupedBarDefaultConfig
6
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../../core/xy-component/index.cjs"),l=require("../../utils/data.cjs"),$=require("../../utils/path.cjs"),D=require("../../utils/d3.cjs"),M=require("../../utils/color.cjs"),y=require("../../types/direction.cjs"),B=require("../../types/position.cjs"),N=require("./config.cjs"),x=require("./style.cjs"),E=require("../../../../d3-array/src/min.cjs"),T=require("../../../../d3-array/src/max.cjs"),R=require("../../../../d3-scale/src/band.cjs"),H=require("../../../../d3-array/src/range.cjs");class W extends P.XYComponentCore{constructor(e){super(),this._defaultConfig=N.GroupedBarDefaultConfig,this.config=this._defaultConfig,this.getAccessors=()=>l.isArray(this.config.y)?this.config.y:[this.config.y],this.events={},this._barData=[],e&&this.setConfig(e)}get bleed(){if(this._barData=this._getVisibleData(),this._barData.length===0)return{top:0,bottom:0,left:0,right:0};const e=!this.isVertical()&&this.dataScale.range()[0]>this.dataScale.range()[1],t=this.dataScale.domain(),a=this._getGroupWidth()/2,i=this._barData.map((f,S)=>l.getNumber(f,this.config.x,S)),r=E.default(i),s=T.default(i),h=this.dataScale(r),u=this.dataScale(s),g=this.dataScale.invert(h+(e?a:-a)),d=this.dataScale.invert(u+(e?-a:a)),o=g<=t[0]?this.dataScale(t[0])-this.dataScale(g):0,p=d>t[1]?this.dataScale(d)-this.dataScale(t[1]):0;return{top:this.isVertical()?0:e?-p:o,bottom:this.isVertical()?0:e?-o:p,left:this.isVertical()?o:0,right:this.isVertical()?p:0}}get dataScale(){return this.isVertical()?this.xScale:this.yScale}get valueScale(){return this.isVertical()?this.yScale:this.xScale}isVertical(){return this.config.orientation===B.Orientation.Vertical}_render(e){const{config:t}=this,a=l.isNumber(e)?e:t.duration,i=this._getGroupWidth(),r=this.getAccessors(),s=[-i/2,i/2],h=R.default().domain(H.default(r.length)).range(s).paddingInner(t.barPadding).paddingOuter(t.barPadding),u=this.g.selectAll(`.${x.barGroup}`).data(this._barData,(c,n)=>{var m;return`${(m=l.getString(c,t.id,n))!==null&&m!==void 0?m:n}`}),g=(c,n)=>{const m=this.dataScale(l.getNumber(c,t.x,n)),V=this.isVertical()?m:0,b=this.isVertical()?0:m;return`translate(${V},${b})`},o=u.enter().append("g").attr("class",x.barGroup).attr("transform",g).style("opacity",1).merge(u);D.smartTransition(o,a).attr("transform",g).style("opacity",1);const p=u.exit().attr("class",x.barGroupExit);D.smartTransition(p,a).style("opacity",0).remove(),D.smartTransition(p.selectAll(`.${x.bar}`),a).attr("transform",(c,n,m)=>this.isVertical()?`translate(0,${this.yScale(0)}) scale(1,0)`:`translate(${this.xScale(0)},0) scale(0,1)`);const f=h.bandwidth(),S=o.selectAll(`.${x.bar}`).data(c=>r.map(()=>c)),v=this._getValueAxisDirection(),A=S.enter().append("path").attr("class",x.bar).attr("d",(c,n)=>{const m=h(n),V=this.valueScale(0),b=f;return this._getBarPath(m,V,b,0,!1,v)}).style("fill",(c,n)=>M.getColor(c,t.color,n)).merge(S);D.smartTransition(A,a).attr("d",(c,n)=>{const m=h(n),V=f,b=l.getNumber(c,r[n]),_=b<0;let q=_?this.valueScale(0):this.valueScale(b||0),G=Math.abs(this.valueScale(0)-this.valueScale(b))||0;if(G<t.barMinHeight){const C=v===y.Direction.North?-1:1;q=this.valueScale(0)+C*t.barMinHeight,G=t.barMinHeight}return this._getBarPath(m,q,V,G,_,v)}).style("fill",(c,n)=>M.getColor(c,t.color,n)).style("cursor",(c,n)=>l.getString(c,t.cursor,n)),D.smartTransition(S.exit(),a).remove()}_getValueAxisDirection(){return this.valueScale.range()[0]>this.valueScale.range()[1]?y.Direction.North:y.Direction.South}_getVisibleData(){const{config:e,datamodel:{data:t}}=this,a=this._getGroupWidth(),i=t.length<2?0:a/2,r=this.dataScale,s=Math.abs(r.invert(i)-r.invert(0));return t==null?void 0:t.filter((u,g)=>{const d=l.getNumber(u,e.x,g),o=r.domain(),p=+o[0],f=+o[1];return d>=p-s&&d<=f+s})}_getBarPath(e,t,a,i,r,s){const{config:h}=this,u=h.roundedCorners?l.isNumber(h.roundedCorners)?+h.roundedCorners:a/2:0,g=l.clamp(u,0,Math.min(i,a)/2),d=s===y.Direction.North,o=this.isVertical()&&r!==d,p=this.isVertical()&&r===d,f=!this.isVertical()&&r,S=!this.isVertical()&&!r;return $.roundedRectPath({x:this.isVertical()?e:t+(d?0:-i),y:this.isVertical()?t+(d?0:-i):e,w:this.isVertical()?a:i,h:this.isVertical()?i:a,tl:o||f,tr:o||S,bl:p||f,br:p||S,r:g})}_getGroupWidth(){const{config:e,datamodel:{data:t}}=this;if(l.isEmpty(t))return 0;if(e.groupWidth)return E.default([e.groupWidth,e.groupMaxWidth]);const a=this.dataScale.bandwidth,i=this.dataScale.domain?this.dataScale.domain():[];let s=1+(a?i.length:i[1]-i[0])/e.dataStep||!a&&t.filter((g,d)=>{const o=l.getNumber(g,e.x,d);return o>=i[0]&&o<=i[1]}).length||t.length;!a&&s>=2&&(s+=1);const u=(s<2?1:1-e.groupPadding)*(this.isVertical()?this._width:this._height)/s;return E.default([u,e.groupMaxWidth])}getValueScaleExtent(e){const{datamodel:t}=this,a=this.getAccessors(),i=e?this._getVisibleData():t.data,r=l.getMin(i,...a),s=l.getMax(i,...a);return[r>0?0:r,s<0?0:s]}getDataScaleExtent(){const{config:e,datamodel:t}=this;return l.getExtent(t.data,e.x)}getYDataExtent(e){return this.isVertical()?this.getValueScaleExtent(e):this.getDataScaleExtent()}getXDataExtent(){return this.isVertical()?this.getDataScaleExtent():this.getValueScaleExtent(!1)}}W.selectors=x;exports.GroupedBar=W;
@@ -1,121 +0,0 @@
1
- import { XYComponentCore as R } from "../../core/xy-component/index.js";
2
- import { isArray as H, getNumber as x, isNumber as M, getString as A, isEmpty as N, getMin as w, getMax as L, getExtent as O, clamp as T } from "../../utils/data.js";
3
- import { roundedRectPath as q } from "../../utils/path.js";
4
- import { smartTransition as V } from "../../utils/d3.js";
5
- import { getColor as C } from "../../utils/color.js";
6
- import { Direction as v } from "../../types/direction.js";
7
- import { Orientation as z } from "../../types/position.js";
8
- import { GroupedBarDefaultConfig as X } from "./config.js";
9
- import * as Y from "./style.js";
10
- import { barGroup as P, barGroupExit as F, bar as E } from "./style.js";
11
- import G from "../../../../d3-array/src/min.js";
12
- import I from "../../../../d3-array/src/max.js";
13
- import k from "../../../../d3-scale/src/band.js";
14
- import J from "../../../../d3-array/src/range.js";
15
- class K extends R {
16
- constructor(a) {
17
- super(), this._defaultConfig = X, this.config = this._defaultConfig, this.getAccessors = () => H(this.config.y) ? this.config.y : [this.config.y], this.events = {}, this._barData = [], a && this.setConfig(a);
18
- }
19
- get bleed() {
20
- if (this._barData = this._getVisibleData(), this._barData.length === 0)
21
- return { top: 0, bottom: 0, left: 0, right: 0 };
22
- const a = !this.isVertical() && this.dataScale.range()[0] > this.dataScale.range()[1], t = this.dataScale.domain(), e = this._getGroupWidth() / 2, i = this._barData.map((p, f) => x(p, this.config.x, f)), r = G(i), s = I(i), h = this.dataScale(r), d = this.dataScale(s), u = this.dataScale.invert(h + (a ? e : -e)), l = this.dataScale.invert(d + (a ? -e : e)), o = u <= t[0] ? this.dataScale(t[0]) - this.dataScale(u) : 0, g = l > t[1] ? this.dataScale(l) - this.dataScale(t[1]) : 0;
23
- return {
24
- top: this.isVertical() ? 0 : a ? -g : o,
25
- bottom: this.isVertical() ? 0 : a ? -o : g,
26
- left: this.isVertical() ? o : 0,
27
- right: this.isVertical() ? g : 0
28
- };
29
- }
30
- get dataScale() {
31
- return this.isVertical() ? this.xScale : this.yScale;
32
- }
33
- get valueScale() {
34
- return this.isVertical() ? this.yScale : this.xScale;
35
- }
36
- isVertical() {
37
- return this.config.orientation === z.Vertical;
38
- }
39
- _render(a) {
40
- const { config: t } = this, e = M(a) ? a : t.duration, i = this._getGroupWidth(), r = this.getAccessors(), s = [-i / 2, i / 2], h = k().domain(J(r.length)).range(s).paddingInner(t.barPadding).paddingOuter(t.barPadding), d = this.g.selectAll(`.${P}`).data(this._barData, (c, n) => {
41
- var m;
42
- return `${(m = A(c, t.id, n)) !== null && m !== void 0 ? m : n}`;
43
- }), u = (c, n) => {
44
- const m = this.dataScale(x(c, t.x, n)), b = this.isVertical() ? m : 0, S = this.isVertical() ? 0 : m;
45
- return `translate(${b},${S})`;
46
- }, o = d.enter().append("g").attr("class", P).attr("transform", u).style("opacity", 1).merge(d);
47
- V(o, e).attr("transform", u).style("opacity", 1);
48
- const g = d.exit().attr("class", F);
49
- V(g, e).style("opacity", 0).remove(), V(g.selectAll(`.${E}`), e).attr("transform", (c, n, m) => this.isVertical() ? `translate(0,${this.yScale(0)}) scale(1,0)` : `translate(${this.xScale(0)},0) scale(0,1)`);
50
- const p = h.bandwidth(), f = o.selectAll(`.${E}`).data((c) => r.map(() => c)), y = this._getValueAxisDirection(), B = f.enter().append("path").attr("class", E).attr("d", (c, n) => {
51
- const m = h(n), b = this.valueScale(0), S = p;
52
- return this._getBarPath(m, b, S, 0, !1, y);
53
- }).style("fill", (c, n) => C(c, t.color, n)).merge(f);
54
- V(B, e).attr("d", (c, n) => {
55
- const m = h(n), b = p, S = x(c, r[n]), D = S < 0;
56
- let W = D ? this.valueScale(0) : this.valueScale(S || 0), _ = Math.abs(this.valueScale(0) - this.valueScale(S)) || 0;
57
- if (_ < t.barMinHeight) {
58
- const $ = y === v.North ? -1 : 1;
59
- W = this.valueScale(0) + $ * t.barMinHeight, _ = t.barMinHeight;
60
- }
61
- return this._getBarPath(m, W, b, _, D, y);
62
- }).style("fill", (c, n) => C(c, t.color, n)).style("cursor", (c, n) => A(c, t.cursor, n)), V(f.exit(), e).remove();
63
- }
64
- _getValueAxisDirection() {
65
- return this.valueScale.range()[0] > this.valueScale.range()[1] ? v.North : v.South;
66
- }
67
- _getVisibleData() {
68
- const { config: a, datamodel: { data: t } } = this, e = this._getGroupWidth(), i = t.length < 2 ? 0 : e / 2, r = this.dataScale, s = Math.abs(r.invert(i) - r.invert(0));
69
- return t == null ? void 0 : t.filter((d, u) => {
70
- const l = x(d, a.x, u), o = r.domain(), g = +o[0], p = +o[1];
71
- return l >= g - s && l <= p + s;
72
- });
73
- }
74
- _getBarPath(a, t, e, i, r, s) {
75
- const { config: h } = this, d = h.roundedCorners ? M(h.roundedCorners) ? +h.roundedCorners : e / 2 : 0, u = T(d, 0, Math.min(i, e) / 2), l = s === v.North, o = this.isVertical() && r !== l, g = this.isVertical() && r === l, p = !this.isVertical() && r, f = !this.isVertical() && !r;
76
- return q({
77
- x: this.isVertical() ? a : t + (l ? 0 : -i),
78
- y: this.isVertical() ? t + (l ? 0 : -i) : a,
79
- w: this.isVertical() ? e : i,
80
- h: this.isVertical() ? i : e,
81
- tl: o || p,
82
- tr: o || f,
83
- bl: g || p,
84
- br: g || f,
85
- r: u
86
- });
87
- }
88
- _getGroupWidth() {
89
- const { config: a, datamodel: { data: t } } = this;
90
- if (N(t))
91
- return 0;
92
- if (a.groupWidth)
93
- return G([a.groupWidth, a.groupMaxWidth]);
94
- const e = this.dataScale.bandwidth, i = this.dataScale.domain ? this.dataScale.domain() : [];
95
- let s = 1 + (e ? i.length : i[1] - i[0]) / a.dataStep || !e && t.filter((u, l) => {
96
- const o = x(u, a.x, l);
97
- return o >= i[0] && o <= i[1];
98
- }).length || t.length;
99
- !e && s >= 2 && (s += 1);
100
- const d = (s < 2 ? 1 : 1 - a.groupPadding) * (this.isVertical() ? this._width : this._height) / s;
101
- return G([d, a.groupMaxWidth]);
102
- }
103
- getValueScaleExtent(a) {
104
- const { datamodel: t } = this, e = this.getAccessors(), i = a ? this._getVisibleData() : t.data, r = w(i, ...e), s = L(i, ...e);
105
- return [r > 0 ? 0 : r, s < 0 ? 0 : s];
106
- }
107
- getDataScaleExtent() {
108
- const { config: a, datamodel: t } = this;
109
- return O(t.data, a.x);
110
- }
111
- getYDataExtent(a) {
112
- return this.isVertical() ? this.getValueScaleExtent(a) : this.getDataScaleExtent();
113
- }
114
- getXDataExtent() {
115
- return this.isVertical() ? this.getDataScaleExtent() : this.getValueScaleExtent(!1);
116
- }
117
- }
118
- K.selectors = Y;
119
- export {
120
- K as GroupedBar
121
- };
@@ -1,35 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../@emotion/css/dist/emotion-css.esm.cjs"),o=r.css`
2
- label: grouped-bar-component;
3
- `,e=r.injectGlobal`
4
- :root {
5
- --vis-grouped-bar-cursor: default;
6
- --vis-grouped-bar-fill-color: var(--vis-color-main);
7
- --vis-grouped-bar-stroke-color: none;
8
- --vis-grouped-bar-stroke-width: 0px;
9
- --vis-grouped-bar-hover-stroke-width: 1px;
10
- --vis-grouped-bar-hover-stroke-color: none;
11
-
12
-
13
- /* Dark Theme */
14
- --vis-dark-grouped-bar-stroke-color: none;
15
- }
16
-
17
- body.theme-dark ${`.${o}`} {
18
- --vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);
19
- }
20
- `,s=r.css`
21
- label: bar;
22
- fill: var(--vis-grouped-bar-fill-color);
23
- stroke: var(--vis-grouped-bar-stroke-color);
24
- stroke-width: var(--vis-grouped-bar-stroke-width);
25
- cursor: var(--vis-grouped-bar-cursor);
26
-
27
- &:hover {
28
- stroke-width: var(--vis-grouped-bar-hover-stroke-width);
29
- stroke: var(--vis-grouped-bar-hover-stroke-color);
30
- }
31
- `,a=r.css`
32
- label: barGroup;
33
- `,t=r.css`
34
- label: barGroupExit;
35
- `;exports.bar=s;exports.barGroup=a;exports.barGroupExit=t;exports.globalStyles=e;exports.root=o;
@@ -1,43 +0,0 @@
1
- import { css as r, injectGlobal as o } from "../../../../@emotion/css/dist/emotion-css.esm.js";
2
- const e = r`
3
- label: grouped-bar-component;
4
- `, s = o`
5
- :root {
6
- --vis-grouped-bar-cursor: default;
7
- --vis-grouped-bar-fill-color: var(--vis-color-main);
8
- --vis-grouped-bar-stroke-color: none;
9
- --vis-grouped-bar-stroke-width: 0px;
10
- --vis-grouped-bar-hover-stroke-width: 1px;
11
- --vis-grouped-bar-hover-stroke-color: none;
12
-
13
-
14
- /* Dark Theme */
15
- --vis-dark-grouped-bar-stroke-color: none;
16
- }
17
-
18
- body.theme-dark ${`.${e}`} {
19
- --vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);
20
- }
21
- `, t = r`
22
- label: bar;
23
- fill: var(--vis-grouped-bar-fill-color);
24
- stroke: var(--vis-grouped-bar-stroke-color);
25
- stroke-width: var(--vis-grouped-bar-stroke-width);
26
- cursor: var(--vis-grouped-bar-cursor);
27
-
28
- &:hover {
29
- stroke-width: var(--vis-grouped-bar-hover-stroke-width);
30
- stroke: var(--vis-grouped-bar-hover-stroke-color);
31
- }
32
- `, i = r`
33
- label: barGroup;
34
- `, l = r`
35
- label: barGroupExit;
36
- `;
37
- export {
38
- t as bar,
39
- i as barGroup,
40
- l as barGroupExit,
41
- s as globalStyles,
42
- e as root
43
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../core/xy-component/config.cjs"),n=require("../../types/curve.cjs"),i=Object.assign(Object.assign({},e.XYComponentDefaultConfig),{curveType:n.CurveType.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1});exports.LineDefaultConfig=i;
@@ -1,6 +0,0 @@
1
- import { XYComponentDefaultConfig as e } from "../../core/xy-component/config.js";
2
- import { CurveType as n } from "../../types/curve.js";
3
- const t = Object.assign(Object.assign({}, e), { curveType: n.MonotoneX, lineWidth: 2, lineDashArray: void 0, fallbackValue: void 0, highlightOnHover: !1, cursor: null, interpolateMissingData: !1 });
4
- export {
5
- t as LineDefaultConfig
6
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../../../../d3-interpolate-path/build/d3-interpolate-path.cjs"),j=require("../../core/xy-component/index.cjs"),u=require("../../utils/data.cjs"),C=require("../../utils/d3.cjs"),D=require("../../utils/color.cjs"),$=require("../../types/curve.cjs"),q=require("../../types/direction.cjs"),L=require("./config.cjs"),o=require("./style.cjs"),M=require("../../../../d3-shape/src/line.cjs"),N=require("../../../../d3-selection/src/select.cjs");class S extends j.XYComponentCore{constructor(t){super(),this._defaultConfig=L.LineDefaultConfig,this.config=this._defaultConfig,this.curve=$.Curve[$.CurveType.MonotoneX],this.events={[S.selectors.line]:{mouseover:this._highlight.bind(this),mouseleave:this._resetHighlight.bind(this)}},t&&this.setConfig(t)}get bleed(){const{config:{lineWidth:t}}=this,e=this.yScale.domain(),h=(this.yScale.range()[0]>this.yScale.range()[1]?q.Direction.North:q.Direction.South)===q.Direction.South,p=t>3,f=t>=10;return{top:!f&&(!h&&e[1]===0||h&&e[0]===0)?0:t/2,bottom:!f&&(!h&&e[0]===0||h&&e[1]===0)?0:t/2,left:p?t/2:0,right:p?t/2:0}}_render(t){super._render(t);const{config:e,datamodel:{data:c}}=this,h=u.isNumber(t)?t:e.duration;this.curve=$.Curve[e.curveType],this.lineGen=M.default().x(s=>s.x).y(s=>s.y).defined(s=>s.defined).curve(this.curve);const p=u.isArray(e.y)?e.y:[e.y],f=c.map((s,i)=>this.xScale(u.getNumber(s,e.x,i))),A=p.map(s=>{const i=c.map((a,r)=>{const n=u.getNumber(a,s,r),l=(u.isNumber(n)||n===null)&&isFinite(n)?n:e.fallbackValue,b=e.interpolateMissingData?(u.isNumber(n)||n===null)&&isFinite(n):isFinite(l);return{x:f[r],y:this.yScale(l??0),defined:b,value:l}}),v=i.reduce((a,r)=>r.defined||a,!1);let d=!1;const g=i.reduce((a,r,n)=>{!r.defined&&isFinite(e.fallbackValue)&&a.push(Object.assign(Object.assign({},r),{defined:!0})),!r.defined&&!d&&(d=!0);const l=n>0&&!i[n-1].defined||n<i.length-1&&!i[n+1].defined;return r.defined&&l&&(d||a.push(Object.assign(Object.assign({},r),{defined:!1})),a.push(r),d=!1),a},[]),m=v&&i.some(a=>a.value!==null);return{values:i,defined:v,gaps:g,visible:m}}),P=this.g.selectAll(`.${o.line}`).data(A),y=P.enter().append("g").attr("class",o.line);y.append("path").attr("class",o.linePath).attr("stroke",(s,i)=>D.getColor(c,e.color,i)).attr("stroke-opacity",0).attr("stroke-width",e.lineWidth),y.append("path").attr("class",o.lineSelectionHelper).attr("d",this._emptyPath()),y.append("path").attr("class",o.interpolatedPath).attr("d",this._emptyPath()).style("opacity",0);const x=y.merge(P);x.style("cursor",(s,i)=>u.getString(c,e.cursor,i)),x.each((s,i,v)=>{var d;const g=N.default(v[i]),m=g.select(`.${o.linePath}`),a=g.select(`.${o.lineSelectionHelper}`),r=g.select(`.${o.interpolatedPath}`),n=s.visible,l=u.getValue(c,e.lineDashArray,i),b=C.smartTransition(m,h).attr("stroke",D.getColor(c,e.color,i)).attr("stroke-width",e.lineWidth).attr("stroke-opacity",n?1:0).style("stroke-dasharray",(d=l==null?void 0:l.join(" "))!==null&&d!==void 0?d:null),T=s.values.some(_=>!_.defined),k=this.lineGen(s.values);if(h&&!T){const _=m.attr("d")||this._emptyPath(),H=k||this._emptyPath();b.attrTween("d",()=>O.interpolatePath(_,H))}else s.visible&&b.attr("d",k);a.attr("d",k).attr("visibility",n?null:"hidden"),T&&e.interpolateMissingData?C.smartTransition(r,h).attr("d",this.lineGen(s.gaps)).attr("stroke",D.getColor(c,e.color,i)).attr("stroke-width",e.lineWidth-1).style("opacity",1):r.transition().duration(h).style("opacity",0)}),C.smartTransition(P.exit(),h).style("opacity",0).remove()}_emptyPath(){const t=this.xScale.range(),e=this.yScale.range();return`M${t[0]},${e[0]} L${t[1]},${e[0]}`}_highlight(t){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${o.line}`).classed(o.dim,c=>c!==t)}_resetHighlight(){const{config:t}=this;t.highlightOnHover&&this.g.selectAll(`.${o.line}`).classed(o.dim,!1)}}S.selectors=o;exports.Line=S;
@@ -1,86 +0,0 @@
1
- import { interpolatePath as M } from "../../../../d3-interpolate-path/build/d3-interpolate-path.js";
2
- import { XYComponentCore as F } from "../../core/xy-component/index.js";
3
- import { isNumber as _, isArray as W, getNumber as H, getString as N, getValue as X } from "../../utils/data.js";
4
- import { smartTransition as $ } from "../../utils/d3.js";
5
- import { getColor as x } from "../../utils/color.js";
6
- import { Curve as O, CurveType as E } from "../../types/curve.js";
7
- import { Direction as D } from "../../types/direction.js";
8
- import { LineDefaultConfig as R } from "./config.js";
9
- import * as Y from "./style.js";
10
- import { line as v, linePath as T, lineSelectionHelper as V, interpolatedPath as j, dim as w } from "./style.js";
11
- import U from "../../../../d3-shape/src/line.js";
12
- import q from "../../../../d3-selection/src/select.js";
13
- class P extends F {
14
- constructor(e) {
15
- super(), this._defaultConfig = R, this.config = this._defaultConfig, this.curve = O[E.MonotoneX], this.events = {
16
- [P.selectors.line]: {
17
- mouseover: this._highlight.bind(this),
18
- mouseleave: this._resetHighlight.bind(this)
19
- }
20
- }, e && this.setConfig(e);
21
- }
22
- get bleed() {
23
- const { config: { lineWidth: e } } = this, t = this.yScale.domain(), c = (this.yScale.range()[0] > this.yScale.range()[1] ? D.North : D.South) === D.South, p = e > 3, f = e >= 10;
24
- return {
25
- top: !f && (!c && t[1] === 0 || c && t[0] === 0) ? 0 : e / 2,
26
- bottom: !f && (!c && t[0] === 0 || c && t[1] === 0) ? 0 : e / 2,
27
- left: p ? e / 2 : 0,
28
- right: p ? e / 2 : 0
29
- };
30
- }
31
- _render(e) {
32
- super._render(e);
33
- const { config: t, datamodel: { data: l } } = this, c = _(e) ? e : t.duration;
34
- this.curve = O[t.curveType], this.lineGen = U().x((s) => s.x).y((s) => s.y).defined((s) => s.defined).curve(this.curve);
35
- const p = W(t.y) ? t.y : [t.y], f = l.map((s, i) => this.xScale(H(s, t.x, i))), G = p.map((s) => {
36
- const i = l.map((r, o) => {
37
- const n = H(r, s, o), a = (_(n) || n === null) && isFinite(n) ? n : t.fallbackValue, y = t.interpolateMissingData ? (_(n) || n === null) && isFinite(n) : isFinite(a);
38
- return {
39
- x: f[o],
40
- y: this.yScale(a ?? 0),
41
- defined: y,
42
- value: a
43
- };
44
- }), g = i.reduce((r, o) => o.defined || r, !1);
45
- let h = !1;
46
- const d = i.reduce((r, o, n) => {
47
- !o.defined && isFinite(t.fallbackValue) && r.push(Object.assign(Object.assign({}, o), { defined: !0 })), !o.defined && !h && (h = !0);
48
- const a = n > 0 && !i[n - 1].defined || n < i.length - 1 && !i[n + 1].defined;
49
- return o.defined && a && (h || r.push(Object.assign(Object.assign({}, o), { defined: !1 })), r.push(o), h = !1), r;
50
- }, []), m = g && i.some((r) => r.value !== null);
51
- return {
52
- values: i,
53
- defined: g,
54
- gaps: d,
55
- visible: m
56
- };
57
- }), b = this.g.selectAll(`.${v}`).data(G), u = b.enter().append("g").attr("class", v);
58
- u.append("path").attr("class", T).attr("stroke", (s, i) => x(l, t.color, i)).attr("stroke-opacity", 0).attr("stroke-width", t.lineWidth), u.append("path").attr("class", V).attr("d", this._emptyPath()), u.append("path").attr("class", j).attr("d", this._emptyPath()).style("opacity", 0);
59
- const C = u.merge(b);
60
- C.style("cursor", (s, i) => N(l, t.cursor, i)), C.each((s, i, g) => {
61
- var h;
62
- const d = q(g[i]), m = d.select(`.${T}`), r = d.select(`.${V}`), o = d.select(`.${j}`), n = s.visible, a = X(l, t.lineDashArray, i), y = $(m, c).attr("stroke", x(l, t.color, i)).attr("stroke-width", t.lineWidth).attr("stroke-opacity", n ? 1 : 0).style("stroke-dasharray", (h = a == null ? void 0 : a.join(" ")) !== null && h !== void 0 ? h : null), A = s.values.some((k) => !k.defined), S = this.lineGen(s.values);
63
- if (c && !A) {
64
- const k = m.attr("d") || this._emptyPath(), L = S || this._emptyPath();
65
- y.attrTween("d", () => M(k, L));
66
- } else s.visible && y.attr("d", S);
67
- r.attr("d", S).attr("visibility", n ? null : "hidden"), A && t.interpolateMissingData ? $(o, c).attr("d", this.lineGen(s.gaps)).attr("stroke", x(l, t.color, i)).attr("stroke-width", t.lineWidth - 1).style("opacity", 1) : o.transition().duration(c).style("opacity", 0);
68
- }), $(b.exit(), c).style("opacity", 0).remove();
69
- }
70
- _emptyPath() {
71
- const e = this.xScale.range(), t = this.yScale.range();
72
- return `M${e[0]},${t[0]} L${e[1]},${t[0]}`;
73
- }
74
- _highlight(e) {
75
- const { config: t } = this;
76
- t.highlightOnHover && this.g.selectAll(`.${v}`).classed(w, (l) => l !== e);
77
- }
78
- _resetHighlight() {
79
- const { config: e } = this;
80
- e.highlightOnHover && this.g.selectAll(`.${v}`).classed(w, !1);
81
- }
82
- }
83
- P.selectors = Y;
84
- export {
85
- P as Line
86
- };
@@ -1,35 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../@emotion/css/dist/emotion-css.esm.cjs"),s=e.injectGlobal`
2
- :root {
3
- --vis-line-cursor: default;
4
- --vis-line-stroke-dasharray: none;
5
- --vis-line-stroke-dashoffset: 0;
6
-
7
- --vis-line-gapfill-stroke-dasharray: 2 3;
8
- --vis-line-gapfill-stroke-opacity: 0.8;
9
- --vis-line-gapfill-stroke-dashoffset: 0;
10
- }
11
- `,l=e.css`
12
- label: line-component;
13
- `,t=e.css`
14
- label: line;
15
- transition: opacity 200ms;
16
- cursor: var(--vis-line-cursor);
17
- `,o=e.css`
18
- label: linePath;
19
- fill: none;
20
- stroke-dasharray: var(--vis-line-stroke-dasharray);
21
- stroke-dashoffset: var(--vis-line-stroke-dashoffset);
22
- `,i=e.css`
23
- label: lineSelectionHelper;
24
- fill: none;
25
- stroke: rgba(0, 0, 0, 0);
26
- stroke-width: 8px;
27
- `,a=e.css`
28
- opacity: 0.2;
29
- `,r=e.css`
30
- label: interpolated-path;
31
- fill: none;
32
- stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
33
- stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
34
- stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
35
- `;exports.dim=a;exports.globalStyles=s;exports.interpolatedPath=r;exports.line=t;exports.linePath=o;exports.lineSelectionHelper=i;exports.root=l;
@@ -1,45 +0,0 @@
1
- import { css as e, injectGlobal as s } from "../../../../@emotion/css/dist/emotion-css.esm.js";
2
- const o = s`
3
- :root {
4
- --vis-line-cursor: default;
5
- --vis-line-stroke-dasharray: none;
6
- --vis-line-stroke-dashoffset: 0;
7
-
8
- --vis-line-gapfill-stroke-dasharray: 2 3;
9
- --vis-line-gapfill-stroke-opacity: 0.8;
10
- --vis-line-gapfill-stroke-dashoffset: 0;
11
- }
12
- `, a = e`
13
- label: line-component;
14
- `, t = e`
15
- label: line;
16
- transition: opacity 200ms;
17
- cursor: var(--vis-line-cursor);
18
- `, i = e`
19
- label: linePath;
20
- fill: none;
21
- stroke-dasharray: var(--vis-line-stroke-dasharray);
22
- stroke-dashoffset: var(--vis-line-stroke-dashoffset);
23
- `, r = e`
24
- label: lineSelectionHelper;
25
- fill: none;
26
- stroke: rgba(0, 0, 0, 0);
27
- stroke-width: 8px;
28
- `, n = e`
29
- opacity: 0.2;
30
- `, f = e`
31
- label: interpolated-path;
32
- fill: none;
33
- stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
34
- stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
35
- stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
36
- `;
37
- export {
38
- n as dim,
39
- o as globalStyles,
40
- f as interpolatedPath,
41
- t as line,
42
- i as linePath,
43
- r as lineSelectionHelper,
44
- a as root
45
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../core/xy-component/config.cjs"),n=require("../../types/position.cjs"),i=Object.assign(Object.assign({},e.XYComponentDefaultConfig),{color:void 0,barMaxWidth:void 0,barWidth:void 0,dataStep:void 0,barPadding:0,roundedCorners:2,cursor:null,barMinHeight1Px:!1,barMinHeightZeroValue:null,orientation:n.Orientation.Vertical});exports.StackedBarDefaultConfig=i;
@@ -1,6 +0,0 @@
1
- import { XYComponentDefaultConfig as e } from "../../core/xy-component/config.js";
2
- import { Orientation as n } from "../../types/position.js";
3
- const t = Object.assign(Object.assign({}, e), { color: void 0, barMaxWidth: void 0, barWidth: void 0, dataStep: void 0, barPadding: 0, roundedCorners: 2, cursor: null, barMinHeight1Px: !1, barMinHeightZeroValue: null, orientation: n.Vertical });
4
- export {
5
- t as StackedBarDefaultConfig
6
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("../../core/xy-component/index.cjs"),d=require("../../utils/data.cjs"),E=require("../../utils/path.cjs"),x=require("../../utils/d3.cjs"),V=require("../../utils/color.cjs"),M=require("../../types/position.cjs"),W=require("./config.cjs"),p=require("./style.cjs"),_=require("../../../../d3-array/src/min.cjs"),P=require("../../../../d3-array/src/max.cjs");class y extends D.XYComponentCore{constructor(t){super(),this._defaultConfig=W.StackedBarDefaultConfig,this.config=this._defaultConfig,this.getAccessors=()=>d.isArray(this.config.y)?this.config.y:[this.config.y],this.stacked=!0,this.events={},this._barData=[],t&&this.setConfig(t)}get bleed(){if(this._barData=this._getVisibleData(),this._barData.length===0)return{top:0,bottom:0,left:0,right:0};const t=!this.isVertical()&&this.dataScale.range()[0]>this.dataScale.range()[1],a=this.dataScale.domain(),s=this._getBarWidth()/2,i=this._barData.map((f,e)=>d.getNumber(f,this.config.x,e)),g=_.default(i),o=P.default(i),n=this.dataScale(g),b=this.dataScale(o),u=this.dataScale.invert(n+(t?s:-s)),l=this.dataScale.invert(b+(t?-s:s)),c=u<=a[0]?this.dataScale(a[0])-this.dataScale(u):0,S=l>a[1]?this.dataScale(l)-this.dataScale(a[1]):0;return{top:this.isVertical()?0:t?-S:c,bottom:this.isVertical()?0:t?-c:S,left:this.isVertical()?c:0,right:this.isVertical()?S:0}}get dataScale(){return this.isVertical()?this.xScale:this.yScale}get valueScale(){return this.isVertical()?this.yScale:this.xScale}isVertical(){return this.config.orientation===M.Orientation.Vertical}_render(t){const{config:a}=this,s=d.isNumber(t)?t:a.duration,i=this.getAccessors(),g=d.getStackedData(this._barData,0,i,this._prevNegative);this._prevNegative=g.map(e=>!!e.isMostlyNegative);const o=this.g.selectAll(`.${p.barGroup}`).data(this._barData,(e,r)=>{var m;return`${(m=d.getString(e,a.id,r))!==null&&m!==void 0?m:r}`}),n=(e,r)=>{const m=this.dataScale(d.getNumber(e,a.x,r)),h=this.isVertical()?m:0,v=this.isVertical()?0:m;return`translate(${h},${v})`},u=o.enter().append("g").attr("class",p.barGroup).attr("transform",n).style("opacity",1).merge(o);x.smartTransition(u,s).attr("transform",n).style("opacity",1);const l=o.exit().attr("class",p.barGroupExit);x.smartTransition(l,s).style("opacity",0).remove(),x.smartTransition(l.selectAll(`.${p.bar}`),s).attr("transform",this.isVertical()?`translate(0,${this._height/3})`:`translate(${this._width/6},0)`);const c=u.selectAll(`.${p.bar}`).data((e,r)=>g.map((m,h)=>Object.assign(Object.assign({},e),{_index:r,_stacked:m[r],_ending:h===g.length-1||h<=g.length-1&&g[h+1][r][0]!==m[r][1]}))),f=c.enter().append("path").attr("class",p.bar).attr("d",(e,r)=>this._getBarPath(e,r,!0)).style("fill",(e,r)=>V.getColor(e,a.color,r)).merge(c);x.smartTransition(f,s).attr("d",(e,r)=>this._getBarPath(e,r)).style("fill",(e,r)=>V.getColor(e,a.color,r)).style("cursor",(e,r)=>d.getString(e,a.cursor,r)),x.smartTransition(c.exit(),s).style("opacity",0).remove()}_getBarWidth(){const{config:t,datamodel:{data:a}}=this;if(d.isEmpty(a))return 0;if(t.barWidth)return _.default([t.barWidth,t.barMaxWidth]);const s=this.dataScale.bandwidth,i=this.dataScale.domain?this.dataScale.domain():[];let o=1+(s?i.length:i[1]-i[0])/t.dataStep||!s&&a.filter((u,l)=>{const c=d.getNumber(u,t.x,l);return c>=i[0]&&c<=i[1]}).length||a.length;!s&&o>=2&&(o+=1);const b=(o<2?1:1-t.barPadding)*(this.isVertical()?this._width:this._height)/o;return _.default([b,t.barMaxWidth])}_getVisibleData(){const{config:t,datamodel:{data:a}}=this,s=this._getBarWidth(),i=a.length<2?0:s/2,g=this.dataScale,o=Math.abs(g.invert(i)-g.invert(0));return a==null?void 0:a.filter((b,u)=>{const l=d.getNumber(b,t.x,u),c=g.domain(),S=+c[0],f=+c[1];return l>=S-o&&l<=f+o})}_getBarPath(t,a,s=!1){const{config:i}=this,g=this.getAccessors(),o=this._getBarWidth(),n=t._stacked[1]<0,b=t._ending,u=d.getNumber(t,g[a],t._index),l=s?0:Math.abs(this.valueScale(t._stacked[0])-this.valueScale(t._stacked[1])),c=!s&&i.barMinHeight1Px&&l<1&&isFinite(u)&&u!==i.barMinHeightZeroValue?1:l,S=s?this.valueScale(0):this.valueScale(n?t._stacked[0]:t._stacked[1])-(l<1&&i.barMinHeight1Px?1:0),f=-o/2,e=o,r=i.roundedCorners?d.isNumber(i.roundedCorners)?+i.roundedCorners:e/2:0,m=d.clamp(r,0,Math.min(l,e)/2),h=this.yScale.range()[0]>this.yScale.range()[1];return E.roundedRectPath({x:this.isVertical()?f:S-c,y:this.isVertical()?S+(h?0:-c):f,w:this.isVertical()?e:c,h:this.isVertical()?c:e,tl:b&&(this.isVertical()?!n&&h||n&&!h:n),tr:b&&(this.isVertical()?!n&&h||n&&!h:!n),br:b&&(this.isVertical()?n&&h||!n&&!h:!n),bl:b&&(this.isVertical()?n&&h||!n&&!h:n),r:m})}getValueScaleExtent(t){const{datamodel:a}=this,s=this.getAccessors(),i=t?this._getVisibleData():a.data;return d.getStackedExtent(i,...s)}getDataScaleExtent(){const{config:t,datamodel:a}=this;return d.getExtent(a.data,t.x)}getYDataExtent(t){return this.isVertical()?this.getValueScaleExtent(t):this.getDataScaleExtent()}getXDataExtent(){return this.isVertical()?this.getDataScaleExtent():this.getValueScaleExtent(!1)}}y.selectors=p;exports.StackedBar=y;