@pie-lib/graphing-solution-set 4.0.4-next.0 → 4.0.4-next.104
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/CHANGELOG.json +1 -0
- package/CHANGELOG.md +449 -0
- package/LICENSE.md +5 -0
- package/lib/axis/arrow.js +79 -0
- package/lib/axis/arrow.js.map +1 -0
- package/lib/axis/axes.js +327 -0
- package/lib/axis/axes.js.map +1 -0
- package/lib/axis/index.js +21 -0
- package/lib/axis/index.js.map +1 -0
- package/lib/bg.js +114 -0
- package/lib/bg.js.map +1 -0
- package/lib/container/actions.js +18 -0
- package/lib/container/actions.js.map +1 -0
- package/lib/container/index.js +129 -0
- package/lib/container/index.js.map +1 -0
- package/lib/container/marks.js +22 -0
- package/lib/container/marks.js.map +1 -0
- package/lib/container/middleware.js +19 -0
- package/lib/container/middleware.js.map +1 -0
- package/lib/container/reducer.js +18 -0
- package/lib/container/reducer.js.map +1 -0
- package/lib/coordinates-label.js +77 -0
- package/lib/coordinates-label.js.map +1 -0
- package/lib/graph-with-controls.js +297 -0
- package/lib/graph-with-controls.js.map +1 -0
- package/lib/graph.js +353 -0
- package/lib/graph.js.map +1 -0
- package/lib/grid-setup.js +414 -0
- package/lib/grid-setup.js.map +1 -0
- package/lib/grid.js +131 -0
- package/lib/grid.js.map +1 -0
- package/lib/index.js +40 -0
- package/lib/index.js.map +1 -0
- package/lib/labels.js +199 -0
- package/lib/labels.js.map +1 -0
- package/lib/mark-label.js +159 -0
- package/lib/mark-label.js.map +1 -0
- package/lib/toggle-bar.js +248 -0
- package/lib/toggle-bar.js.map +1 -0
- package/lib/tool-menu.js +218 -0
- package/lib/tool-menu.js.map +1 -0
- package/lib/tools/index.js +24 -0
- package/lib/tools/index.js.map +1 -0
- package/lib/tools/line/component.js +92 -0
- package/lib/tools/line/component.js.map +1 -0
- package/lib/tools/line/index.js +11 -0
- package/lib/tools/line/index.js.map +1 -0
- package/lib/tools/polygon/component.js +358 -0
- package/lib/tools/polygon/component.js.map +1 -0
- package/lib/tools/polygon/index.js +89 -0
- package/lib/tools/polygon/index.js.map +1 -0
- package/lib/tools/polygon/line.js +114 -0
- package/lib/tools/polygon/line.js.map +1 -0
- package/lib/tools/polygon/polygon.js +128 -0
- package/lib/tools/polygon/polygon.js.map +1 -0
- package/lib/tools/shared/arrow-head.js +62 -0
- package/lib/tools/shared/arrow-head.js.map +1 -0
- package/lib/tools/shared/line/index.js +539 -0
- package/lib/tools/shared/line/index.js.map +1 -0
- package/lib/tools/shared/line/line-path.js +121 -0
- package/lib/tools/shared/line/line-path.js.map +1 -0
- package/lib/tools/shared/line/with-root-edge.js +121 -0
- package/lib/tools/shared/line/with-root-edge.js.map +1 -0
- package/lib/tools/shared/point/arrow-point.js +86 -0
- package/lib/tools/shared/point/arrow-point.js.map +1 -0
- package/lib/tools/shared/point/arrow.js +70 -0
- package/lib/tools/shared/point/arrow.js.map +1 -0
- package/lib/tools/shared/point/base-point.js +137 -0
- package/lib/tools/shared/point/base-point.js.map +1 -0
- package/lib/tools/shared/point/index.js +80 -0
- package/lib/tools/shared/point/index.js.map +1 -0
- package/lib/tools/shared/styles.js +26 -0
- package/lib/tools/shared/styles.js.map +1 -0
- package/lib/tools/shared/types.js +15 -0
- package/lib/tools/shared/types.js.map +1 -0
- package/lib/undo-redo.js +67 -0
- package/lib/undo-redo.js.map +1 -0
- package/lib/use-debounce.js +25 -0
- package/lib/use-debounce.js.map +1 -0
- package/lib/utils.js +235 -0
- package/lib/utils.js.map +1 -0
- package/package.json +27 -37
- package/src/__tests__/bg.test.jsx +250 -0
- package/src/__tests__/coordinates-label.test.jsx +243 -0
- package/src/__tests__/graph-with-controls.test.jsx +184 -0
- package/src/__tests__/graph.test.jsx +93 -0
- package/src/__tests__/grid-setup.test.jsx +645 -0
- package/src/__tests__/grid.test.jsx +23 -0
- package/src/__tests__/labels.test.jsx +41 -0
- package/src/__tests__/mark-label.test.jsx +66 -0
- package/src/__tests__/toggle-bar.test.jsx +106 -0
- package/src/__tests__/tool-menu.test.jsx +453 -0
- package/src/__tests__/undo-redo.test.jsx +26 -0
- package/src/__tests__/use-debounce.test.js +21 -0
- package/src/__tests__/utils.js +41 -0
- package/src/__tests__/utils.test.js +105 -0
- package/src/axis/__tests__/arrow.test.jsx +43 -0
- package/src/axis/__tests__/axes.test.jsx +182 -0
- package/src/axis/arrow.jsx +57 -0
- package/src/axis/axes.jsx +284 -0
- package/src/axis/index.js +3 -0
- package/src/bg.jsx +96 -0
- package/src/container/__tests__/actions.test.js +105 -0
- package/src/container/__tests__/index.test.jsx +227 -0
- package/src/container/__tests__/marks.test.js +172 -0
- package/src/container/__tests__/middleware.test.js +235 -0
- package/src/container/__tests__/reducer.test.js +324 -0
- package/src/container/actions.js +8 -0
- package/src/container/index.jsx +93 -0
- package/src/container/marks.js +14 -0
- package/src/container/middleware.js +7 -0
- package/src/container/reducer.js +5 -0
- package/src/coordinates-label.jsx +62 -0
- package/src/graph-with-controls.jsx +242 -0
- package/src/graph.jsx +333 -0
- package/src/grid-setup.jsx +432 -0
- package/src/grid.jsx +133 -0
- package/src/index.js +7 -0
- package/src/labels.jsx +173 -0
- package/src/mark-label.jsx +125 -0
- package/src/toggle-bar.jsx +221 -0
- package/src/tool-menu.jsx +235 -0
- package/src/tools/index.js +8 -0
- package/src/tools/line/__tests__/component.test.jsx +37 -0
- package/src/tools/line/component.jsx +77 -0
- package/src/tools/line/index.js +4 -0
- package/src/tools/polygon/__tests__/component.test.jsx +487 -0
- package/src/tools/polygon/__tests__/index.test.js +65 -0
- package/src/tools/polygon/__tests__/line.test.jsx +23 -0
- package/src/tools/polygon/__tests__/polygon.test.jsx +44 -0
- package/src/tools/polygon/component.jsx +324 -0
- package/src/tools/polygon/index.js +52 -0
- package/src/tools/polygon/line.jsx +80 -0
- package/src/tools/polygon/polygon.jsx +93 -0
- package/src/tools/shared/__tests__/arrow-head.test.jsx +33 -0
- package/src/tools/shared/arrow-head.jsx +46 -0
- package/src/tools/shared/line/__tests__/index.test.jsx +553 -0
- package/src/tools/shared/line/__tests__/line-path.test.jsx +56 -0
- package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +488 -0
- package/src/tools/shared/line/index.jsx +471 -0
- package/src/tools/shared/line/line-path.jsx +85 -0
- package/src/tools/shared/line/with-root-edge.jsx +97 -0
- package/src/tools/shared/point/__tests__/arrow-point.test.jsx +91 -0
- package/src/tools/shared/point/__tests__/arrow.test.jsx +469 -0
- package/src/tools/shared/point/__tests__/base-point.test.jsx +87 -0
- package/src/tools/shared/point/arrow-point.jsx +60 -0
- package/src/tools/shared/point/arrow.jsx +40 -0
- package/src/tools/shared/point/base-point.jsx +113 -0
- package/src/tools/shared/point/index.jsx +58 -0
- package/src/tools/shared/styles.js +20 -0
- package/src/tools/shared/types.js +8 -0
- package/src/undo-redo.jsx +37 -0
- package/src/use-debounce.js +13 -0
- package/src/utils.js +230 -0
- package/dist/_virtual/_rolldown/runtime.js +0 -23
- package/dist/axis/arrow.d.ts +0 -13
- package/dist/axis/arrow.js +0 -34
- package/dist/axis/axes.d.ts +0 -132
- package/dist/axis/axes.js +0 -214
- package/dist/axis/index.d.ts +0 -10
- package/dist/bg.d.ts +0 -51
- package/dist/bg.js +0 -44
- package/dist/container/actions.d.ts +0 -15
- package/dist/container/actions.js +0 -7
- package/dist/container/index.d.ts +0 -26
- package/dist/container/index.js +0 -50
- package/dist/container/marks.d.ts +0 -10
- package/dist/container/marks.js +0 -11
- package/dist/container/middleware.d.ts +0 -10
- package/dist/container/middleware.js +0 -4
- package/dist/container/reducer.d.ts +0 -12
- package/dist/container/reducer.js +0 -7
- package/dist/coordinates-label.d.ts +0 -50
- package/dist/coordinates-label.js +0 -46
- package/dist/graph-with-controls.d.ts +0 -85
- package/dist/graph-with-controls.js +0 -155
- package/dist/graph.d.ts +0 -119
- package/dist/graph.js +0 -221
- package/dist/grid-setup.d.ts +0 -27
- package/dist/grid-setup.js +0 -307
- package/dist/grid.d.ts +0 -43
- package/dist/grid.js +0 -59
- package/dist/index.d.ts +0 -14
- package/dist/index.js +0 -6
- package/dist/labels.d.ts +0 -73
- package/dist/labels.js +0 -134
- package/dist/mark-label.d.ts +0 -50
- package/dist/mark-label.js +0 -84
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -7
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -12
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -100
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -61
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -42
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +0 -78
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
- package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -49
- package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +0 -10
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +0 -9
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -46
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -52
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
- package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +0 -32
- package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +0 -33
- package/dist/node_modules/.bun/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -68
- package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +0 -28
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +0 -21
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +0 -21
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +0 -10
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +0 -21
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +0 -16
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +0 -9
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +0 -15
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +0 -11
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +0 -18
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +0 -16
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +0 -11
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +0 -19
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +0 -9
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +0 -20
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +0 -11
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +0 -16
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +0 -20
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +0 -37
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +0 -509
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +0 -108
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +0 -31
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +0 -45
- package/dist/node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js +0 -216
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -82
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -62
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Context.js +0 -5
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Provider.js +0 -47
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/connectAdvanced.js +0 -95
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/connect.js +0 -52
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapDispatchToProps.js +0 -23
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapStateToProps.js +0 -13
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mergeProps.js +0 -26
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/selectorFactory.js +0 -41
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/verifySubselectors.js +0 -11
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/wrapMapToProps.js +0 -28
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/index.js +0 -4
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/isPlainObject.js +0 -10
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/shallowEqual.js +0 -15
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/verifyPlainObject.js +0 -8
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/warning.js +0 -9
- package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +0 -49
- package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +0 -34
- package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +0 -185
- package/dist/node_modules/.bun/redux@4.2.1/node_modules/redux/es/redux.js +0 -225
- package/dist/toggle-bar.d.ts +0 -40
- package/dist/tool-menu.d.ts +0 -21
- package/dist/tool-menu.js +0 -188
- package/dist/tools/index.d.ts +0 -17
- package/dist/tools/index.js +0 -12
- package/dist/tools/line/component.d.ts +0 -113
- package/dist/tools/line/component.js +0 -58
- package/dist/tools/line/index.d.ts +0 -13
- package/dist/tools/line/index.js +0 -6
- package/dist/tools/polygon/component.d.ts +0 -114
- package/dist/tools/polygon/component.js +0 -194
- package/dist/tools/polygon/index.d.ts +0 -19
- package/dist/tools/polygon/index.js +0 -55
- package/dist/tools/polygon/line.d.ts +0 -125
- package/dist/tools/polygon/polygon.d.ts +0 -122
- package/dist/tools/polygon/polygon.js +0 -62
- package/dist/tools/shared/arrow-head.d.ts +0 -43
- package/dist/tools/shared/arrow-head.js +0 -37
- package/dist/tools/shared/line/index.d.ts +0 -240
- package/dist/tools/shared/line/index.js +0 -320
- package/dist/tools/shared/line/line-path.d.ts +0 -57
- package/dist/tools/shared/line/with-root-edge.d.ts +0 -143
- package/dist/tools/shared/point/arrow-point.d.ts +0 -57
- package/dist/tools/shared/point/arrow-point.js +0 -47
- package/dist/tools/shared/point/arrow.d.ts +0 -46
- package/dist/tools/shared/point/arrow.js +0 -36
- package/dist/tools/shared/point/base-point.d.ts +0 -50
- package/dist/tools/shared/point/base-point.js +0 -88
- package/dist/tools/shared/point/index.d.ts +0 -217
- package/dist/tools/shared/point/index.js +0 -51
- package/dist/tools/shared/styles.d.ts +0 -24
- package/dist/tools/shared/styles.js +0 -17
- package/dist/tools/shared/types.d.ts +0 -15
- package/dist/tools/shared/types.js +0 -10
- package/dist/undo-redo.d.ts +0 -20
- package/dist/undo-redo.js +0 -33
- package/dist/use-debounce.d.ts +0 -9
- package/dist/use-debounce.js +0 -13
- package/dist/utils.d.ts +0 -58
- package/dist/utils.js +0 -72
package/dist/mark-label.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { __toESM as e } from "./_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_AutosizeInput as t } from "./node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js";
|
|
3
|
-
import { useDebounce as n } from "./use-debounce.js";
|
|
4
|
-
import { useCallback as r, useEffect as i, useState as a } from "react";
|
|
5
|
-
import o from "prop-types";
|
|
6
|
-
import { types as s } from "@pie-lib/plot";
|
|
7
|
-
import { styled as c } from "@mui/material/styles";
|
|
8
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
9
|
-
import { color as u } from "@pie-lib/render-ui";
|
|
10
|
-
var d = c((/* @__PURE__ */ e(t(), 1)).default, { shouldForwardProp: (e) => !["disabled", "markDisabled"].includes(e) })(({ theme: e, disabled: t, markDisabled: n }) => ({ "& input": {
|
|
11
|
-
float: "right",
|
|
12
|
-
padding: e.spacing(.5),
|
|
13
|
-
fontFamily: e.typography.fontFamily,
|
|
14
|
-
fontSize: e.typography.fontSize,
|
|
15
|
-
border: `solid 1px ${t ? u.defaults.PRIMARY_DARK : n ? u.disabled() : u.defaults.SECONDARY}`,
|
|
16
|
-
borderRadius: "3px",
|
|
17
|
-
color: n ? u.disabled() : u.defaults.PRIMARY_DARK,
|
|
18
|
-
background: t || n ? e.palette.background.paper : "transparent"
|
|
19
|
-
} })), f = (e, t, n) => {
|
|
20
|
-
n ||= {
|
|
21
|
-
width: 0,
|
|
22
|
-
height: 0
|
|
23
|
-
};
|
|
24
|
-
let { scale: r, domain: i, range: a } = e, o = r.x(t.x) + n.width + 10, s = r.y(t.y) + n.height + 10, c = o >= r.x(i.max) ? "left" : "right";
|
|
25
|
-
return `${s >= r.y(a.min) ? "top" : "bottom"}-${c}`;
|
|
26
|
-
}, p = (e, t, n, r) => {
|
|
27
|
-
let { scale: i } = e;
|
|
28
|
-
switch (n ||= {
|
|
29
|
-
width: 0,
|
|
30
|
-
height: 0
|
|
31
|
-
}, r) {
|
|
32
|
-
case "bottom-right": return {
|
|
33
|
-
left: i.x(t.x) + 10,
|
|
34
|
-
top: i.y(t.y) + 10
|
|
35
|
-
};
|
|
36
|
-
case "bottom-left": return {
|
|
37
|
-
left: i.x(t.x) - 10 - n.width,
|
|
38
|
-
top: i.y(t.y) + 10
|
|
39
|
-
};
|
|
40
|
-
case "top-left": return {
|
|
41
|
-
left: i.x(t.x) - 10 - n.width,
|
|
42
|
-
top: i.y(t.y) - 10 - n.height
|
|
43
|
-
};
|
|
44
|
-
case "top-right": return {
|
|
45
|
-
left: i.x(t.x) + 10,
|
|
46
|
-
top: i.y(t.y) - 10 - n.height
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
}, m = (e) => {
|
|
50
|
-
let [t, o] = a(null), s = r((e) => o(e)), { mark: c, graphProps: u, disabled: m, inputRef: h } = e, [g, _] = a(c.label), v = (e) => _(e.target.value), y = n(g, 200);
|
|
51
|
-
i(() => {
|
|
52
|
-
_(c.label);
|
|
53
|
-
}, [c.label]), i(() => {
|
|
54
|
-
typeof y == "string" && y !== c.label && e.onChange(y);
|
|
55
|
-
}, [y]);
|
|
56
|
-
let b = t ? t.getBoundingClientRect() : {
|
|
57
|
-
width: 0,
|
|
58
|
-
height: 0
|
|
59
|
-
}, x = {
|
|
60
|
-
position: "fixed",
|
|
61
|
-
pointerEvents: "auto",
|
|
62
|
-
...p(u, c, b, f(u, c, b))
|
|
63
|
-
};
|
|
64
|
-
return /* @__PURE__ */ l(d, {
|
|
65
|
-
inputRef: (e) => {
|
|
66
|
-
s(e), h(e);
|
|
67
|
-
},
|
|
68
|
-
disabled: m || c.disabled,
|
|
69
|
-
markDisabled: c.disabled,
|
|
70
|
-
value: g,
|
|
71
|
-
style: x,
|
|
72
|
-
onChange: v
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
m.propTypes = {
|
|
76
|
-
disabled: o.bool,
|
|
77
|
-
onChange: o.func,
|
|
78
|
-
graphProps: s.GraphPropsType,
|
|
79
|
-
inputRef: o.func,
|
|
80
|
-
mark: o.object,
|
|
81
|
-
theme: o.object
|
|
82
|
-
};
|
|
83
|
-
//#endregion
|
|
84
|
-
export { m as default };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
2
|
-
function e(e) {
|
|
3
|
-
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
return e;
|
|
5
|
-
}
|
|
6
|
-
//#endregion
|
|
7
|
-
export { e as _assertThisInitialized };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { toPropertyKey as e } from "./toPropertyKey.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
3
|
-
function t(t, n, r) {
|
|
4
|
-
return (n = e(n)) in t ? Object.defineProperty(t, n, {
|
|
5
|
-
value: r,
|
|
6
|
-
enumerable: !0,
|
|
7
|
-
configurable: !0,
|
|
8
|
-
writable: !0
|
|
9
|
-
}) : t[n] = r, t;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { t as _defineProperty };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
2
|
-
function e() {
|
|
3
|
-
return e = Object.assign ? Object.assign.bind() : function(e) {
|
|
4
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
5
|
-
var n = arguments[t];
|
|
6
|
-
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
7
|
-
}
|
|
8
|
-
return e;
|
|
9
|
-
}, e.apply(null, arguments);
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { e as _extends };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { _setPrototypeOf as e } from "./setPrototypeOf.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
3
|
-
function t(t, n) {
|
|
4
|
-
t.prototype = Object.create(n.prototype), t.prototype.constructor = t, e(t, n);
|
|
5
|
-
}
|
|
6
|
-
//#endregion
|
|
7
|
-
export { t as _inheritsLoose };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { _defineProperty as e } from "./defineProperty.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
3
|
-
function t(e, t) {
|
|
4
|
-
var n = Object.keys(e);
|
|
5
|
-
if (Object.getOwnPropertySymbols) {
|
|
6
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
7
|
-
t && (r = r.filter(function(t) {
|
|
8
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
9
|
-
})), n.push.apply(n, r);
|
|
10
|
-
}
|
|
11
|
-
return n;
|
|
12
|
-
}
|
|
13
|
-
function n(n) {
|
|
14
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
15
|
-
var i = arguments[r] == null ? {} : arguments[r];
|
|
16
|
-
r % 2 ? t(Object(i), !0).forEach(function(t) {
|
|
17
|
-
e(n, t, i[t]);
|
|
18
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : t(Object(i)).forEach(function(e) {
|
|
19
|
-
Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(i, e));
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return n;
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { n as _objectSpread2 };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
if (e == null) return {};
|
|
4
|
-
var n = {};
|
|
5
|
-
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
6
|
-
if (t.indexOf(r) !== -1) continue;
|
|
7
|
-
n[r] = e[r];
|
|
8
|
-
}
|
|
9
|
-
return n;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { e as _objectWithoutPropertiesLoose };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
2
|
-
function e(t, n) {
|
|
3
|
-
return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
4
|
-
return e.__proto__ = t, e;
|
|
5
|
-
}, e(t, n);
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as _setPrototypeOf };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { _typeof as e } from "./typeof.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
3
|
-
function t(t, n) {
|
|
4
|
-
if (e(t) != "object" || !t) return t;
|
|
5
|
-
var r = t[Symbol.toPrimitive];
|
|
6
|
-
if (r !== void 0) {
|
|
7
|
-
var i = r.call(t, n || "default");
|
|
8
|
-
if (e(i) != "object") return i;
|
|
9
|
-
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
10
|
-
}
|
|
11
|
-
return (n === "string" ? String : Number)(t);
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { t as toPrimitive };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { _typeof as e } from "./typeof.js";
|
|
2
|
-
import { toPrimitive as t } from "./toPrimitive.js";
|
|
3
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
4
|
-
function n(n) {
|
|
5
|
-
var r = t(n, "string");
|
|
6
|
-
return e(r) == "symbol" ? r : r + "";
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { n as toPropertyKey };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
2
|
-
function e(t) {
|
|
3
|
-
"@babel/helpers - typeof";
|
|
4
|
-
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5
|
-
return typeof e;
|
|
6
|
-
} : function(e) {
|
|
7
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8
|
-
}, e(t);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { e as _typeof };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import e from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
2
|
-
import t from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
3
|
-
import n from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js";
|
|
4
|
-
import r from "../constants/orientation.js";
|
|
5
|
-
import i from "./AxisRenderer.js";
|
|
6
|
-
import a from "../utils/getTickPosition.js";
|
|
7
|
-
import o from "../utils/getTickFormatter.js";
|
|
8
|
-
import s from "../utils/createPoint.js";
|
|
9
|
-
import c from "../utils/getAxisRangePaddingConfig.js";
|
|
10
|
-
import l from "react";
|
|
11
|
-
import "prop-types";
|
|
12
|
-
import u from "classnames";
|
|
13
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js
|
|
14
|
-
var d = [
|
|
15
|
-
"children",
|
|
16
|
-
"axisClassName",
|
|
17
|
-
"hideAxisLine",
|
|
18
|
-
"hideTicks",
|
|
19
|
-
"hideZero",
|
|
20
|
-
"innerRef",
|
|
21
|
-
"left",
|
|
22
|
-
"numTicks",
|
|
23
|
-
"orientation",
|
|
24
|
-
"rangePadding",
|
|
25
|
-
"scale",
|
|
26
|
-
"tickFormat",
|
|
27
|
-
"tickLength",
|
|
28
|
-
"tickValues",
|
|
29
|
-
"top"
|
|
30
|
-
];
|
|
31
|
-
function f() {
|
|
32
|
-
return f = Object.assign ? Object.assign.bind() : function(e) {
|
|
33
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
34
|
-
var n = arguments[t];
|
|
35
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
36
|
-
}
|
|
37
|
-
return e;
|
|
38
|
-
}, f.apply(this, arguments);
|
|
39
|
-
}
|
|
40
|
-
function p(e, t) {
|
|
41
|
-
if (e == null) return {};
|
|
42
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
43
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
44
|
-
return n;
|
|
45
|
-
}
|
|
46
|
-
function m(m) {
|
|
47
|
-
var h = m.children, g = h === void 0 ? i : h, _ = m.axisClassName, v = m.hideAxisLine, y = v === void 0 ? !1 : v, b = m.hideTicks, x = b === void 0 ? !1 : b, S = m.hideZero, C = S === void 0 ? !1 : S, w = m.innerRef, T = m.left, E = T === void 0 ? 0 : T, D = m.numTicks, O = D === void 0 ? 10 : D, k = m.orientation, A = k === void 0 ? r.bottom : k, j = m.rangePadding, M = j === void 0 ? 0 : j, N = m.scale, P = m.tickFormat, F = m.tickLength, I = F === void 0 ? 8 : F, L = m.tickValues, R = m.top, z = R === void 0 ? 0 : R, B = p(m, d), V = P ?? o(N), H = A === r.left, U = A === r.top, W = U || A === r.bottom, G = a(N), K = H || U ? -1 : 1, q = N.range(), J = c(M), Y = s({
|
|
48
|
-
x: Number(q[0]) + .5 - J.start,
|
|
49
|
-
y: 0
|
|
50
|
-
}, W), X = s({
|
|
51
|
-
x: Number(q[q.length - 1]) + .5 + J.end,
|
|
52
|
-
y: 0
|
|
53
|
-
}, W), Z = (L ?? n(N, O)).filter(function(e) {
|
|
54
|
-
return !C || e !== 0 && e !== "0";
|
|
55
|
-
}).map(function(e, t) {
|
|
56
|
-
return {
|
|
57
|
-
value: e,
|
|
58
|
-
index: t
|
|
59
|
-
};
|
|
60
|
-
}), Q = Z.map(function(e) {
|
|
61
|
-
var n = e.value, r = e.index, i = t(G(n));
|
|
62
|
-
return {
|
|
63
|
-
value: n,
|
|
64
|
-
index: r,
|
|
65
|
-
from: s({
|
|
66
|
-
x: i,
|
|
67
|
-
y: 0
|
|
68
|
-
}, W),
|
|
69
|
-
to: s({
|
|
70
|
-
x: i,
|
|
71
|
-
y: I * K
|
|
72
|
-
}, W),
|
|
73
|
-
formattedValue: V(n, r, Z)
|
|
74
|
-
};
|
|
75
|
-
});
|
|
76
|
-
return /*#__PURE__*/ l.createElement(e, {
|
|
77
|
-
className: u("visx-axis", _),
|
|
78
|
-
innerRef: w,
|
|
79
|
-
top: z,
|
|
80
|
-
left: E
|
|
81
|
-
}, g(f({}, B, {
|
|
82
|
-
axisFromPoint: Y,
|
|
83
|
-
axisToPoint: X,
|
|
84
|
-
hideAxisLine: y,
|
|
85
|
-
hideTicks: x,
|
|
86
|
-
hideZero: C,
|
|
87
|
-
horizontal: W,
|
|
88
|
-
numTicks: O,
|
|
89
|
-
orientation: A,
|
|
90
|
-
rangePadding: M,
|
|
91
|
-
scale: N,
|
|
92
|
-
tickFormat: V,
|
|
93
|
-
tickLength: I,
|
|
94
|
-
tickPosition: G,
|
|
95
|
-
tickSign: K,
|
|
96
|
-
ticks: Q
|
|
97
|
-
})));
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
export { m as default };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import e from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
2
|
-
import t from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js";
|
|
3
|
-
import n from "../constants/orientation.js";
|
|
4
|
-
import r from "../utils/getLabelTransform.js";
|
|
5
|
-
import i from "./Ticks.js";
|
|
6
|
-
import a from "react";
|
|
7
|
-
import o from "classnames";
|
|
8
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js
|
|
9
|
-
function s() {
|
|
10
|
-
return s = Object.assign ? Object.assign.bind() : function(e) {
|
|
11
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
12
|
-
var n = arguments[t];
|
|
13
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
14
|
-
}
|
|
15
|
-
return e;
|
|
16
|
-
}, s.apply(this, arguments);
|
|
17
|
-
}
|
|
18
|
-
var c = {
|
|
19
|
-
textAnchor: "middle",
|
|
20
|
-
fontFamily: "Arial",
|
|
21
|
-
fontSize: 10,
|
|
22
|
-
fill: "#222"
|
|
23
|
-
};
|
|
24
|
-
function l(l) {
|
|
25
|
-
var u = l.axisFromPoint, d = l.axisLineClassName, f = l.axisToPoint, p = l.hideAxisLine, m = l.hideTicks, h = l.horizontal, g = l.label, _ = g === void 0 ? "" : g, v = l.labelClassName, y = l.labelOffset, b = y === void 0 ? 14 : y, x = l.labelProps, S = l.orientation, C = S === void 0 ? n.bottom : S, w = l.scale, T = l.stroke, E = T === void 0 ? "#222" : T, D = l.strokeDasharray, O = l.strokeWidth, k = O === void 0 ? 1 : O, A = l.tickClassName, j = l.tickComponent, M = l.tickLineProps, N = l.tickLabelProps, P = l.tickLength, F = P === void 0 ? 8 : P, I = l.tickStroke, L = I === void 0 ? "#222" : I, R = l.tickTransform, z = l.ticks, B = l.ticksComponent, V = B === void 0 ? i : B, H = s({}, c, x), U = s({}, c, typeof N == "object" ? N : null), W = z.map(function(e) {
|
|
26
|
-
var t = e.value, n = e.index;
|
|
27
|
-
return typeof N == "function" ? N(t, n, z) : U;
|
|
28
|
-
}), G = Math.max.apply(Math, [10].concat(W.map(function(e) {
|
|
29
|
-
return typeof e.fontSize == "number" ? e.fontSize : 0;
|
|
30
|
-
})));
|
|
31
|
-
return /*#__PURE__*/ a.createElement(a.Fragment, null, V({
|
|
32
|
-
hideTicks: m,
|
|
33
|
-
horizontal: h,
|
|
34
|
-
orientation: C,
|
|
35
|
-
scale: w,
|
|
36
|
-
tickClassName: A,
|
|
37
|
-
tickComponent: j,
|
|
38
|
-
tickLabelProps: W,
|
|
39
|
-
tickStroke: L,
|
|
40
|
-
tickTransform: R,
|
|
41
|
-
ticks: z,
|
|
42
|
-
strokeWidth: k,
|
|
43
|
-
tickLineProps: M
|
|
44
|
-
}), !p && /*#__PURE__*/ a.createElement(e, {
|
|
45
|
-
className: o("visx-axis-line", d),
|
|
46
|
-
from: u,
|
|
47
|
-
to: f,
|
|
48
|
-
stroke: E,
|
|
49
|
-
strokeWidth: k,
|
|
50
|
-
strokeDasharray: D
|
|
51
|
-
}), _ && /*#__PURE__*/ a.createElement(t, s({ className: o("visx-axis-label", v) }, r({
|
|
52
|
-
labelOffset: b,
|
|
53
|
-
labelProps: H,
|
|
54
|
-
orientation: C,
|
|
55
|
-
range: w.range(),
|
|
56
|
-
tickLabelFontSize: G,
|
|
57
|
-
tickLength: F
|
|
58
|
-
}), H), _));
|
|
59
|
-
}
|
|
60
|
-
//#endregion
|
|
61
|
-
export { l as default };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import e from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
2
|
-
import t from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
3
|
-
import n from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js";
|
|
4
|
-
import r from "../constants/orientation.js";
|
|
5
|
-
import i from "react";
|
|
6
|
-
import a from "classnames";
|
|
7
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js
|
|
8
|
-
function o() {
|
|
9
|
-
return o = Object.assign ? Object.assign.bind() : function(e) {
|
|
10
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
11
|
-
var n = arguments[t];
|
|
12
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
13
|
-
}
|
|
14
|
-
return e;
|
|
15
|
-
}, o.apply(this, arguments);
|
|
16
|
-
}
|
|
17
|
-
function s(s) {
|
|
18
|
-
var c = s.hideTicks, l = s.horizontal, u = s.orientation, d = s.tickClassName, f = s.tickComponent, p = s.tickLabelProps, m = s.tickStroke, h = m === void 0 ? "#222" : m, g = s.tickTransform, _ = s.ticks, v = s.strokeWidth, y = s.tickLineProps;
|
|
19
|
-
return _.map(function(s) {
|
|
20
|
-
var m = s.value, _ = s.index, b = s.from, x = s.to, S = s.formattedValue, C = p[_] ?? {}, w = Math.max(10, typeof C.fontSize == "number" && C.fontSize || 0), T = x.y + (l && u !== r.top ? w : 0);
|
|
21
|
-
return /*#__PURE__*/ i.createElement(e, {
|
|
22
|
-
key: "visx-tick-" + m + "-" + _,
|
|
23
|
-
className: a("visx-axis-tick", d),
|
|
24
|
-
transform: g
|
|
25
|
-
}, !c && /*#__PURE__*/ i.createElement(t, o({
|
|
26
|
-
from: b,
|
|
27
|
-
to: x,
|
|
28
|
-
stroke: h,
|
|
29
|
-
strokeWidth: v,
|
|
30
|
-
strokeLinecap: "square"
|
|
31
|
-
}, y)), f ? f(o({}, C, {
|
|
32
|
-
x: x.x,
|
|
33
|
-
y: T,
|
|
34
|
-
formattedValue: S
|
|
35
|
-
})) : /*#__PURE__*/ i.createElement(n, o({
|
|
36
|
-
x: x.x,
|
|
37
|
-
y: T
|
|
38
|
-
}, C), S));
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
42
|
-
export { s as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Point as e } from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js
|
|
3
|
-
function t(t, n) {
|
|
4
|
-
var r = t.x, i = t.y;
|
|
5
|
-
return new e(n ? {
|
|
6
|
-
x: r,
|
|
7
|
-
y: i
|
|
8
|
-
} : {
|
|
9
|
-
x: i,
|
|
10
|
-
y: r
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { t as default };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js
|
|
2
|
-
function e() {
|
|
3
|
-
return e = Object.assign ? Object.assign.bind() : function(e) {
|
|
4
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
5
|
-
var n = arguments[t];
|
|
6
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
7
|
-
}
|
|
8
|
-
return e;
|
|
9
|
-
}, e.apply(this, arguments);
|
|
10
|
-
}
|
|
11
|
-
function t(t) {
|
|
12
|
-
return t === void 0 && (t = 0), typeof t == "number" ? {
|
|
13
|
-
start: t,
|
|
14
|
-
end: t
|
|
15
|
-
} : e({
|
|
16
|
-
start: 0,
|
|
17
|
-
end: 0
|
|
18
|
-
}, t);
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
export { t as default };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import e from "../constants/orientation.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js
|
|
3
|
-
function t(t) {
|
|
4
|
-
var n = t.labelOffset, r = t.labelProps, i = t.orientation, a = t.range, o = t.tickLabelFontSize, s = t.tickLength, c = i === e.left || i === e.top ? -1 : 1, l, u, d;
|
|
5
|
-
if (i === e.top || i === e.bottom) {
|
|
6
|
-
var f = i === e.bottom && typeof r.fontSize == "number" ? r.fontSize : 0;
|
|
7
|
-
l = (Number(a[0]) + Number(a[a.length - 1])) / 2, u = c * (s + n + o + f);
|
|
8
|
-
} else l = c * ((Number(a[0]) + Number(a[a.length - 1])) / 2), u = -(s + n), d = "rotate(" + c * 90 + ")";
|
|
9
|
-
return {
|
|
10
|
-
x: l,
|
|
11
|
-
y: u,
|
|
12
|
-
transform: d
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { t as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import e from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js
|
|
3
|
-
function t(t) {
|
|
4
|
-
var n = t;
|
|
5
|
-
return "tickFormat" in n ? n.tickFormat() : e;
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as default };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
t === void 0 && (t = "center");
|
|
4
|
-
var n = e;
|
|
5
|
-
if (t !== "start" && "bandwidth" in n) {
|
|
6
|
-
var r = n.bandwidth();
|
|
7
|
-
return t === "center" && (r /= 2), n.round() && (r = Math.round(r)), function(e) {
|
|
8
|
-
var t = n(e);
|
|
9
|
-
return typeof t == "number" ? t + r : t;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
return e;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { e as default };
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import e from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
2
|
-
import t from "./GridRows.js";
|
|
3
|
-
import n from "./GridColumns.js";
|
|
4
|
-
import r from "react";
|
|
5
|
-
import i from "prop-types";
|
|
6
|
-
import a from "classnames";
|
|
7
|
-
//#region ../../../node_modules/.bun/@visx+grid@3.12.0+f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js
|
|
8
|
-
var o = [
|
|
9
|
-
"top",
|
|
10
|
-
"left",
|
|
11
|
-
"xScale",
|
|
12
|
-
"yScale",
|
|
13
|
-
"width",
|
|
14
|
-
"height",
|
|
15
|
-
"className",
|
|
16
|
-
"stroke",
|
|
17
|
-
"strokeWidth",
|
|
18
|
-
"strokeDasharray",
|
|
19
|
-
"numTicksRows",
|
|
20
|
-
"numTicksColumns",
|
|
21
|
-
"rowLineStyle",
|
|
22
|
-
"columnLineStyle",
|
|
23
|
-
"xOffset",
|
|
24
|
-
"yOffset",
|
|
25
|
-
"rowTickValues",
|
|
26
|
-
"columnTickValues"
|
|
27
|
-
];
|
|
28
|
-
function s() {
|
|
29
|
-
return s = Object.assign ? Object.assign.bind() : function(e) {
|
|
30
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
31
|
-
var n = arguments[t];
|
|
32
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
33
|
-
}
|
|
34
|
-
return e;
|
|
35
|
-
}, s.apply(this, arguments);
|
|
36
|
-
}
|
|
37
|
-
function c(e, t) {
|
|
38
|
-
if (e == null) return {};
|
|
39
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
40
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
41
|
-
return n;
|
|
42
|
-
}
|
|
43
|
-
function l(i) {
|
|
44
|
-
var l = i.top, u = i.left, d = i.xScale, f = i.yScale, p = i.width, m = i.height, h = i.className, g = i.stroke, _ = i.strokeWidth, v = i.strokeDasharray, y = i.numTicksRows, b = i.numTicksColumns, x = i.rowLineStyle, S = i.columnLineStyle, C = i.xOffset, w = i.yOffset, T = i.rowTickValues, E = i.columnTickValues, D = c(i, o);
|
|
45
|
-
return /*#__PURE__*/ r.createElement(e, {
|
|
46
|
-
className: a("visx-grid", h),
|
|
47
|
-
top: l,
|
|
48
|
-
left: u
|
|
49
|
-
}, /*#__PURE__*/ r.createElement(t, s({
|
|
50
|
-
className: h,
|
|
51
|
-
scale: f,
|
|
52
|
-
width: p,
|
|
53
|
-
stroke: g,
|
|
54
|
-
strokeWidth: _,
|
|
55
|
-
strokeDasharray: v,
|
|
56
|
-
numTicks: y,
|
|
57
|
-
lineStyle: x,
|
|
58
|
-
offset: w,
|
|
59
|
-
tickValues: T
|
|
60
|
-
}, D)), /*#__PURE__*/ r.createElement(n, s({
|
|
61
|
-
className: h,
|
|
62
|
-
scale: d,
|
|
63
|
-
height: m,
|
|
64
|
-
stroke: g,
|
|
65
|
-
strokeWidth: _,
|
|
66
|
-
strokeDasharray: v,
|
|
67
|
-
numTicks: b,
|
|
68
|
-
lineStyle: S,
|
|
69
|
-
offset: C,
|
|
70
|
-
tickValues: E
|
|
71
|
-
}, D)));
|
|
72
|
-
}
|
|
73
|
-
l.propTypes = {
|
|
74
|
-
rowTickValues: i.array,
|
|
75
|
-
columnTickValues: i.array
|
|
76
|
-
};
|
|
77
|
-
//#endregion
|
|
78
|
-
export { l as default };
|