@pie-lib/graphing 4.0.5-next.3 → 4.0.5-next.31
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.
- package/dist/_virtual/_rolldown/runtime.js +23 -0
- package/dist/autosize-input.d.ts +10 -0
- package/dist/autosize-input.js +66 -0
- package/dist/axis/arrow.d.ts +13 -0
- package/dist/axis/arrow.js +34 -0
- package/dist/axis/axes.d.ts +132 -0
- package/dist/axis/axes.js +214 -0
- package/dist/axis/index.d.ts +10 -0
- package/dist/bg.d.ts +51 -0
- package/dist/bg.js +44 -0
- package/dist/container/actions.d.ts +15 -0
- package/dist/container/actions.js +7 -0
- package/dist/container/index.d.ts +58 -0
- package/dist/container/index.js +48 -0
- package/dist/container/marks.d.ts +10 -0
- package/dist/container/marks.js +11 -0
- package/dist/container/middleware.d.ts +10 -0
- package/dist/container/middleware.js +4 -0
- package/dist/container/reducer.d.ts +14 -0
- package/dist/container/reducer.js +7 -0
- package/dist/coordinates-label.d.ts +50 -0
- package/dist/coordinates-label.js +46 -0
- package/dist/graph-with-controls.d.ts +88 -0
- package/dist/graph-with-controls.js +154 -0
- package/dist/graph.d.ts +126 -0
- package/dist/graph.js +209 -0
- package/dist/grid-setup.d.ts +27 -0
- package/dist/grid-setup.js +307 -0
- package/dist/grid.d.ts +43 -0
- package/dist/grid.js +59 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +7 -0
- package/dist/key-legend.d.ts +21 -0
- package/dist/key-legend.js +231 -0
- package/dist/label-svg-icon.d.ts +18 -0
- package/dist/label-svg-icon.js +42 -0
- package/dist/labels.d.ts +37 -0
- package/dist/labels.js +152 -0
- package/dist/mark-label.d.ts +58 -0
- package/dist/mark-label.js +171 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +101 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +63 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +44 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +21 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +15 -0
- package/dist/node_modules/.bun/@visx_curve@3.12.0/node_modules/@visx/curve/esm/index.js +2 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +79 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +79 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +79 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
- package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +50 -0
- package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +18 -0
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +10 -0
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +9 -0
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +47 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +50 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +9 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +6 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +53 -0
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +57 -0
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +91 -0
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +21 -0
- package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +32 -0
- package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +33 -0
- package/dist/node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js +32 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +16 -0
- package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +28 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Hash.js +21 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_ListCache.js +21 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Map.js +10 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_MapCache.js +21 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Symbol.js +9 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +15 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +16 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_coreJsData.js +9 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +8 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getMapData.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getNative.js +15 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getRawTag.js +19 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getValue.js +11 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashClear.js +13 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashDelete.js +12 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashGet.js +18 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashHas.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashSet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isKeyable.js +12 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isMasked.js +16 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +11 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +13 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +19 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +13 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +13 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +9 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_objectToString.js +12 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_root.js +10 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_toSource.js +20 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/eq.js +11 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/isFunction.js +16 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/isObject.js +12 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/memoize.js +20 -0
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +37 -0
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +509 -0
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +108 -0
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +31 -0
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +45 -0
- package/dist/node_modules/.bun/react-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js +471 -0
- package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +49 -0
- package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +34 -0
- package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +185 -0
- package/dist/node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js +198 -0
- package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +53 -0
- package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +51 -0
- package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/toggle-bar.d.ts +40 -0
- package/dist/toggle-bar.js +155 -0
- package/dist/tool-menu.d.ts +29 -0
- package/dist/tool-menu.js +41 -0
- package/dist/tools/absolute/component.d.ts +16 -0
- package/dist/tools/absolute/component.js +15 -0
- package/dist/tools/absolute/index.d.ts +20 -0
- package/dist/tools/absolute/index.js +32 -0
- package/dist/tools/circle/bg-circle.d.ts +116 -0
- package/dist/tools/circle/bg-circle.js +72 -0
- package/dist/tools/circle/component.d.ts +83 -0
- package/dist/tools/circle/component.js +195 -0
- package/dist/tools/circle/index.d.ts +20 -0
- package/dist/tools/circle/index.js +22 -0
- package/dist/tools/exponential/component.d.ts +16 -0
- package/dist/tools/exponential/component.js +14 -0
- package/dist/tools/exponential/index.d.ts +20 -0
- package/dist/tools/exponential/index.js +32 -0
- package/dist/tools/index.d.ts +27 -0
- package/dist/tools/index.js +55 -0
- package/dist/tools/line/component.d.ts +124 -0
- package/dist/tools/line/component.js +72 -0
- package/dist/tools/line/index.d.ts +13 -0
- package/dist/tools/line/index.js +6 -0
- package/dist/tools/parabola/component.d.ts +16 -0
- package/dist/tools/parabola/component.js +14 -0
- package/dist/tools/parabola/index.d.ts +20 -0
- package/dist/tools/parabola/index.js +32 -0
- package/dist/tools/point/component.d.ts +50 -0
- package/dist/tools/point/component.js +85 -0
- package/dist/tools/point/index.d.ts +15 -0
- package/dist/tools/point/index.js +13 -0
- package/dist/tools/polygon/component.d.ts +120 -0
- package/dist/tools/polygon/component.js +262 -0
- package/dist/tools/polygon/index.d.ts +19 -0
- package/dist/tools/polygon/index.js +55 -0
- package/dist/tools/polygon/line.d.ts +125 -0
- package/dist/tools/polygon/line.js +63 -0
- package/dist/tools/polygon/polygon.d.ts +122 -0
- package/dist/tools/polygon/polygon.js +74 -0
- package/dist/tools/ray/component.d.ts +101 -0
- package/dist/tools/ray/component.js +71 -0
- package/dist/tools/ray/index.d.ts +13 -0
- package/dist/tools/ray/index.js +6 -0
- package/dist/tools/segment/component.d.ts +100 -0
- package/dist/tools/segment/component.js +52 -0
- package/dist/tools/segment/index.d.ts +13 -0
- package/dist/tools/segment/index.js +6 -0
- package/dist/tools/shared/arrow-head.d.ts +51 -0
- package/dist/tools/shared/arrow-head.js +63 -0
- package/dist/tools/shared/icons/CorrectSVG.d.ts +26 -0
- package/dist/tools/shared/icons/CorrectSVG.js +29 -0
- package/dist/tools/shared/icons/IncorrectSVG.d.ts +26 -0
- package/dist/tools/shared/icons/IncorrectSVG.js +27 -0
- package/dist/tools/shared/icons/MissingSVG.d.ts +26 -0
- package/dist/tools/shared/icons/MissingSVG.js +28 -0
- package/dist/tools/shared/line/index.d.ts +245 -0
- package/dist/tools/shared/line/index.js +319 -0
- package/dist/tools/shared/line/line-path.d.ts +57 -0
- package/dist/tools/shared/line/line-path.js +71 -0
- package/dist/tools/shared/line/with-root-edge.d.ts +142 -0
- package/dist/tools/shared/line/with-root-edge.js +73 -0
- package/dist/tools/shared/point/arrow-point.d.ts +56 -0
- package/dist/tools/shared/point/arrow-point.js +41 -0
- package/dist/tools/shared/point/arrow.d.ts +45 -0
- package/dist/tools/shared/point/arrow.js +35 -0
- package/dist/tools/shared/point/base-point.d.ts +52 -0
- package/dist/tools/shared/point/base-point.js +103 -0
- package/dist/tools/shared/point/index.d.ts +216 -0
- package/dist/tools/shared/point/index.js +45 -0
- package/dist/tools/shared/styles.d.ts +29 -0
- package/dist/tools/shared/styles.js +20 -0
- package/dist/tools/shared/types.d.ts +21 -0
- package/dist/tools/shared/types.js +11 -0
- package/dist/tools/sine/component.d.ts +16 -0
- package/dist/tools/sine/component.js +22 -0
- package/dist/tools/sine/index.d.ts +20 -0
- package/dist/tools/sine/index.js +32 -0
- package/dist/tools/vector/component.d.ts +100 -0
- package/dist/tools/vector/component.js +44 -0
- package/dist/tools/vector/index.d.ts +13 -0
- package/dist/tools/vector/index.js +6 -0
- package/dist/undo-redo.d.ts +22 -0
- package/dist/undo-redo.js +47 -0
- package/dist/use-debounce.d.ts +9 -0
- package/dist/use-debounce.js +13 -0
- package/dist/utils.d.ts +61 -0
- package/dist/utils.js +75 -0
- package/package.json +45 -33
- package/CHANGELOG.json +0 -1
- package/CHANGELOG.md +0 -1469
- package/LICENSE.md +0 -5
- package/lib/axis/arrow.js +0 -79
- package/lib/axis/arrow.js.map +0 -1
- package/lib/axis/axes.js +0 -329
- package/lib/axis/axes.js.map +0 -1
- package/lib/axis/index.js +0 -21
- package/lib/axis/index.js.map +0 -1
- package/lib/bg.js +0 -114
- package/lib/bg.js.map +0 -1
- package/lib/container/actions.js +0 -18
- package/lib/container/actions.js.map +0 -1
- package/lib/container/index.js +0 -118
- package/lib/container/index.js.map +0 -1
- package/lib/container/marks.js +0 -22
- package/lib/container/marks.js.map +0 -1
- package/lib/container/middleware.js +0 -19
- package/lib/container/middleware.js.map +0 -1
- package/lib/container/reducer.js +0 -18
- package/lib/container/reducer.js.map +0 -1
- package/lib/coordinates-label.js +0 -79
- package/lib/coordinates-label.js.map +0 -1
- package/lib/graph-with-controls.js +0 -294
- package/lib/graph-with-controls.js.map +0 -1
- package/lib/graph.js +0 -327
- package/lib/graph.js.map +0 -1
- package/lib/grid-setup.js +0 -414
- package/lib/grid-setup.js.map +0 -1
- package/lib/grid.js +0 -131
- package/lib/grid.js.map +0 -1
- package/lib/index.js +0 -47
- package/lib/index.js.map +0 -1
- package/lib/key-legend.js +0 -201
- package/lib/key-legend.js.map +0 -1
- package/lib/label-svg-icon.js +0 -50
- package/lib/label-svg-icon.js.map +0 -1
- package/lib/labels.js +0 -243
- package/lib/labels.js.map +0 -1
- package/lib/mark-label.js +0 -285
- package/lib/mark-label.js.map +0 -1
- package/lib/toggle-bar.js +0 -252
- package/lib/toggle-bar.js.map +0 -1
- package/lib/tool-menu.js +0 -78
- package/lib/tool-menu.js.map +0 -1
- package/lib/tools/absolute/component.js +0 -29
- package/lib/tools/absolute/component.js.map +0 -1
- package/lib/tools/absolute/index.js +0 -50
- package/lib/tools/absolute/index.js.map +0 -1
- package/lib/tools/circle/bg-circle.js +0 -123
- package/lib/tools/circle/bg-circle.js.map +0 -1
- package/lib/tools/circle/component.js +0 -321
- package/lib/tools/circle/component.js.map +0 -1
- package/lib/tools/circle/index.js +0 -41
- package/lib/tools/circle/index.js.map +0 -1
- package/lib/tools/exponential/component.js +0 -28
- package/lib/tools/exponential/component.js.map +0 -1
- package/lib/tools/exponential/index.js +0 -56
- package/lib/tools/exponential/index.js.map +0 -1
- package/lib/tools/index.js +0 -86
- package/lib/tools/index.js.map +0 -1
- package/lib/tools/line/component.js +0 -97
- package/lib/tools/line/component.js.map +0 -1
- package/lib/tools/line/index.js +0 -11
- package/lib/tools/line/index.js.map +0 -1
- package/lib/tools/parabola/component.js +0 -28
- package/lib/tools/parabola/component.js.map +0 -1
- package/lib/tools/parabola/index.js +0 -50
- package/lib/tools/parabola/index.js.map +0 -1
- package/lib/tools/point/component.js +0 -148
- package/lib/tools/point/component.js.map +0 -1
- package/lib/tools/point/index.js +0 -24
- package/lib/tools/point/index.js.map +0 -1
- package/lib/tools/polygon/component.js +0 -437
- package/lib/tools/polygon/component.js.map +0 -1
- package/lib/tools/polygon/index.js +0 -89
- package/lib/tools/polygon/index.js.map +0 -1
- package/lib/tools/polygon/line.js +0 -112
- package/lib/tools/polygon/line.js.map +0 -1
- package/lib/tools/polygon/polygon.js +0 -130
- package/lib/tools/polygon/polygon.js.map +0 -1
- package/lib/tools/ray/component.js +0 -95
- package/lib/tools/ray/component.js.map +0 -1
- package/lib/tools/ray/index.js +0 -11
- package/lib/tools/ray/index.js.map +0 -1
- package/lib/tools/segment/component.js +0 -71
- package/lib/tools/segment/component.js.map +0 -1
- package/lib/tools/segment/index.js +0 -11
- package/lib/tools/segment/index.js.map +0 -1
- package/lib/tools/shared/arrow-head.js +0 -111
- package/lib/tools/shared/arrow-head.js.map +0 -1
- package/lib/tools/shared/icons/CorrectSVG.js +0 -40
- package/lib/tools/shared/icons/CorrectSVG.js.map +0 -1
- package/lib/tools/shared/icons/IncorrectSVG.js +0 -40
- package/lib/tools/shared/icons/IncorrectSVG.js.map +0 -1
- package/lib/tools/shared/icons/MissingSVG.js +0 -39
- package/lib/tools/shared/icons/MissingSVG.js.map +0 -1
- package/lib/tools/shared/line/index.js +0 -550
- package/lib/tools/shared/line/index.js.map +0 -1
- package/lib/tools/shared/line/line-path.js +0 -118
- package/lib/tools/shared/line/line-path.js.map +0 -1
- package/lib/tools/shared/line/with-root-edge.js +0 -121
- package/lib/tools/shared/line/with-root-edge.js.map +0 -1
- package/lib/tools/shared/point/arrow-point.js +0 -72
- package/lib/tools/shared/point/arrow-point.js.map +0 -1
- package/lib/tools/shared/point/arrow.js +0 -67
- package/lib/tools/shared/point/arrow.js.map +0 -1
- package/lib/tools/shared/point/base-point.js +0 -157
- package/lib/tools/shared/point/base-point.js.map +0 -1
- package/lib/tools/shared/point/index.js +0 -68
- package/lib/tools/shared/point/index.js.map +0 -1
- package/lib/tools/shared/styles.js +0 -33
- package/lib/tools/shared/styles.js.map +0 -1
- package/lib/tools/shared/types.js +0 -16
- package/lib/tools/shared/types.js.map +0 -1
- package/lib/tools/sine/component.js +0 -40
- package/lib/tools/sine/component.js.map +0 -1
- package/lib/tools/sine/index.js +0 -50
- package/lib/tools/sine/index.js.map +0 -1
- package/lib/tools/vector/component.js +0 -68
- package/lib/tools/vector/component.js.map +0 -1
- package/lib/tools/vector/index.js +0 -11
- package/lib/tools/vector/index.js.map +0 -1
- package/lib/undo-redo.js +0 -86
- package/lib/undo-redo.js.map +0 -1
- package/lib/use-debounce.js +0 -25
- package/lib/use-debounce.js.map +0 -1
- package/lib/utils.js +0 -229
- package/lib/utils.js.map +0 -1
- package/src/__tests__/bg.test.jsx +0 -250
- package/src/__tests__/coordinates-label.test.jsx +0 -243
- package/src/__tests__/graph-with-controls.test.jsx +0 -198
- package/src/__tests__/graph.test.jsx +0 -721
- package/src/__tests__/grid-setup.test.jsx +0 -645
- package/src/__tests__/grid.test.jsx +0 -22
- package/src/__tests__/key-legend.test.jsx +0 -260
- package/src/__tests__/label-svg-icon.test.jsx +0 -278
- package/src/__tests__/labels.test.jsx +0 -55
- package/src/__tests__/mark-label.test.jsx +0 -63
- package/src/__tests__/toggle-bar.test.jsx +0 -146
- package/src/__tests__/tool-menu.test.jsx +0 -115
- package/src/__tests__/undo-redo.test.jsx +0 -24
- package/src/__tests__/use-debounce.test.js +0 -21
- package/src/__tests__/utils.js +0 -41
- package/src/__tests__/utils.test.js +0 -105
- package/src/axis/__tests__/arrow.test.jsx +0 -38
- package/src/axis/__tests__/axes.test.jsx +0 -216
- package/src/axis/arrow.jsx +0 -57
- package/src/axis/axes.jsx +0 -285
- package/src/axis/index.js +0 -3
- package/src/bg.jsx +0 -96
- package/src/container/__tests__/actions.test.js +0 -105
- package/src/container/__tests__/index.test.jsx +0 -319
- package/src/container/__tests__/marks.test.js +0 -172
- package/src/container/__tests__/middleware.test.js +0 -235
- package/src/container/__tests__/reducer.test.js +0 -324
- package/src/container/actions.js +0 -8
- package/src/container/index.jsx +0 -83
- package/src/container/marks.js +0 -14
- package/src/container/middleware.js +0 -7
- package/src/container/reducer.js +0 -5
- package/src/coordinates-label.jsx +0 -63
- package/src/graph-with-controls.jsx +0 -239
- package/src/graph.jsx +0 -303
- package/src/grid-setup.jsx +0 -432
- package/src/grid.jsx +0 -133
- package/src/index.js +0 -7
- package/src/key-legend.jsx +0 -142
- package/src/label-svg-icon.jsx +0 -39
- package/src/labels.jsx +0 -207
- package/src/mark-label.jsx +0 -244
- package/src/toggle-bar.jsx +0 -224
- package/src/tool-menu.jsx +0 -49
- package/src/tools/absolute/__tests__/component.test.jsx +0 -53
- package/src/tools/absolute/component.jsx +0 -23
- package/src/tools/absolute/index.js +0 -31
- package/src/tools/circle/__tests__/bg-circle.test.jsx +0 -26
- package/src/tools/circle/__tests__/component.test.jsx +0 -494
- package/src/tools/circle/__tests__/index.test.js +0 -480
- package/src/tools/circle/bg-circle.jsx +0 -81
- package/src/tools/circle/component.jsx +0 -264
- package/src/tools/circle/index.js +0 -25
- package/src/tools/exponential/__tests__/component.test.jsx +0 -53
- package/src/tools/exponential/__tests__/index.test.js +0 -729
- package/src/tools/exponential/component.jsx +0 -23
- package/src/tools/exponential/index.js +0 -39
- package/src/tools/index.js +0 -48
- package/src/tools/line/__tests__/component.test.jsx +0 -37
- package/src/tools/line/component.jsx +0 -93
- package/src/tools/line/index.js +0 -4
- package/src/tools/parabola/__tests__/component.test.jsx +0 -48
- package/src/tools/parabola/__tests__/index.test.js +0 -470
- package/src/tools/parabola/component.jsx +0 -23
- package/src/tools/parabola/index.js +0 -31
- package/src/tools/point/__tests__/component.test.jsx +0 -349
- package/src/tools/point/__tests__/index.test.js +0 -241
- package/src/tools/point/component.jsx +0 -126
- package/src/tools/point/index.js +0 -11
- package/src/tools/polygon/__tests__/component.test.jsx +0 -471
- package/src/tools/polygon/__tests__/index.test.js +0 -294
- package/src/tools/polygon/__tests__/line.test.jsx +0 -35
- package/src/tools/polygon/__tests__/polygon.test.jsx +0 -61
- package/src/tools/polygon/component.jsx +0 -409
- package/src/tools/polygon/index.js +0 -52
- package/src/tools/polygon/line.jsx +0 -74
- package/src/tools/polygon/polygon.jsx +0 -110
- package/src/tools/ray/__tests__/component.test.jsx +0 -29
- package/src/tools/ray/component.jsx +0 -92
- package/src/tools/ray/index.js +0 -4
- package/src/tools/segment/__tests__/component.test.jsx +0 -28
- package/src/tools/segment/component.jsx +0 -65
- package/src/tools/segment/index.js +0 -4
- package/src/tools/shared/__tests__/arrow-head.test.jsx +0 -31
- package/src/tools/shared/arrow-head.jsx +0 -102
- package/src/tools/shared/icons/CorrectSVG.jsx +0 -32
- package/src/tools/shared/icons/IncorrectSVG.jsx +0 -30
- package/src/tools/shared/icons/MissingSVG.jsx +0 -31
- package/src/tools/shared/line/__tests__/index.test.jsx +0 -109
- package/src/tools/shared/line/__tests__/line-path.test.jsx +0 -53
- package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +0 -73
- package/src/tools/shared/line/index.jsx +0 -487
- package/src/tools/shared/line/line-path.jsx +0 -80
- package/src/tools/shared/line/with-root-edge.jsx +0 -97
- package/src/tools/shared/point/__tests__/arrow-point.test.jsx +0 -91
- package/src/tools/shared/point/__tests__/base-point.test.jsx +0 -87
- package/src/tools/shared/point/arrow-point.jsx +0 -46
- package/src/tools/shared/point/arrow.jsx +0 -37
- package/src/tools/shared/point/base-point.jsx +0 -121
- package/src/tools/shared/point/index.jsx +0 -54
- package/src/tools/shared/styles.js +0 -27
- package/src/tools/shared/types.js +0 -10
- package/src/tools/sine/__tests__/component.test.jsx +0 -51
- package/src/tools/sine/component.jsx +0 -32
- package/src/tools/sine/index.js +0 -33
- package/src/tools/vector/__tests__/component.test.jsx +0 -25
- package/src/tools/vector/component.jsx +0 -56
- package/src/tools/vector/index.js +0 -4
- package/src/undo-redo.jsx +0 -45
- package/src/use-debounce.js +0 -13
- package/src/utils.js +0 -224
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import n from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
4
|
+
import r from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
5
|
+
import i from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js";
|
|
6
|
+
import { Point as a } from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
|
|
7
|
+
import { require_Line as o } from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js";
|
|
8
|
+
import s from "../utils/getScaleBandwidth.js";
|
|
9
|
+
import c from "react";
|
|
10
|
+
import l from "prop-types";
|
|
11
|
+
//#region ../../../node_modules/.bun/@visx+grid@3.12.0+f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js
|
|
12
|
+
var u = /* @__PURE__ */ e(t()), d = /* @__PURE__ */ e(o()), f = [
|
|
13
|
+
"top",
|
|
14
|
+
"left",
|
|
15
|
+
"scale",
|
|
16
|
+
"width",
|
|
17
|
+
"stroke",
|
|
18
|
+
"strokeWidth",
|
|
19
|
+
"strokeDasharray",
|
|
20
|
+
"className",
|
|
21
|
+
"children",
|
|
22
|
+
"numTicks",
|
|
23
|
+
"lineStyle",
|
|
24
|
+
"offset",
|
|
25
|
+
"tickValues"
|
|
26
|
+
];
|
|
27
|
+
function p() {
|
|
28
|
+
return p = Object.assign ? Object.assign.bind() : function(e) {
|
|
29
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
30
|
+
var n = arguments[t];
|
|
31
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
32
|
+
}
|
|
33
|
+
return e;
|
|
34
|
+
}, p.apply(this, arguments);
|
|
35
|
+
}
|
|
36
|
+
function m(e, t) {
|
|
37
|
+
if (e == null) return {};
|
|
38
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
39
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
40
|
+
return n;
|
|
41
|
+
}
|
|
42
|
+
function h(e) {
|
|
43
|
+
var t = e.top, o = t === void 0 ? 0 : t, l = e.left, h = l === void 0 ? 0 : l, g = e.scale, _ = e.width, v = e.stroke, y = v === void 0 ? "#eaf0f6" : v, b = e.strokeWidth, x = b === void 0 ? 1 : b, S = e.strokeDasharray, C = e.className, w = e.children, T = e.numTicks, E = T === void 0 ? 10 : T, D = e.lineStyle, O = e.offset, k = e.tickValues, A = m(e, f), j = k ?? i(g, E), M = (O ?? 0) + s(g) / 2, N = j.map(function(e, t) {
|
|
44
|
+
var n = (r(g(e)) ?? 0) + M;
|
|
45
|
+
return {
|
|
46
|
+
index: t,
|
|
47
|
+
from: new a({
|
|
48
|
+
x: 0,
|
|
49
|
+
y: n
|
|
50
|
+
}),
|
|
51
|
+
to: new a({
|
|
52
|
+
x: _,
|
|
53
|
+
y: n
|
|
54
|
+
})
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
return /*#__PURE__*/ c.createElement(n, {
|
|
58
|
+
className: (0, u.default)("visx-rows", C),
|
|
59
|
+
top: o,
|
|
60
|
+
left: h
|
|
61
|
+
}, w ? w({ lines: N }) : N.map(function(e) {
|
|
62
|
+
var t = e.from, n = e.to, r = e.index;
|
|
63
|
+
return /*#__PURE__*/ c.createElement(d.default, p({
|
|
64
|
+
key: "row-line-" + r,
|
|
65
|
+
from: t,
|
|
66
|
+
to: n,
|
|
67
|
+
stroke: y,
|
|
68
|
+
strokeWidth: x,
|
|
69
|
+
strokeDasharray: S,
|
|
70
|
+
style: D
|
|
71
|
+
}, A));
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
h.propTypes = {
|
|
75
|
+
tickValues: l.array,
|
|
76
|
+
width: l.number.isRequired
|
|
77
|
+
};
|
|
78
|
+
//#endregion
|
|
79
|
+
export { h as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import r from "prop-types";
|
|
5
|
+
//#region ../../../node_modules/.bun/@visx+group@3.12.0+f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js
|
|
6
|
+
var i = /* @__PURE__ */ e(t()), a = [
|
|
7
|
+
"top",
|
|
8
|
+
"left",
|
|
9
|
+
"transform",
|
|
10
|
+
"className",
|
|
11
|
+
"children",
|
|
12
|
+
"innerRef"
|
|
13
|
+
];
|
|
14
|
+
function o() {
|
|
15
|
+
return o = Object.assign ? Object.assign.bind() : function(e) {
|
|
16
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
17
|
+
var n = arguments[t];
|
|
18
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
19
|
+
}
|
|
20
|
+
return e;
|
|
21
|
+
}, o.apply(this, arguments);
|
|
22
|
+
}
|
|
23
|
+
function s(e, t) {
|
|
24
|
+
if (e == null) return {};
|
|
25
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
26
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
27
|
+
return n;
|
|
28
|
+
}
|
|
29
|
+
function c(e) {
|
|
30
|
+
var t = e.top, r = t === void 0 ? 0 : t, c = e.left, l = c === void 0 ? 0 : c, u = e.transform, d = e.className, f = e.children, p = e.innerRef, m = s(e, a);
|
|
31
|
+
return /*#__PURE__*/ n.createElement("g", o({
|
|
32
|
+
ref: p,
|
|
33
|
+
className: (0, i.default)("visx-group", d),
|
|
34
|
+
transform: u || "translate(" + l + ", " + r + ")"
|
|
35
|
+
}, m), f);
|
|
36
|
+
}
|
|
37
|
+
c.propTypes = {
|
|
38
|
+
top: r.number,
|
|
39
|
+
left: r.number,
|
|
40
|
+
transform: r.string,
|
|
41
|
+
className: r.string,
|
|
42
|
+
children: r.node,
|
|
43
|
+
innerRef: r.oneOfType([
|
|
44
|
+
r.string,
|
|
45
|
+
r.func,
|
|
46
|
+
r.object
|
|
47
|
+
])
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { c as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@visx+point@3.12.0/node_modules/@visx/point/esm/Point.js
|
|
2
|
+
var e = /*#__PURE__*/ function() {
|
|
3
|
+
function e(e) {
|
|
4
|
+
var t = e.x, n = t === void 0 ? 0 : t, r = e.y, i = r === void 0 ? 0 : r;
|
|
5
|
+
this.x = 0, this.y = 0, this.x = n, this.y = i;
|
|
6
|
+
}
|
|
7
|
+
var t = e.prototype;
|
|
8
|
+
return t.value = function() {
|
|
9
|
+
return {
|
|
10
|
+
x: this.x,
|
|
11
|
+
y: this.y
|
|
12
|
+
};
|
|
13
|
+
}, t.toArray = function() {
|
|
14
|
+
return [this.x, this.y];
|
|
15
|
+
}, e;
|
|
16
|
+
}();
|
|
17
|
+
//#endregion
|
|
18
|
+
export { e as Point };
|
package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
if ((typeof e == "function" || typeof e == "object" && e) && "valueOf" in e) {
|
|
4
|
+
var t = e.valueOf();
|
|
5
|
+
if (typeof t == "number") return t;
|
|
6
|
+
}
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { e as default };
|
package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
var n = e;
|
|
4
|
+
return "ticks" in n ? n.ticks(t) : n.domain().filter(function(e, n, r) {
|
|
5
|
+
return t == null || r.length <= t || n % Math.round((r.length - 1) / t) === 0;
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
//#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js
|
|
5
|
+
var r = /* @__PURE__ */ e(t()), i = [
|
|
6
|
+
"from",
|
|
7
|
+
"to",
|
|
8
|
+
"fill",
|
|
9
|
+
"className",
|
|
10
|
+
"innerRef"
|
|
11
|
+
];
|
|
12
|
+
function a() {
|
|
13
|
+
return a = Object.assign ? Object.assign.bind() : function(e) {
|
|
14
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
15
|
+
var n = arguments[t];
|
|
16
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
17
|
+
}
|
|
18
|
+
return e;
|
|
19
|
+
}, a.apply(this, arguments);
|
|
20
|
+
}
|
|
21
|
+
function o(e, t) {
|
|
22
|
+
if (e == null) return {};
|
|
23
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
24
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
25
|
+
return n;
|
|
26
|
+
}
|
|
27
|
+
function s(e) {
|
|
28
|
+
var t = e.from, s = t === void 0 ? {
|
|
29
|
+
x: 0,
|
|
30
|
+
y: 0
|
|
31
|
+
} : t, c = e.to, l = c === void 0 ? {
|
|
32
|
+
x: 1,
|
|
33
|
+
y: 1
|
|
34
|
+
} : c, u = e.fill, d = u === void 0 ? "transparent" : u, f = e.className, p = e.innerRef, m = o(e, i), h = s.x === l.x || s.y === l.y;
|
|
35
|
+
return /*#__PURE__*/ n.createElement("line", a({
|
|
36
|
+
ref: p,
|
|
37
|
+
className: (0, r.default)("visx-line", f),
|
|
38
|
+
x1: s.x,
|
|
39
|
+
y1: s.y,
|
|
40
|
+
x2: l.x,
|
|
41
|
+
y2: l.y,
|
|
42
|
+
fill: d,
|
|
43
|
+
shapeRendering: h ? "crispEdges" : "auto"
|
|
44
|
+
}, m));
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { s as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import { line as n } from "../util/D3ShapeFactories.js";
|
|
4
|
+
import r from "react";
|
|
5
|
+
//#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js
|
|
6
|
+
var i = /* @__PURE__ */ e(t()), a = [
|
|
7
|
+
"children",
|
|
8
|
+
"data",
|
|
9
|
+
"x",
|
|
10
|
+
"y",
|
|
11
|
+
"fill",
|
|
12
|
+
"className",
|
|
13
|
+
"curve",
|
|
14
|
+
"innerRef",
|
|
15
|
+
"defined"
|
|
16
|
+
];
|
|
17
|
+
function o() {
|
|
18
|
+
return o = Object.assign ? Object.assign.bind() : function(e) {
|
|
19
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
20
|
+
var n = arguments[t];
|
|
21
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
22
|
+
}
|
|
23
|
+
return e;
|
|
24
|
+
}, o.apply(this, arguments);
|
|
25
|
+
}
|
|
26
|
+
function s(e, t) {
|
|
27
|
+
if (e == null) return {};
|
|
28
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
29
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
30
|
+
return n;
|
|
31
|
+
}
|
|
32
|
+
function c(e) {
|
|
33
|
+
var t = e.children, c = e.data, l = c === void 0 ? [] : c, u = e.x, d = e.y, f = e.fill, p = f === void 0 ? "transparent" : f, m = e.className, h = e.curve, g = e.innerRef, _ = e.defined, v = _ === void 0 ? function() {
|
|
34
|
+
return !0;
|
|
35
|
+
} : _, y = s(e, a), b = n({
|
|
36
|
+
x: u,
|
|
37
|
+
y: d,
|
|
38
|
+
defined: v,
|
|
39
|
+
curve: h
|
|
40
|
+
});
|
|
41
|
+
return t ? /*#__PURE__*/ r.createElement(r.Fragment, null, t({ path: b })) : /*#__PURE__*/ r.createElement("path", o({
|
|
42
|
+
ref: g,
|
|
43
|
+
className: (0, i.default)("visx-linepath", m),
|
|
44
|
+
d: b(l) || "",
|
|
45
|
+
fill: p,
|
|
46
|
+
strokeLinecap: "round"
|
|
47
|
+
}, y));
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { c as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./setNumberOrNumberAccessor.js";
|
|
2
|
+
import { line as t } from "d3-shape";
|
|
3
|
+
//#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js
|
|
4
|
+
function n(n) {
|
|
5
|
+
var r = n === void 0 ? {} : n, i = r.x, a = r.y, o = r.defined, s = r.curve, c = t();
|
|
6
|
+
return i && e(c.x, i), a && e(c.y, a), o && c.defined(o), s && c.curve(s), c;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as line };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { __commonJSMin as e, __require as t } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as n } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js
|
|
4
|
+
var r = /* @__PURE__ */ e(((e) => {
|
|
5
|
+
e.__esModule = !0, e.default = l;
|
|
6
|
+
var r = o(t("react")), i = o(n()), a = [
|
|
7
|
+
"from",
|
|
8
|
+
"to",
|
|
9
|
+
"fill",
|
|
10
|
+
"className",
|
|
11
|
+
"innerRef"
|
|
12
|
+
];
|
|
13
|
+
function o(e) {
|
|
14
|
+
return e && e.__esModule ? e : { default: e };
|
|
15
|
+
}
|
|
16
|
+
function s() {
|
|
17
|
+
return s = Object.assign ? Object.assign.bind() : function(e) {
|
|
18
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
19
|
+
var n = arguments[t];
|
|
20
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
21
|
+
}
|
|
22
|
+
return e;
|
|
23
|
+
}, s.apply(this, arguments);
|
|
24
|
+
}
|
|
25
|
+
function c(e, t) {
|
|
26
|
+
if (e == null) return {};
|
|
27
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
28
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
function l(e) {
|
|
32
|
+
var t = e.from, n = t === void 0 ? {
|
|
33
|
+
x: 0,
|
|
34
|
+
y: 0
|
|
35
|
+
} : t, o = e.to, l = o === void 0 ? {
|
|
36
|
+
x: 1,
|
|
37
|
+
y: 1
|
|
38
|
+
} : o, u = e.fill, d = u === void 0 ? "transparent" : u, f = e.className, p = e.innerRef, m = c(e, a), h = n.x === l.x || n.y === l.y;
|
|
39
|
+
return /*#__PURE__*/ r.default.createElement("line", s({
|
|
40
|
+
ref: p,
|
|
41
|
+
className: (0, i.default)("visx-line", f),
|
|
42
|
+
x1: n.x,
|
|
43
|
+
y1: n.y,
|
|
44
|
+
x2: l.x,
|
|
45
|
+
y2: l.y,
|
|
46
|
+
fill: d,
|
|
47
|
+
shapeRendering: h ? "crispEdges" : "auto"
|
|
48
|
+
}, m));
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
//#endregion
|
|
52
|
+
export default r();
|
|
53
|
+
export { r as require_Line };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import e from "./hooks/useText.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
//#region ../../../node_modules/.bun/@visx+text@3.12.0+f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js
|
|
4
|
+
var n = [
|
|
5
|
+
"dx",
|
|
6
|
+
"dy",
|
|
7
|
+
"textAnchor",
|
|
8
|
+
"innerRef",
|
|
9
|
+
"innerTextRef",
|
|
10
|
+
"verticalAnchor",
|
|
11
|
+
"angle",
|
|
12
|
+
"lineHeight",
|
|
13
|
+
"scaleToFit",
|
|
14
|
+
"capHeight",
|
|
15
|
+
"width"
|
|
16
|
+
];
|
|
17
|
+
function r() {
|
|
18
|
+
return r = Object.assign ? Object.assign.bind() : function(e) {
|
|
19
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
20
|
+
var n = arguments[t];
|
|
21
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
22
|
+
}
|
|
23
|
+
return e;
|
|
24
|
+
}, r.apply(this, arguments);
|
|
25
|
+
}
|
|
26
|
+
function i(e, t) {
|
|
27
|
+
if (e == null) return {};
|
|
28
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
29
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
30
|
+
return n;
|
|
31
|
+
}
|
|
32
|
+
var a = { overflow: "visible" };
|
|
33
|
+
function o(o) {
|
|
34
|
+
var s = o.dx, c = s === void 0 ? 0 : s, l = o.dy, u = l === void 0 ? 0 : l, d = o.textAnchor, f = d === void 0 ? "start" : d, p = o.innerRef, m = o.innerTextRef;
|
|
35
|
+
o.verticalAnchor, o.angle;
|
|
36
|
+
var h = o.lineHeight, g = h === void 0 ? "1em" : h;
|
|
37
|
+
o.scaleToFit, o.capHeight, o.width;
|
|
38
|
+
var _ = i(o, n), v = _.x, y = v === void 0 ? 0 : v, b = _.fontSize, x = e(o), S = x.wordsByLines, C = x.startDy, w = x.transform;
|
|
39
|
+
return /*#__PURE__*/ t.createElement("svg", {
|
|
40
|
+
ref: p,
|
|
41
|
+
x: c,
|
|
42
|
+
y: u,
|
|
43
|
+
fontSize: b,
|
|
44
|
+
style: a
|
|
45
|
+
}, S.length > 0 ? /*#__PURE__*/ t.createElement("text", r({
|
|
46
|
+
ref: m,
|
|
47
|
+
transform: w
|
|
48
|
+
}, _, { textAnchor: f }), S.map(function(e, n) {
|
|
49
|
+
return /*#__PURE__*/ t.createElement("tspan", {
|
|
50
|
+
key: n,
|
|
51
|
+
x: y,
|
|
52
|
+
dy: n === 0 ? C : g
|
|
53
|
+
}, e.words.join(" "));
|
|
54
|
+
})) : null);
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { o as default };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_reduce_css_calc as t } from "../../../../../../reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js";
|
|
3
|
+
import n from "../util/getStringWidth.js";
|
|
4
|
+
import { useMemo as r } from "react";
|
|
5
|
+
//#region ../../../node_modules/.bun/@visx+text@3.12.0+f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js
|
|
6
|
+
var i = /* @__PURE__ */ e(t()), a = [
|
|
7
|
+
"verticalAnchor",
|
|
8
|
+
"scaleToFit",
|
|
9
|
+
"angle",
|
|
10
|
+
"width",
|
|
11
|
+
"lineHeight",
|
|
12
|
+
"capHeight",
|
|
13
|
+
"children",
|
|
14
|
+
"style"
|
|
15
|
+
];
|
|
16
|
+
function o(e, t) {
|
|
17
|
+
if (e == null) return {};
|
|
18
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
19
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
20
|
+
return n;
|
|
21
|
+
}
|
|
22
|
+
function s(e) {
|
|
23
|
+
return typeof e == "number";
|
|
24
|
+
}
|
|
25
|
+
function c(e) {
|
|
26
|
+
return typeof e == "number" && Number.isFinite(e) || typeof e == "string";
|
|
27
|
+
}
|
|
28
|
+
function l(e) {
|
|
29
|
+
var t = e.verticalAnchor, l = t === void 0 ? "end" : t, u = e.scaleToFit, d = u === void 0 ? !1 : u, f = e.angle, p = e.width, m = e.lineHeight, h = m === void 0 ? "1em" : m, g = e.capHeight, _ = g === void 0 ? "0.71em" : g, v = e.children, y = e.style, b = o(e, a), x = b.x, S = x === void 0 ? 0 : x, C = b.y, w = C === void 0 ? 0 : C, T = !c(S) || !c(w), E = r(function() {
|
|
30
|
+
return {
|
|
31
|
+
wordsWithWidth: (v == null ? [] : v.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e) {
|
|
32
|
+
return {
|
|
33
|
+
word: e,
|
|
34
|
+
wordWidth: n(e, y) || 0
|
|
35
|
+
};
|
|
36
|
+
}),
|
|
37
|
+
spaceWidth: n("\xA0", y) || 0
|
|
38
|
+
};
|
|
39
|
+
}, [v, y]), D = E.wordsWithWidth, O = E.spaceWidth, k = r(function() {
|
|
40
|
+
return T ? [] : p || d ? D.reduce(function(e, t) {
|
|
41
|
+
var n = t.word, r = t.wordWidth, i = e[e.length - 1];
|
|
42
|
+
if (i && (p == null || d || (i.width || 0) + r + O < p)) i.words.push(n), i.width = i.width || 0, i.width += r + O;
|
|
43
|
+
else {
|
|
44
|
+
var a = {
|
|
45
|
+
words: [n],
|
|
46
|
+
width: r
|
|
47
|
+
};
|
|
48
|
+
e.push(a);
|
|
49
|
+
}
|
|
50
|
+
return e;
|
|
51
|
+
}, []) : [{ words: v == null ? [] : v.toString().split(/(?:(?!\u00A0+)\s+)/) }];
|
|
52
|
+
}, [
|
|
53
|
+
T,
|
|
54
|
+
p,
|
|
55
|
+
d,
|
|
56
|
+
v,
|
|
57
|
+
D,
|
|
58
|
+
O
|
|
59
|
+
]);
|
|
60
|
+
return {
|
|
61
|
+
wordsByLines: k,
|
|
62
|
+
startDy: r(function() {
|
|
63
|
+
return T ? "" : l === "start" ? (0, i.default)("calc(" + _ + ")") : l === "middle" ? (0, i.default)("calc(" + (k.length - 1) / 2 + " * -" + h + " + (" + _ + " / 2))") : (0, i.default)("calc(" + (k.length - 1) + " * -" + h + ")");
|
|
64
|
+
}, [
|
|
65
|
+
T,
|
|
66
|
+
l,
|
|
67
|
+
_,
|
|
68
|
+
k.length,
|
|
69
|
+
h
|
|
70
|
+
]),
|
|
71
|
+
transform: r(function() {
|
|
72
|
+
var e = [];
|
|
73
|
+
if (T) return "";
|
|
74
|
+
if (s(S) && s(w) && s(p) && d && k.length > 0) {
|
|
75
|
+
var t = k[0].width || 1, n = d === "shrink-only" ? Math.min(p / t, 1) : p / t, r = n, i = S - n * S, a = w - r * w;
|
|
76
|
+
e.push("matrix(" + n + ", 0, 0, " + r + ", " + i + ", " + a + ")");
|
|
77
|
+
}
|
|
78
|
+
return f && e.push("rotate(" + f + ", " + S + ", " + w + ")"), e.length > 0 ? e.join(" ") : "";
|
|
79
|
+
}, [
|
|
80
|
+
T,
|
|
81
|
+
S,
|
|
82
|
+
w,
|
|
83
|
+
p,
|
|
84
|
+
d,
|
|
85
|
+
k,
|
|
86
|
+
f
|
|
87
|
+
])
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
export { l as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_memoize as t } from "../../../../../../lodash@4.17.21/node_modules/lodash/memoize.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/@visx+text@3.12.0+f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js
|
|
4
|
+
var n = /* @__PURE__ */ e(t()), r = "__react_svg_text_measurement_id";
|
|
5
|
+
function i(e, t) {
|
|
6
|
+
try {
|
|
7
|
+
var n = document.getElementById(r);
|
|
8
|
+
if (!n) {
|
|
9
|
+
var i = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
10
|
+
i.setAttribute("aria-hidden", "true"), i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i.style.top = "-100%", i.style.left = "-100%", n = document.createElementNS("http://www.w3.org/2000/svg", "text"), n.setAttribute("id", r), i.appendChild(n), document.body.appendChild(i);
|
|
11
|
+
}
|
|
12
|
+
return Object.assign(n.style, t), n.textContent = e, n.getComputedTextLength();
|
|
13
|
+
} catch {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
var a = (0, n.default)(i, function(e, t) {
|
|
18
|
+
return e + "_" + JSON.stringify(t);
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { a as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
t.exports = n;
|
|
5
|
+
function n(e, t, n) {
|
|
6
|
+
e instanceof RegExp && (e = r(e, n)), t instanceof RegExp && (t = r(t, n));
|
|
7
|
+
var a = i(e, t, n);
|
|
8
|
+
return a && {
|
|
9
|
+
start: a[0],
|
|
10
|
+
end: a[1],
|
|
11
|
+
pre: n.slice(0, a[0]),
|
|
12
|
+
body: n.slice(a[0] + e.length, a[1]),
|
|
13
|
+
post: n.slice(a[1] + t.length)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function r(e, t) {
|
|
17
|
+
var n = t.match(e);
|
|
18
|
+
return n ? n[0] : null;
|
|
19
|
+
}
|
|
20
|
+
n.range = i;
|
|
21
|
+
function i(e, t, n) {
|
|
22
|
+
var r, i, a, o, s, c = n.indexOf(e), l = n.indexOf(t, c + 1), u = c;
|
|
23
|
+
if (c >= 0 && l > 0) {
|
|
24
|
+
for (r = [], a = n.length; u >= 0 && !s;) u == c ? (r.push(u), c = n.indexOf(e, u + 1)) : r.length == 1 ? s = [r.pop(), l] : (i = r.pop(), i < a && (a = i, o = l), l = n.indexOf(t, u + 1)), u = c < l && c >= 0 ? c : l;
|
|
25
|
+
r.length && (s = [a, o]);
|
|
26
|
+
}
|
|
27
|
+
return s;
|
|
28
|
+
}
|
|
29
|
+
}));
|
|
30
|
+
//#endregion
|
|
31
|
+
export default t();
|
|
32
|
+
export { t as require_balanced_match };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
t.exports = n;
|
|
5
|
+
function n(e, t, n) {
|
|
6
|
+
e instanceof RegExp && (e = r(e, n)), t instanceof RegExp && (t = r(t, n));
|
|
7
|
+
var a = i(e, t, n);
|
|
8
|
+
return a && {
|
|
9
|
+
start: a[0],
|
|
10
|
+
end: a[1],
|
|
11
|
+
pre: n.slice(0, a[0]),
|
|
12
|
+
body: n.slice(a[0] + e.length, a[1]),
|
|
13
|
+
post: n.slice(a[1] + t.length)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function r(e, t) {
|
|
17
|
+
var n = t.match(e);
|
|
18
|
+
return n ? n[0] : null;
|
|
19
|
+
}
|
|
20
|
+
n.range = i;
|
|
21
|
+
function i(e, t, n) {
|
|
22
|
+
var r, i, a, o, s, c = n.indexOf(e), l = n.indexOf(t, c + 1), u = c;
|
|
23
|
+
if (c >= 0 && l > 0) {
|
|
24
|
+
if (e === t) return [c, l];
|
|
25
|
+
for (r = [], a = n.length; u >= 0 && !s;) u == c ? (r.push(u), c = n.indexOf(e, u + 1)) : r.length == 1 ? s = [r.pop(), l] : (i = r.pop(), i < a && (a = i, o = l), l = n.indexOf(t, u + 1)), u = c < l && c >= 0 ? c : l;
|
|
26
|
+
r.length && (s = [a, o]);
|
|
27
|
+
}
|
|
28
|
+
return s;
|
|
29
|
+
}
|
|
30
|
+
}));
|
|
31
|
+
//#endregion
|
|
32
|
+
export default t();
|
|
33
|
+
export { t as require_balanced_match };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
(function() {
|
|
5
|
+
var e = {}.hasOwnProperty;
|
|
6
|
+
function n() {
|
|
7
|
+
for (var e = "", t = 0; t < arguments.length; t++) {
|
|
8
|
+
var n = arguments[t];
|
|
9
|
+
n && (e = i(e, r(n)));
|
|
10
|
+
}
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
function r(t) {
|
|
14
|
+
if (typeof t == "string" || typeof t == "number") return t;
|
|
15
|
+
if (typeof t != "object") return "";
|
|
16
|
+
if (Array.isArray(t)) return n.apply(null, t);
|
|
17
|
+
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) return t.toString();
|
|
18
|
+
var r = "";
|
|
19
|
+
for (var a in t) e.call(t, a) && t[a] && (r = i(r, a));
|
|
20
|
+
return r;
|
|
21
|
+
}
|
|
22
|
+
function i(e, t) {
|
|
23
|
+
return t ? e ? e + " " + t : e + t : e;
|
|
24
|
+
}
|
|
25
|
+
t !== void 0 && t.exports ? (n.default = n, t.exports = n) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
|
|
26
|
+
return n;
|
|
27
|
+
}) : window.classNames = n;
|
|
28
|
+
})();
|
|
29
|
+
}));
|
|
30
|
+
//#endregion
|
|
31
|
+
export default t();
|
|
32
|
+
export { t as require_classnames };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
2
|
+
function e(t) {
|
|
3
|
+
var n, r, i = "";
|
|
4
|
+
if (typeof t == "string" || typeof t == "number") i += t;
|
|
5
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
6
|
+
var a = t.length;
|
|
7
|
+
for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
|
|
8
|
+
} else for (r in t) t[r] && (i && (i += " "), i += r);
|
|
9
|
+
return i;
|
|
10
|
+
}
|
|
11
|
+
function t() {
|
|
12
|
+
for (var t, n, r = 0, i = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += " "), i += n);
|
|
13
|
+
return i;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as default };
|