vue-chrts 0.1.0-beta.2-internal-21 → 0.1.0-beta.2

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 (694) hide show
  1. package/README.md +3 -82
  2. package/package.json +4 -5
  3. package/dist/_virtual/_commonjsHelpers.cjs +0 -1
  4. package/dist/_virtual/_commonjsHelpers.js +0 -6
  5. package/dist/_virtual/browser.cjs +0 -1
  6. package/dist/_virtual/browser.js +0 -2
  7. package/dist/_virtual/striptags.cjs +0 -1
  8. package/dist/_virtual/striptags.js +0 -7
  9. package/dist/_virtual/striptags2.cjs +0 -1
  10. package/dist/_virtual/striptags2.js +0 -4
  11. package/dist/components/Area/AreaChart.cjs +0 -6
  12. package/dist/components/Area/AreaChart.js +0 -141
  13. package/dist/components/Area/AreaChart.vue.d.ts +0 -14
  14. package/dist/components/Area/AreaChart2.cjs +0 -1
  15. package/dist/components/Area/AreaChart2.js +0 -4
  16. package/dist/components/Area/index.d.ts +0 -2
  17. package/dist/components/Area/types.d.ts +0 -82
  18. package/dist/components/AreaStacked/AreaStackedChart.cjs +0 -1
  19. package/dist/components/AreaStacked/AreaStackedChart.js +0 -74
  20. package/dist/components/AreaStacked/AreaStackedChart.vue.d.ts +0 -20
  21. package/dist/components/AreaStacked/AreaStackedChart2.cjs +0 -1
  22. package/dist/components/AreaStacked/AreaStackedChart2.js +0 -4
  23. package/dist/components/AreaStacked/index.d.ts +0 -1
  24. package/dist/components/Bar/BarChart.cjs +0 -1
  25. package/dist/components/Bar/BarChart.js +0 -121
  26. package/dist/components/Bar/BarChart.vue.d.ts +0 -33
  27. package/dist/components/Bar/BarChart2.cjs +0 -1
  28. package/dist/components/Bar/BarChart2.js +0 -4
  29. package/dist/components/Bar/index.d.ts +0 -1
  30. package/dist/components/Crosshair/Crosshair.vue.d.ts +0 -12
  31. package/dist/components/Crosshair/index.d.ts +0 -1
  32. package/dist/components/Donut/DonutChart.cjs +0 -5
  33. package/dist/components/Donut/DonutChart.js +0 -62
  34. package/dist/components/Donut/DonutChart.vue.d.ts +0 -18
  35. package/dist/components/Donut/DonutChart2.cjs +0 -1
  36. package/dist/components/Donut/DonutChart2.js +0 -4
  37. package/dist/components/Donut/index.cjs +0 -1
  38. package/dist/components/Donut/index.d.ts +0 -17
  39. package/dist/components/Donut/index.js +0 -5
  40. package/dist/components/Line/LineChart.cjs +0 -1
  41. package/dist/components/Line/LineChart.js +0 -97
  42. package/dist/components/Line/LineChart.vue.d.ts +0 -27
  43. package/dist/components/Line/LineChart2.cjs +0 -1
  44. package/dist/components/Line/LineChart2.js +0 -4
  45. package/dist/components/Line/index.d.ts +0 -1
  46. package/dist/components/Tooltip.cjs +0 -1
  47. package/dist/components/Tooltip.js +0 -37
  48. package/dist/components/Tooltip.vue.d.ts +0 -19
  49. package/dist/components/Tooltip2.cjs +0 -1
  50. package/dist/components/Tooltip2.js +0 -4
  51. package/dist/index.cjs +0 -1
  52. package/dist/index.d.ts +0 -6
  53. package/dist/index.js +0 -12
  54. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs +0 -1
  55. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -279
  56. package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.cjs +0 -1
  57. package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js +0 -86
  58. package/dist/node_modules/@emotion/css/dist/emotion-css.esm.cjs +0 -1
  59. package/dist/node_modules/@emotion/css/dist/emotion-css.esm.js +0 -8
  60. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.cjs +0 -1
  61. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -22
  62. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +0 -1
  63. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
  64. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.cjs +0 -1
  65. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -123
  66. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs +0 -1
  67. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -44
  68. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +0 -1
  69. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -53
  70. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs +0 -1
  71. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -29
  72. package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.cjs +0 -1
  73. package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js +0 -15
  74. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.cjs +0 -1
  75. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.js +0 -20
  76. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.cjs +0 -1
  77. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.js +0 -31
  78. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.cjs +0 -1
  79. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js +0 -7
  80. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.cjs +0 -1
  81. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js +0 -31
  82. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.cjs +0 -1
  83. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js +0 -9
  84. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.cjs +0 -1
  85. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js +0 -12
  86. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.cjs +0 -1
  87. package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js +0 -10
  88. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.cjs +0 -1
  89. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js +0 -26
  90. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs +0 -1
  91. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js +0 -42
  92. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.cjs +0 -1
  93. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js +0 -11
  94. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.cjs +0 -1
  95. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js +0 -9
  96. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.cjs +0 -1
  97. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js +0 -12
  98. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.cjs +0 -1
  99. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js +0 -9
  100. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.cjs +0 -1
  101. package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js +0 -9
  102. package/dist/node_modules/@juggle/resize-observer/lib/utils/element.cjs +0 -1
  103. package/dist/node_modules/@juggle/resize-observer/lib/utils/element.js +0 -37
  104. package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.cjs +0 -1
  105. package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.js +0 -6
  106. package/dist/node_modules/@juggle/resize-observer/lib/utils/global.cjs +0 -1
  107. package/dist/node_modules/@juggle/resize-observer/lib/utils/global.js +0 -4
  108. package/dist/node_modules/@juggle/resize-observer/lib/utils/process.cjs +0 -1
  109. package/dist/node_modules/@juggle/resize-observer/lib/utils/process.js +0 -14
  110. package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.cjs +0 -1
  111. package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js +0 -18
  112. package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.cjs +0 -1
  113. package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js +0 -9
  114. package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.cjs +0 -1
  115. package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js +0 -4
  116. package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.cjs +0 -1
  117. package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.js +0 -70
  118. package/dist/node_modules/@unovis/ts/components/area/config.cjs +0 -1
  119. package/dist/node_modules/@unovis/ts/components/area/config.js +0 -6
  120. package/dist/node_modules/@unovis/ts/components/area/index.cjs +0 -1
  121. package/dist/node_modules/@unovis/ts/components/area/index.js +0 -52
  122. package/dist/node_modules/@unovis/ts/components/area/style.cjs +0 -35
  123. package/dist/node_modules/@unovis/ts/components/area/style.js +0 -41
  124. package/dist/node_modules/@unovis/ts/components/axis/config.cjs +0 -1
  125. package/dist/node_modules/@unovis/ts/components/axis/config.js +0 -6
  126. package/dist/node_modules/@unovis/ts/components/axis/index.cjs +0 -1
  127. package/dist/node_modules/@unovis/ts/components/axis/index.js +0 -287
  128. package/dist/node_modules/@unovis/ts/components/axis/style.cjs +0 -101
  129. package/dist/node_modules/@unovis/ts/components/axis/style.js +0 -114
  130. package/dist/node_modules/@unovis/ts/components/axis/types.cjs +0 -1
  131. package/dist/node_modules/@unovis/ts/components/axis/types.js +0 -7
  132. package/dist/node_modules/@unovis/ts/components/bullet-legend/config.cjs +0 -1
  133. package/dist/node_modules/@unovis/ts/components/bullet-legend/config.js +0 -18
  134. package/dist/node_modules/@unovis/ts/components/bullet-legend/index.cjs +0 -1
  135. package/dist/node_modules/@unovis/ts/components/bullet-legend/index.js +0 -36
  136. package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.cjs +0 -1
  137. package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.js +0 -48
  138. package/dist/node_modules/@unovis/ts/components/bullet-legend/style.cjs +0 -63
  139. package/dist/node_modules/@unovis/ts/components/bullet-legend/style.js +0 -73
  140. package/dist/node_modules/@unovis/ts/components/bullet-legend/types.cjs +0 -1
  141. package/dist/node_modules/@unovis/ts/components/bullet-legend/types.js +0 -10
  142. package/dist/node_modules/@unovis/ts/components/crosshair/config.cjs +0 -1
  143. package/dist/node_modules/@unovis/ts/components/crosshair/config.js +0 -5
  144. package/dist/node_modules/@unovis/ts/components/crosshair/index.cjs +0 -1
  145. package/dist/node_modules/@unovis/ts/components/crosshair/index.js +0 -119
  146. package/dist/node_modules/@unovis/ts/components/crosshair/style.cjs +0 -22
  147. package/dist/node_modules/@unovis/ts/components/crosshair/style.js +0 -29
  148. package/dist/node_modules/@unovis/ts/components/donut/config.cjs +0 -1
  149. package/dist/node_modules/@unovis/ts/components/donut/config.js +0 -8
  150. package/dist/node_modules/@unovis/ts/components/donut/constants.cjs +0 -1
  151. package/dist/node_modules/@unovis/ts/components/donut/constants.js +0 -11
  152. package/dist/node_modules/@unovis/ts/components/donut/index.cjs +0 -1
  153. package/dist/node_modules/@unovis/ts/components/donut/index.js +0 -57
  154. package/dist/node_modules/@unovis/ts/components/donut/modules/arc.cjs +0 -1
  155. package/dist/node_modules/@unovis/ts/components/donut/modules/arc.js +0 -37
  156. package/dist/node_modules/@unovis/ts/components/donut/style.cjs +0 -58
  157. package/dist/node_modules/@unovis/ts/components/donut/style.js +0 -68
  158. package/dist/node_modules/@unovis/ts/components/grouped-bar/config.cjs +0 -1
  159. package/dist/node_modules/@unovis/ts/components/grouped-bar/config.js +0 -6
  160. package/dist/node_modules/@unovis/ts/components/grouped-bar/index.cjs +0 -1
  161. package/dist/node_modules/@unovis/ts/components/grouped-bar/index.js +0 -121
  162. package/dist/node_modules/@unovis/ts/components/grouped-bar/style.cjs +0 -35
  163. package/dist/node_modules/@unovis/ts/components/grouped-bar/style.js +0 -43
  164. package/dist/node_modules/@unovis/ts/components/line/config.cjs +0 -1
  165. package/dist/node_modules/@unovis/ts/components/line/config.js +0 -6
  166. package/dist/node_modules/@unovis/ts/components/line/index.cjs +0 -1
  167. package/dist/node_modules/@unovis/ts/components/line/index.js +0 -86
  168. package/dist/node_modules/@unovis/ts/components/line/style.cjs +0 -35
  169. package/dist/node_modules/@unovis/ts/components/line/style.js +0 -45
  170. package/dist/node_modules/@unovis/ts/components/stacked-bar/config.cjs +0 -1
  171. package/dist/node_modules/@unovis/ts/components/stacked-bar/config.js +0 -6
  172. package/dist/node_modules/@unovis/ts/components/stacked-bar/index.cjs +0 -1
  173. package/dist/node_modules/@unovis/ts/components/stacked-bar/index.js +0 -111
  174. package/dist/node_modules/@unovis/ts/components/stacked-bar/style.cjs +0 -34
  175. package/dist/node_modules/@unovis/ts/components/stacked-bar/style.js +0 -42
  176. package/dist/node_modules/@unovis/ts/components/tooltip/config.cjs +0 -1
  177. package/dist/node_modules/@unovis/ts/components/tooltip/config.js +0 -17
  178. package/dist/node_modules/@unovis/ts/components/tooltip/index.cjs +0 -1
  179. package/dist/node_modules/@unovis/ts/components/tooltip/index.js +0 -166
  180. package/dist/node_modules/@unovis/ts/components/tooltip/style.cjs +0 -61
  181. package/dist/node_modules/@unovis/ts/components/tooltip/style.js +0 -71
  182. package/dist/node_modules/@unovis/ts/containers/single-container/config.cjs +0 -1
  183. package/dist/node_modules/@unovis/ts/containers/single-container/config.js +0 -5
  184. package/dist/node_modules/@unovis/ts/containers/single-container/index.cjs +0 -1
  185. package/dist/node_modules/@unovis/ts/containers/single-container/index.js +0 -71
  186. package/dist/node_modules/@unovis/ts/containers/xy-container/config.cjs +0 -1
  187. package/dist/node_modules/@unovis/ts/containers/xy-container/config.js +0 -6
  188. package/dist/node_modules/@unovis/ts/containers/xy-container/index.cjs +0 -3
  189. package/dist/node_modules/@unovis/ts/containers/xy-container/index.js +0 -185
  190. package/dist/node_modules/@unovis/ts/core/component/config.cjs +0 -1
  191. package/dist/node_modules/@unovis/ts/core/component/config.js +0 -8
  192. package/dist/node_modules/@unovis/ts/core/component/index.cjs +0 -1
  193. package/dist/node_modules/@unovis/ts/core/component/index.js +0 -68
  194. package/dist/node_modules/@unovis/ts/core/container/config.cjs +0 -1
  195. package/dist/node_modules/@unovis/ts/core/container/config.js +0 -24
  196. package/dist/node_modules/@unovis/ts/core/container/index.cjs +0 -1
  197. package/dist/node_modules/@unovis/ts/core/container/index.js +0 -73
  198. package/dist/node_modules/@unovis/ts/core/xy-component/config.cjs +0 -1
  199. package/dist/node_modules/@unovis/ts/core/xy-component/config.js +0 -8
  200. package/dist/node_modules/@unovis/ts/core/xy-component/index.cjs +0 -1
  201. package/dist/node_modules/@unovis/ts/core/xy-component/index.js +0 -53
  202. package/dist/node_modules/@unovis/ts/data-models/core.cjs +0 -1
  203. package/dist/node_modules/@unovis/ts/data-models/core.js +0 -14
  204. package/dist/node_modules/@unovis/ts/data-models/series.cjs +0 -1
  205. package/dist/node_modules/@unovis/ts/data-models/series.js +0 -16
  206. package/dist/node_modules/@unovis/ts/styles/colors.cjs +0 -1
  207. package/dist/node_modules/@unovis/ts/styles/colors.js +0 -18
  208. package/dist/node_modules/@unovis/ts/styles/index.cjs +0 -38
  209. package/dist/node_modules/@unovis/ts/styles/index.js +0 -63
  210. package/dist/node_modules/@unovis/ts/styles/patterns.cjs +0 -15
  211. package/dist/node_modules/@unovis/ts/styles/patterns.js +0 -45
  212. package/dist/node_modules/@unovis/ts/types/component.cjs +0 -1
  213. package/dist/node_modules/@unovis/ts/types/component.js +0 -12
  214. package/dist/node_modules/@unovis/ts/types/curve.cjs +0 -1
  215. package/dist/node_modules/@unovis/ts/types/curve.js +0 -43
  216. package/dist/node_modules/@unovis/ts/types/direction.cjs +0 -1
  217. package/dist/node_modules/@unovis/ts/types/direction.js +0 -7
  218. package/dist/node_modules/@unovis/ts/types/position.cjs +0 -1
  219. package/dist/node_modules/@unovis/ts/types/position.js +0 -22
  220. package/dist/node_modules/@unovis/ts/types/scale.cjs +0 -1
  221. package/dist/node_modules/@unovis/ts/types/scale.js +0 -40
  222. package/dist/node_modules/@unovis/ts/types/svg.cjs +0 -1
  223. package/dist/node_modules/@unovis/ts/types/svg.js +0 -15
  224. package/dist/node_modules/@unovis/ts/types/symbol.cjs +0 -1
  225. package/dist/node_modules/@unovis/ts/types/symbol.js +0 -24
  226. package/dist/node_modules/@unovis/ts/types/text.cjs +0 -1
  227. package/dist/node_modules/@unovis/ts/types/text.js +0 -22
  228. package/dist/node_modules/@unovis/ts/utils/color.cjs +0 -1
  229. package/dist/node_modules/@unovis/ts/utils/color.js +0 -8
  230. package/dist/node_modules/@unovis/ts/utils/d3.cjs +0 -1
  231. package/dist/node_modules/@unovis/ts/utils/d3.js +0 -12
  232. package/dist/node_modules/@unovis/ts/utils/data.cjs +0 -1
  233. package/dist/node_modules/@unovis/ts/utils/data.js +0 -169
  234. package/dist/node_modules/@unovis/ts/utils/misc.cjs +0 -1
  235. package/dist/node_modules/@unovis/ts/utils/misc.js +0 -28
  236. package/dist/node_modules/@unovis/ts/utils/path.cjs +0 -1
  237. package/dist/node_modules/@unovis/ts/utils/path.js +0 -9
  238. package/dist/node_modules/@unovis/ts/utils/resize-observer.cjs +0 -1
  239. package/dist/node_modules/@unovis/ts/utils/resize-observer.js +0 -6
  240. package/dist/node_modules/@unovis/ts/utils/text.cjs +0 -2
  241. package/dist/node_modules/@unovis/ts/utils/text.js +0 -178
  242. package/dist/node_modules/@unovis/vue/components/area/index.cjs +0 -1
  243. package/dist/node_modules/@unovis/vue/components/area/index.js +0 -48
  244. package/dist/node_modules/@unovis/vue/components/axis/index.cjs +0 -1
  245. package/dist/node_modules/@unovis/vue/components/axis/index.js +0 -69
  246. package/dist/node_modules/@unovis/vue/components/crosshair/index.cjs +0 -1
  247. package/dist/node_modules/@unovis/vue/components/crosshair/index.js +0 -33
  248. package/dist/node_modules/@unovis/vue/components/donut/index.cjs +0 -1
  249. package/dist/node_modules/@unovis/vue/components/donut/index.js +0 -54
  250. package/dist/node_modules/@unovis/vue/components/grouped-bar/index.cjs +0 -1
  251. package/dist/node_modules/@unovis/vue/components/grouped-bar/index.js +0 -54
  252. package/dist/node_modules/@unovis/vue/components/line/index.cjs +0 -1
  253. package/dist/node_modules/@unovis/vue/components/line/index.js +0 -50
  254. package/dist/node_modules/@unovis/vue/components/stacked-bar/index.cjs +0 -1
  255. package/dist/node_modules/@unovis/vue/components/stacked-bar/index.js +0 -54
  256. package/dist/node_modules/@unovis/vue/components/tooltip/index.cjs +0 -1
  257. package/dist/node_modules/@unovis/vue/components/tooltip/index.js +0 -40
  258. package/dist/node_modules/@unovis/vue/containers/single-container/index.cjs +0 -1
  259. package/dist/node_modules/@unovis/vue/containers/single-container/index.js +0 -66
  260. package/dist/node_modules/@unovis/vue/containers/xy-container/index.cjs +0 -1
  261. package/dist/node_modules/@unovis/vue/containers/xy-container/index.js +0 -102
  262. package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.cjs +0 -1
  263. package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.js +0 -43
  264. package/dist/node_modules/@unovis/vue/index.cjs +0 -1
  265. package/dist/node_modules/@unovis/vue/index.js +0 -10
  266. package/dist/node_modules/@unovis/vue/utils/context.cjs +0 -1
  267. package/dist/node_modules/@unovis/vue/utils/context.js +0 -8
  268. package/dist/node_modules/@unovis/vue/utils/props.cjs +0 -1
  269. package/dist/node_modules/@unovis/vue/utils/props.js +0 -18
  270. package/dist/node_modules/d3-array/src/ascending.cjs +0 -1
  271. package/dist/node_modules/d3-array/src/ascending.js +0 -6
  272. package/dist/node_modules/d3-array/src/bisect.cjs +0 -1
  273. package/dist/node_modules/d3-array/src/bisect.js +0 -9
  274. package/dist/node_modules/d3-array/src/bisector.cjs +0 -1
  275. package/dist/node_modules/d3-array/src/bisector.js +0 -37
  276. package/dist/node_modules/d3-array/src/descending.cjs +0 -1
  277. package/dist/node_modules/d3-array/src/descending.js +0 -6
  278. package/dist/node_modules/d3-array/src/extent.cjs +0 -1
  279. package/dist/node_modules/d3-array/src/extent.js +0 -9
  280. package/dist/node_modules/d3-array/src/max.cjs +0 -1
  281. package/dist/node_modules/d3-array/src/max.js +0 -15
  282. package/dist/node_modules/d3-array/src/mean.cjs +0 -1
  283. package/dist/node_modules/d3-array/src/mean.js +0 -15
  284. package/dist/node_modules/d3-array/src/merge.cjs +0 -1
  285. package/dist/node_modules/d3-array/src/merge.js +0 -10
  286. package/dist/node_modules/d3-array/src/min.cjs +0 -1
  287. package/dist/node_modules/d3-array/src/min.js +0 -15
  288. package/dist/node_modules/d3-array/src/number.cjs +0 -1
  289. package/dist/node_modules/d3-array/src/number.js +0 -6
  290. package/dist/node_modules/d3-array/src/quantile.cjs +0 -1
  291. package/dist/node_modules/d3-array/src/quantile.js +0 -12
  292. package/dist/node_modules/d3-array/src/range.cjs +0 -1
  293. package/dist/node_modules/d3-array/src/range.js +0 -9
  294. package/dist/node_modules/d3-array/src/sum.cjs +0 -1
  295. package/dist/node_modules/d3-array/src/sum.js +0 -15
  296. package/dist/node_modules/d3-array/src/ticks.cjs +0 -1
  297. package/dist/node_modules/d3-array/src/ticks.js +0 -32
  298. package/dist/node_modules/d3-axis/src/axis.cjs +0 -1
  299. package/dist/node_modules/d3-axis/src/axis.js +0 -72
  300. package/dist/node_modules/d3-axis/src/identity.cjs +0 -1
  301. package/dist/node_modules/d3-axis/src/identity.js +0 -6
  302. package/dist/node_modules/d3-color/src/color.cjs +0 -1
  303. package/dist/node_modules/d3-color/src/color.js +0 -305
  304. package/dist/node_modules/d3-color/src/define.cjs +0 -1
  305. package/dist/node_modules/d3-color/src/define.js +0 -12
  306. package/dist/node_modules/d3-dispatch/src/dispatch.cjs +0 -1
  307. package/dist/node_modules/d3-dispatch/src/dispatch.js +0 -64
  308. package/dist/node_modules/d3-ease/src/cubic.cjs +0 -1
  309. package/dist/node_modules/d3-ease/src/cubic.js +0 -6
  310. package/dist/node_modules/d3-ease/src/linear.cjs +0 -1
  311. package/dist/node_modules/d3-ease/src/linear.js +0 -4
  312. package/dist/node_modules/d3-format/src/defaultLocale.cjs +0 -1
  313. package/dist/node_modules/d3-format/src/defaultLocale.js +0 -15
  314. package/dist/node_modules/d3-format/src/exponent.cjs +0 -1
  315. package/dist/node_modules/d3-format/src/exponent.js +0 -7
  316. package/dist/node_modules/d3-format/src/formatDecimal.cjs +0 -1
  317. package/dist/node_modules/d3-format/src/formatDecimal.js +0 -15
  318. package/dist/node_modules/d3-format/src/formatGroup.cjs +0 -1
  319. package/dist/node_modules/d3-format/src/formatGroup.js +0 -10
  320. package/dist/node_modules/d3-format/src/formatNumerals.cjs +0 -1
  321. package/dist/node_modules/d3-format/src/formatNumerals.js +0 -10
  322. package/dist/node_modules/d3-format/src/formatPrefixAuto.cjs +0 -1
  323. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -12
  324. package/dist/node_modules/d3-format/src/formatRounded.cjs +0 -1
  325. package/dist/node_modules/d3-format/src/formatRounded.js +0 -10
  326. package/dist/node_modules/d3-format/src/formatSpecifier.cjs +0 -1
  327. package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -28
  328. package/dist/node_modules/d3-format/src/formatTrim.cjs +0 -1
  329. package/dist/node_modules/d3-format/src/formatTrim.js +0 -19
  330. package/dist/node_modules/d3-format/src/formatTypes.cjs +0 -1
  331. package/dist/node_modules/d3-format/src/formatTypes.js +0 -21
  332. package/dist/node_modules/d3-format/src/identity.cjs +0 -1
  333. package/dist/node_modules/d3-format/src/identity.js +0 -6
  334. package/dist/node_modules/d3-format/src/locale.cjs +0 -1
  335. package/dist/node_modules/d3-format/src/locale.js +0 -68
  336. package/dist/node_modules/d3-format/src/precisionFixed.cjs +0 -1
  337. package/dist/node_modules/d3-format/src/precisionFixed.js +0 -7
  338. package/dist/node_modules/d3-format/src/precisionPrefix.cjs +0 -1
  339. package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -7
  340. package/dist/node_modules/d3-format/src/precisionRound.cjs +0 -1
  341. package/dist/node_modules/d3-format/src/precisionRound.js +0 -7
  342. package/dist/node_modules/d3-interpolate/src/array.cjs +0 -1
  343. package/dist/node_modules/d3-interpolate/src/array.js +0 -13
  344. package/dist/node_modules/d3-interpolate/src/color.cjs +0 -1
  345. package/dist/node_modules/d3-interpolate/src/color.js +0 -24
  346. package/dist/node_modules/d3-interpolate/src/constant.cjs +0 -1
  347. package/dist/node_modules/d3-interpolate/src/constant.js +0 -4
  348. package/dist/node_modules/d3-interpolate/src/date.cjs +0 -1
  349. package/dist/node_modules/d3-interpolate/src/date.js +0 -9
  350. package/dist/node_modules/d3-interpolate/src/number.cjs +0 -1
  351. package/dist/node_modules/d3-interpolate/src/number.js +0 -8
  352. package/dist/node_modules/d3-interpolate/src/numberArray.cjs +0 -1
  353. package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -15
  354. package/dist/node_modules/d3-interpolate/src/object.cjs +0 -1
  355. package/dist/node_modules/d3-interpolate/src/object.js +0 -14
  356. package/dist/node_modules/d3-interpolate/src/piecewise.cjs +0 -1
  357. package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -12
  358. package/dist/node_modules/d3-interpolate/src/rgb.cjs +0 -1
  359. package/dist/node_modules/d3-interpolate/src/rgb.js +0 -15
  360. package/dist/node_modules/d3-interpolate/src/round.cjs +0 -1
  361. package/dist/node_modules/d3-interpolate/src/round.js +0 -8
  362. package/dist/node_modules/d3-interpolate/src/string.cjs +0 -1
  363. package/dist/node_modules/d3-interpolate/src/string.js +0 -24
  364. package/dist/node_modules/d3-interpolate/src/transform/decompose.cjs +0 -1
  365. package/dist/node_modules/d3-interpolate/src/transform/decompose.js +0 -23
  366. package/dist/node_modules/d3-interpolate/src/transform/index.cjs +0 -1
  367. package/dist/node_modules/d3-interpolate/src/transform/index.js +0 -37
  368. package/dist/node_modules/d3-interpolate/src/transform/parse.cjs +0 -1
  369. package/dist/node_modules/d3-interpolate/src/transform/parse.js +0 -13
  370. package/dist/node_modules/d3-interpolate/src/value.cjs +0 -1
  371. package/dist/node_modules/d3-interpolate/src/value.js +0 -16
  372. package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.cjs +0 -2
  373. package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.js +0 -301
  374. package/dist/node_modules/d3-path/src/path.cjs +0 -1
  375. package/dist/node_modules/d3-path/src/path.js +0 -64
  376. package/dist/node_modules/d3-scale/src/band.cjs +0 -1
  377. package/dist/node_modules/d3-scale/src/band.js +0 -51
  378. package/dist/node_modules/d3-scale/src/constant.cjs +0 -1
  379. package/dist/node_modules/d3-scale/src/constant.js +0 -8
  380. package/dist/node_modules/d3-scale/src/continuous.cjs +0 -1
  381. package/dist/node_modules/d3-scale/src/continuous.js +0 -75
  382. package/dist/node_modules/d3-scale/src/diverging.cjs +0 -1
  383. package/dist/node_modules/d3-scale/src/diverging.js +0 -40
  384. package/dist/node_modules/d3-scale/src/identity.cjs +0 -1
  385. package/dist/node_modules/d3-scale/src/identity.js +0 -18
  386. package/dist/node_modules/d3-scale/src/init.cjs +0 -1
  387. package/dist/node_modules/d3-scale/src/init.js +0 -32
  388. package/dist/node_modules/d3-scale/src/linear.cjs +0 -1
  389. package/dist/node_modules/d3-scale/src/linear.js +0 -39
  390. package/dist/node_modules/d3-scale/src/log.cjs +0 -1
  391. package/dist/node_modules/d3-scale/src/log.js +0 -86
  392. package/dist/node_modules/d3-scale/src/nice.cjs +0 -1
  393. package/dist/node_modules/d3-scale/src/nice.js +0 -8
  394. package/dist/node_modules/d3-scale/src/number.cjs +0 -1
  395. package/dist/node_modules/d3-scale/src/number.js +0 -6
  396. package/dist/node_modules/d3-scale/src/ordinal.cjs +0 -1
  397. package/dist/node_modules/d3-scale/src/ordinal.js +0 -31
  398. package/dist/node_modules/d3-scale/src/pow.cjs +0 -1
  399. package/dist/node_modules/d3-scale/src/pow.js +0 -37
  400. package/dist/node_modules/d3-scale/src/quantile.cjs +0 -1
  401. package/dist/node_modules/d3-scale/src/quantile.js +0 -38
  402. package/dist/node_modules/d3-scale/src/quantize.cjs +0 -1
  403. package/dist/node_modules/d3-scale/src/quantize.js +0 -31
  404. package/dist/node_modules/d3-scale/src/sequential.cjs +0 -1
  405. package/dist/node_modules/d3-scale/src/sequential.js +0 -42
  406. package/dist/node_modules/d3-scale/src/symlog.cjs +0 -1
  407. package/dist/node_modules/d3-scale/src/symlog.js +0 -29
  408. package/dist/node_modules/d3-scale/src/threshold.cjs +0 -1
  409. package/dist/node_modules/d3-scale/src/threshold.js +0 -23
  410. package/dist/node_modules/d3-scale/src/tickFormat.cjs +0 -1
  411. package/dist/node_modules/d3-scale/src/tickFormat.js +0 -32
  412. package/dist/node_modules/d3-scale/src/time.cjs +0 -1
  413. package/dist/node_modules/d3-scale/src/time.js +0 -46
  414. package/dist/node_modules/d3-scale/src/utcTime.cjs +0 -1
  415. package/dist/node_modules/d3-scale/src/utcTime.js +0 -17
  416. package/dist/node_modules/d3-selection/src/array.cjs +0 -1
  417. package/dist/node_modules/d3-selection/src/array.js +0 -6
  418. package/dist/node_modules/d3-selection/src/constant.cjs +0 -1
  419. package/dist/node_modules/d3-selection/src/constant.js +0 -8
  420. package/dist/node_modules/d3-selection/src/creator.cjs +0 -1
  421. package/dist/node_modules/d3-selection/src/creator.js +0 -20
  422. package/dist/node_modules/d3-selection/src/matcher.cjs +0 -1
  423. package/dist/node_modules/d3-selection/src/matcher.js +0 -14
  424. package/dist/node_modules/d3-selection/src/namespace.cjs +0 -1
  425. package/dist/node_modules/d3-selection/src/namespace.js +0 -8
  426. package/dist/node_modules/d3-selection/src/namespaces.cjs +0 -1
  427. package/dist/node_modules/d3-selection/src/namespaces.js +0 -12
  428. package/dist/node_modules/d3-selection/src/pointer.cjs +0 -1
  429. package/dist/node_modules/d3-selection/src/pointer.js +0 -18
  430. package/dist/node_modules/d3-selection/src/select.cjs +0 -1
  431. package/dist/node_modules/d3-selection/src/select.js +0 -7
  432. package/dist/node_modules/d3-selection/src/selection/append.cjs +0 -1
  433. package/dist/node_modules/d3-selection/src/selection/append.js +0 -10
  434. package/dist/node_modules/d3-selection/src/selection/attr.cjs +0 -1
  435. package/dist/node_modules/d3-selection/src/selection/attr.js +0 -44
  436. package/dist/node_modules/d3-selection/src/selection/call.cjs +0 -1
  437. package/dist/node_modules/d3-selection/src/selection/call.js +0 -7
  438. package/dist/node_modules/d3-selection/src/selection/classed.cjs +0 -1
  439. package/dist/node_modules/d3-selection/src/selection/classed.js +0 -54
  440. package/dist/node_modules/d3-selection/src/selection/clone.cjs +0 -1
  441. package/dist/node_modules/d3-selection/src/selection/clone.js +0 -14
  442. package/dist/node_modules/d3-selection/src/selection/data.cjs +0 -1
  443. package/dist/node_modules/d3-selection/src/selection/data.js +0 -42
  444. package/dist/node_modules/d3-selection/src/selection/datum.cjs +0 -1
  445. package/dist/node_modules/d3-selection/src/selection/datum.js +0 -6
  446. package/dist/node_modules/d3-selection/src/selection/dispatch.cjs +0 -1
  447. package/dist/node_modules/d3-selection/src/selection/dispatch.js +0 -21
  448. package/dist/node_modules/d3-selection/src/selection/each.cjs +0 -1
  449. package/dist/node_modules/d3-selection/src/selection/each.js +0 -9
  450. package/dist/node_modules/d3-selection/src/selection/empty.cjs +0 -1
  451. package/dist/node_modules/d3-selection/src/selection/empty.js +0 -6
  452. package/dist/node_modules/d3-selection/src/selection/enter.cjs +0 -1
  453. package/dist/node_modules/d3-selection/src/selection/enter.js +0 -27
  454. package/dist/node_modules/d3-selection/src/selection/exit.cjs +0 -1
  455. package/dist/node_modules/d3-selection/src/selection/exit.js +0 -8
  456. package/dist/node_modules/d3-selection/src/selection/filter.cjs +0 -1
  457. package/dist/node_modules/d3-selection/src/selection/filter.js +0 -12
  458. package/dist/node_modules/d3-selection/src/selection/html.cjs +0 -1
  459. package/dist/node_modules/d3-selection/src/selection/html.js +0 -20
  460. package/dist/node_modules/d3-selection/src/selection/index.cjs +0 -1
  461. package/dist/node_modules/d3-selection/src/selection/index.js +0 -87
  462. package/dist/node_modules/d3-selection/src/selection/insert.cjs +0 -1
  463. package/dist/node_modules/d3-selection/src/selection/insert.js +0 -14
  464. package/dist/node_modules/d3-selection/src/selection/iterator.cjs +0 -1
  465. package/dist/node_modules/d3-selection/src/selection/iterator.js +0 -8
  466. package/dist/node_modules/d3-selection/src/selection/join.cjs +0 -1
  467. package/dist/node_modules/d3-selection/src/selection/join.js +0 -7
  468. package/dist/node_modules/d3-selection/src/selection/lower.cjs +0 -1
  469. package/dist/node_modules/d3-selection/src/selection/lower.js +0 -9
  470. package/dist/node_modules/d3-selection/src/selection/merge.cjs +0 -1
  471. package/dist/node_modules/d3-selection/src/selection/merge.js +0 -12
  472. package/dist/node_modules/d3-selection/src/selection/node.cjs +0 -1
  473. package/dist/node_modules/d3-selection/src/selection/node.js +0 -11
  474. package/dist/node_modules/d3-selection/src/selection/nodes.cjs +0 -1
  475. package/dist/node_modules/d3-selection/src/selection/nodes.js +0 -6
  476. package/dist/node_modules/d3-selection/src/selection/on.cjs +0 -1
  477. package/dist/node_modules/d3-selection/src/selection/on.js +0 -52
  478. package/dist/node_modules/d3-selection/src/selection/order.cjs +0 -1
  479. package/dist/node_modules/d3-selection/src/selection/order.js +0 -9
  480. package/dist/node_modules/d3-selection/src/selection/property.cjs +0 -1
  481. package/dist/node_modules/d3-selection/src/selection/property.js +0 -22
  482. package/dist/node_modules/d3-selection/src/selection/raise.cjs +0 -1
  483. package/dist/node_modules/d3-selection/src/selection/raise.js +0 -9
  484. package/dist/node_modules/d3-selection/src/selection/remove.cjs +0 -1
  485. package/dist/node_modules/d3-selection/src/selection/remove.js +0 -10
  486. package/dist/node_modules/d3-selection/src/selection/select.cjs +0 -1
  487. package/dist/node_modules/d3-selection/src/selection/select.js +0 -12
  488. package/dist/node_modules/d3-selection/src/selection/selectAll.cjs +0 -1
  489. package/dist/node_modules/d3-selection/src/selection/selectAll.js +0 -18
  490. package/dist/node_modules/d3-selection/src/selection/selectChild.cjs +0 -1
  491. package/dist/node_modules/d3-selection/src/selection/selectChild.js +0 -16
  492. package/dist/node_modules/d3-selection/src/selection/selectChildren.cjs +0 -1
  493. package/dist/node_modules/d3-selection/src/selection/selectChildren.js +0 -16
  494. package/dist/node_modules/d3-selection/src/selection/size.cjs +0 -1
  495. package/dist/node_modules/d3-selection/src/selection/size.js +0 -8
  496. package/dist/node_modules/d3-selection/src/selection/sort.cjs +0 -1
  497. package/dist/node_modules/d3-selection/src/selection/sort.js +0 -19
  498. package/dist/node_modules/d3-selection/src/selection/sparse.cjs +0 -1
  499. package/dist/node_modules/d3-selection/src/selection/sparse.js +0 -6
  500. package/dist/node_modules/d3-selection/src/selection/style.cjs +0 -1
  501. package/dist/node_modules/d3-selection/src/selection/style.js +0 -27
  502. package/dist/node_modules/d3-selection/src/selection/text.cjs +0 -1
  503. package/dist/node_modules/d3-selection/src/selection/text.js +0 -20
  504. package/dist/node_modules/d3-selection/src/selector.cjs +0 -1
  505. package/dist/node_modules/d3-selection/src/selector.js +0 -10
  506. package/dist/node_modules/d3-selection/src/selectorAll.cjs +0 -1
  507. package/dist/node_modules/d3-selection/src/selectorAll.js +0 -11
  508. package/dist/node_modules/d3-selection/src/sourceEvent.cjs +0 -1
  509. package/dist/node_modules/d3-selection/src/sourceEvent.js +0 -8
  510. package/dist/node_modules/d3-selection/src/window.cjs +0 -1
  511. package/dist/node_modules/d3-selection/src/window.js +0 -6
  512. package/dist/node_modules/d3-shape/src/arc.cjs +0 -1
  513. package/dist/node_modules/d3-shape/src/arc.js +0 -85
  514. package/dist/node_modules/d3-shape/src/area.cjs +0 -1
  515. package/dist/node_modules/d3-shape/src/area.js +0 -56
  516. package/dist/node_modules/d3-shape/src/array.cjs +0 -1
  517. package/dist/node_modules/d3-shape/src/array.js +0 -6
  518. package/dist/node_modules/d3-shape/src/constant.cjs +0 -1
  519. package/dist/node_modules/d3-shape/src/constant.js +0 -8
  520. package/dist/node_modules/d3-shape/src/curve/basis.cjs +0 -1
  521. package/dist/node_modules/d3-shape/src/curve/basis.js +0 -60
  522. package/dist/node_modules/d3-shape/src/curve/basisClosed.cjs +0 -1
  523. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -51
  524. package/dist/node_modules/d3-shape/src/curve/basisOpen.cjs +0 -1
  525. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -46
  526. package/dist/node_modules/d3-shape/src/curve/bundle.cjs +0 -1
  527. package/dist/node_modules/d3-shape/src/curve/bundle.js +0 -33
  528. package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +0 -1
  529. package/dist/node_modules/d3-shape/src/curve/cardinal.js +0 -65
  530. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.cjs +0 -1
  531. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +0 -57
  532. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.cjs +0 -1
  533. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +0 -50
  534. package/dist/node_modules/d3-shape/src/curve/catmullRom.cjs +0 -1
  535. package/dist/node_modules/d3-shape/src/curve/catmullRom.js +0 -72
  536. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.cjs +0 -1
  537. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +0 -61
  538. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.cjs +0 -1
  539. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +0 -54
  540. package/dist/node_modules/d3-shape/src/curve/linear.cjs +0 -1
  541. package/dist/node_modules/d3-shape/src/curve/linear.js +0 -36
  542. package/dist/node_modules/d3-shape/src/curve/linearClosed.cjs +0 -1
  543. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -23
  544. package/dist/node_modules/d3-shape/src/curve/monotone.cjs +0 -1
  545. package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -93
  546. package/dist/node_modules/d3-shape/src/curve/natural.cjs +0 -1
  547. package/dist/node_modules/d3-shape/src/curve/natural.js +0 -41
  548. package/dist/node_modules/d3-shape/src/curve/step.cjs +0 -1
  549. package/dist/node_modules/d3-shape/src/curve/step.js +0 -51
  550. package/dist/node_modules/d3-shape/src/descending.cjs +0 -1
  551. package/dist/node_modules/d3-shape/src/descending.js +0 -6
  552. package/dist/node_modules/d3-shape/src/identity.cjs +0 -1
  553. package/dist/node_modules/d3-shape/src/identity.js +0 -6
  554. package/dist/node_modules/d3-shape/src/line.cjs +0 -1
  555. package/dist/node_modules/d3-shape/src/line.js +0 -29
  556. package/dist/node_modules/d3-shape/src/math.cjs +0 -1
  557. package/dist/node_modules/d3-shape/src/math.js +0 -22
  558. package/dist/node_modules/d3-shape/src/noop.cjs +0 -1
  559. package/dist/node_modules/d3-shape/src/noop.js +0 -5
  560. package/dist/node_modules/d3-shape/src/path.cjs +0 -1
  561. package/dist/node_modules/d3-shape/src/path.js +0 -18
  562. package/dist/node_modules/d3-shape/src/pie.cjs +0 -1
  563. package/dist/node_modules/d3-shape/src/pie.js +0 -43
  564. package/dist/node_modules/d3-shape/src/point.cjs +0 -1
  565. package/dist/node_modules/d3-shape/src/point.js +0 -10
  566. package/dist/node_modules/d3-shape/src/symbol/circle.cjs +0 -1
  567. package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -10
  568. package/dist/node_modules/d3-shape/src/symbol/cross.cjs +0 -1
  569. package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -10
  570. package/dist/node_modules/d3-shape/src/symbol/diamond.cjs +0 -1
  571. package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -10
  572. package/dist/node_modules/d3-shape/src/symbol/square.cjs +0 -1
  573. package/dist/node_modules/d3-shape/src/symbol/square.js +0 -10
  574. package/dist/node_modules/d3-shape/src/symbol/star.cjs +0 -1
  575. package/dist/node_modules/d3-shape/src/symbol/star.js +0 -15
  576. package/dist/node_modules/d3-shape/src/symbol/triangle.cjs +0 -1
  577. package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -10
  578. package/dist/node_modules/d3-shape/src/symbol/wye.cjs +0 -1
  579. package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -10
  580. package/dist/node_modules/d3-shape/src/symbol.cjs +0 -1
  581. package/dist/node_modules/d3-shape/src/symbol.js +0 -21
  582. package/dist/node_modules/d3-time/src/day.cjs +0 -1
  583. package/dist/node_modules/d3-time/src/day.js +0 -26
  584. package/dist/node_modules/d3-time/src/duration.cjs +0 -1
  585. package/dist/node_modules/d3-time/src/duration.js +0 -10
  586. package/dist/node_modules/d3-time/src/hour.cjs +0 -1
  587. package/dist/node_modules/d3-time/src/hour.js +0 -18
  588. package/dist/node_modules/d3-time/src/interval.cjs +0 -1
  589. package/dist/node_modules/d3-time/src/interval.js +0 -31
  590. package/dist/node_modules/d3-time/src/millisecond.cjs +0 -1
  591. package/dist/node_modules/d3-time/src/millisecond.js +0 -14
  592. package/dist/node_modules/d3-time/src/minute.cjs +0 -1
  593. package/dist/node_modules/d3-time/src/minute.js +0 -18
  594. package/dist/node_modules/d3-time/src/month.cjs +0 -1
  595. package/dist/node_modules/d3-time/src/month.js +0 -17
  596. package/dist/node_modules/d3-time/src/second.cjs +0 -1
  597. package/dist/node_modules/d3-time/src/second.js +0 -11
  598. package/dist/node_modules/d3-time/src/ticks.cjs +0 -1
  599. package/dist/node_modules/d3-time/src/ticks.js +0 -54
  600. package/dist/node_modules/d3-time/src/week.cjs +0 -1
  601. package/dist/node_modules/d3-time/src/week.js +0 -48
  602. package/dist/node_modules/d3-time/src/year.cjs +0 -1
  603. package/dist/node_modules/d3-time/src/year.js +0 -27
  604. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +0 -1
  605. package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -20
  606. package/dist/node_modules/d3-time-format/src/locale.cjs +0 -1
  607. package/dist/node_modules/d3-time-format/src/locale.js +0 -478
  608. package/dist/node_modules/d3-timer/src/timeout.cjs +0 -1
  609. package/dist/node_modules/d3-timer/src/timeout.js +0 -10
  610. package/dist/node_modules/d3-timer/src/timer.cjs +0 -1
  611. package/dist/node_modules/d3-timer/src/timer.js +0 -62
  612. package/dist/node_modules/d3-transition/src/interrupt.cjs +0 -1
  613. package/dist/node_modules/d3-transition/src/interrupt.js +0 -18
  614. package/dist/node_modules/d3-transition/src/selection/index.cjs +0 -1
  615. package/dist/node_modules/d3-transition/src/selection/index.js +0 -5
  616. package/dist/node_modules/d3-transition/src/selection/interrupt.cjs +0 -1
  617. package/dist/node_modules/d3-transition/src/selection/interrupt.js +0 -9
  618. package/dist/node_modules/d3-transition/src/selection/transition.cjs +0 -1
  619. package/dist/node_modules/d3-transition/src/selection/transition.js +0 -28
  620. package/dist/node_modules/d3-transition/src/transition/attr.cjs +0 -1
  621. package/dist/node_modules/d3-transition/src/transition/attr.js +0 -49
  622. package/dist/node_modules/d3-transition/src/transition/attrTween.cjs +0 -1
  623. package/dist/node_modules/d3-transition/src/transition/attrTween.js +0 -38
  624. package/dist/node_modules/d3-transition/src/transition/delay.cjs +0 -1
  625. package/dist/node_modules/d3-transition/src/transition/delay.js +0 -18
  626. package/dist/node_modules/d3-transition/src/transition/duration.cjs +0 -1
  627. package/dist/node_modules/d3-transition/src/transition/duration.js +0 -18
  628. package/dist/node_modules/d3-transition/src/transition/ease.cjs +0 -1
  629. package/dist/node_modules/d3-transition/src/transition/ease.js +0 -14
  630. package/dist/node_modules/d3-transition/src/transition/easeVarying.cjs +0 -1
  631. package/dist/node_modules/d3-transition/src/transition/easeVarying.js +0 -15
  632. package/dist/node_modules/d3-transition/src/transition/end.cjs +0 -1
  633. package/dist/node_modules/d3-transition/src/transition/end.js +0 -16
  634. package/dist/node_modules/d3-transition/src/transition/filter.cjs +0 -1
  635. package/dist/node_modules/d3-transition/src/transition/filter.js +0 -12
  636. package/dist/node_modules/d3-transition/src/transition/index.cjs +0 -1
  637. package/dist/node_modules/d3-transition/src/transition/index.js +0 -65
  638. package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +0 -1
  639. package/dist/node_modules/d3-transition/src/transition/interpolate.js +0 -11
  640. package/dist/node_modules/d3-transition/src/transition/merge.cjs +0 -1
  641. package/dist/node_modules/d3-transition/src/transition/merge.js +0 -13
  642. package/dist/node_modules/d3-transition/src/transition/on.cjs +0 -1
  643. package/dist/node_modules/d3-transition/src/transition/on.js +0 -21
  644. package/dist/node_modules/d3-transition/src/transition/remove.cjs +0 -1
  645. package/dist/node_modules/d3-transition/src/transition/remove.js +0 -13
  646. package/dist/node_modules/d3-transition/src/transition/schedule.cjs +0 -1
  647. package/dist/node_modules/d3-transition/src/transition/schedule.js +0 -85
  648. package/dist/node_modules/d3-transition/src/transition/select.cjs +0 -1
  649. package/dist/node_modules/d3-transition/src/transition/select.js +0 -14
  650. package/dist/node_modules/d3-transition/src/transition/selectAll.cjs +0 -1
  651. package/dist/node_modules/d3-transition/src/transition/selectAll.js +0 -18
  652. package/dist/node_modules/d3-transition/src/transition/selection.cjs +0 -1
  653. package/dist/node_modules/d3-transition/src/transition/selection.js +0 -8
  654. package/dist/node_modules/d3-transition/src/transition/style.cjs +0 -1
  655. package/dist/node_modules/d3-transition/src/transition/style.js +0 -45
  656. package/dist/node_modules/d3-transition/src/transition/styleTween.cjs +0 -1
  657. package/dist/node_modules/d3-transition/src/transition/styleTween.js +0 -23
  658. package/dist/node_modules/d3-transition/src/transition/text.cjs +0 -1
  659. package/dist/node_modules/d3-transition/src/transition/text.js +0 -18
  660. package/dist/node_modules/d3-transition/src/transition/textTween.cjs +0 -1
  661. package/dist/node_modules/d3-transition/src/transition/textTween.js +0 -23
  662. package/dist/node_modules/d3-transition/src/transition/transition.cjs +0 -1
  663. package/dist/node_modules/d3-transition/src/transition/transition.js +0 -19
  664. package/dist/node_modules/d3-transition/src/transition/tween.cjs +0 -1
  665. package/dist/node_modules/d3-transition/src/transition/tween.js +0 -56
  666. package/dist/node_modules/internmap/src/index.cjs +0 -1
  667. package/dist/node_modules/internmap/src/index.js +0 -35
  668. package/dist/node_modules/parse-unit/index.cjs +0 -1
  669. package/dist/node_modules/parse-unit/index.js +0 -11
  670. package/dist/node_modules/striptags/src/striptags.cjs +0 -2
  671. package/dist/node_modules/striptags/src/striptags.js +0 -118
  672. package/dist/node_modules/stylis/src/Enum.cjs +0 -1
  673. package/dist/node_modules/stylis/src/Enum.js +0 -12
  674. package/dist/node_modules/stylis/src/Middleware.cjs +0 -1
  675. package/dist/node_modules/stylis/src/Middleware.js +0 -18
  676. package/dist/node_modules/stylis/src/Parser.cjs +0 -1
  677. package/dist/node_modules/stylis/src/Parser.js +0 -131
  678. package/dist/node_modules/stylis/src/Serializer.cjs +0 -1
  679. package/dist/node_modules/stylis/src/Serializer.js +0 -27
  680. package/dist/node_modules/stylis/src/Tokenizer.cjs +0 -1
  681. package/dist/node_modules/stylis/src/Tokenizer.js +0 -141
  682. package/dist/node_modules/stylis/src/Utility.cjs +0 -1
  683. package/dist/node_modules/stylis/src/Utility.js +0 -50
  684. package/dist/node_modules/throttle-debounce/esm/index.cjs +0 -1
  685. package/dist/node_modules/throttle-debounce/esm/index.js +0 -28
  686. package/dist/node_modules/to-px/browser.cjs +0 -1
  687. package/dist/node_modules/to-px/browser.js +0 -63
  688. package/dist/types.cjs +0 -1
  689. package/dist/types.d.ts +0 -5
  690. package/dist/types.js +0 -4
  691. package/dist/utils.cjs +0 -1
  692. package/dist/utils.d.ts +0 -1
  693. package/dist/utils.js +0 -18
  694. package/dist/vite.svg +0 -1
@@ -1,185 +0,0 @@
1
- import { css as E } from "../../../../@emotion/css/dist/emotion-css.esm.js";
2
- import "../../styles/index.js";
3
- import { ContainerCore as N } from "../../core/container/index.js";
4
- import { CoreDataModel as R } from "../../data-models/core.js";
5
- import { AxisType as D } from "../../components/axis/types.js";
6
- import { ScaleDimension as u } from "../../types/scale.js";
7
- import { Direction as P } from "../../types/direction.js";
8
- import { clamp as b, clean as y, flatten as S } from "../../utils/data.js";
9
- import { guid as Y } from "../../utils/misc.js";
10
- import { XYContainerDefaultConfig as $ } from "./config.js";
11
- import w from "../../../../d3-array/src/extent.js";
12
- import T from "../../../../d3-array/src/merge.js";
13
- class J extends N {
14
- constructor(t, i, e) {
15
- var o, n;
16
- super(t), this._defaultConfig = $, this.datamodel = new R(), this.config = this._defaultConfig, this._clipPathId = Y(), this._axisMargin = { top: 0, bottom: 0, left: 0, right: 0 }, this._firstRender = !0, this._clipPath = this.svg.append("clipPath").attr("id", this._clipPathId), this._clipPath.append("rect");
17
- const s = "saturate", r = window.location.href.replace(window.location.hash, "");
18
- this.svg.attr("class", E`
19
- --highlight-filter-id: url(${r}#${s}); // defining a css variable
20
- `), this._svgDefs.append("filter").attr("id", s).attr("filterUnits", "objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'), i && this.updateContainer(i, !0), e && this.setData(e, !0), (this.config.xAxis || this.config.yAxis || !((o = this.components) === null || o === void 0) && o.some((a) => a.datamodel.data)) && this.render(), (n = document.fonts) === null || n === void 0 || n.ready.then(() => {
21
- this._firstRender || this._renderAxes(0);
22
- });
23
- }
24
- get components() {
25
- return this.config.components;
26
- }
27
- // Overriding ContainerCore default get width method to work with axis auto margin
28
- get width() {
29
- const t = this._getMargin();
30
- return b(this.containerWidth - t.left - t.right, 0, Number.POSITIVE_INFINITY);
31
- }
32
- // Overriding ContainerCore default get height method to work with axis auto margin
33
- get height() {
34
- const t = this._getMargin();
35
- return b(this.containerHeight - t.top - t.bottom, 0, Number.POSITIVE_INFINITY);
36
- }
37
- setData(t, i) {
38
- var e, o, n, s;
39
- const { components: r, config: a } = this;
40
- t && (this.datamodel.data = t, r.forEach((l) => {
41
- l.setData(t);
42
- }), (e = a.crosshair) === null || e === void 0 || e.setData(t), (o = a.xAxis) === null || o === void 0 || o.setData(t), (n = a.yAxis) === null || n === void 0 || n.setData(t), (s = a.tooltip) === null || s === void 0 || s.hide(), i || this.render());
43
- }
44
- updateContainer(t, i) {
45
- super.updateContainer(t), this._removeAllChildren(), this.setData(this.datamodel.data, !0), t.xAxis && (this.config.xAxis.config.type = D.X, this.element.appendChild(t.xAxis.element)), t.yAxis && (this.config.yAxis.config.type = D.Y, this.element.appendChild(t.yAxis.element));
46
- for (const s of this.components)
47
- this.element.appendChild(s.element);
48
- const e = t.tooltip;
49
- e && (e.hasContainer() || e.setContainer(this._container), e.setComponents(this.components));
50
- const o = t.crosshair;
51
- o && (o.setContainer(this.svg), o.tooltip = e, this.element.appendChild(o.element));
52
- const n = t.annotations;
53
- n && this.element.appendChild(n.element), this.element.appendChild(this._clipPath.node()), this.element.appendChild(this._svgDefs.node()), this.element.appendChild(this._svgDefsExternal.node()), i || this.render();
54
- }
55
- updateComponents(t, i) {
56
- const { config: e } = this;
57
- this.components.forEach((o, n) => {
58
- t[n] && o.setConfig(t[n]);
59
- }), this._updateScales(...this.components, e.xAxis, e.yAxis, e.crosshair), i || this.render();
60
- }
61
- update(t, i, e) {
62
- e && (this.datamodel.data = e), t && this.updateContainer(t, !0), i && this.updateComponents(i, !0), this.render();
63
- }
64
- _preRender() {
65
- const { config: t } = this;
66
- super._preRender(), t.autoMargin && this._setAutoMargin();
67
- const i = y([...this.components, t.xAxis, t.yAxis, t.crosshair, t.annotations]);
68
- for (const e of i)
69
- e.setSize(this.width, this.height, this.containerWidth, this.containerHeight);
70
- this._updateScales(...this.components, t.xAxis, t.yAxis, t.crosshair);
71
- }
72
- _render(t) {
73
- var i, e, o, n, s;
74
- const { config: r } = this;
75
- super._render();
76
- const a = this._getMargin();
77
- for (const d of this.components)
78
- d.g.attr("transform", `translate(${a.left},${a.top})`).style("clip-path", d.clippable ? `url(#${this._clipPathId})` : null).style("-webkit-clip-path", d.clippable ? `url(#${this._clipPathId})` : null), d.render(t);
79
- this._renderAxes(this._firstRender ? 0 : t);
80
- const l = 2;
81
- this._clipPath.select("rect").attr("x", -2).attr("y", -2).attr("width", this.width + 2 * l).attr("height", this.height + 2 * l), (i = r.tooltip) === null || i === void 0 || i.update();
82
- const p = r.crosshair;
83
- if (p) {
84
- const d = this.components.filter((c) => !c.stacked).map((c) => c.config.y), f = this.components.filter((c) => c.stacked).map((c) => c.config.y), h = (e = this.components.find((c) => c.config.baseline)) === null || e === void 0 ? void 0 : e.config, g = h == null ? void 0 : h.baseline;
85
- p.accessors = {
86
- x: (o = this.components[0]) === null || o === void 0 ? void 0 : o.config.x,
87
- y: S(d),
88
- yStacked: S(f),
89
- baseline: g
90
- }, p.g.attr("transform", `translate(${a.left},${a.top})`).style("clip-path", `url(#${this._clipPathId})`).style("-webkit-clip-path", `url(#${this._clipPathId})`), p.hide();
91
- }
92
- (n = r.annotations) === null || n === void 0 || n.g.attr("transform", `translate(${a.left},${a.top})`), (s = r.annotations) === null || s === void 0 || s.render(), this._firstRender = !1;
93
- }
94
- _updateScales(...t) {
95
- const i = y(t || this.components);
96
- this._setScales(...i), this._updateScalesDomain(...i), this._updateScalesRange(...i);
97
- }
98
- _setScales(...t) {
99
- const { config: i } = this;
100
- t && (i.xScale && t.forEach((e) => e.setScale(u.X, i.xScale)), i.yScale && t.forEach((e) => e.setScale(u.Y, i.yScale)));
101
- }
102
- _updateScalesDomain(...t) {
103
- const { config: i } = this;
104
- if (!t)
105
- return;
106
- const e = t.filter((o) => !o.config.excludeFromDomainCalculation);
107
- Object.values(u).forEach((o) => {
108
- var n, s, r, a, l, p, d, f;
109
- const [h, g] = w(T(e.map((x) => x.getDataExtent(o, i.scaleByDomain)))), c = o === u.Y ? i.yDomain : i.xDomain, m = o === u.Y ? i.yDomainMinConstraint : i.xDomainMinConstraint, _ = o === u.Y ? i.yDomainMaxConstraint : i.xDomainMaxConstraint, A = (s = (n = c == null ? void 0 : c[0]) !== null && n !== void 0 ? n : h) !== null && s !== void 0 ? s : 0, C = (a = (r = c == null ? void 0 : c[1]) !== null && r !== void 0 ? r : g) !== null && a !== void 0 ? a : 1, v = [
110
- b(A, (l = m == null ? void 0 : m[0]) !== null && l !== void 0 ? l : Number.NEGATIVE_INFINITY, (p = m == null ? void 0 : m[1]) !== null && p !== void 0 ? p : Number.POSITIVE_INFINITY),
111
- b(C, (d = _ == null ? void 0 : _[0]) !== null && d !== void 0 ? d : Number.NEGATIVE_INFINITY, (f = _ == null ? void 0 : _[1]) !== null && f !== void 0 ? f : Number.POSITIVE_INFINITY)
112
- ];
113
- if (v[0] === v[1]) {
114
- const x = e.some((M) => {
115
- var I;
116
- return ((I = M.datamodel.data) === null || I === void 0 ? void 0 : I.length) > 0;
117
- });
118
- (i.preventEmptyDomain || i.preventEmptyDomain === null && (!x || o === u.Y)) && (v[1] = v[0] + 1);
119
- }
120
- t.forEach((x) => x.setScaleDomain(o, v));
121
- });
122
- }
123
- _updateScalesRange(...t) {
124
- var i, e, o, n, s, r;
125
- const { config: a } = this;
126
- if (!t)
127
- return;
128
- const l = a.yDirection === P.South, p = [(i = a.padding.left) !== null && i !== void 0 ? i : 0, this.width - ((e = a.padding.right) !== null && e !== void 0 ? e : 0)], d = [this.height - ((o = a.padding.bottom) !== null && o !== void 0 ? o : 0), (n = a.padding.top) !== null && n !== void 0 ? n : 0];
129
- l && d.reverse();
130
- for (const h of t)
131
- h.setSize(this.width, this.height, this.containerWidth, this.containerHeight), h.setScaleRange(u.X, (s = a.xRange) !== null && s !== void 0 ? s : p), h.setScaleRange(u.Y, (r = a.yRange) !== null && r !== void 0 ? r : d);
132
- const f = t.map((h) => h.bleed).reduce((h, g) => {
133
- for (const c of Object.keys(h)) {
134
- const m = c;
135
- h[m] < g[m] && (h[m] = g[m]);
136
- }
137
- return h;
138
- }, { top: 0, bottom: 0, left: 0, right: 0 });
139
- for (const h of t)
140
- h.setScaleRange(u.X, [p[0] + f.left, p[1] - f.right]), h.setScaleRange(
141
- u.Y,
142
- l ? [d[0] + f.top, d[1] - f.bottom] : [d[0] - f.bottom, d[1] + f.top]
143
- // if Y axis is directed upwards
144
- );
145
- }
146
- _renderAxes(t) {
147
- const { config: { xAxis: i, yAxis: e } } = this, o = this._getMargin();
148
- y([i, e]).forEach((s) => {
149
- const r = s.getOffset(o);
150
- s.g.attr("transform", `translate(${r.left},${r.top})`), s.render(t);
151
- });
152
- }
153
- _setAutoMargin() {
154
- const { config: { xAxis: t, yAxis: i } } = this, e = y([...this.components, t, i]);
155
- this._setScales(...e), this._updateScalesDomain(...e);
156
- const o = this._firstRender ? 2 : 1;
157
- for (let n = 0; n < o; n += 1) {
158
- const s = { top: 0, bottom: 0, left: 0, right: 0 };
159
- this._updateScalesRange(...e), y([t, i]).forEach((a) => {
160
- a.preRender();
161
- const l = a.getRequiredMargin();
162
- s.top < l.top && (s.top = l.top), s.bottom < l.bottom && (s.bottom = l.bottom), s.left < l.left && (s.left = l.left), s.right < l.right && (s.right = l.right);
163
- }), this._axisMargin = s;
164
- }
165
- }
166
- _getMargin() {
167
- const { config: { margin: t } } = this;
168
- return {
169
- top: t.top + this._axisMargin.top,
170
- bottom: t.bottom + this._axisMargin.bottom,
171
- left: t.left + this._axisMargin.left,
172
- right: t.right + this._axisMargin.right
173
- };
174
- }
175
- destroy() {
176
- const { components: t, config: { tooltip: i, crosshair: e, annotations: o, xAxis: n, yAxis: s } } = this;
177
- super.destroy();
178
- for (const r of t)
179
- r == null || r.destroy();
180
- i == null || i.destroy(), e == null || e.destroy(), o == null || o.destroy(), n == null || n.destroy(), s == null || s.destroy();
181
- }
182
- }
183
- export {
184
- J as XYContainer
185
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={duration:600,events:{},attributes:{}};exports.ComponentDefaultConfig=t;
@@ -1,8 +0,0 @@
1
- const t = {
2
- duration: 600,
3
- events: {},
4
- attributes: {}
5
- };
6
- export {
7
- t as ComponentDefaultConfig
8
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../data-models/core.cjs"),r=require("../../utils/data.cjs"),g=require("../../utils/misc.cjs"),s=require("../../types/component.cjs"),f=require("./config.cjs"),m=require("../../../../d3-selection/src/select.cjs");class _{constructor(t=s.ComponentType.SVG){var e,i;this.type=s.ComponentType.SVG,this.datamodel=new a.CoreDataModel,this.sizing=s.Sizing.Fit,this.events={},this._defaultConfig=f.ComponentDefaultConfig,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=r.throttle(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=r.throttle(this._setCustomAttributes,500),t===s.ComponentType.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=g.guid(),this.g=m.default(this.element);const n=(i=(e=this.constructor)===null||e===void 0?void 0:e.selectors)===null||i===void 0?void 0:i.root;n&&this.g.attr("class",n)}setConfig(t){this.prevConfig=this.config,this.config=r.merge(this._defaultConfig,t)}setData(t){this.datamodel.data=t}setSize(t,e,i,n){isFinite(t)&&(this._width=t),isFinite(e)&&(this._height=e),isFinite(i)&&(this._containerWidth=i),isFinite(n)&&(this._containerHeight=n)}render(t=this.config.duration){this._render(t);const e="animating";t&&(this.g.attr(e,""),this.g.transition(e).duration(t).on("end interrupt",()=>{this.g.attr(e,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(t=this.config.duration){}_setCustomAttributes(){const t=this.config.attributes;Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(i=>{this.g.selectAll(`.${e}`).attr(i,t[e][i])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(t=this.events,e=""){Object.keys(t).forEach(i=>{Object.keys(t[i]).forEach(n=>{const h=this.g.selectAll(`.${i}`);h.on(n+e,(c,l)=>{const d=h.nodes(),u=d.indexOf(c.currentTarget),o=t[i][n];return o==null?void 0:o(l,c,u,d)})})})}destroy(){var t;(t=this.g)===null||t===void 0||t.remove(),this.element=void 0}isDestroyed(){return!this.element}}exports.ComponentCore=_;
@@ -1,68 +0,0 @@
1
- import { CoreDataModel as u } from "../../data-models/core.js";
2
- import { throttle as l, merge as a } from "../../utils/data.js";
3
- import { guid as m } from "../../utils/misc.js";
4
- import { ComponentType as o, Sizing as g } from "../../types/component.js";
5
- import { ComponentDefaultConfig as _ } from "./config.js";
6
- import p from "../../../../d3-selection/src/select.js";
7
- class w {
8
- constructor(t = o.SVG) {
9
- var e, i;
10
- this.type = o.SVG, this.datamodel = new u(), this.sizing = g.Fit, this.events = {}, this._defaultConfig = _, this._width = 400, this._height = 200, this._containerWidth = void 0, this._containerHeight = void 0, this._setUpComponentEventsThrottled = l(this._setUpComponentEvents, 500), this._setCustomAttributesThrottled = l(this._setCustomAttributes, 500), t === o.SVG ? this.element = document.createElementNS("http://www.w3.org/2000/svg", "g") : this.element = document.createElement("div"), this.uid = m(), this.g = p(this.element);
11
- const s = (i = (e = this.constructor) === null || e === void 0 ? void 0 : e.selectors) === null || i === void 0 ? void 0 : i.root;
12
- s && this.g.attr("class", s);
13
- }
14
- setConfig(t) {
15
- this.prevConfig = this.config, this.config = a(this._defaultConfig, t);
16
- }
17
- setData(t) {
18
- this.datamodel.data = t;
19
- }
20
- setSize(t, e, i, s) {
21
- isFinite(t) && (this._width = t), isFinite(e) && (this._height = e), isFinite(i) && (this._containerWidth = i), isFinite(s) && (this._containerHeight = s);
22
- }
23
- render(t = this.config.duration) {
24
- this._render(t);
25
- const e = "animating";
26
- t && (this.g.attr(e, ""), this.g.transition(e).duration(t).on("end interrupt", () => {
27
- this.g.attr(e, null);
28
- })), this._setUpComponentEventsThrottled(), this._setCustomAttributesThrottled();
29
- }
30
- get bleed() {
31
- return { top: 0, bottom: 0, left: 0, right: 0 };
32
- }
33
- // eslint-disable-next-line @typescript-eslint/no-empty-function
34
- _render(t = this.config.duration) {
35
- }
36
- _setCustomAttributes() {
37
- const t = this.config.attributes;
38
- Object.keys(t).forEach((e) => {
39
- Object.keys(t[e]).forEach((i) => {
40
- this.g.selectAll(`.${e}`).attr(i, t[e][i]);
41
- });
42
- });
43
- }
44
- _setUpComponentEvents() {
45
- this._bindEvents(this.events), this._bindEvents(this.config.events, ".user");
46
- }
47
- _bindEvents(t = this.events, e = "") {
48
- Object.keys(t).forEach((i) => {
49
- Object.keys(t[i]).forEach((s) => {
50
- const r = this.g.selectAll(`.${i}`);
51
- r.on(s + e, (h, c) => {
52
- const d = r.nodes(), f = d.indexOf(h.currentTarget), n = t[i][s];
53
- return n == null ? void 0 : n(c, h, f, d);
54
- });
55
- });
56
- });
57
- }
58
- destroy() {
59
- var t;
60
- (t = this.g) === null || t === void 0 || t.remove(), this.element = void 0;
61
- }
62
- isDestroyed() {
63
- return !this.element;
64
- }
65
- }
66
- export {
67
- w as ComponentCore
68
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../types/component.cjs"),n={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:e.Sizing.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};exports.ContainerDefaultConfig=n;
@@ -1,24 +0,0 @@
1
- import { Sizing as i } from "../../types/component.js";
2
- const t = {
3
- duration: void 0,
4
- margin: {
5
- top: 0,
6
- bottom: 0,
7
- left: 0,
8
- right: 0
9
- },
10
- padding: {
11
- top: 0,
12
- bottom: 0,
13
- left: 0,
14
- right: 0
15
- },
16
- sizing: i.Fit,
17
- width: void 0,
18
- height: void 0,
19
- svgDefs: void 0,
20
- ariaLabel: void 0
21
- };
22
- export {
23
- t as ContainerDefaultConfig
24
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../types/component.cjs"),r=require("../../utils/data.cjs"),c=require("../../utils/resize-observer.cjs"),d=require("./config.cjs"),o=require("../../../../d3-selection/src/select.cjs");class t{constructor(e){this._defaultConfig=d.ContainerDefaultConfig,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const i=o.default(this._container);i.attr("role","figure"),this.svg=i.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",t.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var i;this.prevConfig=this.config,this.config=r.merge(this._defaultConfig,e),(e==null?void 0:e.svgDefs)!==((i=this.prevConfig)===null||i===void 0?void 0:i.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:i}=this;o.default(this._container).attr("aria-label",i.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const i=this.config.width||this.containerWidth,s=this.config.height||this.containerHeight;this.svg.attr("width",i).attr("height",s),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||t.DEFAULT_CONTAINER_HEIGHT}get width(){return r.clamp(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return r.clamp(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===a.Sizing.Fit||e.sizing===a.Sizing.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new c.ResizeObserver((i,s)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const h=this._container.getBoundingClientRect(),n={width:h.width,height:h.height};!r.isEqual(this._containerSize,n)&&n.width&&n.height&&(this._containerSize=n,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}t.DEFAULT_CONTAINER_HEIGHT=300;exports.ContainerCore=t;
@@ -1,73 +0,0 @@
1
- import { Sizing as h } from "../../types/component.js";
2
- import { merge as d, clamp as o, isEqual as g } from "../../utils/data.js";
3
- import { ResizeObserver as c } from "../../utils/resize-observer.js";
4
- import { ContainerDefaultConfig as l } from "./config.js";
5
- import a from "../../../../d3-selection/src/select.js";
6
- class n {
7
- constructor(e) {
8
- this._defaultConfig = l, this._isFirstRender = !0, this._renderAnimationFrameId = null, this._container = e;
9
- const i = a(this._container);
10
- i.attr("role", "figure"), this.svg = i.append("svg").style("display", "block").attr("xmlns", "http://www.w3.org/2000/svg").attr("height", n.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden", !0), this._svgDefs = this.svg.append("defs"), this._svgDefsExternal = this.svg.append("defs"), this.element = this.svg.node();
11
- }
12
- updateContainer(e) {
13
- var i;
14
- this.prevConfig = this.config, this.config = d(this._defaultConfig, e), (e == null ? void 0 : e.svgDefs) !== ((i = this.prevConfig) === null || i === void 0 ? void 0 : i.svgDefs) && (this._svgDefsExternal.selectAll("*").remove(), this._svgDefsExternal.html(e.svgDefs));
15
- }
16
- // The `_preRender` step should be used to perform some actions before rendering.
17
- // For example, calculating scales, setting component sizes, etc ...
18
- // eslint-disable-next-line @typescript-eslint/no-empty-function
19
- _preRender() {
20
- }
21
- // The `_render` step should be used to perform the actual rendering
22
- _render(e) {
23
- const { config: i } = this;
24
- a(this._container).attr("aria-label", i.ariaLabel), this._isFirstRender = !1;
25
- }
26
- // Warning: Some Containers (i.e. Single Container) may override this method, so if you introduce any changes here,
27
- // make sure to check that other containers didn't break after them.
28
- render(e = this.config.duration) {
29
- const i = this.config.width || this.containerWidth, r = this.config.height || this.containerHeight;
30
- this.svg.attr("width", i).attr("height", r), this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
31
- this._preRender(), this._render(e);
32
- });
33
- }
34
- get containerWidth() {
35
- return this.config.width ? this.element.clientWidth : this._container.clientWidth || this._container.getBoundingClientRect().width;
36
- }
37
- get containerHeight() {
38
- return this.config.height ? this.element.clientHeight : this._container.clientHeight || this._container.getBoundingClientRect().height || n.DEFAULT_CONTAINER_HEIGHT;
39
- }
40
- get width() {
41
- return o(this.containerWidth - this.config.margin.left - this.config.margin.right, 0, Number.POSITIVE_INFINITY);
42
- }
43
- get height() {
44
- return o(this.containerHeight - this.config.margin.top - this.config.margin.bottom, 0, Number.POSITIVE_INFINITY);
45
- }
46
- _removeAllChildren() {
47
- for (; this.element.firstChild; )
48
- this.element.removeChild(this.element.firstChild);
49
- }
50
- _onResize() {
51
- const { config: e } = this;
52
- (e.sizing === h.Fit || e.sizing === h.FitWidth) && this.render(0);
53
- }
54
- _setUpResizeObserver() {
55
- if (this._resizeObserver)
56
- return;
57
- const e = this._container.getBoundingClientRect();
58
- this._containerSize = { width: e.width, height: e.height }, this._resizeObserver = new c((i, r) => {
59
- cancelAnimationFrame(this._resizeObserverAnimationFrameId), this._resizeObserverAnimationFrameId = requestAnimationFrame(() => {
60
- const s = this._container.getBoundingClientRect(), t = { width: s.width, height: s.height };
61
- !g(this._containerSize, t) && t.width && t.height && (this._containerSize = t, this._onResize());
62
- });
63
- }), this._resizeObserver.observe(this._container);
64
- }
65
- destroy() {
66
- var e;
67
- cancelAnimationFrame(this._renderAnimationFrameId), cancelAnimationFrame(this._resizeObserverAnimationFrameId), (e = this._resizeObserver) === null || e === void 0 || e.disconnect(), this.svg.remove();
68
- }
69
- }
70
- n.DEFAULT_CONTAINER_HEIGHT = 300;
71
- export {
72
- n as ContainerCore
73
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../component/config.cjs"),t=Object.assign(Object.assign({},i.ComponentDefaultConfig),{x:void 0,y:void 0,id:(e,o)=>{var n;return(n=e.id)!==null&&n!==void 0?n:`${o}`},color:e=>e.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});exports.XYComponentDefaultConfig=t;
@@ -1,8 +0,0 @@
1
- import { ComponentDefaultConfig as i } from "../component/config.js";
2
- const d = Object.assign(Object.assign({}, i), { x: void 0, y: void 0, id: (e, o) => {
3
- var n;
4
- return (n = e.id) !== null && n !== void 0 ? n : `${o}`;
5
- }, color: (e) => e.color, xScale: void 0, yScale: void 0, excludeFromDomainCalculation: !1 });
6
- export {
7
- d as XYComponentDefaultConfig
8
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../component/index.cjs"),l=require("../../data-models/series.cjs"),s=require("../../utils/data.cjs"),n=require("../../types/scale.cjs"),r=require("./config.cjs");class S extends o.ComponentCore{constructor(){super(...arguments),this.datamodel=new l.SeriesDataModel,this.clippable=!0,this.stacked=!1,this._defaultConfig=r.XYComponentDefaultConfig,this._xScale=n.Scale.scaleLinear(),this._yScale=n.Scale.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(t){var e,a;!((e=this.config)===null||e===void 0)&&e.xScale&&(t.xScale=this.config.xScale),!((a=this.config)===null||a===void 0)&&a.yScale&&(t.yScale=this.config.yScale),super.setConfig(t)}setScaleDomain(t,e){var a,i;t===n.ScaleDimension.X&&((a=this._xScale)===null||a===void 0||a.domain(e)),t===n.ScaleDimension.Y&&((i=this._yScale)===null||i===void 0||i.domain(e))}setScaleRange(t,e){var a,i;t===n.ScaleDimension.X&&((a=this._xScale)===null||a===void 0||a.range(e)),t===n.ScaleDimension.Y&&((i=this._yScale)===null||i===void 0||i.range(e))}setScale(t,e){e&&t===n.ScaleDimension.X&&(this._xScale=e),e&&t===n.ScaleDimension.Y&&(this._yScale=e)}getDataExtent(t,e){const{config:a,datamodel:i}=this;switch(t){case n.ScaleDimension.X:return this.getXDataExtent();case n.ScaleDimension.Y:return this.getYDataExtent(e);default:return s.getExtent(i.data,a[t])}}getXDataExtent(){const{config:t,datamodel:e}=this;return s.getExtent(e.data,t.x)}getYDataExtent(t){const{config:e,datamodel:a}=this,i=t?s.filterDataByRange(a.data,this.xScale.domain(),e.x):a.data,c=s.isArray(e.y)?e.y:[e.y];return s.getExtent(i,...c)}}exports.XYComponentCore=S;
@@ -1,53 +0,0 @@
1
- import { ComponentCore as n } from "../component/index.js";
2
- import { SeriesDataModel as r } from "../../data-models/series.js";
3
- import { getExtent as l, filterDataByRange as f, isArray as d } from "../../utils/data.js";
4
- import { Scale as s, ScaleDimension as o } from "../../types/scale.js";
5
- import { XYComponentDefaultConfig as h } from "./config.js";
6
- class y extends n {
7
- constructor() {
8
- super(...arguments), this.datamodel = new r(), this.clippable = !0, this.stacked = !1, this._defaultConfig = h, this._xScale = s.scaleLinear(), this._yScale = s.scaleLinear();
9
- }
10
- get xScale() {
11
- return this.config.xScale || this._xScale;
12
- }
13
- get yScale() {
14
- return this.config.yScale || this._yScale;
15
- }
16
- setConfig(e) {
17
- var t, a;
18
- !((t = this.config) === null || t === void 0) && t.xScale && (e.xScale = this.config.xScale), !((a = this.config) === null || a === void 0) && a.yScale && (e.yScale = this.config.yScale), super.setConfig(e);
19
- }
20
- setScaleDomain(e, t) {
21
- var a, i;
22
- e === o.X && ((a = this._xScale) === null || a === void 0 || a.domain(t)), e === o.Y && ((i = this._yScale) === null || i === void 0 || i.domain(t));
23
- }
24
- setScaleRange(e, t) {
25
- var a, i;
26
- e === o.X && ((a = this._xScale) === null || a === void 0 || a.range(t)), e === o.Y && ((i = this._yScale) === null || i === void 0 || i.range(t));
27
- }
28
- setScale(e, t) {
29
- t && e === o.X && (this._xScale = t), t && e === o.Y && (this._yScale = t);
30
- }
31
- getDataExtent(e, t) {
32
- const { config: a, datamodel: i } = this;
33
- switch (e) {
34
- case o.X:
35
- return this.getXDataExtent();
36
- case o.Y:
37
- return this.getYDataExtent(t);
38
- default:
39
- return l(i.data, a[e]);
40
- }
41
- }
42
- getXDataExtent() {
43
- const { config: e, datamodel: t } = this;
44
- return l(t.data, e.x);
45
- }
46
- getYDataExtent(e) {
47
- const { config: t, datamodel: a } = this, i = e ? f(a.data, this.xScale.domain(), t.x) : a.data, c = d(t.y) ? t.y : [t.y];
48
- return l(i, ...c);
49
- }
50
- }
51
- export {
52
- y as XYComponentCore
53
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class a{constructor(t){this.data=t}get data(){return this._data}set data(t){this._data=t}}exports.CoreDataModel=a;
@@ -1,14 +0,0 @@
1
- class s {
2
- constructor(t) {
3
- this.data = t;
4
- }
5
- get data() {
6
- return this._data;
7
- }
8
- set data(t) {
9
- this._data = t;
10
- }
11
- }
12
- export {
13
- s as CoreDataModel
14
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./core.cjs");class r extends t.CoreDataModel{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}exports.SeriesDataModel=r;
@@ -1,16 +0,0 @@
1
- import { CoreDataModel as r } from "./core.js";
2
- class s extends r {
3
- constructor(a) {
4
- super(a);
5
- }
6
- get data() {
7
- var a;
8
- return (a = this._data) !== null && a !== void 0 ? a : [];
9
- }
10
- set data(a) {
11
- Array.isArray(a) && (this._data = a);
12
- }
13
- }
14
- export {
15
- s as SeriesDataModel
16
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../utils/data.cjs"),t=require("../../../d3-color/src/color.cjs"),s=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],a=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],c=o=>`--vis-${i.isNumber(o)?`color${o%s.length}`:o}`;function n(o,e=.4){const l=t.hsl(o);return l.l=l.l*(1+e),l.formatHex()}function C(o,e=.4,l=.6){const r=t.hsl(o);return r.s=r.s*(1-l),r.l=r.l*(1-e),r.formatHex()}exports.colors=s;exports.colorsDark=a;exports.getCSSColorVariable=c;exports.getDarkerColor=C;exports.getLighterColor=n;
@@ -1,18 +0,0 @@
1
- import { isNumber as s } from "../utils/data.js";
2
- import { hsl as i } from "../../../d3-color/src/color.js";
3
- const n = (globalThis == null ? void 0 : globalThis.UNOVIS_COLORS) || ["#4D8CFD", "#FF6B7E", "#F4B83E", "#A6CC74", "#00C19A", "#6859BE"], a = (globalThis == null ? void 0 : globalThis.UNOVIS_COLORS_DARK) || ["#4D8CFD", "#FF6B7E", "#FFC16D", "#A6CC74", "#00C19A", "#7887E0"], c = (o) => `--vis-${s(o) ? `color${o % n.length}` : o}`;
4
- function g(o, t = 0.4) {
5
- const l = i(o);
6
- return l.l = l.l * (1 + t), l.formatHex();
7
- }
8
- function h(o, t = 0.4, l = 0.6) {
9
- const r = i(o);
10
- return r.s = r.s * (1 - l), r.l = r.l * (1 - t), r.formatHex();
11
- }
12
- export {
13
- n as colors,
14
- a as colorsDark,
15
- c as getCSSColorVariable,
16
- h as getDarkerColor,
17
- g as getLighterColor
18
- };
@@ -1,38 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../@emotion/css/dist/emotion-css.esm.cjs"),s=require("../utils/misc.cjs"),r=require("./colors.cjs"),l=require("./patterns.cjs"),e=(globalThis==null?void 0:globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT)||.5,n=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT)||[" ","-",".",","],T=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT)||"-",v=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_DEFAULT)||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};i.injectGlobal`
2
- :root {
3
- label: vis-root-styles;
4
- --vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
5
- --vis-font-wh-ratio: ${e};
6
- --vis-color-main: var(${r.getCSSColorVariable(0)});
7
- --vis-color-main-light: ${r.getLighterColor(r.colors[0])};
8
- --vis-color-main-dark: ${r.getDarkerColor(r.colors[0])};
9
- --vis-color-grey: #2a2a2a;
10
- ${r.colors.map((o,a)=>`${r.getCSSColorVariable(a)}: ${o};`)}
11
- ${r.colorsDark.map((o,a)=>`--vis-dark-color${a}: ${o};`)}
12
- ${l.fills.map((o,a)=>`
13
- --${l.getPatternVariable(o)}: url(#${l.getPatternVariable(o)});
14
- --vis-pattern-fill${a}: var(--${l.getPatternVariable(o)});
15
- `)}
16
- ${l.lines.map((o,a)=>{var t;return`
17
- --${l.getPatternVariable(o)}: url(#${l.getPatternVariable(o)});
18
- --vis-pattern-marker${a}: var(--${l.getPatternVariable(o)});
19
- --vis-pattern-dasharray${a}: ${(t=o.dashArray)===null||t===void 0?void 0:t.join(" ")};
20
- `})}
21
-
22
- body.theme-dark {
23
- ${r.colors.map((o,a)=>`${r.getCSSColorVariable(a)}: var(--vis-dark-color${a});`)}
24
- }
25
-
26
- body.theme-patterns {
27
- ${l.fills.map((o,a)=>`path[style*="fill: var(${r.getCSSColorVariable(a)})"] {
28
- mask: var(--vis-pattern-fill${a});
29
- }`)}
30
- ${l.lines.map((o,a)=>`
31
- path[stroke="var(${r.getCSSColorVariable(a)})"]:not([style*="fill"]),
32
- path[style*="stroke: var(${r.getCSSColorVariable(a)})"]:not([style*="fill"]) {
33
- marker: var(--vis-pattern-marker${a});
34
- stroke-dasharray: var(--vis-pattern-dasharray${a});
35
- }
36
- `)}
37
- }
38
- `;function _(o=window==null?void 0:window.document.body){return o?+s.getCSSVariableValue("var(--vis-font-wh-ratio)",o):e}exports.UNOVIS_FONT_WH_RATIO_DEFAULT=e;exports.UNOVIS_TEXT_DEFAULT=v;exports.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT=T;exports.UNOVIS_TEXT_SEPARATOR_DEFAULT=n;exports.getFontWidthToHeightRatio=_;
@@ -1,63 +0,0 @@
1
- import { injectGlobal as v } from "../../../@emotion/css/dist/emotion-css.esm.js";
2
- import { getCSSVariableValue as T } from "../utils/misc.js";
3
- import { getCSSColorVariable as r, getLighterColor as $, getDarkerColor as m, colors as i, colorsDark as _ } from "./colors.js";
4
- import { fills as e, lines as s, getPatternVariable as l } from "./patterns.js";
5
- const n = (globalThis == null ? void 0 : globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT) || 0.5, f = (globalThis == null ? void 0 : globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT) || [" ", "-", ".", ","], A = (globalThis == null ? void 0 : globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT) || "-", E = (globalThis == null ? void 0 : globalThis.UNOVIS_TEXT_DEFAULT) || {
6
- text: "",
7
- fontSize: 12,
8
- fontFamily: "var(--vis-font-family)",
9
- lineHeight: 1.25,
10
- marginTop: 0,
11
- marginBottom: 0
12
- };
13
- v`
14
- :root {
15
- label: vis-root-styles;
16
- --vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
17
- --vis-font-wh-ratio: ${n};
18
- --vis-color-main: var(${r(0)});
19
- --vis-color-main-light: ${$(i[0])};
20
- --vis-color-main-dark: ${m(i[0])};
21
- --vis-color-grey: #2a2a2a;
22
- ${i.map((o, a) => `${r(a)}: ${o};`)}
23
- ${_.map((o, a) => `--vis-dark-color${a}: ${o};`)}
24
- ${e.map((o, a) => `
25
- --${l(o)}: url(#${l(o)});
26
- --vis-pattern-fill${a}: var(--${l(o)});
27
- `)}
28
- ${s.map((o, a) => {
29
- var t;
30
- return `
31
- --${l(o)}: url(#${l(o)});
32
- --vis-pattern-marker${a}: var(--${l(o)});
33
- --vis-pattern-dasharray${a}: ${(t = o.dashArray) === null || t === void 0 ? void 0 : t.join(" ")};
34
- `;
35
- })}
36
-
37
- body.theme-dark {
38
- ${i.map((o, a) => `${r(a)}: var(--vis-dark-color${a});`)}
39
- }
40
-
41
- body.theme-patterns {
42
- ${e.map((o, a) => `path[style*="fill: var(${r(a)})"] {
43
- mask: var(--vis-pattern-fill${a});
44
- }`)}
45
- ${s.map((o, a) => `
46
- path[stroke="var(${r(a)})"]:not([style*="fill"]),
47
- path[style*="stroke: var(${r(a)})"]:not([style*="fill"]) {
48
- marker: var(--vis-pattern-marker${a});
49
- stroke-dasharray: var(--vis-pattern-dasharray${a});
50
- }
51
- `)}
52
- }
53
- `;
54
- function p(o = window == null ? void 0 : window.document.body) {
55
- return o ? +T("var(--vis-font-wh-ratio)", o) : n;
56
- }
57
- export {
58
- n as UNOVIS_FONT_WH_RATIO_DEFAULT,
59
- E as UNOVIS_TEXT_DEFAULT,
60
- A as UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT,
61
- f as UNOVIS_TEXT_SEPARATOR_DEFAULT,
62
- p as getFontWidthToHeightRatio
63
- };
@@ -1,15 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./colors.cjs"),t=10,a=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],s=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function i(e){return`vis-${`pattern-${e.svg?"fill":"marker"}`}-${e.id}`}const n=e=>`<mask id="${i(e)}">
2
- <pattern id="${e.id}" viewBox="0 0 10 10" width="${t}" height="${t}" patternUnits="userSpaceOnUse">
3
- <rect width="100%" height="100%" fill="#fff"/>
4
- ${e.svg}
5
- </pattern>
6
- <rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${e.id})"/>
7
- </mask>`,l=(e,r)=>`<marker id="${i(e)}"
8
- fill="var(${d.getCSSColorVariable(r)})"
9
- markerUnits="userSpaceOnUse"
10
- refX="5"
11
- refY="5"
12
- markerWidth="${t}"
13
- markerHeight="${t}">
14
- ${e.marker}
15
- </marker>`;function c(){const e=a.map(n).concat(s.map(l)).join(""),r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("height","100%"),r.setAttribute("width","100%"),r.style.position="fixed",r.style.zIndex="-99999999",r.innerHTML=`<defs>${e}</defs>`,document.body.appendChild(r)}typeof window<"u"&&c();exports.PATTERN_SIZE_PX=t;exports.fills=a;exports.getPatternVariable=i;exports.lines=s;