@pie-lib/graphing 4.0.4-next.9 → 4.0.5-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +23 -0
  2. package/dist/axis/arrow.d.ts +13 -0
  3. package/dist/axis/arrow.js +34 -0
  4. package/dist/axis/axes.d.ts +132 -0
  5. package/dist/axis/axes.js +214 -0
  6. package/dist/axis/index.d.ts +10 -0
  7. package/dist/bg.d.ts +51 -0
  8. package/dist/bg.js +44 -0
  9. package/dist/container/actions.d.ts +15 -0
  10. package/dist/container/actions.js +7 -0
  11. package/dist/container/index.d.ts +26 -0
  12. package/dist/container/index.js +50 -0
  13. package/dist/container/marks.d.ts +10 -0
  14. package/dist/container/marks.js +11 -0
  15. package/dist/container/middleware.d.ts +10 -0
  16. package/dist/container/middleware.js +4 -0
  17. package/dist/container/reducer.d.ts +12 -0
  18. package/dist/container/reducer.js +7 -0
  19. package/dist/coordinates-label.d.ts +50 -0
  20. package/dist/coordinates-label.js +46 -0
  21. package/dist/graph-with-controls.d.ts +88 -0
  22. package/dist/graph-with-controls.js +154 -0
  23. package/dist/graph.d.ts +126 -0
  24. package/dist/graph.js +209 -0
  25. package/dist/grid-setup.d.ts +27 -0
  26. package/dist/grid-setup.js +307 -0
  27. package/dist/grid.d.ts +43 -0
  28. package/dist/grid.js +59 -0
  29. package/dist/index.d.ts +15 -0
  30. package/dist/index.js +7 -0
  31. package/dist/key-legend.d.ts +21 -0
  32. package/dist/key-legend.js +231 -0
  33. package/dist/label-svg-icon.d.ts +18 -0
  34. package/dist/label-svg-icon.js +42 -0
  35. package/dist/labels.d.ts +37 -0
  36. package/dist/labels.js +152 -0
  37. package/dist/mark-label.d.ts +58 -0
  38. package/dist/mark-label.js +172 -0
  39. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
  40. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
  41. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
  42. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +7 -0
  43. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
  44. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
  45. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
  46. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
  47. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
  48. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
  49. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +100 -0
  50. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +61 -0
  51. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +42 -0
  52. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
  53. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
  54. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +21 -0
  55. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
  56. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
  57. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +15 -0
  58. package/dist/node_modules/.bun/@visx_curve@3.12.0/node_modules/@visx/curve/esm/index.js +2 -0
  59. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +78 -0
  60. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +79 -0
  61. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +79 -0
  62. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
  63. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +49 -0
  64. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +18 -0
  65. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +10 -0
  66. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +9 -0
  67. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
  68. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +46 -0
  69. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +49 -0
  70. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +9 -0
  71. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +6 -0
  72. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +52 -0
  73. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +57 -0
  74. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +91 -0
  75. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +21 -0
  76. package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +32 -0
  77. package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +33 -0
  78. package/dist/node_modules/.bun/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +68 -0
  79. package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +28 -0
  80. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +21 -0
  81. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +21 -0
  82. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +10 -0
  83. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +21 -0
  84. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +9 -0
  85. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +14 -0
  86. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +15 -0
  87. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +16 -0
  88. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +9 -0
  89. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +8 -0
  90. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +14 -0
  91. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +15 -0
  92. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +19 -0
  93. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +11 -0
  94. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +13 -0
  95. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +12 -0
  96. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +18 -0
  97. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +14 -0
  98. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +14 -0
  99. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +12 -0
  100. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +16 -0
  101. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +11 -0
  102. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +14 -0
  103. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +14 -0
  104. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +13 -0
  105. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +14 -0
  106. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +19 -0
  107. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +14 -0
  108. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +13 -0
  109. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +13 -0
  110. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +14 -0
  111. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +9 -0
  112. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +12 -0
  113. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +10 -0
  114. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +20 -0
  115. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +11 -0
  116. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +16 -0
  117. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +12 -0
  118. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +20 -0
  119. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +37 -0
  120. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +509 -0
  121. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +108 -0
  122. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +31 -0
  123. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +45 -0
  124. package/dist/node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js +216 -0
  125. package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +82 -0
  126. package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +62 -0
  127. package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/index.js +10 -0
  128. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Context.js +5 -0
  129. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Provider.js +47 -0
  130. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/connectAdvanced.js +95 -0
  131. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/connect.js +52 -0
  132. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapDispatchToProps.js +23 -0
  133. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapStateToProps.js +13 -0
  134. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mergeProps.js +26 -0
  135. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/selectorFactory.js +41 -0
  136. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/verifySubselectors.js +11 -0
  137. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/wrapMapToProps.js +28 -0
  138. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/index.js +4 -0
  139. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/isPlainObject.js +10 -0
  140. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/shallowEqual.js +15 -0
  141. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/verifyPlainObject.js +8 -0
  142. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/warning.js +9 -0
  143. package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +49 -0
  144. package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +34 -0
  145. package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +185 -0
  146. package/dist/node_modules/.bun/redux@4.2.1/node_modules/redux/es/redux.js +225 -0
  147. package/dist/toggle-bar.d.ts +40 -0
  148. package/dist/toggle-bar.js +155 -0
  149. package/dist/tool-menu.d.ts +29 -0
  150. package/dist/tool-menu.js +41 -0
  151. package/dist/tools/absolute/component.d.ts +16 -0
  152. package/dist/tools/absolute/component.js +15 -0
  153. package/dist/tools/absolute/index.d.ts +20 -0
  154. package/dist/tools/absolute/index.js +32 -0
  155. package/dist/tools/circle/bg-circle.d.ts +116 -0
  156. package/dist/tools/circle/bg-circle.js +72 -0
  157. package/dist/tools/circle/component.d.ts +83 -0
  158. package/dist/tools/circle/component.js +195 -0
  159. package/dist/tools/circle/index.d.ts +20 -0
  160. package/dist/tools/circle/index.js +22 -0
  161. package/dist/tools/exponential/component.d.ts +16 -0
  162. package/dist/tools/exponential/component.js +14 -0
  163. package/dist/tools/exponential/index.d.ts +20 -0
  164. package/dist/tools/exponential/index.js +32 -0
  165. package/dist/tools/index.d.ts +27 -0
  166. package/dist/tools/index.js +55 -0
  167. package/dist/tools/line/component.d.ts +124 -0
  168. package/dist/tools/line/component.js +72 -0
  169. package/dist/tools/line/index.d.ts +13 -0
  170. package/dist/tools/line/index.js +6 -0
  171. package/dist/tools/parabola/component.d.ts +16 -0
  172. package/dist/tools/parabola/component.js +14 -0
  173. package/dist/tools/parabola/index.d.ts +20 -0
  174. package/dist/tools/parabola/index.js +32 -0
  175. package/dist/tools/point/component.d.ts +50 -0
  176. package/dist/tools/point/component.js +85 -0
  177. package/dist/tools/point/index.d.ts +15 -0
  178. package/dist/tools/point/index.js +13 -0
  179. package/dist/tools/polygon/component.d.ts +117 -0
  180. package/dist/tools/polygon/component.js +262 -0
  181. package/dist/tools/polygon/index.d.ts +19 -0
  182. package/dist/tools/polygon/index.js +55 -0
  183. package/dist/tools/polygon/line.d.ts +125 -0
  184. package/dist/tools/polygon/line.js +63 -0
  185. package/dist/tools/polygon/polygon.d.ts +122 -0
  186. package/dist/tools/polygon/polygon.js +74 -0
  187. package/dist/tools/ray/component.d.ts +101 -0
  188. package/dist/tools/ray/component.js +71 -0
  189. package/dist/tools/ray/index.d.ts +13 -0
  190. package/dist/tools/ray/index.js +6 -0
  191. package/dist/tools/segment/component.d.ts +100 -0
  192. package/dist/tools/segment/component.js +52 -0
  193. package/dist/tools/segment/index.d.ts +13 -0
  194. package/dist/tools/segment/index.js +6 -0
  195. package/dist/tools/shared/arrow-head.d.ts +51 -0
  196. package/dist/tools/shared/arrow-head.js +63 -0
  197. package/dist/tools/shared/icons/CorrectSVG.d.ts +26 -0
  198. package/dist/tools/shared/icons/CorrectSVG.js +29 -0
  199. package/dist/tools/shared/icons/IncorrectSVG.d.ts +26 -0
  200. package/dist/tools/shared/icons/IncorrectSVG.js +27 -0
  201. package/dist/tools/shared/icons/MissingSVG.d.ts +26 -0
  202. package/dist/tools/shared/icons/MissingSVG.js +28 -0
  203. package/dist/tools/shared/line/index.d.ts +245 -0
  204. package/dist/tools/shared/line/index.js +319 -0
  205. package/dist/tools/shared/line/line-path.d.ts +57 -0
  206. package/dist/tools/shared/line/line-path.js +71 -0
  207. package/dist/tools/shared/line/with-root-edge.d.ts +142 -0
  208. package/dist/tools/shared/line/with-root-edge.js +73 -0
  209. package/dist/tools/shared/point/arrow-point.d.ts +56 -0
  210. package/dist/tools/shared/point/arrow-point.js +41 -0
  211. package/dist/tools/shared/point/arrow.d.ts +45 -0
  212. package/dist/tools/shared/point/arrow.js +35 -0
  213. package/dist/tools/shared/point/base-point.d.ts +52 -0
  214. package/dist/tools/shared/point/base-point.js +103 -0
  215. package/dist/tools/shared/point/index.d.ts +216 -0
  216. package/dist/tools/shared/point/index.js +45 -0
  217. package/dist/tools/shared/styles.d.ts +29 -0
  218. package/dist/tools/shared/styles.js +20 -0
  219. package/dist/tools/shared/types.d.ts +21 -0
  220. package/dist/tools/shared/types.js +11 -0
  221. package/dist/tools/sine/component.d.ts +16 -0
  222. package/dist/tools/sine/component.js +22 -0
  223. package/dist/tools/sine/index.d.ts +20 -0
  224. package/dist/tools/sine/index.js +32 -0
  225. package/dist/tools/vector/component.d.ts +100 -0
  226. package/dist/tools/vector/component.js +44 -0
  227. package/dist/tools/vector/index.d.ts +13 -0
  228. package/dist/tools/vector/index.js +6 -0
  229. package/dist/undo-redo.d.ts +22 -0
  230. package/dist/undo-redo.js +47 -0
  231. package/dist/use-debounce.d.ts +9 -0
  232. package/dist/use-debounce.js +13 -0
  233. package/dist/utils.d.ts +61 -0
  234. package/dist/utils.js +75 -0
  235. package/package.json +35 -25
  236. package/CHANGELOG.json +0 -1
  237. package/CHANGELOG.md +0 -1461
  238. package/LICENSE.md +0 -5
  239. package/lib/axis/arrow.js +0 -79
  240. package/lib/axis/arrow.js.map +0 -1
  241. package/lib/axis/axes.js +0 -329
  242. package/lib/axis/axes.js.map +0 -1
  243. package/lib/axis/index.js +0 -21
  244. package/lib/axis/index.js.map +0 -1
  245. package/lib/bg.js +0 -114
  246. package/lib/bg.js.map +0 -1
  247. package/lib/container/actions.js +0 -18
  248. package/lib/container/actions.js.map +0 -1
  249. package/lib/container/index.js +0 -118
  250. package/lib/container/index.js.map +0 -1
  251. package/lib/container/marks.js +0 -22
  252. package/lib/container/marks.js.map +0 -1
  253. package/lib/container/middleware.js +0 -19
  254. package/lib/container/middleware.js.map +0 -1
  255. package/lib/container/reducer.js +0 -18
  256. package/lib/container/reducer.js.map +0 -1
  257. package/lib/coordinates-label.js +0 -79
  258. package/lib/coordinates-label.js.map +0 -1
  259. package/lib/graph-with-controls.js +0 -294
  260. package/lib/graph-with-controls.js.map +0 -1
  261. package/lib/graph.js +0 -327
  262. package/lib/graph.js.map +0 -1
  263. package/lib/grid-setup.js +0 -414
  264. package/lib/grid-setup.js.map +0 -1
  265. package/lib/grid.js +0 -131
  266. package/lib/grid.js.map +0 -1
  267. package/lib/index.js +0 -47
  268. package/lib/index.js.map +0 -1
  269. package/lib/key-legend.js +0 -201
  270. package/lib/key-legend.js.map +0 -1
  271. package/lib/label-svg-icon.js +0 -50
  272. package/lib/label-svg-icon.js.map +0 -1
  273. package/lib/labels.js +0 -243
  274. package/lib/labels.js.map +0 -1
  275. package/lib/mark-label.js +0 -285
  276. package/lib/mark-label.js.map +0 -1
  277. package/lib/toggle-bar.js +0 -252
  278. package/lib/toggle-bar.js.map +0 -1
  279. package/lib/tool-menu.js +0 -78
  280. package/lib/tool-menu.js.map +0 -1
  281. package/lib/tools/absolute/component.js +0 -29
  282. package/lib/tools/absolute/component.js.map +0 -1
  283. package/lib/tools/absolute/index.js +0 -50
  284. package/lib/tools/absolute/index.js.map +0 -1
  285. package/lib/tools/circle/bg-circle.js +0 -123
  286. package/lib/tools/circle/bg-circle.js.map +0 -1
  287. package/lib/tools/circle/component.js +0 -321
  288. package/lib/tools/circle/component.js.map +0 -1
  289. package/lib/tools/circle/index.js +0 -41
  290. package/lib/tools/circle/index.js.map +0 -1
  291. package/lib/tools/exponential/component.js +0 -28
  292. package/lib/tools/exponential/component.js.map +0 -1
  293. package/lib/tools/exponential/index.js +0 -56
  294. package/lib/tools/exponential/index.js.map +0 -1
  295. package/lib/tools/index.js +0 -86
  296. package/lib/tools/index.js.map +0 -1
  297. package/lib/tools/line/component.js +0 -97
  298. package/lib/tools/line/component.js.map +0 -1
  299. package/lib/tools/line/index.js +0 -11
  300. package/lib/tools/line/index.js.map +0 -1
  301. package/lib/tools/parabola/component.js +0 -28
  302. package/lib/tools/parabola/component.js.map +0 -1
  303. package/lib/tools/parabola/index.js +0 -50
  304. package/lib/tools/parabola/index.js.map +0 -1
  305. package/lib/tools/point/component.js +0 -148
  306. package/lib/tools/point/component.js.map +0 -1
  307. package/lib/tools/point/index.js +0 -24
  308. package/lib/tools/point/index.js.map +0 -1
  309. package/lib/tools/polygon/component.js +0 -437
  310. package/lib/tools/polygon/component.js.map +0 -1
  311. package/lib/tools/polygon/index.js +0 -89
  312. package/lib/tools/polygon/index.js.map +0 -1
  313. package/lib/tools/polygon/line.js +0 -115
  314. package/lib/tools/polygon/line.js.map +0 -1
  315. package/lib/tools/polygon/polygon.js +0 -130
  316. package/lib/tools/polygon/polygon.js.map +0 -1
  317. package/lib/tools/ray/component.js +0 -95
  318. package/lib/tools/ray/component.js.map +0 -1
  319. package/lib/tools/ray/index.js +0 -11
  320. package/lib/tools/ray/index.js.map +0 -1
  321. package/lib/tools/segment/component.js +0 -70
  322. package/lib/tools/segment/component.js.map +0 -1
  323. package/lib/tools/segment/index.js +0 -11
  324. package/lib/tools/segment/index.js.map +0 -1
  325. package/lib/tools/shared/arrow-head.js +0 -111
  326. package/lib/tools/shared/arrow-head.js.map +0 -1
  327. package/lib/tools/shared/icons/CorrectSVG.js +0 -40
  328. package/lib/tools/shared/icons/CorrectSVG.js.map +0 -1
  329. package/lib/tools/shared/icons/IncorrectSVG.js +0 -40
  330. package/lib/tools/shared/icons/IncorrectSVG.js.map +0 -1
  331. package/lib/tools/shared/icons/MissingSVG.js +0 -39
  332. package/lib/tools/shared/icons/MissingSVG.js.map +0 -1
  333. package/lib/tools/shared/line/index.js +0 -550
  334. package/lib/tools/shared/line/index.js.map +0 -1
  335. package/lib/tools/shared/line/line-path.js +0 -121
  336. package/lib/tools/shared/line/line-path.js.map +0 -1
  337. package/lib/tools/shared/line/with-root-edge.js +0 -121
  338. package/lib/tools/shared/line/with-root-edge.js.map +0 -1
  339. package/lib/tools/shared/point/arrow-point.js +0 -72
  340. package/lib/tools/shared/point/arrow-point.js.map +0 -1
  341. package/lib/tools/shared/point/arrow.js +0 -67
  342. package/lib/tools/shared/point/arrow.js.map +0 -1
  343. package/lib/tools/shared/point/base-point.js +0 -157
  344. package/lib/tools/shared/point/base-point.js.map +0 -1
  345. package/lib/tools/shared/point/index.js +0 -68
  346. package/lib/tools/shared/point/index.js.map +0 -1
  347. package/lib/tools/shared/styles.js +0 -33
  348. package/lib/tools/shared/styles.js.map +0 -1
  349. package/lib/tools/shared/types.js +0 -16
  350. package/lib/tools/shared/types.js.map +0 -1
  351. package/lib/tools/sine/component.js +0 -40
  352. package/lib/tools/sine/component.js.map +0 -1
  353. package/lib/tools/sine/index.js +0 -50
  354. package/lib/tools/sine/index.js.map +0 -1
  355. package/lib/tools/vector/component.js +0 -68
  356. package/lib/tools/vector/component.js.map +0 -1
  357. package/lib/tools/vector/index.js +0 -11
  358. package/lib/tools/vector/index.js.map +0 -1
  359. package/lib/undo-redo.js +0 -86
  360. package/lib/undo-redo.js.map +0 -1
  361. package/lib/use-debounce.js +0 -25
  362. package/lib/use-debounce.js.map +0 -1
  363. package/lib/utils.js +0 -229
  364. package/lib/utils.js.map +0 -1
  365. package/src/__tests__/bg.test.jsx +0 -250
  366. package/src/__tests__/coordinates-label.test.jsx +0 -243
  367. package/src/__tests__/graph-with-controls.test.jsx +0 -198
  368. package/src/__tests__/graph.test.jsx +0 -721
  369. package/src/__tests__/grid-setup.test.jsx +0 -645
  370. package/src/__tests__/grid.test.jsx +0 -22
  371. package/src/__tests__/key-legend.test.jsx +0 -260
  372. package/src/__tests__/label-svg-icon.test.jsx +0 -278
  373. package/src/__tests__/labels.test.jsx +0 -55
  374. package/src/__tests__/mark-label.test.jsx +0 -63
  375. package/src/__tests__/toggle-bar.test.jsx +0 -146
  376. package/src/__tests__/tool-menu.test.jsx +0 -115
  377. package/src/__tests__/undo-redo.test.jsx +0 -24
  378. package/src/__tests__/use-debounce.test.js +0 -21
  379. package/src/__tests__/utils.js +0 -41
  380. package/src/__tests__/utils.test.js +0 -105
  381. package/src/axis/__tests__/arrow.test.jsx +0 -38
  382. package/src/axis/__tests__/axes.test.jsx +0 -216
  383. package/src/axis/arrow.jsx +0 -57
  384. package/src/axis/axes.jsx +0 -285
  385. package/src/axis/index.js +0 -3
  386. package/src/bg.jsx +0 -96
  387. package/src/container/__tests__/actions.test.js +0 -105
  388. package/src/container/__tests__/index.test.jsx +0 -319
  389. package/src/container/__tests__/marks.test.js +0 -172
  390. package/src/container/__tests__/middleware.test.js +0 -235
  391. package/src/container/__tests__/reducer.test.js +0 -324
  392. package/src/container/actions.js +0 -8
  393. package/src/container/index.jsx +0 -83
  394. package/src/container/marks.js +0 -14
  395. package/src/container/middleware.js +0 -7
  396. package/src/container/reducer.js +0 -5
  397. package/src/coordinates-label.jsx +0 -63
  398. package/src/graph-with-controls.jsx +0 -239
  399. package/src/graph.jsx +0 -303
  400. package/src/grid-setup.jsx +0 -432
  401. package/src/grid.jsx +0 -133
  402. package/src/index.js +0 -7
  403. package/src/key-legend.jsx +0 -142
  404. package/src/label-svg-icon.jsx +0 -39
  405. package/src/labels.jsx +0 -207
  406. package/src/mark-label.jsx +0 -244
  407. package/src/toggle-bar.jsx +0 -224
  408. package/src/tool-menu.jsx +0 -49
  409. package/src/tools/absolute/__tests__/component.test.jsx +0 -53
  410. package/src/tools/absolute/component.jsx +0 -23
  411. package/src/tools/absolute/index.js +0 -31
  412. package/src/tools/circle/__tests__/bg-circle.test.jsx +0 -26
  413. package/src/tools/circle/__tests__/component.test.jsx +0 -494
  414. package/src/tools/circle/__tests__/index.test.js +0 -480
  415. package/src/tools/circle/bg-circle.jsx +0 -81
  416. package/src/tools/circle/component.jsx +0 -264
  417. package/src/tools/circle/index.js +0 -25
  418. package/src/tools/exponential/__tests__/component.test.jsx +0 -53
  419. package/src/tools/exponential/__tests__/index.test.js +0 -729
  420. package/src/tools/exponential/component.jsx +0 -23
  421. package/src/tools/exponential/index.js +0 -39
  422. package/src/tools/index.js +0 -48
  423. package/src/tools/line/__tests__/component.test.jsx +0 -37
  424. package/src/tools/line/component.jsx +0 -93
  425. package/src/tools/line/index.js +0 -4
  426. package/src/tools/parabola/__tests__/component.test.jsx +0 -48
  427. package/src/tools/parabola/__tests__/index.test.js +0 -470
  428. package/src/tools/parabola/component.jsx +0 -23
  429. package/src/tools/parabola/index.js +0 -31
  430. package/src/tools/point/__tests__/component.test.jsx +0 -349
  431. package/src/tools/point/__tests__/index.test.js +0 -241
  432. package/src/tools/point/component.jsx +0 -126
  433. package/src/tools/point/index.js +0 -11
  434. package/src/tools/polygon/__tests__/component.test.jsx +0 -471
  435. package/src/tools/polygon/__tests__/index.test.js +0 -294
  436. package/src/tools/polygon/__tests__/line.test.jsx +0 -35
  437. package/src/tools/polygon/__tests__/polygon.test.jsx +0 -61
  438. package/src/tools/polygon/component.jsx +0 -409
  439. package/src/tools/polygon/index.js +0 -52
  440. package/src/tools/polygon/line.jsx +0 -84
  441. package/src/tools/polygon/polygon.jsx +0 -110
  442. package/src/tools/ray/__tests__/component.test.jsx +0 -29
  443. package/src/tools/ray/component.jsx +0 -92
  444. package/src/tools/ray/index.js +0 -4
  445. package/src/tools/segment/__tests__/component.test.jsx +0 -28
  446. package/src/tools/segment/component.jsx +0 -53
  447. package/src/tools/segment/index.js +0 -4
  448. package/src/tools/shared/__tests__/arrow-head.test.jsx +0 -31
  449. package/src/tools/shared/arrow-head.jsx +0 -102
  450. package/src/tools/shared/icons/CorrectSVG.jsx +0 -32
  451. package/src/tools/shared/icons/IncorrectSVG.jsx +0 -30
  452. package/src/tools/shared/icons/MissingSVG.jsx +0 -31
  453. package/src/tools/shared/line/__tests__/index.test.jsx +0 -109
  454. package/src/tools/shared/line/__tests__/line-path.test.jsx +0 -53
  455. package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +0 -73
  456. package/src/tools/shared/line/index.jsx +0 -487
  457. package/src/tools/shared/line/line-path.jsx +0 -90
  458. package/src/tools/shared/line/with-root-edge.jsx +0 -97
  459. package/src/tools/shared/point/__tests__/arrow-point.test.jsx +0 -91
  460. package/src/tools/shared/point/__tests__/base-point.test.jsx +0 -87
  461. package/src/tools/shared/point/arrow-point.jsx +0 -46
  462. package/src/tools/shared/point/arrow.jsx +0 -37
  463. package/src/tools/shared/point/base-point.jsx +0 -121
  464. package/src/tools/shared/point/index.jsx +0 -54
  465. package/src/tools/shared/styles.js +0 -27
  466. package/src/tools/shared/types.js +0 -10
  467. package/src/tools/sine/__tests__/component.test.jsx +0 -51
  468. package/src/tools/sine/component.jsx +0 -32
  469. package/src/tools/sine/index.js +0 -33
  470. package/src/tools/vector/__tests__/component.test.jsx +0 -25
  471. package/src/tools/vector/component.jsx +0 -56
  472. package/src/tools/vector/index.js +0 -4
  473. package/src/undo-redo.jsx +0 -45
  474. package/src/use-debounce.js +0 -13
  475. package/src/utils.js +0 -224
@@ -0,0 +1,172 @@
1
+ import { __toESM as e } from "./_virtual/_rolldown/runtime.js";
2
+ import { require_AutosizeInput as t } from "./node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js";
3
+ import { useDebounce as n } from "./use-debounce.js";
4
+ import r from "./label-svg-icon.js";
5
+ import { useCallback as i, useEffect as a, useState as o } from "react";
6
+ import s from "prop-types";
7
+ import { types as c } from "@pie-lib/plot";
8
+ import { styled as l, useTheme as u } from "@mui/material/styles";
9
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
10
+ import { color as m } from "@pie-lib/render-ui";
11
+ //#region src/mark-label.tsx
12
+ var h = /* @__PURE__ */ e(t(), 1), g = h.default?.default ?? h.default, _ = l("div")(({ theme: e }) => ({
13
+ float: "right",
14
+ padding: e.spacing(.5),
15
+ borderRadius: "4px",
16
+ fontSize: "10px",
17
+ backgroundColor: m.defaults.WHITE,
18
+ color: m.defaults.CORRECT_WITH_ICON,
19
+ border: `solid 1px ${m.defaults.CORRECT_WITH_ICON}`
20
+ })), v = l("div")(({ theme: e }) => ({
21
+ float: "right",
22
+ padding: e.spacing(.5),
23
+ borderRadius: "4px",
24
+ fontSize: "10px",
25
+ backgroundColor: m.defaults.WHITE,
26
+ color: m.defaults.INCORRECT_WITH_ICON,
27
+ border: `solid 1px ${m.defaults.INCORRECT_WITH_ICON}`
28
+ })), y = l("div")(({ theme: e }) => ({
29
+ float: "right",
30
+ padding: e.spacing(.5),
31
+ borderRadius: "4px",
32
+ fontSize: "10px",
33
+ backgroundColor: m.defaults.WHITE,
34
+ color: m.defaults.MISSING_WITH_ICON,
35
+ border: `solid 1px ${m.defaults.MISSING_WITH_ICON}`,
36
+ fontWeight: "bold"
37
+ })), b = l("div")(() => ({
38
+ float: "right",
39
+ padding: 0,
40
+ borderRadius: "4px",
41
+ fontSize: "10px",
42
+ backgroundColor: m.defaults.WHITE,
43
+ color: m.defaults.INCORRECT_WITH_ICON,
44
+ fontWeight: "bold"
45
+ })), x = (e, t, n) => ({
46
+ float: "right",
47
+ padding: e.spacing(.5),
48
+ fontFamily: e.typography.fontFamily,
49
+ fontSize: "10px",
50
+ border: t ? `solid 1px ${m.defaults.PRIMARY_DARK}` : n ? `solid 1px ${m.disabled()}` : `solid 1px ${m.defaults.SECONDARY}`,
51
+ borderRadius: "3px",
52
+ color: n ? m.disabled() : m.defaults.PRIMARY_DARK,
53
+ backgroundColor: m.defaults.WHITE,
54
+ WebkitOpacity: t ? "1" : void 0,
55
+ WebkitTextFillColor: n ? m.disabled() : void 0
56
+ }), S = () => ({
57
+ padding: "0",
58
+ border: "none",
59
+ color: "inherit",
60
+ fontWeight: "bold"
61
+ }), C = (e, t, n = {
62
+ width: 0,
63
+ height: 0
64
+ }) => {
65
+ let { scale: r, domain: i, range: a } = e, o = r.x(t.x) + n.width + 5, s = r.y(t.y) + n.height + 5, c = o >= r.x(i.max) ? "left" : "right";
66
+ return `${s >= r.y(a.min) ? "top" : "bottom"}-${c}`;
67
+ }, w = (e, t, n = {
68
+ width: 0,
69
+ height: 0
70
+ }, r) => {
71
+ let { scale: i } = e;
72
+ switch (r) {
73
+ case "bottom-right": return {
74
+ left: i.x(t.x) + 5,
75
+ top: i.y(t.y) + 5
76
+ };
77
+ case "bottom-left": return {
78
+ left: i.x(t.x) - 5 - n.width,
79
+ top: i.y(t.y) + 5
80
+ };
81
+ case "top-left": return {
82
+ left: i.x(t.x) - 5 - n.width,
83
+ top: i.y(t.y) - 5 - n.height
84
+ };
85
+ case "top-right": return {
86
+ left: i.x(t.x) + 5,
87
+ top: i.y(t.y) - 5 - n.height
88
+ };
89
+ default: return {};
90
+ }
91
+ }, T = ({ _ref: e, externalInputRef: t, label: n, disabled: r, inputStyle: i, onChange: a, onBlur: o }) => /* @__PURE__ */ f(g, {
92
+ inputRef: (n) => {
93
+ e(n), t(n);
94
+ },
95
+ disabled: r,
96
+ inputStyle: i,
97
+ value: n,
98
+ onChange: a,
99
+ onBlur: o
100
+ });
101
+ T.propTypes = {
102
+ _ref: s.func,
103
+ externalInputRef: s.func,
104
+ label: s.string,
105
+ disabled: s.bool,
106
+ inputStyle: s.object,
107
+ onChange: s.func,
108
+ onBlur: s.func
109
+ };
110
+ var E = (e) => {
111
+ let [t, s] = o(null), c = i((e) => s(e)), l = u(), { mark: m, graphProps: h, disabled: g, inputRef: E } = e, [D, O] = o(m.label), { correctness: k, correctnesslabel: A, correctlabel: j } = m, M = (e) => O(e.target.value), N = i(() => {
112
+ D === "" && e.onChange("");
113
+ }, [D, e.onChange]), P = n(D, 200);
114
+ a(() => {
115
+ O(m.label);
116
+ }, [m.label]), a(() => {
117
+ typeof P == "string" && P !== m.label && e.onChange(P);
118
+ }, [P]);
119
+ let F = t ? t.getBoundingClientRect() : {
120
+ width: 0,
121
+ height: 0
122
+ }, I = w(h, m, F, C(h, m, F)), L = {
123
+ position: "fixed",
124
+ pointerEvents: "auto",
125
+ display: "flex",
126
+ alignItems: "center",
127
+ gap: "3px",
128
+ ...I
129
+ }, R = {
130
+ ...L,
131
+ top: I.top + 25
132
+ }, z = g || m.disabled, B = (e, t) => /* @__PURE__ */ f(T, {
133
+ _ref: c,
134
+ externalInputRef: E,
135
+ label: t,
136
+ disabled: z,
137
+ inputStyle: e,
138
+ onChange: M,
139
+ onBlur: N
140
+ }), V = S();
141
+ return k === "correct" && A === "correct" && j ? /* @__PURE__ */ p(_, {
142
+ style: L,
143
+ children: [/* @__PURE__ */ f(r, { type: "correct" }), B(V, j)]
144
+ }) : k === "correct" && A === "correct" && !j ? null : k === "correct" && A === "incorrect" ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p(v, {
145
+ style: L,
146
+ children: [/* @__PURE__ */ f(r, { type: "incorrect" }), D === "" ? /* @__PURE__ */ f(r, {
147
+ type: "empty",
148
+ style: { marginLeft: "3px" }
149
+ }) : B(V, D)]
150
+ }), /* @__PURE__ */ f(y, {
151
+ style: R,
152
+ children: B(V, j)
153
+ })] }) : k === "missing" ? /* @__PURE__ */ f(y, {
154
+ style: L,
155
+ children: B(V, D)
156
+ }) : k === "incorrect" ? /* @__PURE__ */ f(b, {
157
+ style: L,
158
+ children: B(V, D)
159
+ }) : /* @__PURE__ */ f("div", {
160
+ style: L,
161
+ children: B(x(l, g, m.disabled), D)
162
+ });
163
+ };
164
+ E.propTypes = {
165
+ disabled: s.bool,
166
+ onChange: s.func,
167
+ graphProps: c.GraphPropsType,
168
+ inputRef: s.func,
169
+ mark: s.object
170
+ };
171
+ //#endregion
172
+ export { E as default };
@@ -0,0 +1,7 @@
1
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
2
+ function e(e) {
3
+ if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ return e;
5
+ }
6
+ //#endregion
7
+ export { e as _assertThisInitialized };
@@ -0,0 +1,12 @@
1
+ import { toPropertyKey as e } from "./toPropertyKey.js";
2
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js
3
+ function t(t, n, r) {
4
+ return (n = e(n)) in t ? Object.defineProperty(t, n, {
5
+ value: r,
6
+ enumerable: !0,
7
+ configurable: !0,
8
+ writable: !0
9
+ }) : t[n] = r, t;
10
+ }
11
+ //#endregion
12
+ export { t as _defineProperty };
@@ -0,0 +1,12 @@
1
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
2
+ function e() {
3
+ return e = Object.assign ? Object.assign.bind() : function(e) {
4
+ for (var t = 1; t < arguments.length; t++) {
5
+ var n = arguments[t];
6
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
7
+ }
8
+ return e;
9
+ }, e.apply(null, arguments);
10
+ }
11
+ //#endregion
12
+ export { e as _extends };
@@ -0,0 +1,7 @@
1
+ import { _setPrototypeOf as e } from "./setPrototypeOf.js";
2
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
3
+ function t(t, n) {
4
+ t.prototype = Object.create(n.prototype), t.prototype.constructor = t, e(t, n);
5
+ }
6
+ //#endregion
7
+ export { t as _inheritsLoose };
@@ -0,0 +1,25 @@
1
+ import { _defineProperty as e } from "./defineProperty.js";
2
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
3
+ function t(e, t) {
4
+ var n = Object.keys(e);
5
+ if (Object.getOwnPropertySymbols) {
6
+ var r = Object.getOwnPropertySymbols(e);
7
+ t && (r = r.filter(function(t) {
8
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
9
+ })), n.push.apply(n, r);
10
+ }
11
+ return n;
12
+ }
13
+ function n(n) {
14
+ for (var r = 1; r < arguments.length; r++) {
15
+ var i = arguments[r] == null ? {} : arguments[r];
16
+ r % 2 ? t(Object(i), !0).forEach(function(t) {
17
+ e(n, t, i[t]);
18
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : t(Object(i)).forEach(function(e) {
19
+ Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(i, e));
20
+ });
21
+ }
22
+ return n;
23
+ }
24
+ //#endregion
25
+ export { n as _objectSpread2 };
@@ -0,0 +1,12 @@
1
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
2
+ function e(e, t) {
3
+ if (e == null) return {};
4
+ var n = {};
5
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
6
+ if (t.indexOf(r) !== -1) continue;
7
+ n[r] = e[r];
8
+ }
9
+ return n;
10
+ }
11
+ //#endregion
12
+ export { e as _objectWithoutPropertiesLoose };
@@ -0,0 +1,8 @@
1
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
2
+ function e(t, n) {
3
+ return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
4
+ return e.__proto__ = t, e;
5
+ }, e(t, n);
6
+ }
7
+ //#endregion
8
+ export { e as _setPrototypeOf };
@@ -0,0 +1,14 @@
1
+ import { _typeof as e } from "./typeof.js";
2
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
3
+ function t(t, n) {
4
+ if (e(t) != "object" || !t) return t;
5
+ var r = t[Symbol.toPrimitive];
6
+ if (r !== void 0) {
7
+ var i = r.call(t, n || "default");
8
+ if (e(i) != "object") return i;
9
+ throw TypeError("@@toPrimitive must return a primitive value.");
10
+ }
11
+ return (n === "string" ? String : Number)(t);
12
+ }
13
+ //#endregion
14
+ export { t as toPrimitive };
@@ -0,0 +1,9 @@
1
+ import { _typeof as e } from "./typeof.js";
2
+ import { toPrimitive as t } from "./toPrimitive.js";
3
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
4
+ function n(n) {
5
+ var r = t(n, "string");
6
+ return e(r) == "symbol" ? r : r + "";
7
+ }
8
+ //#endregion
9
+ export { n as toPropertyKey };
@@ -0,0 +1,11 @@
1
+ //#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/typeof.js
2
+ function e(t) {
3
+ "@babel/helpers - typeof";
4
+ return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
5
+ return typeof e;
6
+ } : function(e) {
7
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
8
+ }, e(t);
9
+ }
10
+ //#endregion
11
+ export { e as _typeof };
@@ -0,0 +1,100 @@
1
+ import e from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
2
+ import t from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
3
+ import n from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js";
4
+ import r from "../constants/orientation.js";
5
+ import i from "./AxisRenderer.js";
6
+ import a from "../utils/getTickPosition.js";
7
+ import o from "../utils/getTickFormatter.js";
8
+ import s from "../utils/createPoint.js";
9
+ import c from "../utils/getAxisRangePaddingConfig.js";
10
+ import l from "react";
11
+ import "prop-types";
12
+ import u from "classnames";
13
+ //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js
14
+ var d = [
15
+ "children",
16
+ "axisClassName",
17
+ "hideAxisLine",
18
+ "hideTicks",
19
+ "hideZero",
20
+ "innerRef",
21
+ "left",
22
+ "numTicks",
23
+ "orientation",
24
+ "rangePadding",
25
+ "scale",
26
+ "tickFormat",
27
+ "tickLength",
28
+ "tickValues",
29
+ "top"
30
+ ];
31
+ function f() {
32
+ return f = Object.assign ? Object.assign.bind() : function(e) {
33
+ for (var t = 1; t < arguments.length; t++) {
34
+ var n = arguments[t];
35
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
36
+ }
37
+ return e;
38
+ }, f.apply(this, arguments);
39
+ }
40
+ function p(e, t) {
41
+ if (e == null) return {};
42
+ var n = {}, r = Object.keys(e), i, a;
43
+ for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
44
+ return n;
45
+ }
46
+ function m(m) {
47
+ var h = m.children, g = h === void 0 ? i : h, _ = m.axisClassName, v = m.hideAxisLine, y = v === void 0 ? !1 : v, b = m.hideTicks, x = b === void 0 ? !1 : b, S = m.hideZero, C = S === void 0 ? !1 : S, w = m.innerRef, T = m.left, E = T === void 0 ? 0 : T, D = m.numTicks, O = D === void 0 ? 10 : D, k = m.orientation, A = k === void 0 ? r.bottom : k, j = m.rangePadding, M = j === void 0 ? 0 : j, N = m.scale, P = m.tickFormat, F = m.tickLength, I = F === void 0 ? 8 : F, L = m.tickValues, R = m.top, z = R === void 0 ? 0 : R, B = p(m, d), V = P ?? o(N), H = A === r.left, U = A === r.top, W = U || A === r.bottom, G = a(N), K = H || U ? -1 : 1, q = N.range(), J = c(M), Y = s({
48
+ x: Number(q[0]) + .5 - J.start,
49
+ y: 0
50
+ }, W), X = s({
51
+ x: Number(q[q.length - 1]) + .5 + J.end,
52
+ y: 0
53
+ }, W), Z = (L ?? n(N, O)).filter(function(e) {
54
+ return !C || e !== 0 && e !== "0";
55
+ }).map(function(e, t) {
56
+ return {
57
+ value: e,
58
+ index: t
59
+ };
60
+ }), Q = Z.map(function(e) {
61
+ var n = e.value, r = e.index, i = t(G(n));
62
+ return {
63
+ value: n,
64
+ index: r,
65
+ from: s({
66
+ x: i,
67
+ y: 0
68
+ }, W),
69
+ to: s({
70
+ x: i,
71
+ y: I * K
72
+ }, W),
73
+ formattedValue: V(n, r, Z)
74
+ };
75
+ });
76
+ return /*#__PURE__*/ l.createElement(e, {
77
+ className: u("visx-axis", _),
78
+ innerRef: w,
79
+ top: z,
80
+ left: E
81
+ }, g(f({}, B, {
82
+ axisFromPoint: Y,
83
+ axisToPoint: X,
84
+ hideAxisLine: y,
85
+ hideTicks: x,
86
+ hideZero: C,
87
+ horizontal: W,
88
+ numTicks: O,
89
+ orientation: A,
90
+ rangePadding: M,
91
+ scale: N,
92
+ tickFormat: V,
93
+ tickLength: I,
94
+ tickPosition: G,
95
+ tickSign: K,
96
+ ticks: Q
97
+ })));
98
+ }
99
+ //#endregion
100
+ export { m as default };
@@ -0,0 +1,61 @@
1
+ import e from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
2
+ import t from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js";
3
+ import n from "../constants/orientation.js";
4
+ import r from "../utils/getLabelTransform.js";
5
+ import i from "./Ticks.js";
6
+ import a from "react";
7
+ import o from "classnames";
8
+ //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js
9
+ function s() {
10
+ return s = Object.assign ? Object.assign.bind() : function(e) {
11
+ for (var t = 1; t < arguments.length; t++) {
12
+ var n = arguments[t];
13
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
14
+ }
15
+ return e;
16
+ }, s.apply(this, arguments);
17
+ }
18
+ var c = {
19
+ textAnchor: "middle",
20
+ fontFamily: "Arial",
21
+ fontSize: 10,
22
+ fill: "#222"
23
+ };
24
+ function l(l) {
25
+ var u = l.axisFromPoint, d = l.axisLineClassName, f = l.axisToPoint, p = l.hideAxisLine, m = l.hideTicks, h = l.horizontal, g = l.label, _ = g === void 0 ? "" : g, v = l.labelClassName, y = l.labelOffset, b = y === void 0 ? 14 : y, x = l.labelProps, S = l.orientation, C = S === void 0 ? n.bottom : S, w = l.scale, T = l.stroke, E = T === void 0 ? "#222" : T, D = l.strokeDasharray, O = l.strokeWidth, k = O === void 0 ? 1 : O, A = l.tickClassName, j = l.tickComponent, M = l.tickLineProps, N = l.tickLabelProps, P = l.tickLength, F = P === void 0 ? 8 : P, I = l.tickStroke, L = I === void 0 ? "#222" : I, R = l.tickTransform, z = l.ticks, B = l.ticksComponent, V = B === void 0 ? i : B, H = s({}, c, x), U = s({}, c, typeof N == "object" ? N : null), W = z.map(function(e) {
26
+ var t = e.value, n = e.index;
27
+ return typeof N == "function" ? N(t, n, z) : U;
28
+ }), G = Math.max.apply(Math, [10].concat(W.map(function(e) {
29
+ return typeof e.fontSize == "number" ? e.fontSize : 0;
30
+ })));
31
+ return /*#__PURE__*/ a.createElement(a.Fragment, null, V({
32
+ hideTicks: m,
33
+ horizontal: h,
34
+ orientation: C,
35
+ scale: w,
36
+ tickClassName: A,
37
+ tickComponent: j,
38
+ tickLabelProps: W,
39
+ tickStroke: L,
40
+ tickTransform: R,
41
+ ticks: z,
42
+ strokeWidth: k,
43
+ tickLineProps: M
44
+ }), !p && /*#__PURE__*/ a.createElement(e, {
45
+ className: o("visx-axis-line", d),
46
+ from: u,
47
+ to: f,
48
+ stroke: E,
49
+ strokeWidth: k,
50
+ strokeDasharray: D
51
+ }), _ && /*#__PURE__*/ a.createElement(t, s({ className: o("visx-axis-label", v) }, r({
52
+ labelOffset: b,
53
+ labelProps: H,
54
+ orientation: C,
55
+ range: w.range(),
56
+ tickLabelFontSize: G,
57
+ tickLength: F
58
+ }), H), _));
59
+ }
60
+ //#endregion
61
+ export { l as default };
@@ -0,0 +1,42 @@
1
+ import e from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
2
+ import t from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
3
+ import n from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js";
4
+ import r from "../constants/orientation.js";
5
+ import i from "react";
6
+ import a from "classnames";
7
+ //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js
8
+ function o() {
9
+ return o = Object.assign ? Object.assign.bind() : function(e) {
10
+ for (var t = 1; t < arguments.length; t++) {
11
+ var n = arguments[t];
12
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
13
+ }
14
+ return e;
15
+ }, o.apply(this, arguments);
16
+ }
17
+ function s(s) {
18
+ var c = s.hideTicks, l = s.horizontal, u = s.orientation, d = s.tickClassName, f = s.tickComponent, p = s.tickLabelProps, m = s.tickStroke, h = m === void 0 ? "#222" : m, g = s.tickTransform, _ = s.ticks, v = s.strokeWidth, y = s.tickLineProps;
19
+ return _.map(function(s) {
20
+ var m = s.value, _ = s.index, b = s.from, x = s.to, S = s.formattedValue, C = p[_] ?? {}, w = Math.max(10, typeof C.fontSize == "number" && C.fontSize || 0), T = x.y + (l && u !== r.top ? w : 0);
21
+ return /*#__PURE__*/ i.createElement(e, {
22
+ key: "visx-tick-" + m + "-" + _,
23
+ className: a("visx-axis-tick", d),
24
+ transform: g
25
+ }, !c && /*#__PURE__*/ i.createElement(t, o({
26
+ from: b,
27
+ to: x,
28
+ stroke: h,
29
+ strokeWidth: v,
30
+ strokeLinecap: "square"
31
+ }, y)), f ? f(o({}, C, {
32
+ x: x.x,
33
+ y: T,
34
+ formattedValue: S
35
+ })) : /*#__PURE__*/ i.createElement(n, o({
36
+ x: x.x,
37
+ y: T
38
+ }, C), S));
39
+ });
40
+ }
41
+ //#endregion
42
+ export { s as default };
@@ -0,0 +1,9 @@
1
+ //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js
2
+ var e = {
3
+ top: "top",
4
+ left: "left",
5
+ right: "right",
6
+ bottom: "bottom"
7
+ };
8
+ //#endregion
9
+ export { e as default };
@@ -0,0 +1,14 @@
1
+ import { Point as e } from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
2
+ //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js
3
+ function t(t, n) {
4
+ var r = t.x, i = t.y;
5
+ return new e(n ? {
6
+ x: r,
7
+ y: i
8
+ } : {
9
+ x: i,
10
+ y: r
11
+ });
12
+ }
13
+ //#endregion
14
+ export { t as default };
@@ -0,0 +1,21 @@
1
+ //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js
2
+ function e() {
3
+ return e = Object.assign ? Object.assign.bind() : function(e) {
4
+ for (var t = 1; t < arguments.length; t++) {
5
+ var n = arguments[t];
6
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
7
+ }
8
+ return e;
9
+ }, e.apply(this, arguments);
10
+ }
11
+ function t(t) {
12
+ return t === void 0 && (t = 0), typeof t == "number" ? {
13
+ start: t,
14
+ end: t
15
+ } : e({
16
+ start: 0,
17
+ end: 0
18
+ }, t);
19
+ }
20
+ //#endregion
21
+ export { t as default };
@@ -0,0 +1,16 @@
1
+ import e from "../constants/orientation.js";
2
+ //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js
3
+ function t(t) {
4
+ var n = t.labelOffset, r = t.labelProps, i = t.orientation, a = t.range, o = t.tickLabelFontSize, s = t.tickLength, c = i === e.left || i === e.top ? -1 : 1, l, u, d;
5
+ if (i === e.top || i === e.bottom) {
6
+ var f = i === e.bottom && typeof r.fontSize == "number" ? r.fontSize : 0;
7
+ l = (Number(a[0]) + Number(a[a.length - 1])) / 2, u = c * (s + n + o + f);
8
+ } else l = c * ((Number(a[0]) + Number(a[a.length - 1])) / 2), u = -(s + n), d = "rotate(" + c * 90 + ")";
9
+ return {
10
+ x: l,
11
+ y: u,
12
+ transform: d
13
+ };
14
+ }
15
+ //#endregion
16
+ export { t as default };
@@ -0,0 +1,8 @@
1
+ import e from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js";
2
+ //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js
3
+ function t(t) {
4
+ var n = t;
5
+ return "tickFormat" in n ? n.tickFormat() : e;
6
+ }
7
+ //#endregion
8
+ export { t as default };
@@ -0,0 +1,15 @@
1
+ //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js
2
+ function e(e, t) {
3
+ t === void 0 && (t = "center");
4
+ var n = e;
5
+ if (t !== "start" && "bandwidth" in n) {
6
+ var r = n.bandwidth();
7
+ return t === "center" && (r /= 2), n.round() && (r = Math.round(r)), function(e) {
8
+ var t = n(e);
9
+ return typeof t == "number" ? t + r : t;
10
+ };
11
+ }
12
+ return e;
13
+ }
14
+ //#endregion
15
+ export { e as default };
@@ -0,0 +1,2 @@
1
+ import { curveMonotoneX as e } from "d3-shape";
2
+ export { e as curveMonotoneX };