@pie-lib/graphing-solution-set 4.0.3 → 4.0.4-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 +85 -0
- package/dist/graph-with-controls.js +155 -0
- package/dist/graph.d.ts +119 -0
- package/dist/graph.js +221 -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 +14 -0
- package/dist/index.js +6 -0
- package/dist/labels.d.ts +73 -0
- package/dist/labels.js +134 -0
- package/dist/mark-label.d.ts +50 -0
- package/dist/mark-label.js +84 -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_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/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/tool-menu.d.ts +21 -0
- package/dist/tool-menu.js +188 -0
- package/dist/tools/index.d.ts +17 -0
- package/dist/tools/index.js +12 -0
- package/dist/tools/line/component.d.ts +113 -0
- package/dist/tools/line/component.js +58 -0
- package/dist/tools/line/index.d.ts +13 -0
- package/dist/tools/line/index.js +6 -0
- package/dist/tools/polygon/component.d.ts +114 -0
- package/dist/tools/polygon/component.js +194 -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/polygon.d.ts +122 -0
- package/dist/tools/polygon/polygon.js +62 -0
- package/dist/tools/shared/arrow-head.d.ts +43 -0
- package/dist/tools/shared/arrow-head.js +37 -0
- package/dist/tools/shared/line/index.d.ts +240 -0
- package/dist/tools/shared/line/index.js +320 -0
- package/dist/tools/shared/line/line-path.d.ts +57 -0
- package/dist/tools/shared/line/with-root-edge.d.ts +143 -0
- package/dist/tools/shared/point/arrow-point.d.ts +57 -0
- package/dist/tools/shared/point/arrow-point.js +47 -0
- package/dist/tools/shared/point/arrow.d.ts +46 -0
- package/dist/tools/shared/point/arrow.js +36 -0
- package/dist/tools/shared/point/base-point.d.ts +50 -0
- package/dist/tools/shared/point/base-point.js +88 -0
- package/dist/tools/shared/point/index.d.ts +217 -0
- package/dist/tools/shared/point/index.js +51 -0
- package/dist/tools/shared/styles.d.ts +24 -0
- package/dist/tools/shared/styles.js +17 -0
- package/dist/tools/shared/types.d.ts +15 -0
- package/dist/tools/shared/types.js +10 -0
- package/dist/undo-redo.d.ts +20 -0
- package/dist/undo-redo.js +33 -0
- package/dist/use-debounce.d.ts +9 -0
- package/dist/use-debounce.js +13 -0
- package/dist/utils.d.ts +58 -0
- package/dist/utils.js +72 -0
- package/package.json +36 -26
- package/CHANGELOG.json +0 -1
- package/CHANGELOG.md +0 -449
- 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 -327
- 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 -120
- 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 -77
- package/lib/coordinates-label.js.map +0 -1
- package/lib/graph-with-controls.js +0 -297
- package/lib/graph-with-controls.js.map +0 -1
- package/lib/graph.js +0 -353
- 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 -40
- package/lib/index.js.map +0 -1
- package/lib/labels.js +0 -199
- package/lib/labels.js.map +0 -1
- package/lib/mark-label.js +0 -159
- package/lib/mark-label.js.map +0 -1
- package/lib/toggle-bar.js +0 -248
- package/lib/toggle-bar.js.map +0 -1
- package/lib/tool-menu.js +0 -218
- package/lib/tool-menu.js.map +0 -1
- package/lib/tools/index.js +0 -24
- package/lib/tools/index.js.map +0 -1
- package/lib/tools/line/component.js +0 -92
- 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/polygon/component.js +0 -358
- 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 -114
- package/lib/tools/polygon/line.js.map +0 -1
- package/lib/tools/polygon/polygon.js +0 -128
- package/lib/tools/polygon/polygon.js.map +0 -1
- package/lib/tools/shared/arrow-head.js +0 -62
- package/lib/tools/shared/arrow-head.js.map +0 -1
- package/lib/tools/shared/line/index.js +0 -539
- package/lib/tools/shared/line/index.js.map +0 -1
- package/lib/tools/shared/line/line-path.js +0 -121
- 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 -86
- package/lib/tools/shared/point/arrow-point.js.map +0 -1
- package/lib/tools/shared/point/arrow.js +0 -70
- package/lib/tools/shared/point/arrow.js.map +0 -1
- package/lib/tools/shared/point/base-point.js +0 -137
- package/lib/tools/shared/point/base-point.js.map +0 -1
- package/lib/tools/shared/point/index.js +0 -80
- package/lib/tools/shared/point/index.js.map +0 -1
- package/lib/tools/shared/styles.js +0 -26
- package/lib/tools/shared/styles.js.map +0 -1
- package/lib/tools/shared/types.js +0 -15
- package/lib/tools/shared/types.js.map +0 -1
- package/lib/undo-redo.js +0 -67
- 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 -235
- 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 -184
- package/src/__tests__/graph.test.jsx +0 -93
- package/src/__tests__/grid-setup.test.jsx +0 -645
- package/src/__tests__/grid.test.jsx +0 -23
- package/src/__tests__/labels.test.jsx +0 -41
- package/src/__tests__/mark-label.test.jsx +0 -66
- package/src/__tests__/toggle-bar.test.jsx +0 -106
- package/src/__tests__/tool-menu.test.jsx +0 -453
- package/src/__tests__/undo-redo.test.jsx +0 -26
- 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 -43
- package/src/axis/__tests__/axes.test.jsx +0 -182
- package/src/axis/arrow.jsx +0 -57
- package/src/axis/axes.jsx +0 -284
- 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 -227
- 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 -85
- 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 -62
- package/src/graph-with-controls.jsx +0 -242
- package/src/graph.jsx +0 -333
- package/src/grid-setup.jsx +0 -432
- package/src/grid.jsx +0 -133
- package/src/index.js +0 -7
- package/src/labels.jsx +0 -173
- package/src/mark-label.jsx +0 -125
- package/src/toggle-bar.jsx +0 -221
- package/src/tool-menu.jsx +0 -235
- package/src/tools/index.js +0 -8
- package/src/tools/line/__tests__/component.test.jsx +0 -37
- package/src/tools/line/component.jsx +0 -77
- package/src/tools/line/index.js +0 -4
- package/src/tools/polygon/__tests__/component.test.jsx +0 -487
- package/src/tools/polygon/__tests__/index.test.js +0 -65
- package/src/tools/polygon/__tests__/line.test.jsx +0 -23
- package/src/tools/polygon/__tests__/polygon.test.jsx +0 -44
- package/src/tools/polygon/component.jsx +0 -324
- package/src/tools/polygon/index.js +0 -52
- package/src/tools/polygon/line.jsx +0 -80
- package/src/tools/polygon/polygon.jsx +0 -93
- package/src/tools/shared/__tests__/arrow-head.test.jsx +0 -33
- package/src/tools/shared/arrow-head.jsx +0 -46
- package/src/tools/shared/line/__tests__/index.test.jsx +0 -553
- package/src/tools/shared/line/__tests__/line-path.test.jsx +0 -56
- package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +0 -488
- package/src/tools/shared/line/index.jsx +0 -471
- package/src/tools/shared/line/line-path.jsx +0 -85
- 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__/arrow.test.jsx +0 -469
- package/src/tools/shared/point/__tests__/base-point.test.jsx +0 -87
- package/src/tools/shared/point/arrow-point.jsx +0 -60
- package/src/tools/shared/point/arrow.jsx +0 -40
- package/src/tools/shared/point/base-point.jsx +0 -113
- package/src/tools/shared/point/index.jsx +0 -58
- package/src/tools/shared/styles.js +0 -20
- package/src/tools/shared/types.js +0 -8
- package/src/undo-redo.jsx +0 -37
- package/src/use-debounce.js +0 -13
- package/src/utils.js +0 -230
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { _objectWithoutPropertiesLoose as e } from "../../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
2
|
+
import t from "./verifySubselectors.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/connect/selectorFactory.js
|
|
4
|
+
function n(e, t, n, r) {
|
|
5
|
+
return function(i, a) {
|
|
6
|
+
return n(e(i, a), t(r, a), a);
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function r(e, t, n, r, i) {
|
|
10
|
+
var a = i.areStatesEqual, o = i.areOwnPropsEqual, s = i.areStatePropsEqual, c = !1, l, u, d, f, p;
|
|
11
|
+
function m(i, a) {
|
|
12
|
+
return l = i, u = a, d = e(l, u), f = t(r, u), p = n(d, f, u), c = !0, p;
|
|
13
|
+
}
|
|
14
|
+
function h() {
|
|
15
|
+
return d = e(l, u), t.dependsOnOwnProps && (f = t(r, u)), p = n(d, f, u), p;
|
|
16
|
+
}
|
|
17
|
+
function g() {
|
|
18
|
+
return e.dependsOnOwnProps && (d = e(l, u)), t.dependsOnOwnProps && (f = t(r, u)), p = n(d, f, u), p;
|
|
19
|
+
}
|
|
20
|
+
function _() {
|
|
21
|
+
var t = e(l, u), r = !s(t, d);
|
|
22
|
+
return d = t, r && (p = n(d, f, u)), p;
|
|
23
|
+
}
|
|
24
|
+
function v(e, t) {
|
|
25
|
+
var n = !o(t, u), r = !a(e, l);
|
|
26
|
+
return l = e, u = t, n && r ? h() : n ? g() : r ? _() : p;
|
|
27
|
+
}
|
|
28
|
+
return function(e, t) {
|
|
29
|
+
return c ? v(e, t) : m(e, t);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function i(i, a) {
|
|
33
|
+
var o = a.initMapStateToProps, s = a.initMapDispatchToProps, c = a.initMergeProps, l = e(a, [
|
|
34
|
+
"initMapStateToProps",
|
|
35
|
+
"initMapDispatchToProps",
|
|
36
|
+
"initMergeProps"
|
|
37
|
+
]), u = o(i, l), d = s(i, l), f = c(i, l);
|
|
38
|
+
return process.env.NODE_ENV !== "production" && t(u, d, f, l.displayName), (l.pure ? r : n)(u, d, f, i, l);
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { i as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "../utils/warning.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/connect/verifySubselectors.js
|
|
3
|
+
function t(t, n, r) {
|
|
4
|
+
if (t) (n === "mapStateToProps" || n === "mapDispatchToProps") && (t.hasOwnProperty("dependsOnOwnProps") || e("The selector for " + n + " of " + r + " did not specify a value for dependsOnOwnProps."));
|
|
5
|
+
else throw Error("Unexpected value for " + n + " in " + r + ".");
|
|
6
|
+
}
|
|
7
|
+
function n(e, n, r, i) {
|
|
8
|
+
t(e, "mapStateToProps", i), t(n, "mapDispatchToProps", i), t(r, "mergeProps", i);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import e from "../utils/verifyPlainObject.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/connect/wrapMapToProps.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
return function(t, n) {
|
|
5
|
+
var r = e(t, n);
|
|
6
|
+
function i() {
|
|
7
|
+
return r;
|
|
8
|
+
}
|
|
9
|
+
return i.dependsOnOwnProps = !1, i;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function n(e) {
|
|
13
|
+
return e.dependsOnOwnProps !== null && e.dependsOnOwnProps !== void 0 ? !!e.dependsOnOwnProps : e.length !== 1;
|
|
14
|
+
}
|
|
15
|
+
function r(t, r) {
|
|
16
|
+
return function(i, a) {
|
|
17
|
+
var o = a.displayName, s = function(e, t) {
|
|
18
|
+
return s.dependsOnOwnProps ? s.mapToProps(e, t) : s.mapToProps(e);
|
|
19
|
+
};
|
|
20
|
+
return s.dependsOnOwnProps = !0, s.mapToProps = function(i, a) {
|
|
21
|
+
s.mapToProps = t, s.dependsOnOwnProps = n(t);
|
|
22
|
+
var c = s(i, a);
|
|
23
|
+
return typeof c == "function" && (s.mapToProps = c, s.dependsOnOwnProps = n(c), c = s(i, a)), process.env.NODE_ENV !== "production" && e(c, o, r), c;
|
|
24
|
+
}, s;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { t as wrapMapToPropsConstant, r as wrapMapToPropsFunc };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/utils/isPlainObject.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
if (typeof e != "object" || !e) return !1;
|
|
4
|
+
var t = Object.getPrototypeOf(e);
|
|
5
|
+
if (t === null) return !0;
|
|
6
|
+
for (var n = t; Object.getPrototypeOf(n) !== null;) n = Object.getPrototypeOf(n);
|
|
7
|
+
return t === n;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { e as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/utils/shallowEqual.js
|
|
2
|
+
var e = Object.prototype.hasOwnProperty;
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
5
|
+
}
|
|
6
|
+
function n(n, r) {
|
|
7
|
+
if (t(n, r)) return !0;
|
|
8
|
+
if (typeof n != "object" || !n || typeof r != "object" || !r) return !1;
|
|
9
|
+
var i = Object.keys(n), a = Object.keys(r);
|
|
10
|
+
if (i.length !== a.length) return !1;
|
|
11
|
+
for (var o = 0; o < i.length; o++) if (!e.call(r, i[o]) || !t(n[i[o]], r[i[o]])) return !1;
|
|
12
|
+
return !0;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import e from "./isPlainObject.js";
|
|
2
|
+
import t from "./warning.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/utils/verifyPlainObject.js
|
|
4
|
+
function n(n, r, i) {
|
|
5
|
+
e(n) || t(i + "() in " + r + " must return a plain object. Instead received " + n + ".");
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/utils/warning.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
typeof console < "u" && typeof console.error == "function" && console.error(e);
|
|
4
|
+
try {
|
|
5
|
+
throw Error(e);
|
|
6
|
+
} catch {}
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_balanced_match as t } from "../../../balanced-match@0.4.2/node_modules/balanced-match/index.js";
|
|
3
|
+
import { require_reduce_function_call as n } from "../../../reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js";
|
|
4
|
+
import { require_formula_evaluator as r } from "../../../math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js";
|
|
5
|
+
//#region ../../../node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js
|
|
6
|
+
var i = /* @__PURE__ */ e(((e, i) => {
|
|
7
|
+
var a = t(), o = n(), s = r(), c = 100, l = /(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g, u;
|
|
8
|
+
i.exports = d;
|
|
9
|
+
function d(e, t) {
|
|
10
|
+
u = 0, t = 10 ** (t === void 0 ? 5 : t), e = e.replace(/\n+/g, " ");
|
|
11
|
+
function n(e, n, i) {
|
|
12
|
+
if (u++ > c) throw u = 0, Error("Call stack overflow for " + i);
|
|
13
|
+
if (e === "") throw Error(n + "(): '" + i + "' must contain a non-whitespace string");
|
|
14
|
+
e = r(e, i);
|
|
15
|
+
var a = f(e);
|
|
16
|
+
if (a.length > 1 || e.indexOf("var(") > -1) return n + "(" + e + ")";
|
|
17
|
+
var o = a[0] || "";
|
|
18
|
+
o === "%" && (e = e.replace(/\b[0-9\.]+%/g, function(e) {
|
|
19
|
+
return parseFloat(e.slice(0, -1)) * .01;
|
|
20
|
+
}));
|
|
21
|
+
var l = e.replace(new RegExp(o, "gi"), ""), d;
|
|
22
|
+
try {
|
|
23
|
+
d = s.eval(l);
|
|
24
|
+
} catch {
|
|
25
|
+
return n + "(" + e + ")";
|
|
26
|
+
}
|
|
27
|
+
return o === "%" && (d *= 100), (n.length || o === "%") && (d = Math.round(d * t) / t), d += o, d;
|
|
28
|
+
}
|
|
29
|
+
function r(e, t) {
|
|
30
|
+
e = e.replace(/((?:\-[a-z]+\-)?calc)/g, "");
|
|
31
|
+
for (var r = "", i = e, o; o = l.exec(i);) {
|
|
32
|
+
o[0].index > 0 && (r += i.substring(0, o[0].index));
|
|
33
|
+
var s = a("(", ")", i.substring([0].index));
|
|
34
|
+
if (s.body === "") throw Error("'" + e + "' must contain a non-whitespace string");
|
|
35
|
+
var c = n(s.body, "", t);
|
|
36
|
+
r += s.pre + c, i = s.post;
|
|
37
|
+
}
|
|
38
|
+
return r + i;
|
|
39
|
+
}
|
|
40
|
+
return o(e, /((?:\-[a-z]+\-)?calc)\(/, n);
|
|
41
|
+
}
|
|
42
|
+
function f(e) {
|
|
43
|
+
for (var t = [], n = [], r = /[\.0-9]([%a-z]+)/gi, i = r.exec(e); i;) !i || !i[1] || (n.indexOf(i[1].toLowerCase()) === -1 && (t.push(i[1]), n.push(i[1].toLowerCase())), i = r.exec(e));
|
|
44
|
+
return t;
|
|
45
|
+
}
|
|
46
|
+
}));
|
|
47
|
+
//#endregion
|
|
48
|
+
export default i();
|
|
49
|
+
export { i as require_reduce_css_calc };
|
package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_balanced_match as t } from "../../../balanced-match@1.0.2/node_modules/balanced-match/index.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js
|
|
4
|
+
var n = /* @__PURE__ */ e(((e, n) => {
|
|
5
|
+
var r = t();
|
|
6
|
+
n.exports = i;
|
|
7
|
+
function i(e, t, n) {
|
|
8
|
+
var r = e;
|
|
9
|
+
return a(e, t).reduce(function(e, i) {
|
|
10
|
+
return e.replace(i.functionIdentifier + "(" + i.matches.body + ")", o(i.matches.body, i.functionIdentifier, n, r, t));
|
|
11
|
+
}, e);
|
|
12
|
+
}
|
|
13
|
+
function a(e, t) {
|
|
14
|
+
var n = [], i = typeof t == "string" ? RegExp("\\b(" + t + ")\\(") : t;
|
|
15
|
+
do {
|
|
16
|
+
var a = i.exec(e);
|
|
17
|
+
if (!a) return n;
|
|
18
|
+
if (a[1] === void 0) throw Error("Missing the first couple of parenthesis to get the function identifier in " + t);
|
|
19
|
+
var o = a[1], s = a.index, c = r("(", ")", e.substring(s));
|
|
20
|
+
if (!c || c.start !== a[0].length - 1) throw SyntaxError(o + "(): missing closing ')' in the value '" + e + "'");
|
|
21
|
+
n.push({
|
|
22
|
+
matches: c,
|
|
23
|
+
functionIdentifier: o
|
|
24
|
+
}), e = c.post;
|
|
25
|
+
} while (i.test(e));
|
|
26
|
+
return n;
|
|
27
|
+
}
|
|
28
|
+
function o(e, t, n, r, a) {
|
|
29
|
+
return n(i(e, a, n), t, r);
|
|
30
|
+
}
|
|
31
|
+
}));
|
|
32
|
+
//#endregion
|
|
33
|
+
export default n();
|
|
34
|
+
export { n as require_reduce_function_call };
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.mjs
|
|
2
|
+
var e = {
|
|
3
|
+
UNDO: "@@redux-undo/UNDO",
|
|
4
|
+
REDO: "@@redux-undo/REDO",
|
|
5
|
+
JUMP_TO_FUTURE: "@@redux-undo/JUMP_TO_FUTURE",
|
|
6
|
+
JUMP_TO_PAST: "@@redux-undo/JUMP_TO_PAST",
|
|
7
|
+
JUMP: "@@redux-undo/JUMP",
|
|
8
|
+
CLEAR_HISTORY: "@@redux-undo/CLEAR_HISTORY"
|
|
9
|
+
}, t = {
|
|
10
|
+
undo() {
|
|
11
|
+
return { type: e.UNDO };
|
|
12
|
+
},
|
|
13
|
+
redo() {
|
|
14
|
+
return { type: e.REDO };
|
|
15
|
+
},
|
|
16
|
+
jumpToFuture(t) {
|
|
17
|
+
return {
|
|
18
|
+
type: e.JUMP_TO_FUTURE,
|
|
19
|
+
index: t
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
jumpToPast(t) {
|
|
23
|
+
return {
|
|
24
|
+
type: e.JUMP_TO_PAST,
|
|
25
|
+
index: t
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
jump(t) {
|
|
29
|
+
return {
|
|
30
|
+
type: e.JUMP,
|
|
31
|
+
index: t
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
clearHistory() {
|
|
35
|
+
return { type: e.CLEAR_HISTORY };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
function n(e, t = []) {
|
|
39
|
+
return Array.isArray(e) ? e : typeof e == "string" ? [e] : t;
|
|
40
|
+
}
|
|
41
|
+
function r(e) {
|
|
42
|
+
return typeof e.present < "u" && typeof e.future < "u" && typeof e.past < "u" && Array.isArray(e.future) && Array.isArray(e.past);
|
|
43
|
+
}
|
|
44
|
+
function i(e, t, n, r = null) {
|
|
45
|
+
return {
|
|
46
|
+
past: e,
|
|
47
|
+
present: t,
|
|
48
|
+
future: n,
|
|
49
|
+
group: r,
|
|
50
|
+
_latestUnfiltered: t,
|
|
51
|
+
index: e.length,
|
|
52
|
+
limit: e.length + n.length + 1
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
var a, o, s = {
|
|
56
|
+
prevState: "#9E9E9E",
|
|
57
|
+
action: "#03A9F4",
|
|
58
|
+
nextState: "#4CAF50"
|
|
59
|
+
};
|
|
60
|
+
function c() {
|
|
61
|
+
o = {
|
|
62
|
+
header: [],
|
|
63
|
+
prev: [],
|
|
64
|
+
action: [],
|
|
65
|
+
next: [],
|
|
66
|
+
msgs: []
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function l() {
|
|
70
|
+
let { header: e, prev: t, next: n, action: r, msgs: i } = o;
|
|
71
|
+
console.group ? (console.groupCollapsed(...e), console.log(...t), console.log(...r), console.log(...n), console.log(...i), console.groupEnd()) : (console.log(...e), console.log(...t), console.log(...r), console.log(...n), console.log(...i));
|
|
72
|
+
}
|
|
73
|
+
function u(e, t, n) {
|
|
74
|
+
return [
|
|
75
|
+
`%c${e}`,
|
|
76
|
+
`color: ${t}; font-weight: bold`,
|
|
77
|
+
n
|
|
78
|
+
];
|
|
79
|
+
}
|
|
80
|
+
function d(e, t) {
|
|
81
|
+
c(), a && (console.group ? (o.header = [
|
|
82
|
+
"%credux-undo",
|
|
83
|
+
"font-style: italic",
|
|
84
|
+
"action",
|
|
85
|
+
e.type
|
|
86
|
+
], o.action = u("action", s.action, e), o.prev = u("prev history", s.prevState, t)) : (o.header = ["redux-undo action", e.type], o.action = ["action", e], o.prev = ["prev history", t]));
|
|
87
|
+
}
|
|
88
|
+
function f(e) {
|
|
89
|
+
a && (console.group ? o.next = u("next history", s.nextState, e) : o.next = ["next history", e], l());
|
|
90
|
+
}
|
|
91
|
+
function p(...e) {
|
|
92
|
+
a && (o.msgs = o.msgs.concat([...e, "\n"]));
|
|
93
|
+
}
|
|
94
|
+
function m(e) {
|
|
95
|
+
a = e;
|
|
96
|
+
}
|
|
97
|
+
function h(e, t) {
|
|
98
|
+
let n = i([], e, []);
|
|
99
|
+
return t && (n._latestUnfiltered = null), n;
|
|
100
|
+
}
|
|
101
|
+
function g(e, t, n, r) {
|
|
102
|
+
let a = e.past.length + 1;
|
|
103
|
+
p("inserting", t), p("new free: ", n - a);
|
|
104
|
+
let { past: o, _latestUnfiltered: s } = e, c = n && n <= a, l = o.slice(+!!c);
|
|
105
|
+
return i(s == null ? l : [...l, s], t, [], r);
|
|
106
|
+
}
|
|
107
|
+
function _(e, t) {
|
|
108
|
+
if (t < 0 || t >= e.future.length) return e;
|
|
109
|
+
let { past: n, future: r, _latestUnfiltered: a } = e, o = [
|
|
110
|
+
...n,
|
|
111
|
+
a,
|
|
112
|
+
...r.slice(0, t)
|
|
113
|
+
], s = r[t];
|
|
114
|
+
return i(o, s, r.slice(t + 1));
|
|
115
|
+
}
|
|
116
|
+
function v(e, t) {
|
|
117
|
+
if (t < 0 || t >= e.past.length) return e;
|
|
118
|
+
let { past: n, future: r, _latestUnfiltered: a } = e, o = n.slice(0, t), s = [
|
|
119
|
+
...n.slice(t + 1),
|
|
120
|
+
a,
|
|
121
|
+
...r
|
|
122
|
+
], c = n[t];
|
|
123
|
+
return i(o, c, s);
|
|
124
|
+
}
|
|
125
|
+
function y(e, t) {
|
|
126
|
+
return t > 0 ? _(e, t - 1) : t < 0 ? v(e, e.past.length + t) : e;
|
|
127
|
+
}
|
|
128
|
+
function b(e, t) {
|
|
129
|
+
return t.indexOf(e) > -1 ? e : !e;
|
|
130
|
+
}
|
|
131
|
+
function x(t, a = {}) {
|
|
132
|
+
m(a.debug);
|
|
133
|
+
let o = {
|
|
134
|
+
limit: void 0,
|
|
135
|
+
filter: () => !0,
|
|
136
|
+
groupBy: () => null,
|
|
137
|
+
undoType: e.UNDO,
|
|
138
|
+
redoType: e.REDO,
|
|
139
|
+
jumpToPastType: e.JUMP_TO_PAST,
|
|
140
|
+
jumpToFutureType: e.JUMP_TO_FUTURE,
|
|
141
|
+
jumpType: e.JUMP,
|
|
142
|
+
neverSkipReducer: !1,
|
|
143
|
+
ignoreInitialState: !1,
|
|
144
|
+
syncFilter: !1,
|
|
145
|
+
...a,
|
|
146
|
+
initTypes: n(a.initTypes, ["@@redux-undo/INIT"]),
|
|
147
|
+
clearHistoryType: n(a.clearHistoryType, [e.CLEAR_HISTORY])
|
|
148
|
+
}, s = o.neverSkipReducer ? (e, n, ...r) => ({
|
|
149
|
+
...e,
|
|
150
|
+
present: t(e.present, n, ...r)
|
|
151
|
+
}) : (e) => e, c;
|
|
152
|
+
return (e = c, n = {}, ...a) => {
|
|
153
|
+
d(n, e);
|
|
154
|
+
let l = e;
|
|
155
|
+
if (!c) {
|
|
156
|
+
if (p("history is uninitialized"), e === void 0) return l = h(t(e, { type: "@@redux-undo/CREATE_HISTORY" }, ...a), o.ignoreInitialState), p("do not set initialState on probe actions"), f(l), l;
|
|
157
|
+
r(e) ? (l = c = o.ignoreInitialState ? e : i(e.past, e.present, e.future), p("initialHistory initialized: initialState is a history", c)) : (l = c = h(e, o.ignoreInitialState), p("initialHistory initialized: initialState is not a history", c));
|
|
158
|
+
}
|
|
159
|
+
let u;
|
|
160
|
+
switch (n.type) {
|
|
161
|
+
case void 0: return l;
|
|
162
|
+
case o.undoType: return u = y(l, -1), p("perform undo"), f(u), s(u, n, ...a);
|
|
163
|
+
case o.redoType: return u = y(l, 1), p("perform redo"), f(u), s(u, n, ...a);
|
|
164
|
+
case o.jumpToPastType: return u = v(l, n.index), p(`perform jumpToPast to ${n.index}`), f(u), s(u, n, ...a);
|
|
165
|
+
case o.jumpToFutureType: return u = _(l, n.index), p(`perform jumpToFuture to ${n.index}`), f(u), s(u, n, ...a);
|
|
166
|
+
case o.jumpType: return u = y(l, n.index), p(`perform jump to ${n.index}`), f(u), s(u, n, ...a);
|
|
167
|
+
case b(n.type, o.clearHistoryType): return u = h(l.present, o.ignoreInitialState), p("perform clearHistory"), f(u), s(u, n, ...a);
|
|
168
|
+
default:
|
|
169
|
+
if (u = t(l.present, n, ...a), o.initTypes.some((e) => e === n.type)) return p("reset history due to init action"), f(c), c;
|
|
170
|
+
if (l._latestUnfiltered === u) return l;
|
|
171
|
+
if (typeof o.filter == "function" && !o.filter(n, u, l)) {
|
|
172
|
+
let e = i(l.past, u, l.future, l.group);
|
|
173
|
+
return o.syncFilter || (e._latestUnfiltered = l._latestUnfiltered), p("filter ignored action, not storing it in past"), f(e), e;
|
|
174
|
+
}
|
|
175
|
+
let e = o.groupBy(n, u, l);
|
|
176
|
+
if (e != null && e === l.group) {
|
|
177
|
+
let e = i(l.past, u, l.future, l.group);
|
|
178
|
+
return p("groupBy grouped the action with the previous action"), f(e), e;
|
|
179
|
+
}
|
|
180
|
+
return l = g(l, u, o.limit, e), p("inserted new state into history"), f(l), l;
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
//#endregion
|
|
185
|
+
export { x as C, t as M };
|
|
@@ -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-solution-set/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;
|