@pie-lib/graphing 4.0.5-next.3 → 4.0.5-next.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +23 -0
- package/dist/autosize-input.d.ts +10 -0
- package/dist/autosize-input.js +66 -0
- package/dist/axis/arrow.d.ts +13 -0
- package/dist/axis/arrow.js +34 -0
- package/dist/axis/axes.d.ts +132 -0
- package/dist/axis/axes.js +214 -0
- package/dist/axis/index.d.ts +10 -0
- package/dist/bg.d.ts +51 -0
- package/dist/bg.js +44 -0
- package/dist/container/actions.d.ts +15 -0
- package/dist/container/actions.js +7 -0
- package/dist/container/index.d.ts +58 -0
- package/dist/container/index.js +48 -0
- package/dist/container/marks.d.ts +10 -0
- package/dist/container/marks.js +11 -0
- package/dist/container/middleware.d.ts +10 -0
- package/dist/container/middleware.js +4 -0
- package/dist/container/reducer.d.ts +14 -0
- package/dist/container/reducer.js +7 -0
- package/dist/coordinates-label.d.ts +50 -0
- package/dist/coordinates-label.js +46 -0
- package/dist/graph-with-controls.d.ts +88 -0
- package/dist/graph-with-controls.js +154 -0
- package/dist/graph.d.ts +126 -0
- package/dist/graph.js +209 -0
- package/dist/grid-setup.d.ts +27 -0
- package/dist/grid-setup.js +307 -0
- package/dist/grid.d.ts +43 -0
- package/dist/grid.js +59 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +7 -0
- package/dist/key-legend.d.ts +21 -0
- package/dist/key-legend.js +231 -0
- package/dist/label-svg-icon.d.ts +18 -0
- package/dist/label-svg-icon.js +42 -0
- package/dist/labels.d.ts +37 -0
- package/dist/labels.js +152 -0
- package/dist/mark-label.d.ts +58 -0
- package/dist/mark-label.js +171 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +101 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +63 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +44 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +21 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +15 -0
- package/dist/node_modules/.bun/@visx_curve@3.12.0/node_modules/@visx/curve/esm/index.js +2 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +79 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +79 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +79 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
- package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +50 -0
- package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +18 -0
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +10 -0
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +9 -0
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +47 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +50 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +9 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +6 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +53 -0
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +57 -0
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +91 -0
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +21 -0
- package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +32 -0
- package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +33 -0
- package/dist/node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js +32 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +16 -0
- package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +28 -0
- package/dist/node_modules/.bun/lodash@4.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-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js +471 -0
- package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +49 -0
- package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +34 -0
- package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +185 -0
- package/dist/node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js +198 -0
- package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +53 -0
- package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +51 -0
- package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/toggle-bar.d.ts +40 -0
- package/dist/toggle-bar.js +155 -0
- package/dist/tool-menu.d.ts +29 -0
- package/dist/tool-menu.js +41 -0
- package/dist/tools/absolute/component.d.ts +16 -0
- package/dist/tools/absolute/component.js +15 -0
- package/dist/tools/absolute/index.d.ts +20 -0
- package/dist/tools/absolute/index.js +32 -0
- package/dist/tools/circle/bg-circle.d.ts +116 -0
- package/dist/tools/circle/bg-circle.js +72 -0
- package/dist/tools/circle/component.d.ts +83 -0
- package/dist/tools/circle/component.js +195 -0
- package/dist/tools/circle/index.d.ts +20 -0
- package/dist/tools/circle/index.js +22 -0
- package/dist/tools/exponential/component.d.ts +16 -0
- package/dist/tools/exponential/component.js +14 -0
- package/dist/tools/exponential/index.d.ts +20 -0
- package/dist/tools/exponential/index.js +32 -0
- package/dist/tools/index.d.ts +27 -0
- package/dist/tools/index.js +55 -0
- package/dist/tools/line/component.d.ts +124 -0
- package/dist/tools/line/component.js +72 -0
- package/dist/tools/line/index.d.ts +13 -0
- package/dist/tools/line/index.js +6 -0
- package/dist/tools/parabola/component.d.ts +16 -0
- package/dist/tools/parabola/component.js +14 -0
- package/dist/tools/parabola/index.d.ts +20 -0
- package/dist/tools/parabola/index.js +32 -0
- package/dist/tools/point/component.d.ts +50 -0
- package/dist/tools/point/component.js +85 -0
- package/dist/tools/point/index.d.ts +15 -0
- package/dist/tools/point/index.js +13 -0
- package/dist/tools/polygon/component.d.ts +120 -0
- package/dist/tools/polygon/component.js +262 -0
- package/dist/tools/polygon/index.d.ts +19 -0
- package/dist/tools/polygon/index.js +55 -0
- package/dist/tools/polygon/line.d.ts +125 -0
- package/dist/tools/polygon/line.js +63 -0
- package/dist/tools/polygon/polygon.d.ts +122 -0
- package/dist/tools/polygon/polygon.js +74 -0
- package/dist/tools/ray/component.d.ts +101 -0
- package/dist/tools/ray/component.js +71 -0
- package/dist/tools/ray/index.d.ts +13 -0
- package/dist/tools/ray/index.js +6 -0
- package/dist/tools/segment/component.d.ts +100 -0
- package/dist/tools/segment/component.js +52 -0
- package/dist/tools/segment/index.d.ts +13 -0
- package/dist/tools/segment/index.js +6 -0
- package/dist/tools/shared/arrow-head.d.ts +51 -0
- package/dist/tools/shared/arrow-head.js +63 -0
- package/dist/tools/shared/icons/CorrectSVG.d.ts +26 -0
- package/dist/tools/shared/icons/CorrectSVG.js +29 -0
- package/dist/tools/shared/icons/IncorrectSVG.d.ts +26 -0
- package/dist/tools/shared/icons/IncorrectSVG.js +27 -0
- package/dist/tools/shared/icons/MissingSVG.d.ts +26 -0
- package/dist/tools/shared/icons/MissingSVG.js +28 -0
- package/dist/tools/shared/line/index.d.ts +245 -0
- package/dist/tools/shared/line/index.js +319 -0
- package/dist/tools/shared/line/line-path.d.ts +57 -0
- package/dist/tools/shared/line/line-path.js +71 -0
- package/dist/tools/shared/line/with-root-edge.d.ts +142 -0
- package/dist/tools/shared/line/with-root-edge.js +73 -0
- package/dist/tools/shared/point/arrow-point.d.ts +56 -0
- package/dist/tools/shared/point/arrow-point.js +41 -0
- package/dist/tools/shared/point/arrow.d.ts +45 -0
- package/dist/tools/shared/point/arrow.js +35 -0
- package/dist/tools/shared/point/base-point.d.ts +52 -0
- package/dist/tools/shared/point/base-point.js +103 -0
- package/dist/tools/shared/point/index.d.ts +216 -0
- package/dist/tools/shared/point/index.js +45 -0
- package/dist/tools/shared/styles.d.ts +29 -0
- package/dist/tools/shared/styles.js +20 -0
- package/dist/tools/shared/types.d.ts +21 -0
- package/dist/tools/shared/types.js +11 -0
- package/dist/tools/sine/component.d.ts +16 -0
- package/dist/tools/sine/component.js +22 -0
- package/dist/tools/sine/index.d.ts +20 -0
- package/dist/tools/sine/index.js +32 -0
- package/dist/tools/vector/component.d.ts +100 -0
- package/dist/tools/vector/component.js +44 -0
- package/dist/tools/vector/index.d.ts +13 -0
- package/dist/tools/vector/index.js +6 -0
- package/dist/undo-redo.d.ts +22 -0
- package/dist/undo-redo.js +47 -0
- package/dist/use-debounce.d.ts +9 -0
- package/dist/use-debounce.js +13 -0
- package/dist/utils.d.ts +61 -0
- package/dist/utils.js +75 -0
- package/package.json +45 -33
- package/CHANGELOG.json +0 -1
- package/CHANGELOG.md +0 -1469
- package/LICENSE.md +0 -5
- package/lib/axis/arrow.js +0 -79
- package/lib/axis/arrow.js.map +0 -1
- package/lib/axis/axes.js +0 -329
- package/lib/axis/axes.js.map +0 -1
- package/lib/axis/index.js +0 -21
- package/lib/axis/index.js.map +0 -1
- package/lib/bg.js +0 -114
- package/lib/bg.js.map +0 -1
- package/lib/container/actions.js +0 -18
- package/lib/container/actions.js.map +0 -1
- package/lib/container/index.js +0 -118
- package/lib/container/index.js.map +0 -1
- package/lib/container/marks.js +0 -22
- package/lib/container/marks.js.map +0 -1
- package/lib/container/middleware.js +0 -19
- package/lib/container/middleware.js.map +0 -1
- package/lib/container/reducer.js +0 -18
- package/lib/container/reducer.js.map +0 -1
- package/lib/coordinates-label.js +0 -79
- package/lib/coordinates-label.js.map +0 -1
- package/lib/graph-with-controls.js +0 -294
- package/lib/graph-with-controls.js.map +0 -1
- package/lib/graph.js +0 -327
- package/lib/graph.js.map +0 -1
- package/lib/grid-setup.js +0 -414
- package/lib/grid-setup.js.map +0 -1
- package/lib/grid.js +0 -131
- package/lib/grid.js.map +0 -1
- package/lib/index.js +0 -47
- package/lib/index.js.map +0 -1
- package/lib/key-legend.js +0 -201
- package/lib/key-legend.js.map +0 -1
- package/lib/label-svg-icon.js +0 -50
- package/lib/label-svg-icon.js.map +0 -1
- package/lib/labels.js +0 -243
- package/lib/labels.js.map +0 -1
- package/lib/mark-label.js +0 -285
- package/lib/mark-label.js.map +0 -1
- package/lib/toggle-bar.js +0 -252
- package/lib/toggle-bar.js.map +0 -1
- package/lib/tool-menu.js +0 -78
- package/lib/tool-menu.js.map +0 -1
- package/lib/tools/absolute/component.js +0 -29
- package/lib/tools/absolute/component.js.map +0 -1
- package/lib/tools/absolute/index.js +0 -50
- package/lib/tools/absolute/index.js.map +0 -1
- package/lib/tools/circle/bg-circle.js +0 -123
- package/lib/tools/circle/bg-circle.js.map +0 -1
- package/lib/tools/circle/component.js +0 -321
- package/lib/tools/circle/component.js.map +0 -1
- package/lib/tools/circle/index.js +0 -41
- package/lib/tools/circle/index.js.map +0 -1
- package/lib/tools/exponential/component.js +0 -28
- package/lib/tools/exponential/component.js.map +0 -1
- package/lib/tools/exponential/index.js +0 -56
- package/lib/tools/exponential/index.js.map +0 -1
- package/lib/tools/index.js +0 -86
- package/lib/tools/index.js.map +0 -1
- package/lib/tools/line/component.js +0 -97
- package/lib/tools/line/component.js.map +0 -1
- package/lib/tools/line/index.js +0 -11
- package/lib/tools/line/index.js.map +0 -1
- package/lib/tools/parabola/component.js +0 -28
- package/lib/tools/parabola/component.js.map +0 -1
- package/lib/tools/parabola/index.js +0 -50
- package/lib/tools/parabola/index.js.map +0 -1
- package/lib/tools/point/component.js +0 -148
- package/lib/tools/point/component.js.map +0 -1
- package/lib/tools/point/index.js +0 -24
- package/lib/tools/point/index.js.map +0 -1
- package/lib/tools/polygon/component.js +0 -437
- package/lib/tools/polygon/component.js.map +0 -1
- package/lib/tools/polygon/index.js +0 -89
- package/lib/tools/polygon/index.js.map +0 -1
- package/lib/tools/polygon/line.js +0 -112
- package/lib/tools/polygon/line.js.map +0 -1
- package/lib/tools/polygon/polygon.js +0 -130
- package/lib/tools/polygon/polygon.js.map +0 -1
- package/lib/tools/ray/component.js +0 -95
- package/lib/tools/ray/component.js.map +0 -1
- package/lib/tools/ray/index.js +0 -11
- package/lib/tools/ray/index.js.map +0 -1
- package/lib/tools/segment/component.js +0 -71
- package/lib/tools/segment/component.js.map +0 -1
- package/lib/tools/segment/index.js +0 -11
- package/lib/tools/segment/index.js.map +0 -1
- package/lib/tools/shared/arrow-head.js +0 -111
- package/lib/tools/shared/arrow-head.js.map +0 -1
- package/lib/tools/shared/icons/CorrectSVG.js +0 -40
- package/lib/tools/shared/icons/CorrectSVG.js.map +0 -1
- package/lib/tools/shared/icons/IncorrectSVG.js +0 -40
- package/lib/tools/shared/icons/IncorrectSVG.js.map +0 -1
- package/lib/tools/shared/icons/MissingSVG.js +0 -39
- package/lib/tools/shared/icons/MissingSVG.js.map +0 -1
- package/lib/tools/shared/line/index.js +0 -550
- package/lib/tools/shared/line/index.js.map +0 -1
- package/lib/tools/shared/line/line-path.js +0 -118
- package/lib/tools/shared/line/line-path.js.map +0 -1
- package/lib/tools/shared/line/with-root-edge.js +0 -121
- package/lib/tools/shared/line/with-root-edge.js.map +0 -1
- package/lib/tools/shared/point/arrow-point.js +0 -72
- package/lib/tools/shared/point/arrow-point.js.map +0 -1
- package/lib/tools/shared/point/arrow.js +0 -67
- package/lib/tools/shared/point/arrow.js.map +0 -1
- package/lib/tools/shared/point/base-point.js +0 -157
- package/lib/tools/shared/point/base-point.js.map +0 -1
- package/lib/tools/shared/point/index.js +0 -68
- package/lib/tools/shared/point/index.js.map +0 -1
- package/lib/tools/shared/styles.js +0 -33
- package/lib/tools/shared/styles.js.map +0 -1
- package/lib/tools/shared/types.js +0 -16
- package/lib/tools/shared/types.js.map +0 -1
- package/lib/tools/sine/component.js +0 -40
- package/lib/tools/sine/component.js.map +0 -1
- package/lib/tools/sine/index.js +0 -50
- package/lib/tools/sine/index.js.map +0 -1
- package/lib/tools/vector/component.js +0 -68
- package/lib/tools/vector/component.js.map +0 -1
- package/lib/tools/vector/index.js +0 -11
- package/lib/tools/vector/index.js.map +0 -1
- package/lib/undo-redo.js +0 -86
- package/lib/undo-redo.js.map +0 -1
- package/lib/use-debounce.js +0 -25
- package/lib/use-debounce.js.map +0 -1
- package/lib/utils.js +0 -229
- package/lib/utils.js.map +0 -1
- package/src/__tests__/bg.test.jsx +0 -250
- package/src/__tests__/coordinates-label.test.jsx +0 -243
- package/src/__tests__/graph-with-controls.test.jsx +0 -198
- package/src/__tests__/graph.test.jsx +0 -721
- package/src/__tests__/grid-setup.test.jsx +0 -645
- package/src/__tests__/grid.test.jsx +0 -22
- package/src/__tests__/key-legend.test.jsx +0 -260
- package/src/__tests__/label-svg-icon.test.jsx +0 -278
- package/src/__tests__/labels.test.jsx +0 -55
- package/src/__tests__/mark-label.test.jsx +0 -63
- package/src/__tests__/toggle-bar.test.jsx +0 -146
- package/src/__tests__/tool-menu.test.jsx +0 -115
- package/src/__tests__/undo-redo.test.jsx +0 -24
- package/src/__tests__/use-debounce.test.js +0 -21
- package/src/__tests__/utils.js +0 -41
- package/src/__tests__/utils.test.js +0 -105
- package/src/axis/__tests__/arrow.test.jsx +0 -38
- package/src/axis/__tests__/axes.test.jsx +0 -216
- package/src/axis/arrow.jsx +0 -57
- package/src/axis/axes.jsx +0 -285
- package/src/axis/index.js +0 -3
- package/src/bg.jsx +0 -96
- package/src/container/__tests__/actions.test.js +0 -105
- package/src/container/__tests__/index.test.jsx +0 -319
- package/src/container/__tests__/marks.test.js +0 -172
- package/src/container/__tests__/middleware.test.js +0 -235
- package/src/container/__tests__/reducer.test.js +0 -324
- package/src/container/actions.js +0 -8
- package/src/container/index.jsx +0 -83
- package/src/container/marks.js +0 -14
- package/src/container/middleware.js +0 -7
- package/src/container/reducer.js +0 -5
- package/src/coordinates-label.jsx +0 -63
- package/src/graph-with-controls.jsx +0 -239
- package/src/graph.jsx +0 -303
- package/src/grid-setup.jsx +0 -432
- package/src/grid.jsx +0 -133
- package/src/index.js +0 -7
- package/src/key-legend.jsx +0 -142
- package/src/label-svg-icon.jsx +0 -39
- package/src/labels.jsx +0 -207
- package/src/mark-label.jsx +0 -244
- package/src/toggle-bar.jsx +0 -224
- package/src/tool-menu.jsx +0 -49
- package/src/tools/absolute/__tests__/component.test.jsx +0 -53
- package/src/tools/absolute/component.jsx +0 -23
- package/src/tools/absolute/index.js +0 -31
- package/src/tools/circle/__tests__/bg-circle.test.jsx +0 -26
- package/src/tools/circle/__tests__/component.test.jsx +0 -494
- package/src/tools/circle/__tests__/index.test.js +0 -480
- package/src/tools/circle/bg-circle.jsx +0 -81
- package/src/tools/circle/component.jsx +0 -264
- package/src/tools/circle/index.js +0 -25
- package/src/tools/exponential/__tests__/component.test.jsx +0 -53
- package/src/tools/exponential/__tests__/index.test.js +0 -729
- package/src/tools/exponential/component.jsx +0 -23
- package/src/tools/exponential/index.js +0 -39
- package/src/tools/index.js +0 -48
- package/src/tools/line/__tests__/component.test.jsx +0 -37
- package/src/tools/line/component.jsx +0 -93
- package/src/tools/line/index.js +0 -4
- package/src/tools/parabola/__tests__/component.test.jsx +0 -48
- package/src/tools/parabola/__tests__/index.test.js +0 -470
- package/src/tools/parabola/component.jsx +0 -23
- package/src/tools/parabola/index.js +0 -31
- package/src/tools/point/__tests__/component.test.jsx +0 -349
- package/src/tools/point/__tests__/index.test.js +0 -241
- package/src/tools/point/component.jsx +0 -126
- package/src/tools/point/index.js +0 -11
- package/src/tools/polygon/__tests__/component.test.jsx +0 -471
- package/src/tools/polygon/__tests__/index.test.js +0 -294
- package/src/tools/polygon/__tests__/line.test.jsx +0 -35
- package/src/tools/polygon/__tests__/polygon.test.jsx +0 -61
- package/src/tools/polygon/component.jsx +0 -409
- package/src/tools/polygon/index.js +0 -52
- package/src/tools/polygon/line.jsx +0 -74
- package/src/tools/polygon/polygon.jsx +0 -110
- package/src/tools/ray/__tests__/component.test.jsx +0 -29
- package/src/tools/ray/component.jsx +0 -92
- package/src/tools/ray/index.js +0 -4
- package/src/tools/segment/__tests__/component.test.jsx +0 -28
- package/src/tools/segment/component.jsx +0 -65
- package/src/tools/segment/index.js +0 -4
- package/src/tools/shared/__tests__/arrow-head.test.jsx +0 -31
- package/src/tools/shared/arrow-head.jsx +0 -102
- package/src/tools/shared/icons/CorrectSVG.jsx +0 -32
- package/src/tools/shared/icons/IncorrectSVG.jsx +0 -30
- package/src/tools/shared/icons/MissingSVG.jsx +0 -31
- package/src/tools/shared/line/__tests__/index.test.jsx +0 -109
- package/src/tools/shared/line/__tests__/line-path.test.jsx +0 -53
- package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +0 -73
- package/src/tools/shared/line/index.jsx +0 -487
- package/src/tools/shared/line/line-path.jsx +0 -80
- package/src/tools/shared/line/with-root-edge.jsx +0 -97
- package/src/tools/shared/point/__tests__/arrow-point.test.jsx +0 -91
- package/src/tools/shared/point/__tests__/base-point.test.jsx +0 -87
- package/src/tools/shared/point/arrow-point.jsx +0 -46
- package/src/tools/shared/point/arrow.jsx +0 -37
- package/src/tools/shared/point/base-point.jsx +0 -121
- package/src/tools/shared/point/index.jsx +0 -54
- package/src/tools/shared/styles.js +0 -27
- package/src/tools/shared/types.js +0 -10
- package/src/tools/sine/__tests__/component.test.jsx +0 -51
- package/src/tools/sine/component.jsx +0 -32
- package/src/tools/sine/index.js +0 -33
- package/src/tools/vector/__tests__/component.test.jsx +0 -25
- package/src/tools/vector/component.jsx +0 -56
- package/src/tools/vector/index.js +0 -4
- package/src/undo-redo.jsx +0 -45
- package/src/use-debounce.js +0 -13
- package/src/utils.js +0 -224
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing/src/tools/shared/point/arrow-point.jsx
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import PropTypes from 'prop-types';
|
|
11
|
+
export declare class RawArrow extends React.Component {
|
|
12
|
+
static propTypes: {
|
|
13
|
+
className: PropTypes.Requireable<string>;
|
|
14
|
+
correctness: PropTypes.Requireable<string>;
|
|
15
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
16
|
+
x: PropTypes.Validator<number>;
|
|
17
|
+
y: PropTypes.Validator<number>;
|
|
18
|
+
from: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
19
|
+
x: PropTypes.Requireable<number>;
|
|
20
|
+
y: PropTypes.Requireable<number>;
|
|
21
|
+
}>>>;
|
|
22
|
+
to: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
|
+
x: PropTypes.Requireable<number>;
|
|
24
|
+
y: PropTypes.Requireable<number>;
|
|
25
|
+
}>>;
|
|
26
|
+
graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
27
|
+
scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
28
|
+
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
29
|
+
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
30
|
+
}>>>;
|
|
31
|
+
snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
32
|
+
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
33
|
+
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
34
|
+
}>>>;
|
|
35
|
+
domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
36
|
+
min: PropTypes.Validator<number>;
|
|
37
|
+
max: PropTypes.Validator<number>;
|
|
38
|
+
step: PropTypes.Requireable<number>;
|
|
39
|
+
}>>>;
|
|
40
|
+
range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
41
|
+
min: PropTypes.Validator<number>;
|
|
42
|
+
max: PropTypes.Validator<number>;
|
|
43
|
+
step: PropTypes.Requireable<number>;
|
|
44
|
+
}>>>;
|
|
45
|
+
size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
46
|
+
width: PropTypes.Validator<number>;
|
|
47
|
+
height: PropTypes.Validator<number>;
|
|
48
|
+
}>>>;
|
|
49
|
+
}>>>;
|
|
50
|
+
};
|
|
51
|
+
static defaultProps: {
|
|
52
|
+
from: {};
|
|
53
|
+
to: {};
|
|
54
|
+
};
|
|
55
|
+
render(): React.JSX.Element;
|
|
56
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { arrowDimensions as e, getAngleDeg as t } from "../../../utils.js";
|
|
2
|
+
import n from "react";
|
|
3
|
+
import r from "prop-types";
|
|
4
|
+
import { types as i } from "@pie-lib/plot";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/tools/shared/point/arrow-point.tsx
|
|
7
|
+
var o = class extends n.Component {
|
|
8
|
+
static propTypes = {
|
|
9
|
+
className: r.string,
|
|
10
|
+
correctness: r.string,
|
|
11
|
+
disabled: r.bool,
|
|
12
|
+
x: r.number.isRequired,
|
|
13
|
+
y: r.number.isRequired,
|
|
14
|
+
from: r.shape({
|
|
15
|
+
x: r.number,
|
|
16
|
+
y: r.number
|
|
17
|
+
}).isRequired,
|
|
18
|
+
to: r.shape({
|
|
19
|
+
x: r.number,
|
|
20
|
+
y: r.number
|
|
21
|
+
}),
|
|
22
|
+
graphProps: i.GraphPropsType.isRequired
|
|
23
|
+
};
|
|
24
|
+
static defaultProps = {
|
|
25
|
+
from: {},
|
|
26
|
+
to: {}
|
|
27
|
+
};
|
|
28
|
+
render() {
|
|
29
|
+
let { className: n, x: r, y: i, graphProps: o, from: s, to: c, ...l } = this.props, { scale: u } = o, d = s && c ? t(s.x, s.y, c.x, c.y) : 0, f = s && c && (s.x !== c.x || s.y !== c.y) ? `0,0 ${e.vector},${e.vector * 2} -${e.vector},${e.vector * 2}` : "0,0 0,0 0,0";
|
|
30
|
+
return /* @__PURE__ */ a("g", {
|
|
31
|
+
className: n,
|
|
32
|
+
...l,
|
|
33
|
+
children: /* @__PURE__ */ a("polygon", {
|
|
34
|
+
points: f,
|
|
35
|
+
transform: `translate(${u.x(r)}, ${u.y(i)}) rotate(${d} 0 0)`
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { o as RawArrow };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing/src/tools/shared/point/arrow.jsx
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import PropTypes from 'prop-types';
|
|
11
|
+
export declare class BaseArrow extends React.Component {
|
|
12
|
+
static propTypes: {
|
|
13
|
+
className: PropTypes.Requireable<string>;
|
|
14
|
+
correctness: PropTypes.Requireable<string>;
|
|
15
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
16
|
+
x: PropTypes.Validator<number>;
|
|
17
|
+
y: PropTypes.Validator<number>;
|
|
18
|
+
angle: PropTypes.Validator<number>;
|
|
19
|
+
graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
20
|
+
scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
21
|
+
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
|
+
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
23
|
+
}>>>;
|
|
24
|
+
snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
25
|
+
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
26
|
+
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
27
|
+
}>>>;
|
|
28
|
+
domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
29
|
+
min: PropTypes.Validator<number>;
|
|
30
|
+
max: PropTypes.Validator<number>;
|
|
31
|
+
step: PropTypes.Requireable<number>;
|
|
32
|
+
}>>>;
|
|
33
|
+
range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
34
|
+
min: PropTypes.Validator<number>;
|
|
35
|
+
max: PropTypes.Validator<number>;
|
|
36
|
+
step: PropTypes.Requireable<number>;
|
|
37
|
+
}>>>;
|
|
38
|
+
size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
39
|
+
width: PropTypes.Validator<number>;
|
|
40
|
+
height: PropTypes.Validator<number>;
|
|
41
|
+
}>>>;
|
|
42
|
+
}>>>;
|
|
43
|
+
};
|
|
44
|
+
render(): React.JSX.Element;
|
|
45
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { thinnerShapesNeeded as e } from "../../../utils.js";
|
|
2
|
+
import { ArrowHead as t } from "../arrow-head.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import r from "prop-types";
|
|
5
|
+
import { types as i } from "@pie-lib/plot";
|
|
6
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
//#region src/tools/shared/point/arrow.tsx
|
|
8
|
+
var o = class extends n.Component {
|
|
9
|
+
static propTypes = {
|
|
10
|
+
className: r.string,
|
|
11
|
+
correctness: r.string,
|
|
12
|
+
disabled: r.bool,
|
|
13
|
+
x: r.number.isRequired,
|
|
14
|
+
y: r.number.isRequired,
|
|
15
|
+
angle: r.number.isRequired,
|
|
16
|
+
graphProps: i.GraphPropsType.isRequired
|
|
17
|
+
};
|
|
18
|
+
render() {
|
|
19
|
+
let { className: n, angle: r, x: i, y: o, correctness: s, graphProps: c, ...l } = this.props, u = e(c) ? 12 : 14, { scale: d } = c, f = d.x(i), p = d.y(o), m = `rotate(${-r}, ${f},${p})`, h = `${f},${p}
|
|
20
|
+
${f - u},${p - u / 2}
|
|
21
|
+
${f - u},${p + u / 2}`;
|
|
22
|
+
return /* @__PURE__ */ a("g", {
|
|
23
|
+
className: n,
|
|
24
|
+
...l,
|
|
25
|
+
children: /* @__PURE__ */ a(t, {
|
|
26
|
+
size: u,
|
|
27
|
+
transform: m,
|
|
28
|
+
points: h,
|
|
29
|
+
correctness: s
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { o as BaseArrow };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing/src/tools/shared/point/base-point.jsx
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import PropTypes from 'prop-types';
|
|
11
|
+
export declare class RawBp extends React.Component {
|
|
12
|
+
static propTypes: {
|
|
13
|
+
className: PropTypes.Requireable<string>;
|
|
14
|
+
coordinatesOnHover: PropTypes.Requireable<boolean>;
|
|
15
|
+
correctness: PropTypes.Requireable<string>;
|
|
16
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
17
|
+
labelNode: PropTypes.Requireable<object>;
|
|
18
|
+
x: PropTypes.Validator<number>;
|
|
19
|
+
y: PropTypes.Validator<number>;
|
|
20
|
+
graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
21
|
+
scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
22
|
+
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
23
|
+
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
24
|
+
}>>>;
|
|
25
|
+
snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
26
|
+
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
27
|
+
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
28
|
+
}>>>;
|
|
29
|
+
domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
30
|
+
min: PropTypes.Validator<number>;
|
|
31
|
+
max: PropTypes.Validator<number>;
|
|
32
|
+
step: PropTypes.Requireable<number>;
|
|
33
|
+
}>>>;
|
|
34
|
+
range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
35
|
+
min: PropTypes.Validator<number>;
|
|
36
|
+
max: PropTypes.Validator<number>;
|
|
37
|
+
step: PropTypes.Requireable<number>;
|
|
38
|
+
}>>>;
|
|
39
|
+
size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
40
|
+
width: PropTypes.Validator<number>;
|
|
41
|
+
height: PropTypes.Validator<number>;
|
|
42
|
+
}>>>;
|
|
43
|
+
}>>>;
|
|
44
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
|
+
onTouchStart: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
|
+
onTouchEnd: PropTypes.Requireable<(...args: any[]) => any>;
|
|
47
|
+
};
|
|
48
|
+
state: {
|
|
49
|
+
showCoordinates: boolean;
|
|
50
|
+
};
|
|
51
|
+
render(): React.JSX.Element;
|
|
52
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { thinnerShapesNeeded as e } from "../../../utils.js";
|
|
2
|
+
import t from "../../../coordinates-label.js";
|
|
3
|
+
import n from "../icons/MissingSVG.js";
|
|
4
|
+
import r from "../icons/CorrectSVG.js";
|
|
5
|
+
import i from "../icons/IncorrectSVG.js";
|
|
6
|
+
import { correct as a, disabled as o, incorrect as s, missing as c } from "../styles.js";
|
|
7
|
+
import l from "react";
|
|
8
|
+
import u from "prop-types";
|
|
9
|
+
import { types as d } from "@pie-lib/plot";
|
|
10
|
+
import { styled as f } from "@mui/material/styles";
|
|
11
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
12
|
+
import g from "react-dom";
|
|
13
|
+
//#region src/tools/shared/point/base-point.tsx
|
|
14
|
+
var _ = f("g")(({ disabled: e, correctness: t }) => ({
|
|
15
|
+
cursor: "pointer",
|
|
16
|
+
"& circle": { fill: "currentColor" },
|
|
17
|
+
...e && {
|
|
18
|
+
...o("fill"),
|
|
19
|
+
...o("color")
|
|
20
|
+
},
|
|
21
|
+
...t === "correct" && {
|
|
22
|
+
...a("fill"),
|
|
23
|
+
...a("color")
|
|
24
|
+
},
|
|
25
|
+
...t === "incorrect" && {
|
|
26
|
+
...s("fill"),
|
|
27
|
+
...s("color")
|
|
28
|
+
},
|
|
29
|
+
...t === "missing" && {
|
|
30
|
+
...c("fill"),
|
|
31
|
+
...c("color")
|
|
32
|
+
}
|
|
33
|
+
})), v = class extends l.Component {
|
|
34
|
+
static propTypes = {
|
|
35
|
+
className: u.string,
|
|
36
|
+
coordinatesOnHover: u.bool,
|
|
37
|
+
correctness: u.string,
|
|
38
|
+
disabled: u.bool,
|
|
39
|
+
labelNode: u.object,
|
|
40
|
+
x: u.number.isRequired,
|
|
41
|
+
y: u.number.isRequired,
|
|
42
|
+
graphProps: d.GraphPropsType.isRequired,
|
|
43
|
+
onClick: u.func,
|
|
44
|
+
onTouchStart: u.func,
|
|
45
|
+
onTouchEnd: u.func
|
|
46
|
+
};
|
|
47
|
+
state = { showCoordinates: !1 };
|
|
48
|
+
render() {
|
|
49
|
+
let { className: a, coordinatesOnHover: o, x: s, y: c, disabled: l, correctness: u, graphProps: d, labelNode: f, onClick: v, onTouchStart: y, onTouchEnd: b } = this.props, { showCoordinates: x } = this.state, { scale: S } = d, C = e(d) ? 5 : 7, w;
|
|
50
|
+
switch (u) {
|
|
51
|
+
case "missing":
|
|
52
|
+
w = n;
|
|
53
|
+
break;
|
|
54
|
+
case "correct":
|
|
55
|
+
w = r;
|
|
56
|
+
break;
|
|
57
|
+
case "incorrect":
|
|
58
|
+
w = i;
|
|
59
|
+
break;
|
|
60
|
+
default: w = null;
|
|
61
|
+
}
|
|
62
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("circle", {
|
|
63
|
+
style: {
|
|
64
|
+
fill: "transparent",
|
|
65
|
+
cursor: "pointer",
|
|
66
|
+
pointerEvents: "all"
|
|
67
|
+
},
|
|
68
|
+
r: C * 3,
|
|
69
|
+
cx: S.x(s),
|
|
70
|
+
cy: S.y(c),
|
|
71
|
+
onMouseEnter: () => this.setState({ showCoordinates: !0 }),
|
|
72
|
+
onMouseLeave: () => this.setState({ showCoordinates: !1 }),
|
|
73
|
+
onTouchStart: y,
|
|
74
|
+
onTouchEnd: b,
|
|
75
|
+
onClick: v
|
|
76
|
+
}), /* @__PURE__ */ h(_, {
|
|
77
|
+
className: a,
|
|
78
|
+
disabled: l,
|
|
79
|
+
correctness: u,
|
|
80
|
+
onMouseEnter: () => this.setState({ showCoordinates: !0 }),
|
|
81
|
+
onMouseLeave: () => this.setState({ showCoordinates: !1 }),
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ m("circle", {
|
|
84
|
+
r: C,
|
|
85
|
+
cx: S.x(s),
|
|
86
|
+
cy: S.y(c)
|
|
87
|
+
}),
|
|
88
|
+
w && /* @__PURE__ */ m(w, {
|
|
89
|
+
scale: S,
|
|
90
|
+
x: s,
|
|
91
|
+
y: c
|
|
92
|
+
}),
|
|
93
|
+
f && o && x && g.createPortal(/* @__PURE__ */ m(t, {
|
|
94
|
+
graphProps: d,
|
|
95
|
+
x: s,
|
|
96
|
+
y: c
|
|
97
|
+
}), f)
|
|
98
|
+
]
|
|
99
|
+
})] });
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
//#endregion
|
|
103
|
+
export { v as RawBp };
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing/src/tools/shared/point/index.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
|
+
export declare const BasePoint: {
|
|
11
|
+
new (props: any): {
|
|
12
|
+
grid: any;
|
|
13
|
+
onStart: any;
|
|
14
|
+
position: any;
|
|
15
|
+
tiny: any;
|
|
16
|
+
getScaledBounds: any;
|
|
17
|
+
getClientPoint: any;
|
|
18
|
+
skipDragOutsideOfBounds: any;
|
|
19
|
+
onDrag: any;
|
|
20
|
+
getDelta: any;
|
|
21
|
+
applyDelta: any;
|
|
22
|
+
onStop: any;
|
|
23
|
+
render(): React.JSX.Element;
|
|
24
|
+
context: unknown;
|
|
25
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
26
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
27
|
+
readonly props: Readonly<{}>;
|
|
28
|
+
state: Readonly<{}>;
|
|
29
|
+
refs: {
|
|
30
|
+
[key: string]: React.ReactInstance;
|
|
31
|
+
};
|
|
32
|
+
componentDidMount?(): void;
|
|
33
|
+
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
34
|
+
componentWillUnmount?(): void;
|
|
35
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
36
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
37
|
+
componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
38
|
+
componentWillMount?(): void;
|
|
39
|
+
UNSAFE_componentWillMount?(): void;
|
|
40
|
+
componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
|
41
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
|
42
|
+
componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
43
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
44
|
+
};
|
|
45
|
+
propTypes: {
|
|
46
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
47
|
+
onDragStart: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
48
|
+
onDrag: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
49
|
+
onDragStop: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
50
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
51
|
+
onMove: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
52
|
+
graphProps: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
53
|
+
scale: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
54
|
+
x: import("prop-types").Validator<(...args: any[]) => any>;
|
|
55
|
+
y: import("prop-types").Validator<(...args: any[]) => any>;
|
|
56
|
+
}>>>;
|
|
57
|
+
snap: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
58
|
+
x: import("prop-types").Validator<(...args: any[]) => any>;
|
|
59
|
+
y: import("prop-types").Validator<(...args: any[]) => any>;
|
|
60
|
+
}>>>;
|
|
61
|
+
domain: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
62
|
+
min: import("prop-types").Validator<number>;
|
|
63
|
+
max: import("prop-types").Validator<number>;
|
|
64
|
+
step: import("prop-types").Requireable<number>;
|
|
65
|
+
}>>>;
|
|
66
|
+
range: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
67
|
+
min: import("prop-types").Validator<number>;
|
|
68
|
+
max: import("prop-types").Validator<number>;
|
|
69
|
+
step: import("prop-types").Requireable<number>;
|
|
70
|
+
}>>>;
|
|
71
|
+
size: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
72
|
+
width: import("prop-types").Validator<number>;
|
|
73
|
+
height: import("prop-types").Validator<number>;
|
|
74
|
+
}>>>;
|
|
75
|
+
}>>>;
|
|
76
|
+
};
|
|
77
|
+
contextType?: React.Context<any> | undefined;
|
|
78
|
+
};
|
|
79
|
+
export declare const ArrowPoint: {
|
|
80
|
+
new (props: any): {
|
|
81
|
+
grid: any;
|
|
82
|
+
onStart: any;
|
|
83
|
+
position: any;
|
|
84
|
+
tiny: any;
|
|
85
|
+
getScaledBounds: any;
|
|
86
|
+
getClientPoint: any;
|
|
87
|
+
skipDragOutsideOfBounds: any;
|
|
88
|
+
onDrag: any;
|
|
89
|
+
getDelta: any;
|
|
90
|
+
applyDelta: any;
|
|
91
|
+
onStop: any;
|
|
92
|
+
render(): React.JSX.Element;
|
|
93
|
+
context: unknown;
|
|
94
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
95
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
96
|
+
readonly props: Readonly<{}>;
|
|
97
|
+
state: Readonly<{}>;
|
|
98
|
+
refs: {
|
|
99
|
+
[key: string]: React.ReactInstance;
|
|
100
|
+
};
|
|
101
|
+
componentDidMount?(): void;
|
|
102
|
+
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
103
|
+
componentWillUnmount?(): void;
|
|
104
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
105
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
106
|
+
componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
107
|
+
componentWillMount?(): void;
|
|
108
|
+
UNSAFE_componentWillMount?(): void;
|
|
109
|
+
componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
|
110
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
|
111
|
+
componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
112
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
113
|
+
};
|
|
114
|
+
propTypes: {
|
|
115
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
116
|
+
onDragStart: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
117
|
+
onDrag: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
118
|
+
onDragStop: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
119
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
120
|
+
onMove: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
121
|
+
graphProps: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
122
|
+
scale: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
123
|
+
x: import("prop-types").Validator<(...args: any[]) => any>;
|
|
124
|
+
y: import("prop-types").Validator<(...args: any[]) => any>;
|
|
125
|
+
}>>>;
|
|
126
|
+
snap: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
127
|
+
x: import("prop-types").Validator<(...args: any[]) => any>;
|
|
128
|
+
y: import("prop-types").Validator<(...args: any[]) => any>;
|
|
129
|
+
}>>>;
|
|
130
|
+
domain: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
131
|
+
min: import("prop-types").Validator<number>;
|
|
132
|
+
max: import("prop-types").Validator<number>;
|
|
133
|
+
step: import("prop-types").Requireable<number>;
|
|
134
|
+
}>>>;
|
|
135
|
+
range: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
136
|
+
min: import("prop-types").Validator<number>;
|
|
137
|
+
max: import("prop-types").Validator<number>;
|
|
138
|
+
step: import("prop-types").Requireable<number>;
|
|
139
|
+
}>>>;
|
|
140
|
+
size: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
141
|
+
width: import("prop-types").Validator<number>;
|
|
142
|
+
height: import("prop-types").Validator<number>;
|
|
143
|
+
}>>>;
|
|
144
|
+
}>>>;
|
|
145
|
+
};
|
|
146
|
+
contextType?: React.Context<any> | undefined;
|
|
147
|
+
};
|
|
148
|
+
export declare const Arrow: {
|
|
149
|
+
new (props: any): {
|
|
150
|
+
grid: any;
|
|
151
|
+
onStart: any;
|
|
152
|
+
position: any;
|
|
153
|
+
tiny: any;
|
|
154
|
+
getScaledBounds: any;
|
|
155
|
+
getClientPoint: any;
|
|
156
|
+
skipDragOutsideOfBounds: any;
|
|
157
|
+
onDrag: any;
|
|
158
|
+
getDelta: any;
|
|
159
|
+
applyDelta: any;
|
|
160
|
+
onStop: any;
|
|
161
|
+
render(): React.JSX.Element;
|
|
162
|
+
context: unknown;
|
|
163
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
164
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
165
|
+
readonly props: Readonly<{}>;
|
|
166
|
+
state: Readonly<{}>;
|
|
167
|
+
refs: {
|
|
168
|
+
[key: string]: React.ReactInstance;
|
|
169
|
+
};
|
|
170
|
+
componentDidMount?(): void;
|
|
171
|
+
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
172
|
+
componentWillUnmount?(): void;
|
|
173
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
174
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
175
|
+
componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
176
|
+
componentWillMount?(): void;
|
|
177
|
+
UNSAFE_componentWillMount?(): void;
|
|
178
|
+
componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
|
179
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
|
180
|
+
componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
181
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
182
|
+
};
|
|
183
|
+
propTypes: {
|
|
184
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
185
|
+
onDragStart: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
186
|
+
onDrag: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
187
|
+
onDragStop: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
188
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
189
|
+
onMove: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
190
|
+
graphProps: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
191
|
+
scale: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
192
|
+
x: import("prop-types").Validator<(...args: any[]) => any>;
|
|
193
|
+
y: import("prop-types").Validator<(...args: any[]) => any>;
|
|
194
|
+
}>>>;
|
|
195
|
+
snap: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
196
|
+
x: import("prop-types").Validator<(...args: any[]) => any>;
|
|
197
|
+
y: import("prop-types").Validator<(...args: any[]) => any>;
|
|
198
|
+
}>>>;
|
|
199
|
+
domain: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
200
|
+
min: import("prop-types").Validator<number>;
|
|
201
|
+
max: import("prop-types").Validator<number>;
|
|
202
|
+
step: import("prop-types").Requireable<number>;
|
|
203
|
+
}>>>;
|
|
204
|
+
range: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
205
|
+
min: import("prop-types").Validator<number>;
|
|
206
|
+
max: import("prop-types").Validator<number>;
|
|
207
|
+
step: import("prop-types").Requireable<number>;
|
|
208
|
+
}>>>;
|
|
209
|
+
size: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
210
|
+
width: import("prop-types").Validator<number>;
|
|
211
|
+
height: import("prop-types").Validator<number>;
|
|
212
|
+
}>>>;
|
|
213
|
+
}>>>;
|
|
214
|
+
};
|
|
215
|
+
contextType?: React.Context<any> | undefined;
|
|
216
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { bounds as e, point as t } from "../../../utils.js";
|
|
2
|
+
import { RawBp as n } from "./base-point.js";
|
|
3
|
+
import { RawArrow as r } from "./arrow-point.js";
|
|
4
|
+
import { BaseArrow as i } from "./arrow.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { gridDraggable as a } from "@pie-lib/plot";
|
|
7
|
+
import { styled as o } from "@mui/material/styles";
|
|
8
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
9
|
+
import { color as c } from "@pie-lib/render-ui";
|
|
10
|
+
//#region src/tools/shared/point/index.tsx
|
|
11
|
+
var l = {
|
|
12
|
+
bounds: (t, { domain: n, range: r }) => {
|
|
13
|
+
let { x: i, y: a } = t;
|
|
14
|
+
return e({
|
|
15
|
+
left: i,
|
|
16
|
+
top: a,
|
|
17
|
+
bottom: a,
|
|
18
|
+
right: i
|
|
19
|
+
}, n, r);
|
|
20
|
+
},
|
|
21
|
+
anchorPoint: (e) => {
|
|
22
|
+
let { x: t, y: n } = e;
|
|
23
|
+
return {
|
|
24
|
+
x: t,
|
|
25
|
+
y: n
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
fromDelta: (e, n) => t(e).add(t(n))
|
|
29
|
+
}, u = o("g")(() => ({
|
|
30
|
+
"& circle, & polygon": { cursor: "pointer" },
|
|
31
|
+
"&[disabled]": { "& circle, & polygon": { fill: c.disabledSecondary() } }
|
|
32
|
+
})), d = a(l)((e) => /* @__PURE__ */ s(u, {
|
|
33
|
+
...e,
|
|
34
|
+
children: /* @__PURE__ */ s(n, { ...e })
|
|
35
|
+
}));
|
|
36
|
+
a(l)((e) => /* @__PURE__ */ s(u, {
|
|
37
|
+
...e,
|
|
38
|
+
children: /* @__PURE__ */ s(r, { ...e })
|
|
39
|
+
}));
|
|
40
|
+
var f = a(l)((e) => /* @__PURE__ */ s(u, {
|
|
41
|
+
...e,
|
|
42
|
+
children: /* @__PURE__ */ s(i, { ...e })
|
|
43
|
+
}));
|
|
44
|
+
//#endregion
|
|
45
|
+
export { f as Arrow, d as BasePoint };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing/src/tools/shared/styles.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
export declare const graphingShapeFill: () => string;
|
|
10
|
+
export declare const disabled: (key?: string) => {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
pointerEvents: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const disabledSecondary: (key?: string) => {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
pointerEvents: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const correct: (key?: string) => {
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
pointerEvents: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const incorrect: (key?: string) => {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
pointerEvents: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const missing: (key?: string) => {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
pointerEvents: string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { color as e } from "@pie-lib/render-ui";
|
|
2
|
+
//#region src/tools/shared/styles.ts
|
|
3
|
+
var t = () => e.visualElementsColors.SHAPES_FILL_COLOR, n = (t = "fill") => ({
|
|
4
|
+
[t]: e.disabledSecondary(),
|
|
5
|
+
pointerEvents: "none"
|
|
6
|
+
}), r = (t = "fill") => ({
|
|
7
|
+
[t]: e.disabledSecondary(),
|
|
8
|
+
pointerEvents: "none"
|
|
9
|
+
}), i = (t = "fill") => ({
|
|
10
|
+
[t]: e.correctWithIcon(),
|
|
11
|
+
pointerEvents: "none"
|
|
12
|
+
}), a = (t = "fill") => ({
|
|
13
|
+
[t]: e.incorrectWithIcon(),
|
|
14
|
+
pointerEvents: "none"
|
|
15
|
+
}), o = (t = "fill") => ({
|
|
16
|
+
[t]: e.missingWithIcon(),
|
|
17
|
+
pointerEvents: "none"
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { i as correct, n as disabled, r as disabledSecondary, t as graphingShapeFill, a as incorrect, o as missing };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing/src/tools/shared/types.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
export declare const ToolPropTypeFields: {
|
|
11
|
+
mark: PropTypes.Requireable<any>;
|
|
12
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
+
onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
+
onDragStop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
+
};
|
|
16
|
+
export declare const ToolPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
+
mark: PropTypes.Requireable<any>;
|
|
18
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
onDragStop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
+
}>>;
|