@pie-lib/graphing-solution-set 4.0.4-next.30 → 4.0.4-next.34
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 +34 -46
- 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/autosize-input.d.ts +0 -10
- package/dist/autosize-input.js +0 -66
- 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 -58
- package/dist/container/index.js +0 -48
- 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 -14
- 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/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -101
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -63
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -44
- 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 -79
- 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 -50
- 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 -47
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -53
- 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/classnames@2.5.1/node_modules/classnames/index.js +0 -32
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -16
- 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-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js +0 -471
- 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@5.0.1/node_modules/redux/dist/redux.js +0 -198
- 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 +0 -53
- 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 +0 -51
- package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js +0 -10
- 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 -117
- 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
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/graphing-solution-set/src/container/reducer.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
|
-
declare const _default: () => import("redux").Reducer<{
|
|
10
|
-
marks: import("redux-undo").StateWithHistory<never[]>;
|
|
11
|
-
}, import("redux").UnknownAction, Partial<{
|
|
12
|
-
marks: import("redux-undo").StateWithHistory<never[]> | undefined;
|
|
13
|
-
}>>;
|
|
14
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { combineReducers as e } from "../node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js";
|
|
2
|
-
import t from "./marks.js";
|
|
3
|
-
import { C as n } from "../node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js";
|
|
4
|
-
//#region src/container/reducer.ts
|
|
5
|
-
var r = () => e({ marks: n(t, { debug: !1 }) });
|
|
6
|
-
//#endregion
|
|
7
|
-
export { r as default };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/graphing-solution-set/src/coordinates-label.jsx
|
|
3
|
-
* @auto-generated
|
|
4
|
-
*
|
|
5
|
-
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
-
* Manual edits will be overwritten on next sync.
|
|
7
|
-
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
|
-
export declare const getLabelPosition: (graphProps: any, x: any, y: any, labelLength: any) => {
|
|
12
|
-
left: any;
|
|
13
|
-
top: number;
|
|
14
|
-
};
|
|
15
|
-
export declare const CoordinatesLabel: {
|
|
16
|
-
({ x, y, graphProps }: {
|
|
17
|
-
x: any;
|
|
18
|
-
y: any;
|
|
19
|
-
graphProps: any;
|
|
20
|
-
}): React.JSX.Element;
|
|
21
|
-
propTypes: {
|
|
22
|
-
graphProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
|
-
scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
24
|
-
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
25
|
-
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
26
|
-
}>>>;
|
|
27
|
-
snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
28
|
-
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
29
|
-
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
30
|
-
}>>>;
|
|
31
|
-
domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
32
|
-
min: PropTypes.Validator<number>;
|
|
33
|
-
max: PropTypes.Validator<number>;
|
|
34
|
-
step: PropTypes.Requireable<number>;
|
|
35
|
-
}>>>;
|
|
36
|
-
range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
37
|
-
min: PropTypes.Validator<number>;
|
|
38
|
-
max: PropTypes.Validator<number>;
|
|
39
|
-
step: PropTypes.Requireable<number>;
|
|
40
|
-
}>>>;
|
|
41
|
-
size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
42
|
-
width: PropTypes.Validator<number>;
|
|
43
|
-
height: PropTypes.Validator<number>;
|
|
44
|
-
}>>>;
|
|
45
|
-
}>>;
|
|
46
|
-
x: PropTypes.Requireable<number>;
|
|
47
|
-
y: PropTypes.Requireable<number>;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
export default CoordinatesLabel;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { roundNumber as e } from "./utils.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import t from "prop-types";
|
|
4
|
-
import { types as n } from "@pie-lib/plot";
|
|
5
|
-
import { styled as r } from "@mui/material/styles";
|
|
6
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
-
import { color as a } from "@pie-lib/render-ui";
|
|
8
|
-
import o from "@mui/material/InputBase";
|
|
9
|
-
//#region src/coordinates-label.tsx
|
|
10
|
-
var s = r(o)(({ theme: e }) => ({
|
|
11
|
-
fontFamily: e.typography.fontFamily,
|
|
12
|
-
fontSize: e.typography.fontSize,
|
|
13
|
-
borderRadius: "8px",
|
|
14
|
-
background: e.palette.common.white,
|
|
15
|
-
color: a.defaults.BLACK,
|
|
16
|
-
"& .MuiInputBase-input": { padding: 0 }
|
|
17
|
-
})), c = (e, t, n, r) => {
|
|
18
|
-
let { scale: i, domain: a, range: o } = e, s = n === o.min ? 16 : n === o.max ? 0 : 8;
|
|
19
|
-
return i.x(t) + r + 10 >= i.x(a.max) ? {
|
|
20
|
-
left: i.x(t) - 10 - r,
|
|
21
|
-
top: i.y(n) - s
|
|
22
|
-
} : {
|
|
23
|
-
left: i.x(t) + 10,
|
|
24
|
-
top: i.y(n) - s
|
|
25
|
-
};
|
|
26
|
-
}, l = ({ x: t, y: n, graphProps: r }) => {
|
|
27
|
-
let a = `(${e(t)}, ${e(n)})`, o = (a.length || 0) * 6;
|
|
28
|
-
return /* @__PURE__ */ i(s, {
|
|
29
|
-
style: {
|
|
30
|
-
position: "absolute",
|
|
31
|
-
pointerEvents: "auto",
|
|
32
|
-
width: o,
|
|
33
|
-
padding: 0,
|
|
34
|
-
...c(r, t, n, o)
|
|
35
|
-
},
|
|
36
|
-
value: a,
|
|
37
|
-
inputProps: { ariaLabel: "naked" }
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
l.propTypes = {
|
|
41
|
-
graphProps: n.GraphPropsType,
|
|
42
|
-
x: t.number,
|
|
43
|
-
y: t.number
|
|
44
|
-
};
|
|
45
|
-
//#endregion
|
|
46
|
-
export { l as default };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/graphing-solution-set/src/graph-with-controls.jsx
|
|
3
|
-
* @auto-generated
|
|
4
|
-
*
|
|
5
|
-
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
-
* Manual edits will be overwritten on next sync.
|
|
7
|
-
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
|
-
export declare const setToolbarAvailability: (toolbarTools: any) => {
|
|
12
|
-
toolbar: boolean;
|
|
13
|
-
type: any;
|
|
14
|
-
Component: any;
|
|
15
|
-
addPoint: (point: any, mark: any) => any;
|
|
16
|
-
}[];
|
|
17
|
-
export declare const toolIsAvailable: (tools: any, currentTool: any) => any;
|
|
18
|
-
export declare const getAvailableTool: (tools: any) => any;
|
|
19
|
-
export declare const filterByValidToolTypes: (backgroundMarks: any) => any;
|
|
20
|
-
export declare const filterByVisibleToolTypes: (toolbarTools: any, marks: any) => any;
|
|
21
|
-
export declare class GraphWithControls extends React.Component {
|
|
22
|
-
static propTypes: {
|
|
23
|
-
onUndo: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
-
onRedo: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
-
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
-
toolbarTools: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
27
|
-
language: PropTypes.Requireable<string>;
|
|
28
|
-
axesSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
29
|
-
includeArrows: PropTypes.Requireable<object>;
|
|
30
|
-
graphProps: PropTypes.Requireable<object>;
|
|
31
|
-
}>>;
|
|
32
|
-
backgroundMarks: PropTypes.Requireable<any[]>;
|
|
33
|
-
className: PropTypes.Requireable<string>;
|
|
34
|
-
collapsibleToolbar: PropTypes.Requireable<boolean>;
|
|
35
|
-
collapsibleToolbarTitle: PropTypes.Requireable<string>;
|
|
36
|
-
disabledLabels: PropTypes.Requireable<boolean>;
|
|
37
|
-
disabledTitle: PropTypes.Requireable<boolean>;
|
|
38
|
-
domain: PropTypes.Requireable<PropTypes.InferProps<{
|
|
39
|
-
min: PropTypes.Validator<number>;
|
|
40
|
-
max: PropTypes.Validator<number>;
|
|
41
|
-
step: PropTypes.Requireable<number>;
|
|
42
|
-
}>>;
|
|
43
|
-
labels: PropTypes.Requireable<PropTypes.InferProps<{
|
|
44
|
-
left: PropTypes.Requireable<string>;
|
|
45
|
-
top: PropTypes.Requireable<string>;
|
|
46
|
-
bottom: PropTypes.Requireable<string>;
|
|
47
|
-
right: PropTypes.Requireable<string>;
|
|
48
|
-
}>>;
|
|
49
|
-
labelModeEnabled: PropTypes.Requireable<boolean>;
|
|
50
|
-
coordinatesOnHover: PropTypes.Requireable<boolean>;
|
|
51
|
-
marks: PropTypes.Requireable<any[]>;
|
|
52
|
-
onChangeLabels: PropTypes.Requireable<(...args: any[]) => any>;
|
|
53
|
-
onChangeMarks: PropTypes.Requireable<(...args: any[]) => any>;
|
|
54
|
-
onChangeTitle: PropTypes.Requireable<(...args: any[]) => any>;
|
|
55
|
-
range: PropTypes.Requireable<PropTypes.InferProps<{
|
|
56
|
-
min: PropTypes.Validator<number>;
|
|
57
|
-
max: PropTypes.Validator<number>;
|
|
58
|
-
step: PropTypes.Requireable<number>;
|
|
59
|
-
}>>;
|
|
60
|
-
size: PropTypes.Requireable<PropTypes.InferProps<{
|
|
61
|
-
width: PropTypes.Validator<number>;
|
|
62
|
-
height: PropTypes.Validator<number>;
|
|
63
|
-
}>>;
|
|
64
|
-
showLabels: PropTypes.Requireable<boolean>;
|
|
65
|
-
showPixelGuides: PropTypes.Requireable<boolean>;
|
|
66
|
-
showTitle: PropTypes.Requireable<boolean>;
|
|
67
|
-
title: PropTypes.Requireable<string>;
|
|
68
|
-
tools: PropTypes.Requireable<any[]>;
|
|
69
|
-
};
|
|
70
|
-
static defaultProps: {
|
|
71
|
-
collapsibleToolbar: boolean;
|
|
72
|
-
collapsibleToolbarTitle: string;
|
|
73
|
-
disabledLabels: boolean;
|
|
74
|
-
disabledTitle: boolean;
|
|
75
|
-
showLabels: boolean;
|
|
76
|
-
showTitle: boolean;
|
|
77
|
-
toolbarTools: never[];
|
|
78
|
-
};
|
|
79
|
-
constructor(props: any);
|
|
80
|
-
componentDidUpdate(prevProps: any): void;
|
|
81
|
-
changeCurrentTool: (tool: any, tools: any) => void;
|
|
82
|
-
toggleLabelMode: () => void;
|
|
83
|
-
render(): React.JSX.Element;
|
|
84
|
-
}
|
|
85
|
-
export default GraphWithControls;
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import e from "./node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
2
|
-
import t, { graphPropTypes as n } from "./graph.js";
|
|
3
|
-
import r from "./tool-menu.js";
|
|
4
|
-
import i from "./undo-redo.js";
|
|
5
|
-
import { allTools as a, toolsArr as o } from "./tools/index.js";
|
|
6
|
-
import s from "react";
|
|
7
|
-
import c from "prop-types";
|
|
8
|
-
import { isString as l, uniq as u } from "@pie-element/shared-lodash";
|
|
9
|
-
import { styled as d } from "@mui/material/styles";
|
|
10
|
-
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
|
-
import { color as h } from "@pie-lib/render-ui";
|
|
12
|
-
import { Accordion as g, AccordionDetails as _, AccordionSummary as v, Typography as y } from "@mui/material";
|
|
13
|
-
import b from "@mui/icons-material/ExpandMore";
|
|
14
|
-
//#region src/graph-with-controls.tsx
|
|
15
|
-
var x = (e) => o.map((t) => ({
|
|
16
|
-
...t,
|
|
17
|
-
toolbar: !!e.find((e) => e === t.type)
|
|
18
|
-
})) || [], S = (e, t) => t && e && (e.find((e) => e.type === t.type) || {}).toolbar, C = (e) => e.find((e) => e.toolbar), w = (e) => e.filter((e) => !!a.find((t) => t === e.type)), T = (e, t) => t.filter((t) => !!e.find((e) => e === t.type)), E = (e) => o.find((t) => t.type === e) || null, D = d("div")(() => ({
|
|
19
|
-
display: "flex",
|
|
20
|
-
flexDirection: "column",
|
|
21
|
-
width: "min-content"
|
|
22
|
-
})), O = d("div")(() => ({
|
|
23
|
-
display: "flex",
|
|
24
|
-
justifyContent: "space-between",
|
|
25
|
-
padding: "calc(1.25rem - 12px) calc(1.25rem - 12px) 1.25rem",
|
|
26
|
-
color: h.text(),
|
|
27
|
-
backgroundColor: "#9FA8DA",
|
|
28
|
-
"& button": {
|
|
29
|
-
fontSize: "0.875rem",
|
|
30
|
-
padding: "0.25rem .3rem",
|
|
31
|
-
width: "5rem"
|
|
32
|
-
}
|
|
33
|
-
})), k = d(g)(() => ({
|
|
34
|
-
backgroundColor: h.primaryLight(),
|
|
35
|
-
width: "100%",
|
|
36
|
-
boxShadow: "none"
|
|
37
|
-
})), A = d(v)(({ theme: e }) => ({
|
|
38
|
-
padding: `0 ${e.spacing(1)}`,
|
|
39
|
-
minHeight: "32px !important",
|
|
40
|
-
"& .MuiAccordionSummary-content": { margin: "4px 0 !important" }
|
|
41
|
-
})), j = d(_)(({ theme: e }) => ({
|
|
42
|
-
padding: 0,
|
|
43
|
-
marginTop: e.spacing(1),
|
|
44
|
-
display: "flex",
|
|
45
|
-
justifyContent: "space-between"
|
|
46
|
-
})), M = d("div")(() => ({
|
|
47
|
-
display: "flex",
|
|
48
|
-
flexDirection: "column",
|
|
49
|
-
marginTop: ".5rem"
|
|
50
|
-
})), N = ({ children: e, title: t }) => /* @__PURE__ */ m(k, {
|
|
51
|
-
square: !0,
|
|
52
|
-
disableGutters: !0,
|
|
53
|
-
children: [/* @__PURE__ */ p(A, {
|
|
54
|
-
expandIcon: /* @__PURE__ */ p(b, {}),
|
|
55
|
-
children: /* @__PURE__ */ p(y, {
|
|
56
|
-
variant: "subtitle1",
|
|
57
|
-
children: t
|
|
58
|
-
})
|
|
59
|
-
}), /* @__PURE__ */ p(j, { children: e })]
|
|
60
|
-
});
|
|
61
|
-
N.propTypes = {
|
|
62
|
-
children: c.node,
|
|
63
|
-
title: c.string
|
|
64
|
-
};
|
|
65
|
-
var P = class extends s.Component {
|
|
66
|
-
static propTypes = {
|
|
67
|
-
...n,
|
|
68
|
-
onUndo: c.func,
|
|
69
|
-
onRedo: c.func,
|
|
70
|
-
onReset: c.func,
|
|
71
|
-
toolbarTools: c.arrayOf(c.string),
|
|
72
|
-
language: c.string
|
|
73
|
-
};
|
|
74
|
-
static defaultProps = {
|
|
75
|
-
collapsibleToolbar: !1,
|
|
76
|
-
collapsibleToolbarTitle: "",
|
|
77
|
-
disabledLabels: !1,
|
|
78
|
-
disabledTitle: !1,
|
|
79
|
-
showLabels: !0,
|
|
80
|
-
showTitle: !0,
|
|
81
|
-
toolbarTools: []
|
|
82
|
-
};
|
|
83
|
-
constructor(e) {
|
|
84
|
-
super(e), this.state = {
|
|
85
|
-
currentTool: E(e.defaultTool),
|
|
86
|
-
labelModeEnabled: !1
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
componentDidUpdate(e) {
|
|
90
|
-
let { defaultTool: t } = this.props;
|
|
91
|
-
if (e.defaultTool !== t) {
|
|
92
|
-
let e = E(t);
|
|
93
|
-
this.setState({ currentTool: e });
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
changeCurrentTool = (e, t) => this.setState({ currentTool: t.find((t) => t.type === e) });
|
|
97
|
-
toggleLabelMode = () => this.setState((e) => ({ labelModeEnabled: !e.labelModeEnabled }));
|
|
98
|
-
render() {
|
|
99
|
-
let { currentTool: n, labelModeEnabled: a } = this.state, { axesSettings: o, className: s, coordinatesOnHover: c, collapsibleToolbar: d, collapsibleToolbarTitle: h, disabled: g, disabledLabels: _, disabledTitle: v, domain: y, labels: b, labelsPlaceholders: E, onChangeLabels: k, onChangeMarks: A, onChangeTitle: j, onUndo: P, onRedo: F, range: I, size: L, showLabels: R, showPixelGuides: z, showTitle: B, title: V, titlePlaceholder: H, language: U, disableToolbar: W = !1, gssLineData: G, onChangeGssLineData: K, onSolutionSetSelected: q, onCustomReset: J } = this.props, { backgroundMarks: Y, marks: X, toolbarTools: Z } = this.props;
|
|
100
|
-
Z = u(Z || []).filter((e) => !!l(e)) || [], Y = w(Y || []), X = T(Z, X || []), G && G.lineA && X[0] && X[0].type === "line" && (X[0].fill = G.lineA.lineType), G && G.lineB && X[1] && X[1].type === "line" && (X[1].fill = G.lineB.lineType);
|
|
101
|
-
let Q = x(Z);
|
|
102
|
-
(!n || !S(Q, n)) && (n = C(Q));
|
|
103
|
-
let $ = G && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(r, {
|
|
104
|
-
numberOfLines: G.numberOfLines,
|
|
105
|
-
gssLineData: G,
|
|
106
|
-
onChange: K,
|
|
107
|
-
disabled: !!g,
|
|
108
|
-
language: U
|
|
109
|
-
}), !g && /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(i, {
|
|
110
|
-
onUndo: P,
|
|
111
|
-
onRedo: F,
|
|
112
|
-
onReset: J,
|
|
113
|
-
language: U
|
|
114
|
-
}) })] });
|
|
115
|
-
return /* @__PURE__ */ m(D, {
|
|
116
|
-
className: e(s),
|
|
117
|
-
children: [
|
|
118
|
-
!W && /* @__PURE__ */ p(O, { children: d ? /* @__PURE__ */ p(N, {
|
|
119
|
-
title: h,
|
|
120
|
-
children: $
|
|
121
|
-
}) : $ }),
|
|
122
|
-
/* @__PURE__ */ p("div", { ref: (e) => this.labelNode = e }),
|
|
123
|
-
/* @__PURE__ */ p(t, {
|
|
124
|
-
axesSettings: o,
|
|
125
|
-
backgroundMarks: Y,
|
|
126
|
-
coordinatesOnHover: c,
|
|
127
|
-
currentTool: n,
|
|
128
|
-
disabledLabels: _,
|
|
129
|
-
disabledTitle: v,
|
|
130
|
-
domain: y,
|
|
131
|
-
labels: b,
|
|
132
|
-
labelModeEnabled: a,
|
|
133
|
-
labelsPlaceholders: E,
|
|
134
|
-
marks: X,
|
|
135
|
-
onChangeMarks: g ? void 0 : A,
|
|
136
|
-
onChangeLabels: k,
|
|
137
|
-
onChangeTitle: j,
|
|
138
|
-
range: I,
|
|
139
|
-
size: L,
|
|
140
|
-
showLabels: R,
|
|
141
|
-
showPixelGuides: z,
|
|
142
|
-
showTitle: B,
|
|
143
|
-
title: V,
|
|
144
|
-
titlePlaceholder: H,
|
|
145
|
-
tools: Q,
|
|
146
|
-
gssLineData: G,
|
|
147
|
-
onSolutionSetSelected: q,
|
|
148
|
-
disabled: !!g
|
|
149
|
-
})
|
|
150
|
-
]
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
//#endregion
|
|
155
|
-
export { P as default };
|
package/dist/graph.d.ts
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/graphing-solution-set/src/graph.jsx
|
|
3
|
-
* @auto-generated
|
|
4
|
-
*
|
|
5
|
-
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
-
* Manual edits will be overwritten on next sync.
|
|
7
|
-
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
|
-
export declare const graphPropTypes: {
|
|
12
|
-
axesSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
|
-
includeArrows: PropTypes.Requireable<object>;
|
|
14
|
-
graphProps: PropTypes.Requireable<object>;
|
|
15
|
-
}>>;
|
|
16
|
-
backgroundMarks: PropTypes.Requireable<any[]>;
|
|
17
|
-
className: PropTypes.Requireable<string>;
|
|
18
|
-
collapsibleToolbar: PropTypes.Requireable<boolean>;
|
|
19
|
-
collapsibleToolbarTitle: PropTypes.Requireable<string>;
|
|
20
|
-
disabledLabels: PropTypes.Requireable<boolean>;
|
|
21
|
-
disabledTitle: PropTypes.Requireable<boolean>;
|
|
22
|
-
domain: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
|
-
min: PropTypes.Validator<number>;
|
|
24
|
-
max: PropTypes.Validator<number>;
|
|
25
|
-
step: PropTypes.Requireable<number>;
|
|
26
|
-
}>>;
|
|
27
|
-
labels: PropTypes.Requireable<PropTypes.InferProps<{
|
|
28
|
-
left: PropTypes.Requireable<string>;
|
|
29
|
-
top: PropTypes.Requireable<string>;
|
|
30
|
-
bottom: PropTypes.Requireable<string>;
|
|
31
|
-
right: PropTypes.Requireable<string>;
|
|
32
|
-
}>>;
|
|
33
|
-
labelModeEnabled: PropTypes.Requireable<boolean>;
|
|
34
|
-
coordinatesOnHover: PropTypes.Requireable<boolean>;
|
|
35
|
-
marks: PropTypes.Requireable<any[]>;
|
|
36
|
-
onChangeLabels: PropTypes.Requireable<(...args: any[]) => any>;
|
|
37
|
-
onChangeMarks: PropTypes.Requireable<(...args: any[]) => any>;
|
|
38
|
-
onChangeTitle: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
|
-
range: PropTypes.Requireable<PropTypes.InferProps<{
|
|
40
|
-
min: PropTypes.Validator<number>;
|
|
41
|
-
max: PropTypes.Validator<number>;
|
|
42
|
-
step: PropTypes.Requireable<number>;
|
|
43
|
-
}>>;
|
|
44
|
-
size: PropTypes.Requireable<PropTypes.InferProps<{
|
|
45
|
-
width: PropTypes.Validator<number>;
|
|
46
|
-
height: PropTypes.Validator<number>;
|
|
47
|
-
}>>;
|
|
48
|
-
showLabels: PropTypes.Requireable<boolean>;
|
|
49
|
-
showPixelGuides: PropTypes.Requireable<boolean>;
|
|
50
|
-
showTitle: PropTypes.Requireable<boolean>;
|
|
51
|
-
title: PropTypes.Requireable<string>;
|
|
52
|
-
tools: PropTypes.Requireable<any[]>;
|
|
53
|
-
};
|
|
54
|
-
export declare const removeBuildingToolIfCurrentToolDiffers: ({ marks, currentTool }: {
|
|
55
|
-
marks: any;
|
|
56
|
-
currentTool: any;
|
|
57
|
-
}) => any;
|
|
58
|
-
export declare class Graph extends React.Component {
|
|
59
|
-
constructor(props: any);
|
|
60
|
-
static propTypes: {
|
|
61
|
-
currentTool: PropTypes.Requireable<object>;
|
|
62
|
-
axesSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
63
|
-
includeArrows: PropTypes.Requireable<object>;
|
|
64
|
-
graphProps: PropTypes.Requireable<object>;
|
|
65
|
-
}>>;
|
|
66
|
-
backgroundMarks: PropTypes.Requireable<any[]>;
|
|
67
|
-
className: PropTypes.Requireable<string>;
|
|
68
|
-
collapsibleToolbar: PropTypes.Requireable<boolean>;
|
|
69
|
-
collapsibleToolbarTitle: PropTypes.Requireable<string>;
|
|
70
|
-
disabledLabels: PropTypes.Requireable<boolean>;
|
|
71
|
-
disabledTitle: PropTypes.Requireable<boolean>;
|
|
72
|
-
domain: PropTypes.Requireable<PropTypes.InferProps<{
|
|
73
|
-
min: PropTypes.Validator<number>;
|
|
74
|
-
max: PropTypes.Validator<number>;
|
|
75
|
-
step: PropTypes.Requireable<number>;
|
|
76
|
-
}>>;
|
|
77
|
-
labels: PropTypes.Requireable<PropTypes.InferProps<{
|
|
78
|
-
left: PropTypes.Requireable<string>;
|
|
79
|
-
top: PropTypes.Requireable<string>;
|
|
80
|
-
bottom: PropTypes.Requireable<string>;
|
|
81
|
-
right: PropTypes.Requireable<string>;
|
|
82
|
-
}>>;
|
|
83
|
-
labelModeEnabled: PropTypes.Requireable<boolean>;
|
|
84
|
-
coordinatesOnHover: PropTypes.Requireable<boolean>;
|
|
85
|
-
marks: PropTypes.Requireable<any[]>;
|
|
86
|
-
onChangeLabels: PropTypes.Requireable<(...args: any[]) => any>;
|
|
87
|
-
onChangeMarks: PropTypes.Requireable<(...args: any[]) => any>;
|
|
88
|
-
onChangeTitle: PropTypes.Requireable<(...args: any[]) => any>;
|
|
89
|
-
range: PropTypes.Requireable<PropTypes.InferProps<{
|
|
90
|
-
min: PropTypes.Validator<number>;
|
|
91
|
-
max: PropTypes.Validator<number>;
|
|
92
|
-
step: PropTypes.Requireable<number>;
|
|
93
|
-
}>>;
|
|
94
|
-
size: PropTypes.Requireable<PropTypes.InferProps<{
|
|
95
|
-
width: PropTypes.Validator<number>;
|
|
96
|
-
height: PropTypes.Validator<number>;
|
|
97
|
-
}>>;
|
|
98
|
-
showLabels: PropTypes.Requireable<boolean>;
|
|
99
|
-
showPixelGuides: PropTypes.Requireable<boolean>;
|
|
100
|
-
showTitle: PropTypes.Requireable<boolean>;
|
|
101
|
-
title: PropTypes.Requireable<string>;
|
|
102
|
-
tools: PropTypes.Requireable<any[]>;
|
|
103
|
-
};
|
|
104
|
-
static defaultProps: {
|
|
105
|
-
onChangeMarks: () => void;
|
|
106
|
-
disabledLabels: boolean;
|
|
107
|
-
disabledTitle: boolean;
|
|
108
|
-
};
|
|
109
|
-
state: {};
|
|
110
|
-
generateMaskId(): string;
|
|
111
|
-
componentDidMount: () => void;
|
|
112
|
-
changeMark: any;
|
|
113
|
-
completeMark: any;
|
|
114
|
-
updateMarks: any;
|
|
115
|
-
getComponent: any;
|
|
116
|
-
onBgClick: any;
|
|
117
|
-
render(): React.JSX.Element;
|
|
118
|
-
}
|
|
119
|
-
export default Graph;
|