@pie-lib/graphing-solution-set 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +23 -0
- package/dist/axis/arrow.d.ts +14 -0
- package/dist/axis/arrow.d.ts.map +1 -0
- package/dist/axis/arrow.js +34 -0
- package/dist/axis/axes.d.ts +133 -0
- package/dist/axis/axes.d.ts.map +1 -0
- package/dist/axis/axes.js +214 -0
- package/dist/axis/index.d.ts +11 -0
- package/dist/axis/index.d.ts.map +1 -0
- package/dist/bg.d.ts +52 -0
- package/dist/bg.d.ts.map +1 -0
- package/dist/bg.js +44 -0
- package/dist/container/actions.d.ts +16 -0
- package/dist/container/actions.d.ts.map +1 -0
- package/dist/container/actions.js +7 -0
- package/dist/container/index.d.ts +27 -0
- package/dist/container/index.d.ts.map +1 -0
- package/dist/container/index.js +48 -0
- package/dist/container/marks.d.ts +11 -0
- package/dist/container/marks.d.ts.map +1 -0
- package/dist/container/marks.js +11 -0
- package/dist/container/middleware.d.ts +11 -0
- package/dist/container/middleware.d.ts.map +1 -0
- package/dist/container/middleware.js +4 -0
- package/dist/container/reducer.d.ts +13 -0
- package/dist/container/reducer.d.ts.map +1 -0
- package/dist/container/reducer.js +7 -0
- package/dist/coordinates-label.d.ts +50 -0
- package/dist/coordinates-label.d.ts.map +1 -0
- package/dist/coordinates-label.js +46 -0
- package/dist/graph-with-controls.d.ts +86 -0
- package/dist/graph-with-controls.d.ts.map +1 -0
- package/dist/graph-with-controls.js +155 -0
- package/dist/graph.d.ts +120 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +221 -0
- package/dist/grid-setup.d.ts +27 -0
- package/dist/grid-setup.d.ts.map +1 -0
- package/dist/grid-setup.js +307 -0
- package/dist/grid.d.ts +44 -0
- package/dist/grid.d.ts.map +1 -0
- package/dist/grid.js +59 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/labels.d.ts +74 -0
- package/dist/labels.d.ts.map +1 -0
- package/dist/labels.js +134 -0
- package/dist/mark-label.d.ts +50 -0
- package/dist/mark-label.d.ts.map +1 -0
- package/dist/mark-label.js +84 -0
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +7 -0
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +100 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +61 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +42 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +21 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +15 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +78 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +79 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +79 -0
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
- package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +49 -0
- package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +18 -0
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +10 -0
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +9 -0
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +46 -0
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +52 -0
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +57 -0
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +91 -0
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +21 -0
- package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +32 -0
- package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +33 -0
- package/dist/node_modules/.bun/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +68 -0
- package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +28 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Hash.js +21 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_ListCache.js +21 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Map.js +10 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_MapCache.js +21 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Symbol.js +9 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +15 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +16 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_coreJsData.js +9 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +8 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getMapData.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getNative.js +15 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getRawTag.js +19 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getValue.js +11 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashClear.js +13 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashDelete.js +12 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashGet.js +18 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashHas.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashSet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isKeyable.js +12 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isMasked.js +16 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +11 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +13 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +19 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +13 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +13 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +14 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +9 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_objectToString.js +12 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_root.js +10 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_toSource.js +20 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/eq.js +11 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/isFunction.js +16 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/isObject.js +12 -0
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/memoize.js +20 -0
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +37 -0
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +509 -0
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +108 -0
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +31 -0
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +45 -0
- package/dist/node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js +216 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +82 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +62 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Context.js +5 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Provider.js +47 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/connectAdvanced.js +95 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/connect.js +52 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapDispatchToProps.js +23 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapStateToProps.js +13 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mergeProps.js +26 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/selectorFactory.js +41 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/verifySubselectors.js +11 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/wrapMapToProps.js +28 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/index.js +4 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/isPlainObject.js +10 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/shallowEqual.js +15 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/verifyPlainObject.js +8 -0
- package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/warning.js +9 -0
- package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +49 -0
- package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +34 -0
- package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +185 -0
- package/dist/node_modules/.bun/redux@4.2.1/node_modules/redux/es/redux.js +225 -0
- package/dist/toggle-bar.d.ts +41 -0
- package/dist/toggle-bar.d.ts.map +1 -0
- package/dist/tool-menu.d.ts +22 -0
- package/dist/tool-menu.d.ts.map +1 -0
- package/dist/tool-menu.js +188 -0
- package/dist/tools/index.d.ts +18 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +12 -0
- package/dist/tools/line/component.d.ts +92 -0
- package/dist/tools/line/component.d.ts.map +1 -0
- package/dist/tools/line/component.js +58 -0
- package/dist/tools/line/index.d.ts +14 -0
- package/dist/tools/line/index.d.ts.map +1 -0
- package/dist/tools/line/index.js +6 -0
- package/dist/tools/polygon/component.d.ts +115 -0
- package/dist/tools/polygon/component.d.ts.map +1 -0
- package/dist/tools/polygon/component.js +194 -0
- package/dist/tools/polygon/index.d.ts +20 -0
- package/dist/tools/polygon/index.d.ts.map +1 -0
- package/dist/tools/polygon/index.js +55 -0
- package/dist/tools/polygon/line.d.ts +105 -0
- package/dist/tools/polygon/line.d.ts.map +1 -0
- package/dist/tools/polygon/polygon.d.ts +102 -0
- package/dist/tools/polygon/polygon.d.ts.map +1 -0
- package/dist/tools/polygon/polygon.js +62 -0
- package/dist/tools/shared/arrow-head.d.ts +43 -0
- package/dist/tools/shared/arrow-head.d.ts.map +1 -0
- package/dist/tools/shared/arrow-head.js +37 -0
- package/dist/tools/shared/line/index.d.ts +165 -0
- package/dist/tools/shared/line/index.d.ts.map +1 -0
- package/dist/tools/shared/line/index.js +320 -0
- package/dist/tools/shared/line/line-path.d.ts +58 -0
- package/dist/tools/shared/line/line-path.d.ts.map +1 -0
- package/dist/tools/shared/line/with-root-edge.d.ts +89 -0
- package/dist/tools/shared/line/with-root-edge.d.ts.map +1 -0
- package/dist/tools/shared/point/arrow-point.d.ts +58 -0
- package/dist/tools/shared/point/arrow-point.d.ts.map +1 -0
- package/dist/tools/shared/point/arrow-point.js +47 -0
- package/dist/tools/shared/point/arrow.d.ts +47 -0
- package/dist/tools/shared/point/arrow.d.ts.map +1 -0
- package/dist/tools/shared/point/arrow.js +36 -0
- package/dist/tools/shared/point/base-point.d.ts +51 -0
- package/dist/tools/shared/point/base-point.d.ts.map +1 -0
- package/dist/tools/shared/point/base-point.js +88 -0
- package/dist/tools/shared/point/index.d.ts +154 -0
- package/dist/tools/shared/point/index.d.ts.map +1 -0
- package/dist/tools/shared/point/index.js +51 -0
- package/dist/tools/shared/styles.d.ts +25 -0
- package/dist/tools/shared/styles.d.ts.map +1 -0
- package/dist/tools/shared/styles.js +17 -0
- package/dist/tools/shared/types.d.ts +16 -0
- package/dist/tools/shared/types.d.ts.map +1 -0
- package/dist/tools/shared/types.js +10 -0
- package/dist/undo-redo.d.ts +21 -0
- package/dist/undo-redo.d.ts.map +1 -0
- package/dist/undo-redo.js +33 -0
- package/dist/use-debounce.d.ts +10 -0
- package/dist/use-debounce.d.ts.map +1 -0
- package/dist/use-debounce.js +13 -0
- package/dist/utils.d.ts +59 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +72 -0
- package/package.json +64 -0
- package/src/axis/arrow.tsx +67 -0
- package/src/axis/axes.tsx +321 -0
- package/src/axis/index.ts +13 -0
- package/src/bg.tsx +106 -0
- package/src/container/actions.ts +18 -0
- package/src/container/index.tsx +95 -0
- package/src/container/marks.ts +24 -0
- package/src/container/middleware.ts +17 -0
- package/src/container/reducer.ts +15 -0
- package/src/coordinates-label.tsx +72 -0
- package/src/graph-with-controls.tsx +252 -0
- package/src/graph.tsx +343 -0
- package/src/grid-setup.tsx +470 -0
- package/src/grid.tsx +143 -0
- package/src/index.ts +17 -0
- package/src/labels.tsx +211 -0
- package/src/mark-label.tsx +135 -0
- package/src/toggle-bar.tsx +231 -0
- package/src/tool-menu.tsx +245 -0
- package/src/tools/index.ts +18 -0
- package/src/tools/line/component.tsx +87 -0
- package/src/tools/line/index.ts +14 -0
- package/src/tools/polygon/component.tsx +334 -0
- package/src/tools/polygon/index.ts +62 -0
- package/src/tools/polygon/line.tsx +90 -0
- package/src/tools/polygon/polygon.tsx +103 -0
- package/src/tools/shared/arrow-head.tsx +56 -0
- package/src/tools/shared/line/index.tsx +481 -0
- package/src/tools/shared/line/line-path.tsx +95 -0
- package/src/tools/shared/line/with-root-edge.tsx +107 -0
- package/src/tools/shared/point/arrow-point.tsx +70 -0
- package/src/tools/shared/point/arrow.tsx +50 -0
- package/src/tools/shared/point/base-point.tsx +123 -0
- package/src/tools/shared/point/index.tsx +68 -0
- package/src/tools/shared/styles.ts +30 -0
- package/src/tools/shared/types.ts +18 -0
- package/src/undo-redo.tsx +47 -0
- package/src/use-debounce.ts +23 -0
- package/src/utils.ts +240 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/container/marks.ts
|
|
2
|
+
var e = (e = [], t) => {
|
|
3
|
+
switch (t.type) {
|
|
4
|
+
case "CHANGE_MARKS":
|
|
5
|
+
if (Array.isArray(t.marks)) return t.marks;
|
|
6
|
+
throw Error("marks must be an array");
|
|
7
|
+
default: return e;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing-solution-set/src/container/middleware.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 getLastAction: () => any;
|
|
10
|
+
export declare const lastActionMiddleware: () => (next: any) => (action: any) => any;
|
|
11
|
+
//# sourceMappingURL=middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/container/middleware.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,eAAO,MAAM,aAAa,WAAmB,CAAC;AAE9C,eAAO,MAAM,oBAAoB,SAAU,SAAI,MAAM,WAAM,QAG1D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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<import("redux").CombinedState<{
|
|
10
|
+
marks: import("redux-undo").StateWithHistory<never[]>;
|
|
11
|
+
}>, import("redux").AnyAction>;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/container/reducer.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;;;;AAMH,wBAAmF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { combineReducers as e } from "../node_modules/.bun/redux@4.2.1/node_modules/redux/es/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 };
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PropTypes from 'prop-types';
|
|
10
|
+
export declare const getLabelPosition: (graphProps: any, x: any, y: any, labelLength: any) => {
|
|
11
|
+
left: any;
|
|
12
|
+
top: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const CoordinatesLabel: {
|
|
15
|
+
({ x, y, graphProps }: {
|
|
16
|
+
x: any;
|
|
17
|
+
y: any;
|
|
18
|
+
graphProps: any;
|
|
19
|
+
}): JSX.Element;
|
|
20
|
+
propTypes: {
|
|
21
|
+
graphProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
22
|
+
scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
23
|
+
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
24
|
+
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
25
|
+
}>>>;
|
|
26
|
+
snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
27
|
+
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
28
|
+
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
29
|
+
}>>>;
|
|
30
|
+
domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
31
|
+
min: PropTypes.Validator<number>;
|
|
32
|
+
max: PropTypes.Validator<number>;
|
|
33
|
+
step: PropTypes.Requireable<number>;
|
|
34
|
+
}>>>;
|
|
35
|
+
range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
36
|
+
min: PropTypes.Validator<number>;
|
|
37
|
+
max: PropTypes.Validator<number>;
|
|
38
|
+
step: PropTypes.Requireable<number>;
|
|
39
|
+
}>>>;
|
|
40
|
+
size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
41
|
+
width: PropTypes.Validator<number>;
|
|
42
|
+
height: PropTypes.Validator<number>;
|
|
43
|
+
}>>>;
|
|
44
|
+
}>>;
|
|
45
|
+
x: PropTypes.Requireable<number>;
|
|
46
|
+
y: PropTypes.Requireable<number>;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default CoordinatesLabel;
|
|
50
|
+
//# sourceMappingURL=coordinates-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coordinates-label.d.ts","sourceRoot":"","sources":["../src/coordinates-label.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,SAAS,MAAM,YAAY,CAAC;AAkBnC,eAAO,MAAM,gBAAgB,GAAI,eAAU,EAAE,MAAC,EAAE,MAAC,EAAE,gBAAW;;;CAkB7D,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;wCAaX,GAAG;wCAAsD,GAAG;;;wCAM3D,GAAG;wCAIN,GAAG;;;;;;;;;;;;;;;;;;;;CATlB,CAAC;AAQF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 };
|
|
@@ -0,0 +1,86 @@
|
|
|
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) => any;
|
|
82
|
+
toggleLabelMode: () => any;
|
|
83
|
+
render(): JSX.Element;
|
|
84
|
+
}
|
|
85
|
+
export default GraphWithControls;
|
|
86
|
+
//# sourceMappingURL=graph-with-controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-with-controls.d.ts","sourceRoot":"","sources":["../src/graph-with-controls.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAYnC,eAAO,MAAM,sBAAsB,GAAI,iBAAY;;;;;GAIxC,CAAC;AAEZ,eAAO,MAAM,eAAe,GAAI,UAAK,EAAE,gBAAW,QAC4C,CAAC;AAE/F,eAAO,MAAM,gBAAgB,GAAI,UAAK,QAAuC,CAAC;AAE9E,eAAO,MAAM,sBAAsB,GAAI,oBAAe,QACuB,CAAC;AAE9E,eAAO,MAAM,wBAAwB,GAAI,iBAAY,EAAE,UAAK,QACW,CAAC;AAgExE,qBAAa,iBAAkB,SAAQ,KAAK,CAAC,SAAS;IACpD,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOd;IAEF,MAAM,CAAC,YAAY;;;;;;;;MAQjB;gBAEU,KAAK,KAAA;IAQjB,kBAAkB,CAAC,SAAS,KAAA;IAQ5B,iBAAiB,GAAI,SAAI,EAAE,UAAK,SAAwE;IAExG,eAAe,YAAmF;IAElG,MAAM;CA2GP;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import e, { graphPropTypes as t } from "./graph.js";
|
|
2
|
+
import n from "./tool-menu.js";
|
|
3
|
+
import r from "./undo-redo.js";
|
|
4
|
+
import { allTools as i, toolsArr as a } from "./tools/index.js";
|
|
5
|
+
import o from "react";
|
|
6
|
+
import s from "prop-types";
|
|
7
|
+
import { isString as c, uniq as l } from "lodash-es";
|
|
8
|
+
import u from "classnames";
|
|
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) => a.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) => !!i.find((t) => t === e.type)), T = (e, t) => t.filter((t) => !!e.find((e) => e === t.type)), E = (e) => a.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: s.node,
|
|
63
|
+
title: s.string
|
|
64
|
+
};
|
|
65
|
+
var P = class extends o.Component {
|
|
66
|
+
static propTypes = {
|
|
67
|
+
...t,
|
|
68
|
+
onUndo: s.func,
|
|
69
|
+
onRedo: s.func,
|
|
70
|
+
onReset: s.func,
|
|
71
|
+
toolbarTools: s.arrayOf(s.string),
|
|
72
|
+
language: s.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: t, labelModeEnabled: i } = this.state, { axesSettings: a, className: o, coordinatesOnHover: s, 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 = l(Z || []).filter((e) => !!c(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
|
+
(!t || !S(Q, t)) && (t = C(Q));
|
|
103
|
+
let $ = G && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(n, {
|
|
104
|
+
numberOfLines: G.numberOfLines,
|
|
105
|
+
gssLineData: G,
|
|
106
|
+
onChange: K,
|
|
107
|
+
disabled: !!g,
|
|
108
|
+
language: U
|
|
109
|
+
}), !g && /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(r, {
|
|
110
|
+
onUndo: P,
|
|
111
|
+
onRedo: F,
|
|
112
|
+
onReset: J,
|
|
113
|
+
language: U
|
|
114
|
+
}) })] });
|
|
115
|
+
return /* @__PURE__ */ m(D, {
|
|
116
|
+
className: u(o),
|
|
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(e, {
|
|
124
|
+
axesSettings: a,
|
|
125
|
+
backgroundMarks: Y,
|
|
126
|
+
coordinatesOnHover: s,
|
|
127
|
+
currentTool: t,
|
|
128
|
+
disabledLabels: _,
|
|
129
|
+
disabledTitle: v,
|
|
130
|
+
domain: y,
|
|
131
|
+
labels: b,
|
|
132
|
+
labelModeEnabled: i,
|
|
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
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
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: () => any;
|
|
112
|
+
changeMark: any;
|
|
113
|
+
completeMark: any;
|
|
114
|
+
updateMarks: any;
|
|
115
|
+
getComponent: any;
|
|
116
|
+
onBgClick: any;
|
|
117
|
+
render(): JSX.Element;
|
|
118
|
+
}
|
|
119
|
+
export default Graph;
|
|
120
|
+
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../src/graph.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAanC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B1B,CAAC;AASF,eAAO,MAAM,sCAAsC,GAAI;;;CAAsB,QAa5E,CAAC;AAEF,qBAAa,KAAM,SAAQ,KAAK,CAAC,SAAS;gBAC5B,KAAK,KAAA;IAKjB,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGd;IAEF,MAAM,CAAC,YAAY;;;;MAIjB;IAEF,KAAK,KAAM;IAEX,cAAc;IAId,iBAAiB,YAAsD;IAEvE,UAAU,EAAE,GAAG,CAgBb;IAEF,YAAY,EAAE,GAAG,CASf;IAEF,WAAW,EAAE,GAAG,CAiBd;IAEF,YAAY,EAAE,GAAG,CAMf;IAEF,SAAS,EAAE,GAAG,CAqDZ;IAEF,MAAM;CAkIP;AAED,eAAe,KAAK,CAAC"}
|