@pie-lib/graphing 4.0.4 → 4.0.5-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +23 -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 +26 -0
- package/dist/container/index.js +50 -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 +12 -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 +172 -0
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +7 -0
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +100 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +61 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +42 -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 +78 -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 +49 -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 +46 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +49 -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 +52 -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/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +68 -0
- package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +28 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +21 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +21 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +10 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +21 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +9 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +14 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +15 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +16 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +9 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +8 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +14 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +15 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +19 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +11 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +13 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +12 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +18 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +14 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +12 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +16 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +11 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +14 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +13 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +19 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +14 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +13 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +13 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +9 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +12 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +10 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +20 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +11 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +16 -0
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +12 -0
- package/dist/node_modules/.bun/lodash@4.18.1/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-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js +216 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +82 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +62 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Context.js +5 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Provider.js +47 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/connectAdvanced.js +95 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/connect.js +52 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapDispatchToProps.js +23 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapStateToProps.js +13 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mergeProps.js +26 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/selectorFactory.js +41 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/verifySubselectors.js +11 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/wrapMapToProps.js +28 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/index.js +4 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/isPlainObject.js +10 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/shallowEqual.js +15 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/verifyPlainObject.js +8 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/warning.js +9 -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@4.2.1/node_modules/redux/es/redux.js +225 -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 +117 -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 +35 -25
- 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,225 @@
|
|
|
1
|
+
import { _objectSpread2 as e } from "../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/redux@4.2.1/node_modules/redux/es/redux.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
return "Minified Redux error #" + e + "; visit https://redux.js.org/Errors?code=" + e + " for the full message or use the non-minified dev environment for full errors. ";
|
|
5
|
+
}
|
|
6
|
+
var n = (function() {
|
|
7
|
+
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
8
|
+
})(), r = function() {
|
|
9
|
+
return Math.random().toString(36).substring(7).split("").join(".");
|
|
10
|
+
}, i = {
|
|
11
|
+
INIT: "@@redux/INIT" + r(),
|
|
12
|
+
REPLACE: "@@redux/REPLACE" + r(),
|
|
13
|
+
PROBE_UNKNOWN_ACTION: function() {
|
|
14
|
+
return "@@redux/PROBE_UNKNOWN_ACTION" + r();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
function a(e) {
|
|
18
|
+
if (typeof e != "object" || !e) return !1;
|
|
19
|
+
for (var t = e; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
|
|
20
|
+
return Object.getPrototypeOf(e) === t;
|
|
21
|
+
}
|
|
22
|
+
function o(e) {
|
|
23
|
+
if (e === void 0) return "undefined";
|
|
24
|
+
if (e === null) return "null";
|
|
25
|
+
var t = typeof e;
|
|
26
|
+
switch (t) {
|
|
27
|
+
case "boolean":
|
|
28
|
+
case "string":
|
|
29
|
+
case "number":
|
|
30
|
+
case "symbol":
|
|
31
|
+
case "function": return t;
|
|
32
|
+
}
|
|
33
|
+
if (Array.isArray(e)) return "array";
|
|
34
|
+
if (l(e)) return "date";
|
|
35
|
+
if (c(e)) return "error";
|
|
36
|
+
var n = s(e);
|
|
37
|
+
switch (n) {
|
|
38
|
+
case "Symbol":
|
|
39
|
+
case "Promise":
|
|
40
|
+
case "WeakMap":
|
|
41
|
+
case "WeakSet":
|
|
42
|
+
case "Map":
|
|
43
|
+
case "Set": return n;
|
|
44
|
+
}
|
|
45
|
+
return t.slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
46
|
+
}
|
|
47
|
+
function s(e) {
|
|
48
|
+
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
49
|
+
}
|
|
50
|
+
function c(e) {
|
|
51
|
+
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
52
|
+
}
|
|
53
|
+
function l(e) {
|
|
54
|
+
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
55
|
+
}
|
|
56
|
+
function u(e) {
|
|
57
|
+
var t = typeof e;
|
|
58
|
+
return process.env.NODE_ENV !== "production" && (t = o(e)), t;
|
|
59
|
+
}
|
|
60
|
+
function d(e, r, o) {
|
|
61
|
+
var s;
|
|
62
|
+
if (typeof r == "function" && typeof o == "function" || typeof o == "function" && typeof arguments[3] == "function") throw Error(process.env.NODE_ENV === "production" ? t(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
63
|
+
if (typeof r == "function" && o === void 0 && (o = r, r = void 0), o !== void 0) {
|
|
64
|
+
if (typeof o != "function") throw Error(process.env.NODE_ENV === "production" ? t(1) : "Expected the enhancer to be a function. Instead, received: '" + u(o) + "'");
|
|
65
|
+
return o(d)(e, r);
|
|
66
|
+
}
|
|
67
|
+
if (typeof e != "function") throw Error(process.env.NODE_ENV === "production" ? t(2) : "Expected the root reducer to be a function. Instead, received: '" + u(e) + "'");
|
|
68
|
+
var c = e, l = r, f = [], p = f, m = !1;
|
|
69
|
+
function h() {
|
|
70
|
+
p === f && (p = f.slice());
|
|
71
|
+
}
|
|
72
|
+
function g() {
|
|
73
|
+
if (m) throw Error(process.env.NODE_ENV === "production" ? t(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
74
|
+
return l;
|
|
75
|
+
}
|
|
76
|
+
function _(e) {
|
|
77
|
+
if (typeof e != "function") throw Error(process.env.NODE_ENV === "production" ? t(4) : "Expected the listener to be a function. Instead, received: '" + u(e) + "'");
|
|
78
|
+
if (m) throw Error(process.env.NODE_ENV === "production" ? t(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
79
|
+
var n = !0;
|
|
80
|
+
return h(), p.push(e), function() {
|
|
81
|
+
if (n) {
|
|
82
|
+
if (m) throw Error(process.env.NODE_ENV === "production" ? t(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
83
|
+
n = !1, h();
|
|
84
|
+
var r = p.indexOf(e);
|
|
85
|
+
p.splice(r, 1), f = null;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function v(e) {
|
|
90
|
+
if (!a(e)) throw Error(process.env.NODE_ENV === "production" ? t(7) : "Actions must be plain objects. Instead, the actual type was: '" + u(e) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
91
|
+
if (e.type === void 0) throw Error(process.env.NODE_ENV === "production" ? t(8) : "Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.");
|
|
92
|
+
if (m) throw Error(process.env.NODE_ENV === "production" ? t(9) : "Reducers may not dispatch actions.");
|
|
93
|
+
try {
|
|
94
|
+
m = !0, l = c(l, e);
|
|
95
|
+
} finally {
|
|
96
|
+
m = !1;
|
|
97
|
+
}
|
|
98
|
+
for (var n = f = p, r = 0; r < n.length; r++) {
|
|
99
|
+
var i = n[r];
|
|
100
|
+
i();
|
|
101
|
+
}
|
|
102
|
+
return e;
|
|
103
|
+
}
|
|
104
|
+
function y(e) {
|
|
105
|
+
if (typeof e != "function") throw Error(process.env.NODE_ENV === "production" ? t(10) : "Expected the nextReducer to be a function. Instead, received: '" + u(e));
|
|
106
|
+
c = e, v({ type: i.REPLACE });
|
|
107
|
+
}
|
|
108
|
+
function b() {
|
|
109
|
+
var e, r = _;
|
|
110
|
+
return e = { subscribe: function(e) {
|
|
111
|
+
if (typeof e != "object" || !e) throw Error(process.env.NODE_ENV === "production" ? t(11) : "Expected the observer to be an object. Instead, received: '" + u(e) + "'");
|
|
112
|
+
function n() {
|
|
113
|
+
e.next && e.next(g());
|
|
114
|
+
}
|
|
115
|
+
return n(), { unsubscribe: r(n) };
|
|
116
|
+
} }, e[n] = function() {
|
|
117
|
+
return this;
|
|
118
|
+
}, e;
|
|
119
|
+
}
|
|
120
|
+
return v({ type: i.INIT }), s = {
|
|
121
|
+
dispatch: v,
|
|
122
|
+
subscribe: _,
|
|
123
|
+
getState: g,
|
|
124
|
+
replaceReducer: y
|
|
125
|
+
}, s[n] = b, s;
|
|
126
|
+
}
|
|
127
|
+
function f(e) {
|
|
128
|
+
typeof console < "u" && typeof console.error == "function" && console.error(e);
|
|
129
|
+
try {
|
|
130
|
+
throw Error(e);
|
|
131
|
+
} catch {}
|
|
132
|
+
}
|
|
133
|
+
function p(e, t, n, r) {
|
|
134
|
+
var o = Object.keys(t), s = n && n.type === i.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
135
|
+
if (o.length === 0) return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
136
|
+
if (!a(e)) return "The " + s + " has unexpected type of \"" + u(e) + "\". Expected argument to be an object with the following " + ("keys: \"" + o.join("\", \"") + "\"");
|
|
137
|
+
var c = Object.keys(e).filter(function(e) {
|
|
138
|
+
return !t.hasOwnProperty(e) && !r[e];
|
|
139
|
+
});
|
|
140
|
+
if (c.forEach(function(e) {
|
|
141
|
+
r[e] = !0;
|
|
142
|
+
}), !(n && n.type === i.REPLACE) && c.length > 0) return "Unexpected " + (c.length > 1 ? "keys" : "key") + " " + ("\"" + c.join("\", \"") + "\" found in " + s + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + o.join("\", \"") + "\". Unexpected keys will be ignored.");
|
|
143
|
+
}
|
|
144
|
+
function m(e) {
|
|
145
|
+
Object.keys(e).forEach(function(n) {
|
|
146
|
+
var r = e[n];
|
|
147
|
+
if (r(void 0, { type: i.INIT }) === void 0) throw Error(process.env.NODE_ENV === "production" ? t(12) : "The slice reducer for key \"" + n + "\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");
|
|
148
|
+
if (r(void 0, { type: i.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(process.env.NODE_ENV === "production" ? t(13) : "The slice reducer for key \"" + n + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + i.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.");
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function h(e) {
|
|
152
|
+
for (var n = Object.keys(e), r = {}, i = 0; i < n.length; i++) {
|
|
153
|
+
var a = n[i];
|
|
154
|
+
process.env.NODE_ENV !== "production" && e[a] === void 0 && f("No reducer provided for key \"" + a + "\""), typeof e[a] == "function" && (r[a] = e[a]);
|
|
155
|
+
}
|
|
156
|
+
var o = Object.keys(r), s;
|
|
157
|
+
process.env.NODE_ENV !== "production" && (s = {});
|
|
158
|
+
var c;
|
|
159
|
+
try {
|
|
160
|
+
m(r);
|
|
161
|
+
} catch (e) {
|
|
162
|
+
c = e;
|
|
163
|
+
}
|
|
164
|
+
return function(e, n) {
|
|
165
|
+
if (e === void 0 && (e = {}), c) throw c;
|
|
166
|
+
if (process.env.NODE_ENV !== "production") {
|
|
167
|
+
var i = p(e, r, n, s);
|
|
168
|
+
i && f(i);
|
|
169
|
+
}
|
|
170
|
+
for (var a = !1, l = {}, u = 0; u < o.length; u++) {
|
|
171
|
+
var d = o[u], m = r[d], h = e[d], g = m(h, n);
|
|
172
|
+
if (g === void 0) {
|
|
173
|
+
var _ = n && n.type;
|
|
174
|
+
throw Error(process.env.NODE_ENV === "production" ? t(14) : "When called with an action of type " + (_ ? "\"" + String(_) + "\"" : "(unknown type)") + ", the slice reducer for key \"" + d + "\" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.");
|
|
175
|
+
}
|
|
176
|
+
l[d] = g, a ||= g !== h;
|
|
177
|
+
}
|
|
178
|
+
return a ||= o.length !== Object.keys(e).length, a ? l : e;
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
function g(e, t) {
|
|
182
|
+
return function() {
|
|
183
|
+
return t(e.apply(this, arguments));
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
function _(e, n) {
|
|
187
|
+
if (typeof e == "function") return g(e, n);
|
|
188
|
+
if (typeof e != "object" || !e) throw Error(process.env.NODE_ENV === "production" ? t(16) : "bindActionCreators expected an object or a function, but instead received: '" + u(e) + "'. Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
|
|
189
|
+
var r = {};
|
|
190
|
+
for (var i in e) {
|
|
191
|
+
var a = e[i];
|
|
192
|
+
typeof a == "function" && (r[i] = g(a, n));
|
|
193
|
+
}
|
|
194
|
+
return r;
|
|
195
|
+
}
|
|
196
|
+
function v() {
|
|
197
|
+
var e = [...arguments];
|
|
198
|
+
return e.length === 0 ? function(e) {
|
|
199
|
+
return e;
|
|
200
|
+
} : e.length === 1 ? e[0] : e.reduce(function(e, t) {
|
|
201
|
+
return function() {
|
|
202
|
+
return e(t.apply(void 0, arguments));
|
|
203
|
+
};
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
function y() {
|
|
207
|
+
var n = [...arguments];
|
|
208
|
+
return function(r) {
|
|
209
|
+
return function() {
|
|
210
|
+
var i = r.apply(void 0, arguments), a = function() {
|
|
211
|
+
throw Error(process.env.NODE_ENV === "production" ? t(15) : "Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
|
|
212
|
+
}, o = {
|
|
213
|
+
getState: i.getState,
|
|
214
|
+
dispatch: function() {
|
|
215
|
+
return a.apply(void 0, arguments);
|
|
216
|
+
}
|
|
217
|
+
}, s = n.map(function(e) {
|
|
218
|
+
return e(o);
|
|
219
|
+
});
|
|
220
|
+
return a = v.apply(void 0, s)(i.dispatch), e(e({}, i), {}, { dispatch: a });
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
//#endregion
|
|
225
|
+
export { y as applyMiddleware, _ as bindActionCreators, h as combineReducers, d as createStore };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing/src/toggle-bar.jsx
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import PropTypes from 'prop-types';
|
|
11
|
+
export declare const MiniButton: {
|
|
12
|
+
(props: any): React.JSX.Element;
|
|
13
|
+
propTypes: {
|
|
14
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
15
|
+
className: PropTypes.Requireable<string>;
|
|
16
|
+
disabledClassName: PropTypes.Requireable<string>;
|
|
17
|
+
selected: PropTypes.Requireable<boolean>;
|
|
18
|
+
value: PropTypes.Requireable<string>;
|
|
19
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
language: PropTypes.Requireable<string>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare class ToggleBar extends React.Component {
|
|
24
|
+
static propTypes: {
|
|
25
|
+
className: PropTypes.Requireable<string>;
|
|
26
|
+
options: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
27
|
+
selectedToolType: PropTypes.Requireable<string>;
|
|
28
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
29
|
+
draggableTools: PropTypes.Requireable<boolean>;
|
|
30
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
onChangeToolsOrder: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
+
language: PropTypes.Requireable<string>;
|
|
33
|
+
};
|
|
34
|
+
static defaultProps: {};
|
|
35
|
+
select: (e: any) => any;
|
|
36
|
+
moveTool: any;
|
|
37
|
+
handleDragEnd: any;
|
|
38
|
+
render(): React.JSX.Element;
|
|
39
|
+
}
|
|
40
|
+
export default ToggleBar;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { allTools as e } from "./tools/index.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import n from "prop-types";
|
|
4
|
+
import { styled as r } from "@mui/material/styles";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
import { color as a } from "@pie-lib/render-ui";
|
|
7
|
+
import o from "@mui/material/Button";
|
|
8
|
+
import { DragProvider as s } from "@pie-lib/drag";
|
|
9
|
+
import { useDraggable as c, useDroppable as l } from "@dnd-kit/core";
|
|
10
|
+
import { CSS as u } from "@dnd-kit/utilities";
|
|
11
|
+
import { arrayMove as d } from "@dnd-kit/sortable";
|
|
12
|
+
import f from "@pie-lib/translator";
|
|
13
|
+
//#region src/toggle-bar.tsx
|
|
14
|
+
var { translator: p } = f, m = r(o, { shouldForwardProp: (e) => !["selected"].includes(e) })(({ selected: e, disabled: t }) => ({
|
|
15
|
+
color: a.text(),
|
|
16
|
+
backgroundColor: a.background(),
|
|
17
|
+
border: `1px solid ${a.buttonBorder()}`,
|
|
18
|
+
"&:hover": { backgroundColor: a.buttonHoverBg() },
|
|
19
|
+
...e && { border: `1px solid ${a.secondary()}` },
|
|
20
|
+
...!e && { "& span": { color: a.primary() } },
|
|
21
|
+
...t && {
|
|
22
|
+
"& span": { color: a.primary() },
|
|
23
|
+
backgroundColor: a.disabled()
|
|
24
|
+
}
|
|
25
|
+
})), h = (e) => {
|
|
26
|
+
let { disabled: t, className: n, selected: r, value: a, onClick: o, language: s } = e, c = a.toLowerCase();
|
|
27
|
+
return /* @__PURE__ */ i(m, {
|
|
28
|
+
size: "small",
|
|
29
|
+
disabled: t,
|
|
30
|
+
className: n,
|
|
31
|
+
selected: r,
|
|
32
|
+
value: a,
|
|
33
|
+
variant: "outlined",
|
|
34
|
+
onClick: (e) => o({
|
|
35
|
+
...e,
|
|
36
|
+
buttonValue: a
|
|
37
|
+
}),
|
|
38
|
+
children: p.t(`graphing.${c}`, { lng: s })
|
|
39
|
+
}, a);
|
|
40
|
+
};
|
|
41
|
+
h.propTypes = {
|
|
42
|
+
disabled: n.bool,
|
|
43
|
+
className: n.string,
|
|
44
|
+
disabledClassName: n.string,
|
|
45
|
+
selected: n.bool,
|
|
46
|
+
value: n.string,
|
|
47
|
+
onClick: n.func,
|
|
48
|
+
language: n.string
|
|
49
|
+
};
|
|
50
|
+
var g = r("div")(() => ({
|
|
51
|
+
display: "flex",
|
|
52
|
+
flexWrap: "wrap"
|
|
53
|
+
})), _ = r(h)(({ theme: e }) => ({
|
|
54
|
+
marginRight: e.spacing(.5),
|
|
55
|
+
marginBottom: e.spacing(.5),
|
|
56
|
+
color: a.text()
|
|
57
|
+
})), v = r("div")({ position: "relative" }), y = class extends t.Component {
|
|
58
|
+
static propTypes = {
|
|
59
|
+
className: n.string,
|
|
60
|
+
options: n.arrayOf(n.string),
|
|
61
|
+
selectedToolType: n.string,
|
|
62
|
+
disabled: n.bool,
|
|
63
|
+
draggableTools: n.bool,
|
|
64
|
+
onChange: n.func,
|
|
65
|
+
onChangeToolsOrder: n.func,
|
|
66
|
+
language: n.string
|
|
67
|
+
};
|
|
68
|
+
static defaultProps = {};
|
|
69
|
+
select = (e) => this.props.onChange(e.buttonValue || e.target.textContent);
|
|
70
|
+
moveTool = (e, t) => {
|
|
71
|
+
let { options: n, onChangeToolsOrder: r } = this.props;
|
|
72
|
+
r(d(n, e, t));
|
|
73
|
+
};
|
|
74
|
+
handleDragEnd = (e) => {
|
|
75
|
+
let { active: t, over: n } = e;
|
|
76
|
+
if (!n || !t) return;
|
|
77
|
+
let r = t.data.current, i = n.data.current;
|
|
78
|
+
if (r?.type === "tool" && i?.type === "tool") {
|
|
79
|
+
let e = r.index, t = i.index;
|
|
80
|
+
e !== t && this.moveTool(e, t);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
render() {
|
|
84
|
+
let { className: n, disabled: r, options: a, selectedToolType: o, draggableTools: c, language: l } = this.props;
|
|
85
|
+
return /* @__PURE__ */ i(s, {
|
|
86
|
+
onDragEnd: this.handleDragEnd,
|
|
87
|
+
children: /* @__PURE__ */ i(g, {
|
|
88
|
+
className: n,
|
|
89
|
+
children: (a || []).map((n, a) => {
|
|
90
|
+
if ((e || []).includes(n)) {
|
|
91
|
+
let e = n === o, s = t.createRef();
|
|
92
|
+
return /* @__PURE__ */ i(b, {
|
|
93
|
+
index: a,
|
|
94
|
+
value: n,
|
|
95
|
+
draggable: c,
|
|
96
|
+
moveTool: this.moveTool,
|
|
97
|
+
toolRef: s,
|
|
98
|
+
children: /* @__PURE__ */ i(_, {
|
|
99
|
+
disabled: r,
|
|
100
|
+
disableRipple: !0,
|
|
101
|
+
onClick: this.select,
|
|
102
|
+
value: n,
|
|
103
|
+
selected: e,
|
|
104
|
+
language: l
|
|
105
|
+
})
|
|
106
|
+
}, n);
|
|
107
|
+
}
|
|
108
|
+
})
|
|
109
|
+
})
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
function b({ children: e, index: t, draggable: n, toolRef: r, value: a }) {
|
|
114
|
+
let { attributes: o, listeners: s, setNodeRef: d, transform: f, transition: p, isDragging: m } = c({
|
|
115
|
+
id: `tool-${a}-${t}`,
|
|
116
|
+
disabled: !n,
|
|
117
|
+
data: {
|
|
118
|
+
type: "tool",
|
|
119
|
+
index: t,
|
|
120
|
+
value: a
|
|
121
|
+
}
|
|
122
|
+
}), { setNodeRef: h } = l({
|
|
123
|
+
id: `drop-tool-${a}-${t}`,
|
|
124
|
+
data: {
|
|
125
|
+
type: "tool",
|
|
126
|
+
index: t,
|
|
127
|
+
accepts: ["tool"]
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
return /* @__PURE__ */ i(v, {
|
|
131
|
+
ref: (e) => {
|
|
132
|
+
d(e), h(e), r?.current && (r.current = e);
|
|
133
|
+
},
|
|
134
|
+
style: {
|
|
135
|
+
transform: u.Transform.toString(f),
|
|
136
|
+
transition: p,
|
|
137
|
+
opacity: m ? .5 : 1
|
|
138
|
+
},
|
|
139
|
+
children: /* @__PURE__ */ i("div", {
|
|
140
|
+
...o,
|
|
141
|
+
...s,
|
|
142
|
+
children: e
|
|
143
|
+
})
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
b.propTypes = {
|
|
147
|
+
children: n.node,
|
|
148
|
+
index: n.number,
|
|
149
|
+
draggable: n.bool,
|
|
150
|
+
moveTool: n.func,
|
|
151
|
+
toolRef: n.object,
|
|
152
|
+
value: n.string
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
export { y as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing/src/tool-menu.jsx
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import PropTypes from 'prop-types';
|
|
11
|
+
export declare class ToolMenu extends React.Component {
|
|
12
|
+
static propTypes: {
|
|
13
|
+
className: PropTypes.Requireable<string>;
|
|
14
|
+
currentToolType: PropTypes.Requireable<string>;
|
|
15
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
16
|
+
draggableTools: PropTypes.Requireable<boolean>;
|
|
17
|
+
labelModeEnabled: PropTypes.Requireable<boolean>;
|
|
18
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
onChangeTools: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
toolbarTools: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
21
|
+
language: PropTypes.Requireable<string>;
|
|
22
|
+
};
|
|
23
|
+
static defaultProps: {
|
|
24
|
+
toolbarTools: never[];
|
|
25
|
+
};
|
|
26
|
+
updateToolsOrder: any;
|
|
27
|
+
render(): React.JSX.Element;
|
|
28
|
+
}
|
|
29
|
+
export default ToolMenu;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import e from "./toggle-bar.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import n from "prop-types";
|
|
4
|
+
import r from "classnames";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
//#region src/tool-menu.tsx
|
|
7
|
+
var a = class extends t.Component {
|
|
8
|
+
static propTypes = {
|
|
9
|
+
className: n.string,
|
|
10
|
+
currentToolType: n.string,
|
|
11
|
+
disabled: n.bool,
|
|
12
|
+
draggableTools: n.bool,
|
|
13
|
+
labelModeEnabled: n.bool,
|
|
14
|
+
onChange: n.func,
|
|
15
|
+
onChangeTools: n.func,
|
|
16
|
+
toolbarTools: n.arrayOf(n.string),
|
|
17
|
+
language: n.string
|
|
18
|
+
};
|
|
19
|
+
static defaultProps = { toolbarTools: [] };
|
|
20
|
+
updateToolsOrder = (e) => {
|
|
21
|
+
let { onChangeTools: t } = this.props;
|
|
22
|
+
t(e);
|
|
23
|
+
};
|
|
24
|
+
render() {
|
|
25
|
+
let { className: t, currentToolType: n, disabled: a, draggableTools: o, onChange: s, language: c } = this.props, { toolbarTools: l } = this.props;
|
|
26
|
+
return /* @__PURE__ */ i("div", {
|
|
27
|
+
className: r(t),
|
|
28
|
+
children: /* @__PURE__ */ i(e, {
|
|
29
|
+
disabled: a,
|
|
30
|
+
draggableTools: o,
|
|
31
|
+
options: l,
|
|
32
|
+
selectedToolType: n,
|
|
33
|
+
onChange: s,
|
|
34
|
+
onChangeToolsOrder: (e) => this.updateToolsOrder(e),
|
|
35
|
+
language: c
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { a as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing/src/tools/absolute/component.jsx
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
declare const Component: {
|
|
10
|
+
(props: any): import("react").JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
13
|
+
mark: import("prop-types").Requireable<object>;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default Component;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { rootEdgeComponent as e, withRootEdge as t } from "../shared/line/with-root-edge.js";
|
|
2
|
+
import n from "debug";
|
|
3
|
+
import { absoluteFromTwoPoints as r, buildDataPoints as i } from "@pie-lib/graphing-utils";
|
|
4
|
+
//#region src/tools/absolute/component.tsx
|
|
5
|
+
var a = n("pie-lib:graphing:absolute"), o = e(t((e) => {
|
|
6
|
+
let { root: t, edge: n, graphProps: o } = e, { domain: s, range: c } = o, l = n && n.x === t.x ? [] : i(s, c, t, n, r(t, n), !0);
|
|
7
|
+
return a("dataPoints:", l), {
|
|
8
|
+
root: e.root,
|
|
9
|
+
edge: e.edge,
|
|
10
|
+
dataPoints: l,
|
|
11
|
+
enableCurve: !1
|
|
12
|
+
};
|
|
13
|
+
}));
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing/src/tools/absolute/index.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
export declare const tool: () => {
|
|
10
|
+
type: string;
|
|
11
|
+
Component: {
|
|
12
|
+
(props: any): import("react").JSX.Element;
|
|
13
|
+
propTypes: {
|
|
14
|
+
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
15
|
+
mark: import("prop-types").Requireable<object>;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
complete: (data: any, mark: any) => any;
|
|
19
|
+
addPoint: (point: any, mark: any) => any;
|
|
20
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { equalPoints as e, sameAxes as t } from "../../utils.js";
|
|
2
|
+
import n from "./component.js";
|
|
3
|
+
import r from "debug";
|
|
4
|
+
//#region src/tools/absolute/index.ts
|
|
5
|
+
var i = r("pie-lib:graphing:absolute"), a = () => ({
|
|
6
|
+
type: "absolute",
|
|
7
|
+
Component: n,
|
|
8
|
+
complete: (e, t) => ({
|
|
9
|
+
...t,
|
|
10
|
+
building: !1,
|
|
11
|
+
closed: !0
|
|
12
|
+
}),
|
|
13
|
+
addPoint: (n, r) => {
|
|
14
|
+
if (i("add point to absolute model: ", n, "mark: ", r), r && (e(r.root, n) || t(r.root, n))) return r;
|
|
15
|
+
if (!r) return {
|
|
16
|
+
type: "absolute",
|
|
17
|
+
root: n,
|
|
18
|
+
edge: void 0,
|
|
19
|
+
closed: !1,
|
|
20
|
+
building: !0
|
|
21
|
+
};
|
|
22
|
+
if (r && !r.root) throw Error("no root - should never happen");
|
|
23
|
+
return {
|
|
24
|
+
...r,
|
|
25
|
+
edge: n,
|
|
26
|
+
closed: !0,
|
|
27
|
+
building: !1
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { a as tool };
|