@pie-lib/charting 7.0.4-next.29 → 7.0.4-next.30

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 (272) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +23 -0
  2. package/dist/actions-button.d.ts +26 -0
  3. package/dist/actions-button.js +84 -0
  4. package/dist/autosize-input.d.ts +10 -0
  5. package/dist/autosize-input.js +66 -0
  6. package/dist/axes.d.ts +84 -0
  7. package/dist/axes.js +376 -0
  8. package/dist/bars/bar.d.ts +47 -0
  9. package/dist/bars/bar.js +27 -0
  10. package/dist/bars/common/bars.d.ts +98 -0
  11. package/dist/bars/common/bars.js +174 -0
  12. package/dist/bars/common/correct-check-icon.d.ts +18 -0
  13. package/dist/bars/common/correct-check-icon.js +50 -0
  14. package/dist/bars/histogram.d.ts +47 -0
  15. package/dist/bars/histogram.js +28 -0
  16. package/dist/chart-setup.d.ts +29 -0
  17. package/dist/chart-setup.js +231 -0
  18. package/dist/chart-type.d.ts +32 -0
  19. package/dist/chart-type.js +68 -0
  20. package/dist/chart-types.d.ts +41 -0
  21. package/dist/chart-types.js +17 -0
  22. package/dist/chart.d.ts +88 -0
  23. package/dist/chart.js +250 -0
  24. package/dist/common/correctness-indicators.d.ts +70 -0
  25. package/dist/common/correctness-indicators.js +106 -0
  26. package/dist/common/drag-handle.d.ts +129 -0
  27. package/dist/common/drag-handle.js +120 -0
  28. package/dist/common/drag-icon.d.ts +23 -0
  29. package/dist/common/drag-icon.js +45 -0
  30. package/dist/common/styles.d.ts +23 -0
  31. package/dist/common/styles.js +17 -0
  32. package/dist/grid.d.ts +45 -0
  33. package/dist/grid.js +56 -0
  34. package/dist/index.d.ts +14 -0
  35. package/dist/index.js +6 -0
  36. package/dist/key-legend.d.ts +19 -0
  37. package/dist/key-legend.js +46 -0
  38. package/dist/line/common/drag-handle.d.ts +120 -0
  39. package/dist/line/common/drag-handle.js +92 -0
  40. package/dist/line/common/line.d.ts +96 -0
  41. package/dist/line/common/line.js +114 -0
  42. package/dist/line/line-cross.d.ts +47 -0
  43. package/dist/line/line-cross.js +133 -0
  44. package/dist/line/line-dot.d.ts +47 -0
  45. package/dist/line/line-dot.js +101 -0
  46. package/dist/mark-label.d.ts +55 -0
  47. package/dist/mark-label.js +138 -0
  48. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +101 -0
  49. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js +46 -0
  50. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisLeft.js +47 -0
  51. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +63 -0
  52. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +44 -0
  53. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
  54. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
  55. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +21 -0
  56. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
  57. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
  58. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +15 -0
  59. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +79 -0
  60. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +79 -0
  61. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
  62. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +50 -0
  63. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +18 -0
  64. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/align.js +6 -0
  65. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/base.js +6 -0
  66. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/clamp.js +6 -0
  67. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/constant.js +6 -0
  68. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/domain.js +6 -0
  69. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/exponent.js +6 -0
  70. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/interpolate.js +10 -0
  71. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/nice.js +37 -0
  72. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/padding.js +6 -0
  73. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/range.js +6 -0
  74. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/reverse.js +9 -0
  75. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/round.js +7 -0
  76. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/scaleOperator.js +58 -0
  77. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/unknown.js +6 -0
  78. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/zero.js +9 -0
  79. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/scales/band.js +9 -0
  80. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/scales/point.js +9 -0
  81. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +10 -0
  82. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/createColorInterpolator.js +29 -0
  83. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +9 -0
  84. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/isUtcScale.js +7 -0
  85. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
  86. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Bar.js +29 -0
  87. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Circle.js +29 -0
  88. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +47 -0
  89. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +50 -0
  90. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +9 -0
  91. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +6 -0
  92. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +53 -0
  93. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +57 -0
  94. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +91 -0
  95. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +21 -0
  96. package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-interpolate.js +8 -0
  97. package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-scale.js +8 -0
  98. package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-time.js +8 -0
  99. package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +32 -0
  100. package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +33 -0
  101. package/dist/node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js +32 -0
  102. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +16 -0
  103. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +21 -0
  104. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +21 -0
  105. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +10 -0
  106. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +21 -0
  107. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +9 -0
  108. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +14 -0
  109. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +15 -0
  110. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +16 -0
  111. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +9 -0
  112. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +8 -0
  113. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +14 -0
  114. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +15 -0
  115. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +19 -0
  116. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +11 -0
  117. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +13 -0
  118. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +12 -0
  119. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +18 -0
  120. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +14 -0
  121. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +14 -0
  122. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +12 -0
  123. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +16 -0
  124. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +11 -0
  125. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +14 -0
  126. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +14 -0
  127. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +13 -0
  128. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +14 -0
  129. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +19 -0
  130. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +14 -0
  131. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +13 -0
  132. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +13 -0
  133. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +14 -0
  134. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +9 -0
  135. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +12 -0
  136. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +10 -0
  137. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +20 -0
  138. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +11 -0
  139. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +16 -0
  140. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +12 -0
  141. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +20 -0
  142. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +37 -0
  143. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +509 -0
  144. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +108 -0
  145. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +31 -0
  146. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +45 -0
  147. package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +49 -0
  148. package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +34 -0
  149. package/dist/plot/common/plot.d.ts +103 -0
  150. package/dist/plot/common/plot.js +227 -0
  151. package/dist/plot/dot.d.ts +47 -0
  152. package/dist/plot/dot.js +62 -0
  153. package/dist/plot/line.d.ts +47 -0
  154. package/dist/plot/line.js +84 -0
  155. package/dist/tool-menu.d.ts +31 -0
  156. package/dist/utils.d.ts +39 -0
  157. package/dist/utils.js +101 -0
  158. package/package.json +39 -28
  159. package/CHANGELOG.json +0 -17
  160. package/CHANGELOG.md +0 -1116
  161. package/LICENSE.md +0 -5
  162. package/lib/actions-button.js +0 -145
  163. package/lib/actions-button.js.map +0 -1
  164. package/lib/axes.js +0 -643
  165. package/lib/axes.js.map +0 -1
  166. package/lib/bars/bar.js +0 -58
  167. package/lib/bars/bar.js.map +0 -1
  168. package/lib/bars/common/bars.js +0 -277
  169. package/lib/bars/common/bars.js.map +0 -1
  170. package/lib/bars/common/correct-check-icon.js +0 -54
  171. package/lib/bars/common/correct-check-icon.js.map +0 -1
  172. package/lib/bars/histogram.js +0 -59
  173. package/lib/bars/histogram.js.map +0 -1
  174. package/lib/chart-setup.js +0 -382
  175. package/lib/chart-setup.js.map +0 -1
  176. package/lib/chart-type.js +0 -80
  177. package/lib/chart-type.js.map +0 -1
  178. package/lib/chart-types.js +0 -22
  179. package/lib/chart-types.js.map +0 -1
  180. package/lib/chart.js +0 -384
  181. package/lib/chart.js.map +0 -1
  182. package/lib/common/correctness-indicators.js +0 -156
  183. package/lib/common/correctness-indicators.js.map +0 -1
  184. package/lib/common/drag-handle.js +0 -160
  185. package/lib/common/drag-handle.js.map +0 -1
  186. package/lib/common/drag-icon.js +0 -52
  187. package/lib/common/drag-icon.js.map +0 -1
  188. package/lib/common/styles.js +0 -22
  189. package/lib/common/styles.js.map +0 -1
  190. package/lib/grid.js +0 -112
  191. package/lib/grid.js.map +0 -1
  192. package/lib/index.js +0 -42
  193. package/lib/index.js.map +0 -1
  194. package/lib/key-legend.js +0 -87
  195. package/lib/key-legend.js.map +0 -1
  196. package/lib/line/common/drag-handle.js +0 -146
  197. package/lib/line/common/drag-handle.js.map +0 -1
  198. package/lib/line/common/line.js +0 -214
  199. package/lib/line/common/line.js.map +0 -1
  200. package/lib/line/line-cross.js +0 -214
  201. package/lib/line/line-cross.js.map +0 -1
  202. package/lib/line/line-dot.js +0 -158
  203. package/lib/line/line-dot.js.map +0 -1
  204. package/lib/mark-label.js +0 -237
  205. package/lib/mark-label.js.map +0 -1
  206. package/lib/plot/common/plot.js +0 -349
  207. package/lib/plot/common/plot.js.map +0 -1
  208. package/lib/plot/dot.js +0 -110
  209. package/lib/plot/dot.js.map +0 -1
  210. package/lib/plot/line.js +0 -140
  211. package/lib/plot/line.js.map +0 -1
  212. package/lib/tool-menu.js +0 -106
  213. package/lib/tool-menu.js.map +0 -1
  214. package/lib/utils.js +0 -189
  215. package/lib/utils.js.map +0 -1
  216. package/src/__tests__/actions-button.test.jsx +0 -280
  217. package/src/__tests__/axes.test.jsx +0 -667
  218. package/src/__tests__/chart-setup.test.jsx +0 -532
  219. package/src/__tests__/chart-type.test.jsx +0 -23
  220. package/src/__tests__/chart.test.jsx +0 -86
  221. package/src/__tests__/grid.test.jsx +0 -37
  222. package/src/__tests__/key-legend.test.jsx +0 -223
  223. package/src/__tests__/mark-label.test.jsx +0 -33
  224. package/src/__tests__/tool-menu.test.jsx +0 -522
  225. package/src/__tests__/utils.js +0 -36
  226. package/src/__tests__/utils.test.js +0 -100
  227. package/src/actions-button.jsx +0 -115
  228. package/src/axes.jsx +0 -594
  229. package/src/bars/__tests__/bar.test.jsx +0 -45
  230. package/src/bars/__tests__/histogram.test.jsx +0 -45
  231. package/src/bars/__tests__/utils.js +0 -30
  232. package/src/bars/bar.js +0 -28
  233. package/src/bars/common/__tests__/bars.test.jsx +0 -68
  234. package/src/bars/common/__tests__/utils.js +0 -30
  235. package/src/bars/common/bars.jsx +0 -249
  236. package/src/bars/common/correct-check-icon.jsx +0 -25
  237. package/src/bars/histogram.js +0 -28
  238. package/src/chart-setup.jsx +0 -356
  239. package/src/chart-type.js +0 -59
  240. package/src/chart-types.js +0 -8
  241. package/src/chart.jsx +0 -357
  242. package/src/common/__tests__/correctness-indicators.test.jsx +0 -720
  243. package/src/common/__tests__/drag-handle.test.jsx +0 -58
  244. package/src/common/__tests__/utils.js +0 -30
  245. package/src/common/correctness-indicators.jsx +0 -128
  246. package/src/common/drag-handle.jsx +0 -125
  247. package/src/common/drag-icon.jsx +0 -36
  248. package/src/common/styles.js +0 -19
  249. package/src/grid.jsx +0 -80
  250. package/src/index.js +0 -7
  251. package/src/key-legend.jsx +0 -77
  252. package/src/line/__tests__/line-cross.test.jsx +0 -463
  253. package/src/line/__tests__/line-dot.test.jsx +0 -41
  254. package/src/line/__tests__/utils.js +0 -36
  255. package/src/line/common/__tests__/drag-handle.test.jsx +0 -62
  256. package/src/line/common/__tests__/line.test.jsx +0 -79
  257. package/src/line/common/__tests__/utils.js +0 -30
  258. package/src/line/common/drag-handle.jsx +0 -114
  259. package/src/line/common/line.jsx +0 -171
  260. package/src/line/line-cross.js +0 -144
  261. package/src/line/line-dot.js +0 -111
  262. package/src/mark-label.jsx +0 -238
  263. package/src/plot/__tests__/dot.test.jsx +0 -344
  264. package/src/plot/__tests__/line.test.jsx +0 -375
  265. package/src/plot/__tests__/utils.js +0 -30
  266. package/src/plot/common/__tests__/plot.test.jsx +0 -69
  267. package/src/plot/common/__tests__/utils.js +0 -30
  268. package/src/plot/common/plot.jsx +0 -358
  269. package/src/plot/dot.js +0 -74
  270. package/src/plot/line.js +0 -98
  271. package/src/tool-menu.jsx +0 -85
  272. package/src/utils.js +0 -201
@@ -0,0 +1,6 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/domain.js
2
+ function e(e, t) {
3
+ t.domain && ("nice" in e || "quantiles" in e || "padding" in e, e.domain(t.domain));
4
+ }
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,6 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/exponent.js
2
+ function e(e, t) {
3
+ "exponent" in e && "exponent" in t && t.exponent !== void 0 && e.exponent(t.exponent);
4
+ }
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,10 @@
1
+ import e from "../utils/createColorInterpolator.js";
2
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/interpolate.js
3
+ function t(t, n) {
4
+ if ("interpolate" in n && "interpolate" in t && n.interpolate !== void 0) {
5
+ var r = e(n.interpolate);
6
+ t.interpolate(r);
7
+ }
8
+ }
9
+ //#endregion
10
+ export { t as default };
@@ -0,0 +1,37 @@
1
+ import { d3_time_exports as e } from "../../../../../../@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-time.js";
2
+ import t from "../utils/isUtcScale.js";
3
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/nice.js
4
+ var n = {
5
+ day: e.timeDay,
6
+ hour: e.timeHour,
7
+ minute: e.timeMinute,
8
+ month: e.timeMonth,
9
+ second: e.timeSecond,
10
+ week: e.timeWeek,
11
+ year: e.timeYear
12
+ }, r = {
13
+ day: e.utcDay,
14
+ hour: e.utcHour,
15
+ minute: e.utcMinute,
16
+ month: e.utcMonth,
17
+ second: e.utcSecond,
18
+ week: e.utcWeek,
19
+ year: e.utcYear
20
+ };
21
+ function i(e, i) {
22
+ if ("nice" in i && i.nice !== void 0 && "nice" in e) {
23
+ var a = i.nice;
24
+ if (typeof a == "boolean") a && e.nice();
25
+ else if (typeof a == "number") e.nice(a);
26
+ else {
27
+ var o = e, s = t(o);
28
+ if (typeof a == "string") o.nice(s ? r[a] : n[a]);
29
+ else {
30
+ var c = a.interval, l = a.step, u = (s ? r[c] : n[c]).every(l);
31
+ u != null && o.nice(u);
32
+ }
33
+ }
34
+ }
35
+ }
36
+ //#endregion
37
+ export { i as default };
@@ -0,0 +1,6 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/padding.js
2
+ function e(e, t) {
3
+ "padding" in e && "padding" in t && t.padding !== void 0 && e.padding(t.padding), "paddingInner" in e && "paddingInner" in t && t.paddingInner !== void 0 && e.paddingInner(t.paddingInner), "paddingOuter" in e && "paddingOuter" in t && t.paddingOuter !== void 0 && e.paddingOuter(t.paddingOuter);
4
+ }
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,6 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/range.js
2
+ function e(e, t) {
3
+ t.range && ("padding" in e, e.range(t.range));
4
+ }
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,9 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/reverse.js
2
+ function e(e, t) {
3
+ if (t.reverse) {
4
+ var n = e.range().slice().reverse();
5
+ "padding" in e, e.range(n);
6
+ }
7
+ }
8
+ //#endregion
9
+ export { e as default };
@@ -0,0 +1,7 @@
1
+ import { d3_interpolate_exports as e } from "../../../../../../@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-interpolate.js";
2
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/round.js
3
+ function t(t, n) {
4
+ "round" in n && n.round !== void 0 && (n.round && "interpolate" in n && n.interpolate !== void 0 ? console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:", n) : "round" in t ? t.round(n.round) : "interpolate" in t && n.round && t.interpolate(e.interpolateRound));
5
+ }
6
+ //#endregion
7
+ export { t as default };
@@ -0,0 +1,58 @@
1
+ import e from "./domain.js";
2
+ import t from "./range.js";
3
+ import n from "./align.js";
4
+ import r from "./base.js";
5
+ import i from "./clamp.js";
6
+ import a from "./constant.js";
7
+ import o from "./exponent.js";
8
+ import s from "./interpolate.js";
9
+ import c from "./nice.js";
10
+ import l from "./padding.js";
11
+ import u from "./reverse.js";
12
+ import d from "./round.js";
13
+ import f from "./unknown.js";
14
+ import p from "./zero.js";
15
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/scaleOperator.js
16
+ var m = [
17
+ "domain",
18
+ "nice",
19
+ "zero",
20
+ "interpolate",
21
+ "round",
22
+ "range",
23
+ "reverse",
24
+ "align",
25
+ "base",
26
+ "clamp",
27
+ "constant",
28
+ "exponent",
29
+ "padding",
30
+ "unknown"
31
+ ], h = {
32
+ domain: e,
33
+ nice: c,
34
+ zero: p,
35
+ interpolate: s,
36
+ round: d,
37
+ align: n,
38
+ base: r,
39
+ clamp: i,
40
+ constant: a,
41
+ exponent: o,
42
+ padding: l,
43
+ range: t,
44
+ reverse: u,
45
+ unknown: f
46
+ };
47
+ function g() {
48
+ var e = new Set([...arguments]), t = m.filter(function(t) {
49
+ return e.has(t);
50
+ });
51
+ return function(e, n) {
52
+ return n !== void 0 && t.forEach(function(t) {
53
+ h[t](e, n);
54
+ }), e;
55
+ };
56
+ }
57
+ //#endregion
58
+ export { g as default };
@@ -0,0 +1,6 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/unknown.js
2
+ function e(e, t) {
3
+ "unknown" in e && "unknown" in t && t.unknown !== void 0 && e.unknown(t.unknown);
4
+ }
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,9 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/operators/zero.js
2
+ function e(e, t) {
3
+ if ("zero" in t && t.zero === !0) {
4
+ var n = e.domain(), r = n[0], i = n[1], a = i < r, o = a ? [i, r] : [r, i], s = o[0], c = o[1], l = [Math.min(0, s), Math.max(0, c)];
5
+ e.domain(a ? l.reverse() : l);
6
+ }
7
+ }
8
+ //#endregion
9
+ export { e as default };
@@ -0,0 +1,9 @@
1
+ import { d3_scale_exports as e } from "../../../../../../@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-scale.js";
2
+ import t from "../operators/scaleOperator.js";
3
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/scales/band.js
4
+ var n = t("domain", "range", "reverse", "align", "padding", "round");
5
+ function r(t) {
6
+ return n((0, e.scaleBand)(), t);
7
+ }
8
+ //#endregion
9
+ export { r as default };
@@ -0,0 +1,9 @@
1
+ import { d3_scale_exports as e } from "../../../../../../@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-scale.js";
2
+ import t from "../operators/scaleOperator.js";
3
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/scales/point.js
4
+ var n = t("domain", "range", "reverse", "align", "padding", "round");
5
+ function r(t) {
6
+ return n((0, e.scalePoint)(), t);
7
+ }
8
+ //#endregion
9
+ export { r as default };
@@ -0,0 +1,10 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js
2
+ function e(e) {
3
+ if ((typeof e == "function" || typeof e == "object" && e) && "valueOf" in e) {
4
+ var t = e.valueOf();
5
+ if (typeof t == "number") return t;
6
+ }
7
+ return e;
8
+ }
9
+ //#endregion
10
+ export { e as default };
@@ -0,0 +1,29 @@
1
+ import { d3_interpolate_exports as e } from "../../../../../../@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-interpolate.js";
2
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/utils/createColorInterpolator.js
3
+ var t = {
4
+ lab: e.interpolateLab,
5
+ hcl: e.interpolateHcl,
6
+ "hcl-long": e.interpolateHclLong,
7
+ hsl: e.interpolateHsl,
8
+ "hsl-long": e.interpolateHslLong,
9
+ cubehelix: e.interpolateCubehelix,
10
+ "cubehelix-long": e.interpolateCubehelixLong,
11
+ rgb: e.interpolateRgb
12
+ };
13
+ function n(e) {
14
+ switch (e) {
15
+ case "lab":
16
+ case "hcl":
17
+ case "hcl-long":
18
+ case "hsl":
19
+ case "hsl-long":
20
+ case "cubehelix":
21
+ case "cubehelix-long":
22
+ case "rgb": return t[e];
23
+ default:
24
+ }
25
+ var n = e.type, r = e.gamma, i = t[n];
26
+ return r === void 0 ? i : i.gamma(r);
27
+ }
28
+ //#endregion
29
+ export { n as default };
@@ -0,0 +1,9 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js
2
+ function e(e, t) {
3
+ var n = e;
4
+ return "ticks" in n ? n.ticks(t) : n.domain().filter(function(e, n, r) {
5
+ return t == null || r.length <= t || n % Math.round((r.length - 1) / t) === 0;
6
+ });
7
+ }
8
+ //#endregion
9
+ export { e as default };
@@ -0,0 +1,7 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/utils/isUtcScale.js
2
+ var e = new Date(Date.UTC(2020, 1, 2, 3, 4, 5)), t = "%Y-%m-%d %H:%M";
3
+ function n(n) {
4
+ return n.tickFormat(1, t)(e) === "2020-02-02 03:04";
5
+ }
6
+ //#endregion
7
+ export { n as default };
@@ -0,0 +1,6 @@
1
+ //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js
2
+ function e(e) {
3
+ return e?.toString();
4
+ }
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,29 @@
1
+ import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
+ import n from "react";
4
+ //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Bar.js
5
+ var r = /* @__PURE__ */ e(t()), i = ["className", "innerRef"];
6
+ function a() {
7
+ return a = Object.assign ? Object.assign.bind() : function(e) {
8
+ for (var t = 1; t < arguments.length; t++) {
9
+ var n = arguments[t];
10
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
11
+ }
12
+ return e;
13
+ }, a.apply(this, arguments);
14
+ }
15
+ function o(e, t) {
16
+ if (e == null) return {};
17
+ var n = {}, r = Object.keys(e), i, a;
18
+ for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
19
+ return n;
20
+ }
21
+ function s(e) {
22
+ var t = e.className, s = e.innerRef, c = o(e, i);
23
+ return /*#__PURE__*/ n.createElement("rect", a({
24
+ ref: s,
25
+ className: (0, r.default)("visx-bar", t)
26
+ }, c));
27
+ }
28
+ //#endregion
29
+ export { s as default };
@@ -0,0 +1,29 @@
1
+ import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
+ import n from "react";
4
+ //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Circle.js
5
+ var r = /* @__PURE__ */ e(t()), i = ["className", "innerRef"];
6
+ function a() {
7
+ return a = Object.assign ? Object.assign.bind() : function(e) {
8
+ for (var t = 1; t < arguments.length; t++) {
9
+ var n = arguments[t];
10
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
11
+ }
12
+ return e;
13
+ }, a.apply(this, arguments);
14
+ }
15
+ function o(e, t) {
16
+ if (e == null) return {};
17
+ var n = {}, r = Object.keys(e), i, a;
18
+ for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
19
+ return n;
20
+ }
21
+ function s(e) {
22
+ var t = e.className, s = e.innerRef, c = o(e, i);
23
+ return /*#__PURE__*/ n.createElement("circle", a({
24
+ ref: s,
25
+ className: (0, r.default)("visx-circle", t)
26
+ }, c));
27
+ }
28
+ //#endregion
29
+ export { s as default };
@@ -0,0 +1,47 @@
1
+ import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
+ import n from "react";
4
+ //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js
5
+ var r = /* @__PURE__ */ e(t()), i = [
6
+ "from",
7
+ "to",
8
+ "fill",
9
+ "className",
10
+ "innerRef"
11
+ ];
12
+ function a() {
13
+ return a = Object.assign ? Object.assign.bind() : function(e) {
14
+ for (var t = 1; t < arguments.length; t++) {
15
+ var n = arguments[t];
16
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
17
+ }
18
+ return e;
19
+ }, a.apply(this, arguments);
20
+ }
21
+ function o(e, t) {
22
+ if (e == null) return {};
23
+ var n = {}, r = Object.keys(e), i, a;
24
+ for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
25
+ return n;
26
+ }
27
+ function s(e) {
28
+ var t = e.from, s = t === void 0 ? {
29
+ x: 0,
30
+ y: 0
31
+ } : t, c = e.to, l = c === void 0 ? {
32
+ x: 1,
33
+ y: 1
34
+ } : c, u = e.fill, d = u === void 0 ? "transparent" : u, f = e.className, p = e.innerRef, m = o(e, i), h = s.x === l.x || s.y === l.y;
35
+ return /*#__PURE__*/ n.createElement("line", a({
36
+ ref: p,
37
+ className: (0, r.default)("visx-line", f),
38
+ x1: s.x,
39
+ y1: s.y,
40
+ x2: l.x,
41
+ y2: l.y,
42
+ fill: d,
43
+ shapeRendering: h ? "crispEdges" : "auto"
44
+ }, m));
45
+ }
46
+ //#endregion
47
+ export { s as default };
@@ -0,0 +1,50 @@
1
+ import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
+ import { line as n } from "../util/D3ShapeFactories.js";
4
+ import r from "react";
5
+ //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js
6
+ var i = /* @__PURE__ */ e(t()), a = [
7
+ "children",
8
+ "data",
9
+ "x",
10
+ "y",
11
+ "fill",
12
+ "className",
13
+ "curve",
14
+ "innerRef",
15
+ "defined"
16
+ ];
17
+ function o() {
18
+ return o = Object.assign ? Object.assign.bind() : function(e) {
19
+ for (var t = 1; t < arguments.length; t++) {
20
+ var n = arguments[t];
21
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
22
+ }
23
+ return e;
24
+ }, o.apply(this, arguments);
25
+ }
26
+ function s(e, t) {
27
+ if (e == null) return {};
28
+ var n = {}, r = Object.keys(e), i, a;
29
+ for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
30
+ return n;
31
+ }
32
+ function c(e) {
33
+ var t = e.children, c = e.data, l = c === void 0 ? [] : c, u = e.x, d = e.y, f = e.fill, p = f === void 0 ? "transparent" : f, m = e.className, h = e.curve, g = e.innerRef, _ = e.defined, v = _ === void 0 ? function() {
34
+ return !0;
35
+ } : _, y = s(e, a), b = n({
36
+ x: u,
37
+ y: d,
38
+ defined: v,
39
+ curve: h
40
+ });
41
+ return t ? /*#__PURE__*/ r.createElement(r.Fragment, null, t({ path: b })) : /*#__PURE__*/ r.createElement("path", o({
42
+ ref: g,
43
+ className: (0, i.default)("visx-linepath", m),
44
+ d: b(l) || "",
45
+ fill: p,
46
+ strokeLinecap: "round"
47
+ }, y));
48
+ }
49
+ //#endregion
50
+ export { c as default };
@@ -0,0 +1,9 @@
1
+ import e from "./setNumberOrNumberAccessor.js";
2
+ import { line as t } from "d3-shape";
3
+ //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js
4
+ function n(n) {
5
+ var r = n === void 0 ? {} : n, i = r.x, a = r.y, o = r.defined, s = r.curve, c = t();
6
+ return i && e(c.x, i), a && e(c.y, a), o && c.defined(o), s && c.curve(s), c;
7
+ }
8
+ //#endregion
9
+ export { n as line };
@@ -0,0 +1,6 @@
1
+ //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js
2
+ function e(e, t) {
3
+ e(t);
4
+ }
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,53 @@
1
+ import { __commonJSMin as e, __require as t } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_classnames as n } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
+ //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js
4
+ var r = /* @__PURE__ */ e(((e) => {
5
+ e.__esModule = !0, e.default = l;
6
+ var r = o(t("react")), i = o(n()), a = [
7
+ "from",
8
+ "to",
9
+ "fill",
10
+ "className",
11
+ "innerRef"
12
+ ];
13
+ function o(e) {
14
+ return e && e.__esModule ? e : { default: e };
15
+ }
16
+ function s() {
17
+ return s = Object.assign ? Object.assign.bind() : function(e) {
18
+ for (var t = 1; t < arguments.length; t++) {
19
+ var n = arguments[t];
20
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
21
+ }
22
+ return e;
23
+ }, s.apply(this, arguments);
24
+ }
25
+ function c(e, t) {
26
+ if (e == null) return {};
27
+ var n = {}, r = Object.keys(e), i, a;
28
+ for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
29
+ return n;
30
+ }
31
+ function l(e) {
32
+ var t = e.from, n = t === void 0 ? {
33
+ x: 0,
34
+ y: 0
35
+ } : t, o = e.to, l = o === void 0 ? {
36
+ x: 1,
37
+ y: 1
38
+ } : o, u = e.fill, d = u === void 0 ? "transparent" : u, f = e.className, p = e.innerRef, m = c(e, a), h = n.x === l.x || n.y === l.y;
39
+ return /*#__PURE__*/ r.default.createElement("line", s({
40
+ ref: p,
41
+ className: (0, i.default)("visx-line", f),
42
+ x1: n.x,
43
+ y1: n.y,
44
+ x2: l.x,
45
+ y2: l.y,
46
+ fill: d,
47
+ shapeRendering: h ? "crispEdges" : "auto"
48
+ }, m));
49
+ }
50
+ }));
51
+ //#endregion
52
+ export default r();
53
+ export { r as require_Line };
@@ -0,0 +1,57 @@
1
+ import e from "./hooks/useText.js";
2
+ import t from "react";
3
+ //#region ../../../node_modules/.bun/@visx+text@3.12.0+f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js
4
+ var n = [
5
+ "dx",
6
+ "dy",
7
+ "textAnchor",
8
+ "innerRef",
9
+ "innerTextRef",
10
+ "verticalAnchor",
11
+ "angle",
12
+ "lineHeight",
13
+ "scaleToFit",
14
+ "capHeight",
15
+ "width"
16
+ ];
17
+ function r() {
18
+ return r = Object.assign ? Object.assign.bind() : function(e) {
19
+ for (var t = 1; t < arguments.length; t++) {
20
+ var n = arguments[t];
21
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
22
+ }
23
+ return e;
24
+ }, r.apply(this, arguments);
25
+ }
26
+ function i(e, t) {
27
+ if (e == null) return {};
28
+ var n = {}, r = Object.keys(e), i, a;
29
+ for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
30
+ return n;
31
+ }
32
+ var a = { overflow: "visible" };
33
+ function o(o) {
34
+ var s = o.dx, c = s === void 0 ? 0 : s, l = o.dy, u = l === void 0 ? 0 : l, d = o.textAnchor, f = d === void 0 ? "start" : d, p = o.innerRef, m = o.innerTextRef;
35
+ o.verticalAnchor, o.angle;
36
+ var h = o.lineHeight, g = h === void 0 ? "1em" : h;
37
+ o.scaleToFit, o.capHeight, o.width;
38
+ var _ = i(o, n), v = _.x, y = v === void 0 ? 0 : v, b = _.fontSize, x = e(o), S = x.wordsByLines, C = x.startDy, w = x.transform;
39
+ return /*#__PURE__*/ t.createElement("svg", {
40
+ ref: p,
41
+ x: c,
42
+ y: u,
43
+ fontSize: b,
44
+ style: a
45
+ }, S.length > 0 ? /*#__PURE__*/ t.createElement("text", r({
46
+ ref: m,
47
+ transform: w
48
+ }, _, { textAnchor: f }), S.map(function(e, n) {
49
+ return /*#__PURE__*/ t.createElement("tspan", {
50
+ key: n,
51
+ x: y,
52
+ dy: n === 0 ? C : g
53
+ }, e.words.join(" "));
54
+ })) : null);
55
+ }
56
+ //#endregion
57
+ export { o as default };
@@ -0,0 +1,91 @@
1
+ import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_reduce_css_calc as t } from "../../../../../../reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js";
3
+ import n from "../util/getStringWidth.js";
4
+ import { useMemo as r } from "react";
5
+ //#region ../../../node_modules/.bun/@visx+text@3.12.0+f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js
6
+ var i = /* @__PURE__ */ e(t()), a = [
7
+ "verticalAnchor",
8
+ "scaleToFit",
9
+ "angle",
10
+ "width",
11
+ "lineHeight",
12
+ "capHeight",
13
+ "children",
14
+ "style"
15
+ ];
16
+ function o(e, t) {
17
+ if (e == null) return {};
18
+ var n = {}, r = Object.keys(e), i, a;
19
+ for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
20
+ return n;
21
+ }
22
+ function s(e) {
23
+ return typeof e == "number";
24
+ }
25
+ function c(e) {
26
+ return typeof e == "number" && Number.isFinite(e) || typeof e == "string";
27
+ }
28
+ function l(e) {
29
+ var t = e.verticalAnchor, l = t === void 0 ? "end" : t, u = e.scaleToFit, d = u === void 0 ? !1 : u, f = e.angle, p = e.width, m = e.lineHeight, h = m === void 0 ? "1em" : m, g = e.capHeight, _ = g === void 0 ? "0.71em" : g, v = e.children, y = e.style, b = o(e, a), x = b.x, S = x === void 0 ? 0 : x, C = b.y, w = C === void 0 ? 0 : C, T = !c(S) || !c(w), E = r(function() {
30
+ return {
31
+ wordsWithWidth: (v == null ? [] : v.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e) {
32
+ return {
33
+ word: e,
34
+ wordWidth: n(e, y) || 0
35
+ };
36
+ }),
37
+ spaceWidth: n("\xA0", y) || 0
38
+ };
39
+ }, [v, y]), D = E.wordsWithWidth, O = E.spaceWidth, k = r(function() {
40
+ return T ? [] : p || d ? D.reduce(function(e, t) {
41
+ var n = t.word, r = t.wordWidth, i = e[e.length - 1];
42
+ if (i && (p == null || d || (i.width || 0) + r + O < p)) i.words.push(n), i.width = i.width || 0, i.width += r + O;
43
+ else {
44
+ var a = {
45
+ words: [n],
46
+ width: r
47
+ };
48
+ e.push(a);
49
+ }
50
+ return e;
51
+ }, []) : [{ words: v == null ? [] : v.toString().split(/(?:(?!\u00A0+)\s+)/) }];
52
+ }, [
53
+ T,
54
+ p,
55
+ d,
56
+ v,
57
+ D,
58
+ O
59
+ ]);
60
+ return {
61
+ wordsByLines: k,
62
+ startDy: r(function() {
63
+ return T ? "" : l === "start" ? (0, i.default)("calc(" + _ + ")") : l === "middle" ? (0, i.default)("calc(" + (k.length - 1) / 2 + " * -" + h + " + (" + _ + " / 2))") : (0, i.default)("calc(" + (k.length - 1) + " * -" + h + ")");
64
+ }, [
65
+ T,
66
+ l,
67
+ _,
68
+ k.length,
69
+ h
70
+ ]),
71
+ transform: r(function() {
72
+ var e = [];
73
+ if (T) return "";
74
+ if (s(S) && s(w) && s(p) && d && k.length > 0) {
75
+ var t = k[0].width || 1, n = d === "shrink-only" ? Math.min(p / t, 1) : p / t, r = n, i = S - n * S, a = w - r * w;
76
+ e.push("matrix(" + n + ", 0, 0, " + r + ", " + i + ", " + a + ")");
77
+ }
78
+ return f && e.push("rotate(" + f + ", " + S + ", " + w + ")"), e.length > 0 ? e.join(" ") : "";
79
+ }, [
80
+ T,
81
+ S,
82
+ w,
83
+ p,
84
+ d,
85
+ k,
86
+ f
87
+ ])
88
+ };
89
+ }
90
+ //#endregion
91
+ export { l as default };