@pie-lib/graphing 4.0.5-next.0 → 4.0.5-next.102

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/CHANGELOG.json +1 -0
  2. package/CHANGELOG.md +1469 -0
  3. package/LICENSE.md +5 -0
  4. package/lib/axis/arrow.js +79 -0
  5. package/lib/axis/arrow.js.map +1 -0
  6. package/lib/axis/axes.js +329 -0
  7. package/lib/axis/axes.js.map +1 -0
  8. package/lib/axis/index.js +21 -0
  9. package/lib/axis/index.js.map +1 -0
  10. package/lib/bg.js +114 -0
  11. package/lib/bg.js.map +1 -0
  12. package/lib/container/actions.js +18 -0
  13. package/lib/container/actions.js.map +1 -0
  14. package/lib/container/index.js +127 -0
  15. package/lib/container/index.js.map +1 -0
  16. package/lib/container/marks.js +22 -0
  17. package/lib/container/marks.js.map +1 -0
  18. package/lib/container/middleware.js +19 -0
  19. package/lib/container/middleware.js.map +1 -0
  20. package/lib/container/reducer.js +18 -0
  21. package/lib/container/reducer.js.map +1 -0
  22. package/lib/coordinates-label.js +79 -0
  23. package/lib/coordinates-label.js.map +1 -0
  24. package/lib/graph-with-controls.js +294 -0
  25. package/lib/graph-with-controls.js.map +1 -0
  26. package/lib/graph.js +327 -0
  27. package/lib/graph.js.map +1 -0
  28. package/lib/grid-setup.js +414 -0
  29. package/lib/grid-setup.js.map +1 -0
  30. package/lib/grid.js +131 -0
  31. package/lib/grid.js.map +1 -0
  32. package/lib/index.js +47 -0
  33. package/lib/index.js.map +1 -0
  34. package/lib/key-legend.js +201 -0
  35. package/lib/key-legend.js.map +1 -0
  36. package/lib/label-svg-icon.js +50 -0
  37. package/lib/label-svg-icon.js.map +1 -0
  38. package/lib/labels.js +243 -0
  39. package/lib/labels.js.map +1 -0
  40. package/lib/mark-label.js +285 -0
  41. package/lib/mark-label.js.map +1 -0
  42. package/lib/toggle-bar.js +252 -0
  43. package/lib/toggle-bar.js.map +1 -0
  44. package/lib/tool-menu.js +78 -0
  45. package/lib/tool-menu.js.map +1 -0
  46. package/lib/tools/absolute/component.js +29 -0
  47. package/lib/tools/absolute/component.js.map +1 -0
  48. package/lib/tools/absolute/index.js +50 -0
  49. package/lib/tools/absolute/index.js.map +1 -0
  50. package/lib/tools/circle/bg-circle.js +123 -0
  51. package/lib/tools/circle/bg-circle.js.map +1 -0
  52. package/lib/tools/circle/component.js +321 -0
  53. package/lib/tools/circle/component.js.map +1 -0
  54. package/lib/tools/circle/index.js +41 -0
  55. package/lib/tools/circle/index.js.map +1 -0
  56. package/lib/tools/exponential/component.js +28 -0
  57. package/lib/tools/exponential/component.js.map +1 -0
  58. package/lib/tools/exponential/index.js +56 -0
  59. package/lib/tools/exponential/index.js.map +1 -0
  60. package/lib/tools/index.js +86 -0
  61. package/lib/tools/index.js.map +1 -0
  62. package/lib/tools/line/component.js +97 -0
  63. package/lib/tools/line/component.js.map +1 -0
  64. package/lib/tools/line/index.js +11 -0
  65. package/lib/tools/line/index.js.map +1 -0
  66. package/lib/tools/parabola/component.js +28 -0
  67. package/lib/tools/parabola/component.js.map +1 -0
  68. package/lib/tools/parabola/index.js +50 -0
  69. package/lib/tools/parabola/index.js.map +1 -0
  70. package/lib/tools/point/component.js +148 -0
  71. package/lib/tools/point/component.js.map +1 -0
  72. package/lib/tools/point/index.js +24 -0
  73. package/lib/tools/point/index.js.map +1 -0
  74. package/lib/tools/polygon/component.js +437 -0
  75. package/lib/tools/polygon/component.js.map +1 -0
  76. package/lib/tools/polygon/index.js +89 -0
  77. package/lib/tools/polygon/index.js.map +1 -0
  78. package/lib/tools/polygon/line.js +112 -0
  79. package/lib/tools/polygon/line.js.map +1 -0
  80. package/lib/tools/polygon/polygon.js +130 -0
  81. package/lib/tools/polygon/polygon.js.map +1 -0
  82. package/lib/tools/ray/component.js +95 -0
  83. package/lib/tools/ray/component.js.map +1 -0
  84. package/lib/tools/ray/index.js +11 -0
  85. package/lib/tools/ray/index.js.map +1 -0
  86. package/lib/tools/segment/component.js +71 -0
  87. package/lib/tools/segment/component.js.map +1 -0
  88. package/lib/tools/segment/index.js +11 -0
  89. package/lib/tools/segment/index.js.map +1 -0
  90. package/lib/tools/shared/arrow-head.js +111 -0
  91. package/lib/tools/shared/arrow-head.js.map +1 -0
  92. package/lib/tools/shared/icons/CorrectSVG.js +40 -0
  93. package/lib/tools/shared/icons/CorrectSVG.js.map +1 -0
  94. package/lib/tools/shared/icons/IncorrectSVG.js +40 -0
  95. package/lib/tools/shared/icons/IncorrectSVG.js.map +1 -0
  96. package/lib/tools/shared/icons/MissingSVG.js +39 -0
  97. package/lib/tools/shared/icons/MissingSVG.js.map +1 -0
  98. package/lib/tools/shared/line/index.js +550 -0
  99. package/lib/tools/shared/line/index.js.map +1 -0
  100. package/lib/tools/shared/line/line-path.js +118 -0
  101. package/lib/tools/shared/line/line-path.js.map +1 -0
  102. package/lib/tools/shared/line/with-root-edge.js +121 -0
  103. package/lib/tools/shared/line/with-root-edge.js.map +1 -0
  104. package/lib/tools/shared/point/arrow-point.js +72 -0
  105. package/lib/tools/shared/point/arrow-point.js.map +1 -0
  106. package/lib/tools/shared/point/arrow.js +67 -0
  107. package/lib/tools/shared/point/arrow.js.map +1 -0
  108. package/lib/tools/shared/point/base-point.js +157 -0
  109. package/lib/tools/shared/point/base-point.js.map +1 -0
  110. package/lib/tools/shared/point/index.js +68 -0
  111. package/lib/tools/shared/point/index.js.map +1 -0
  112. package/lib/tools/shared/styles.js +33 -0
  113. package/lib/tools/shared/styles.js.map +1 -0
  114. package/lib/tools/shared/types.js +16 -0
  115. package/lib/tools/shared/types.js.map +1 -0
  116. package/lib/tools/sine/component.js +40 -0
  117. package/lib/tools/sine/component.js.map +1 -0
  118. package/lib/tools/sine/index.js +50 -0
  119. package/lib/tools/sine/index.js.map +1 -0
  120. package/lib/tools/vector/component.js +68 -0
  121. package/lib/tools/vector/component.js.map +1 -0
  122. package/lib/tools/vector/index.js +11 -0
  123. package/lib/tools/vector/index.js.map +1 -0
  124. package/lib/undo-redo.js +86 -0
  125. package/lib/undo-redo.js.map +1 -0
  126. package/lib/use-debounce.js +25 -0
  127. package/lib/use-debounce.js.map +1 -0
  128. package/lib/utils.js +229 -0
  129. package/lib/utils.js.map +1 -0
  130. package/package.json +26 -36
  131. package/src/__tests__/bg.test.jsx +250 -0
  132. package/src/__tests__/coordinates-label.test.jsx +243 -0
  133. package/src/__tests__/graph-with-controls.test.jsx +198 -0
  134. package/src/__tests__/graph.test.jsx +721 -0
  135. package/src/__tests__/grid-setup.test.jsx +645 -0
  136. package/src/__tests__/grid.test.jsx +22 -0
  137. package/src/__tests__/key-legend.test.jsx +260 -0
  138. package/src/__tests__/label-svg-icon.test.jsx +278 -0
  139. package/src/__tests__/labels.test.jsx +55 -0
  140. package/src/__tests__/mark-label.test.jsx +63 -0
  141. package/src/__tests__/toggle-bar.test.jsx +146 -0
  142. package/src/__tests__/tool-menu.test.jsx +115 -0
  143. package/src/__tests__/undo-redo.test.jsx +24 -0
  144. package/src/__tests__/use-debounce.test.js +21 -0
  145. package/src/__tests__/utils.js +41 -0
  146. package/src/__tests__/utils.test.js +105 -0
  147. package/src/axis/__tests__/arrow.test.jsx +38 -0
  148. package/src/axis/__tests__/axes.test.jsx +216 -0
  149. package/src/axis/arrow.jsx +57 -0
  150. package/src/axis/axes.jsx +285 -0
  151. package/src/axis/index.js +3 -0
  152. package/src/bg.jsx +96 -0
  153. package/src/container/__tests__/actions.test.js +105 -0
  154. package/src/container/__tests__/index.test.jsx +319 -0
  155. package/src/container/__tests__/marks.test.js +172 -0
  156. package/src/container/__tests__/middleware.test.js +235 -0
  157. package/src/container/__tests__/reducer.test.js +324 -0
  158. package/src/container/actions.js +8 -0
  159. package/src/container/index.jsx +91 -0
  160. package/src/container/marks.js +14 -0
  161. package/src/container/middleware.js +7 -0
  162. package/src/container/reducer.js +5 -0
  163. package/src/coordinates-label.jsx +63 -0
  164. package/src/graph-with-controls.jsx +239 -0
  165. package/src/graph.jsx +303 -0
  166. package/src/grid-setup.jsx +432 -0
  167. package/src/grid.jsx +133 -0
  168. package/src/index.js +7 -0
  169. package/src/key-legend.jsx +142 -0
  170. package/src/label-svg-icon.jsx +39 -0
  171. package/src/labels.jsx +207 -0
  172. package/src/mark-label.jsx +244 -0
  173. package/src/toggle-bar.jsx +224 -0
  174. package/src/tool-menu.jsx +49 -0
  175. package/src/tools/absolute/__tests__/component.test.jsx +53 -0
  176. package/src/tools/absolute/component.jsx +23 -0
  177. package/src/tools/absolute/index.js +31 -0
  178. package/src/tools/circle/__tests__/bg-circle.test.jsx +26 -0
  179. package/src/tools/circle/__tests__/component.test.jsx +494 -0
  180. package/src/tools/circle/__tests__/index.test.js +480 -0
  181. package/src/tools/circle/bg-circle.jsx +81 -0
  182. package/src/tools/circle/component.jsx +264 -0
  183. package/src/tools/circle/index.js +25 -0
  184. package/src/tools/exponential/__tests__/component.test.jsx +53 -0
  185. package/src/tools/exponential/__tests__/index.test.js +729 -0
  186. package/src/tools/exponential/component.jsx +23 -0
  187. package/src/tools/exponential/index.js +39 -0
  188. package/src/tools/index.js +48 -0
  189. package/src/tools/line/__tests__/component.test.jsx +37 -0
  190. package/src/tools/line/component.jsx +93 -0
  191. package/src/tools/line/index.js +4 -0
  192. package/src/tools/parabola/__tests__/component.test.jsx +48 -0
  193. package/src/tools/parabola/__tests__/index.test.js +470 -0
  194. package/src/tools/parabola/component.jsx +23 -0
  195. package/src/tools/parabola/index.js +31 -0
  196. package/src/tools/point/__tests__/component.test.jsx +349 -0
  197. package/src/tools/point/__tests__/index.test.js +241 -0
  198. package/src/tools/point/component.jsx +126 -0
  199. package/src/tools/point/index.js +11 -0
  200. package/src/tools/polygon/__tests__/component.test.jsx +471 -0
  201. package/src/tools/polygon/__tests__/index.test.js +294 -0
  202. package/src/tools/polygon/__tests__/line.test.jsx +35 -0
  203. package/src/tools/polygon/__tests__/polygon.test.jsx +61 -0
  204. package/src/tools/polygon/component.jsx +409 -0
  205. package/src/tools/polygon/index.js +52 -0
  206. package/src/tools/polygon/line.jsx +74 -0
  207. package/src/tools/polygon/polygon.jsx +110 -0
  208. package/src/tools/ray/__tests__/component.test.jsx +29 -0
  209. package/src/tools/ray/component.jsx +92 -0
  210. package/src/tools/ray/index.js +4 -0
  211. package/src/tools/segment/__tests__/component.test.jsx +28 -0
  212. package/src/tools/segment/component.jsx +65 -0
  213. package/src/tools/segment/index.js +4 -0
  214. package/src/tools/shared/__tests__/arrow-head.test.jsx +31 -0
  215. package/src/tools/shared/arrow-head.jsx +102 -0
  216. package/src/tools/shared/icons/CorrectSVG.jsx +32 -0
  217. package/src/tools/shared/icons/IncorrectSVG.jsx +30 -0
  218. package/src/tools/shared/icons/MissingSVG.jsx +31 -0
  219. package/src/tools/shared/line/__tests__/index.test.jsx +109 -0
  220. package/src/tools/shared/line/__tests__/line-path.test.jsx +53 -0
  221. package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +73 -0
  222. package/src/tools/shared/line/index.jsx +487 -0
  223. package/src/tools/shared/line/line-path.jsx +80 -0
  224. package/src/tools/shared/line/with-root-edge.jsx +97 -0
  225. package/src/tools/shared/point/__tests__/arrow-point.test.jsx +91 -0
  226. package/src/tools/shared/point/__tests__/base-point.test.jsx +87 -0
  227. package/src/tools/shared/point/arrow-point.jsx +46 -0
  228. package/src/tools/shared/point/arrow.jsx +37 -0
  229. package/src/tools/shared/point/base-point.jsx +121 -0
  230. package/src/tools/shared/point/index.jsx +54 -0
  231. package/src/tools/shared/styles.js +27 -0
  232. package/src/tools/shared/types.js +10 -0
  233. package/src/tools/sine/__tests__/component.test.jsx +51 -0
  234. package/src/tools/sine/component.jsx +32 -0
  235. package/src/tools/sine/index.js +33 -0
  236. package/src/tools/vector/__tests__/component.test.jsx +25 -0
  237. package/src/tools/vector/component.jsx +56 -0
  238. package/src/tools/vector/index.js +4 -0
  239. package/src/undo-redo.jsx +45 -0
  240. package/src/use-debounce.js +13 -0
  241. package/src/utils.js +224 -0
  242. package/dist/_virtual/_rolldown/runtime.js +0 -23
  243. package/dist/axis/arrow.d.ts +0 -13
  244. package/dist/axis/arrow.js +0 -34
  245. package/dist/axis/axes.d.ts +0 -132
  246. package/dist/axis/axes.js +0 -214
  247. package/dist/axis/index.d.ts +0 -10
  248. package/dist/bg.d.ts +0 -51
  249. package/dist/bg.js +0 -44
  250. package/dist/container/actions.d.ts +0 -15
  251. package/dist/container/actions.js +0 -7
  252. package/dist/container/index.d.ts +0 -26
  253. package/dist/container/index.js +0 -50
  254. package/dist/container/marks.d.ts +0 -10
  255. package/dist/container/marks.js +0 -11
  256. package/dist/container/middleware.d.ts +0 -10
  257. package/dist/container/middleware.js +0 -4
  258. package/dist/container/reducer.d.ts +0 -12
  259. package/dist/container/reducer.js +0 -7
  260. package/dist/coordinates-label.d.ts +0 -50
  261. package/dist/coordinates-label.js +0 -46
  262. package/dist/graph-with-controls.d.ts +0 -88
  263. package/dist/graph-with-controls.js +0 -154
  264. package/dist/graph.d.ts +0 -126
  265. package/dist/graph.js +0 -209
  266. package/dist/grid-setup.d.ts +0 -27
  267. package/dist/grid-setup.js +0 -307
  268. package/dist/grid.d.ts +0 -43
  269. package/dist/grid.js +0 -59
  270. package/dist/index.d.ts +0 -15
  271. package/dist/index.js +0 -7
  272. package/dist/key-legend.d.ts +0 -21
  273. package/dist/key-legend.js +0 -231
  274. package/dist/label-svg-icon.d.ts +0 -18
  275. package/dist/label-svg-icon.js +0 -42
  276. package/dist/labels.d.ts +0 -37
  277. package/dist/labels.js +0 -152
  278. package/dist/mark-label.d.ts +0 -58
  279. package/dist/mark-label.js +0 -172
  280. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
  281. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
  282. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
  283. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -7
  284. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
  285. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -12
  286. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
  287. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
  288. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
  289. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
  290. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -100
  291. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -61
  292. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -42
  293. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
  294. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
  295. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
  296. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
  297. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
  298. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
  299. package/dist/node_modules/.bun/@visx_curve@3.12.0/node_modules/@visx/curve/esm/index.js +0 -2
  300. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +0 -78
  301. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
  302. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
  303. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
  304. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -49
  305. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
  306. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +0 -10
  307. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +0 -9
  308. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
  309. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -46
  310. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +0 -49
  311. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +0 -9
  312. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +0 -6
  313. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -52
  314. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
  315. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
  316. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
  317. package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +0 -32
  318. package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +0 -33
  319. 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 +0 -68
  320. package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +0 -28
  321. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +0 -21
  322. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +0 -21
  323. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +0 -10
  324. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +0 -21
  325. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
  326. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +0 -14
  327. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
  328. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +0 -16
  329. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +0 -9
  330. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
  331. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +0 -14
  332. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +0 -15
  333. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
  334. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +0 -11
  335. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +0 -13
  336. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +0 -12
  337. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +0 -18
  338. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +0 -14
  339. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +0 -14
  340. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +0 -12
  341. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +0 -16
  342. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +0 -11
  343. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +0 -14
  344. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +0 -14
  345. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +0 -13
  346. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +0 -14
  347. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +0 -19
  348. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +0 -14
  349. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +0 -13
  350. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +0 -13
  351. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +0 -14
  352. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +0 -9
  353. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
  354. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
  355. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +0 -20
  356. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +0 -11
  357. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +0 -16
  358. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
  359. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +0 -20
  360. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +0 -37
  361. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +0 -509
  362. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +0 -108
  363. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +0 -31
  364. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +0 -45
  365. package/dist/node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js +0 -216
  366. package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -82
  367. package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -62
  368. package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/index.js +0 -10
  369. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Context.js +0 -5
  370. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Provider.js +0 -47
  371. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/connectAdvanced.js +0 -95
  372. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/connect.js +0 -52
  373. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapDispatchToProps.js +0 -23
  374. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapStateToProps.js +0 -13
  375. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mergeProps.js +0 -26
  376. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/selectorFactory.js +0 -41
  377. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/verifySubselectors.js +0 -11
  378. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/wrapMapToProps.js +0 -28
  379. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/index.js +0 -4
  380. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/isPlainObject.js +0 -10
  381. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/shallowEqual.js +0 -15
  382. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/verifyPlainObject.js +0 -8
  383. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/warning.js +0 -9
  384. package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +0 -49
  385. package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +0 -34
  386. package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +0 -185
  387. package/dist/node_modules/.bun/redux@4.2.1/node_modules/redux/es/redux.js +0 -225
  388. package/dist/toggle-bar.d.ts +0 -40
  389. package/dist/toggle-bar.js +0 -155
  390. package/dist/tool-menu.d.ts +0 -29
  391. package/dist/tool-menu.js +0 -41
  392. package/dist/tools/absolute/component.d.ts +0 -16
  393. package/dist/tools/absolute/component.js +0 -15
  394. package/dist/tools/absolute/index.d.ts +0 -20
  395. package/dist/tools/absolute/index.js +0 -32
  396. package/dist/tools/circle/bg-circle.d.ts +0 -116
  397. package/dist/tools/circle/bg-circle.js +0 -72
  398. package/dist/tools/circle/component.d.ts +0 -83
  399. package/dist/tools/circle/component.js +0 -195
  400. package/dist/tools/circle/index.d.ts +0 -20
  401. package/dist/tools/circle/index.js +0 -22
  402. package/dist/tools/exponential/component.d.ts +0 -16
  403. package/dist/tools/exponential/component.js +0 -14
  404. package/dist/tools/exponential/index.d.ts +0 -20
  405. package/dist/tools/exponential/index.js +0 -32
  406. package/dist/tools/index.d.ts +0 -27
  407. package/dist/tools/index.js +0 -55
  408. package/dist/tools/line/component.d.ts +0 -124
  409. package/dist/tools/line/component.js +0 -72
  410. package/dist/tools/line/index.d.ts +0 -13
  411. package/dist/tools/line/index.js +0 -6
  412. package/dist/tools/parabola/component.d.ts +0 -16
  413. package/dist/tools/parabola/component.js +0 -14
  414. package/dist/tools/parabola/index.d.ts +0 -20
  415. package/dist/tools/parabola/index.js +0 -32
  416. package/dist/tools/point/component.d.ts +0 -50
  417. package/dist/tools/point/component.js +0 -85
  418. package/dist/tools/point/index.d.ts +0 -15
  419. package/dist/tools/point/index.js +0 -13
  420. package/dist/tools/polygon/component.d.ts +0 -117
  421. package/dist/tools/polygon/component.js +0 -262
  422. package/dist/tools/polygon/index.d.ts +0 -19
  423. package/dist/tools/polygon/index.js +0 -55
  424. package/dist/tools/polygon/line.d.ts +0 -125
  425. package/dist/tools/polygon/line.js +0 -63
  426. package/dist/tools/polygon/polygon.d.ts +0 -122
  427. package/dist/tools/polygon/polygon.js +0 -74
  428. package/dist/tools/ray/component.d.ts +0 -101
  429. package/dist/tools/ray/component.js +0 -71
  430. package/dist/tools/ray/index.d.ts +0 -13
  431. package/dist/tools/ray/index.js +0 -6
  432. package/dist/tools/segment/component.d.ts +0 -100
  433. package/dist/tools/segment/component.js +0 -52
  434. package/dist/tools/segment/index.d.ts +0 -13
  435. package/dist/tools/segment/index.js +0 -6
  436. package/dist/tools/shared/arrow-head.d.ts +0 -51
  437. package/dist/tools/shared/arrow-head.js +0 -63
  438. package/dist/tools/shared/icons/CorrectSVG.d.ts +0 -26
  439. package/dist/tools/shared/icons/CorrectSVG.js +0 -29
  440. package/dist/tools/shared/icons/IncorrectSVG.d.ts +0 -26
  441. package/dist/tools/shared/icons/IncorrectSVG.js +0 -27
  442. package/dist/tools/shared/icons/MissingSVG.d.ts +0 -26
  443. package/dist/tools/shared/icons/MissingSVG.js +0 -28
  444. package/dist/tools/shared/line/index.d.ts +0 -245
  445. package/dist/tools/shared/line/index.js +0 -319
  446. package/dist/tools/shared/line/line-path.d.ts +0 -57
  447. package/dist/tools/shared/line/line-path.js +0 -71
  448. package/dist/tools/shared/line/with-root-edge.d.ts +0 -142
  449. package/dist/tools/shared/line/with-root-edge.js +0 -73
  450. package/dist/tools/shared/point/arrow-point.d.ts +0 -56
  451. package/dist/tools/shared/point/arrow-point.js +0 -41
  452. package/dist/tools/shared/point/arrow.d.ts +0 -45
  453. package/dist/tools/shared/point/arrow.js +0 -35
  454. package/dist/tools/shared/point/base-point.d.ts +0 -52
  455. package/dist/tools/shared/point/base-point.js +0 -103
  456. package/dist/tools/shared/point/index.d.ts +0 -216
  457. package/dist/tools/shared/point/index.js +0 -45
  458. package/dist/tools/shared/styles.d.ts +0 -29
  459. package/dist/tools/shared/styles.js +0 -20
  460. package/dist/tools/shared/types.d.ts +0 -21
  461. package/dist/tools/shared/types.js +0 -11
  462. package/dist/tools/sine/component.d.ts +0 -16
  463. package/dist/tools/sine/component.js +0 -22
  464. package/dist/tools/sine/index.d.ts +0 -20
  465. package/dist/tools/sine/index.js +0 -32
  466. package/dist/tools/vector/component.d.ts +0 -100
  467. package/dist/tools/vector/component.js +0 -44
  468. package/dist/tools/vector/index.d.ts +0 -13
  469. package/dist/tools/vector/index.js +0 -6
  470. package/dist/undo-redo.d.ts +0 -22
  471. package/dist/undo-redo.js +0 -47
  472. package/dist/use-debounce.d.ts +0 -9
  473. package/dist/use-debounce.js +0 -13
  474. package/dist/utils.d.ts +0 -61
  475. package/dist/utils.js +0 -75
@@ -1,172 +0,0 @@
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 };
@@ -1,7 +0,0 @@
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 };
@@ -1,12 +0,0 @@
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 };
@@ -1,12 +0,0 @@
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 };
@@ -1,7 +0,0 @@
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 };
@@ -1,25 +0,0 @@
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 };
@@ -1,12 +0,0 @@
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 };
@@ -1,8 +0,0 @@
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 };
@@ -1,14 +0,0 @@
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 };
@@ -1,9 +0,0 @@
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 };
@@ -1,11 +0,0 @@
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 };
@@ -1,100 +0,0 @@
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 };
@@ -1,61 +0,0 @@
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 };
@@ -1,42 +0,0 @@
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 };
@@ -1,9 +0,0 @@
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 };
@@ -1,14 +0,0 @@
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 };
@@ -1,21 +0,0 @@
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 };
@@ -1,16 +0,0 @@
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 };
@@ -1,8 +0,0 @@
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 };
@@ -1,15 +0,0 @@
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 };
@@ -1,2 +0,0 @@
1
- import { curveMonotoneX as e } from "d3-shape";
2
- export { e as curveMonotoneX };