@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
package/dist/labels.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing-solution-set/src/labels.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 getTransform: (side: any, width: any, height: any) => string | undefined;
|
|
12
|
+
declare class RawLabel extends React.Component {
|
|
13
|
+
static propTypes: {
|
|
14
|
+
text: PropTypes.Requireable<string>;
|
|
15
|
+
side: PropTypes.Requireable<string>;
|
|
16
|
+
disabledLabel: PropTypes.Requireable<boolean>;
|
|
17
|
+
placeholder: PropTypes.Requireable<string>;
|
|
18
|
+
graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
19
|
+
scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
20
|
+
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
|
+
}>>>;
|
|
23
|
+
snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
24
|
+
x: PropTypes.Validator<(...args: any[]) => any>;
|
|
25
|
+
y: PropTypes.Validator<(...args: any[]) => any>;
|
|
26
|
+
}>>>;
|
|
27
|
+
domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
28
|
+
min: PropTypes.Validator<number>;
|
|
29
|
+
max: PropTypes.Validator<number>;
|
|
30
|
+
step: PropTypes.Requireable<number>;
|
|
31
|
+
}>>>;
|
|
32
|
+
range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
33
|
+
min: PropTypes.Validator<number>;
|
|
34
|
+
max: PropTypes.Validator<number>;
|
|
35
|
+
step: PropTypes.Requireable<number>;
|
|
36
|
+
}>>>;
|
|
37
|
+
size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
38
|
+
width: PropTypes.Validator<number>;
|
|
39
|
+
height: PropTypes.Validator<number>;
|
|
40
|
+
}>>>;
|
|
41
|
+
}>>>;
|
|
42
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
|
+
mathMlOptions: PropTypes.Requireable<object>;
|
|
44
|
+
};
|
|
45
|
+
static defaultProps: {
|
|
46
|
+
onChange: () => void;
|
|
47
|
+
};
|
|
48
|
+
render(): JSX.Element;
|
|
49
|
+
}
|
|
50
|
+
export declare const LabelType: {
|
|
51
|
+
left: PropTypes.Requireable<string>;
|
|
52
|
+
top: PropTypes.Requireable<string>;
|
|
53
|
+
bottom: PropTypes.Requireable<string>;
|
|
54
|
+
right: PropTypes.Requireable<string>;
|
|
55
|
+
};
|
|
56
|
+
export declare class Labels extends React.Component {
|
|
57
|
+
static propTypes: {
|
|
58
|
+
disabledLabels: PropTypes.Requireable<boolean>;
|
|
59
|
+
placeholders: PropTypes.Requireable<object>;
|
|
60
|
+
value: PropTypes.Requireable<PropTypes.InferProps<{
|
|
61
|
+
left: PropTypes.Requireable<string>;
|
|
62
|
+
top: PropTypes.Requireable<string>;
|
|
63
|
+
bottom: PropTypes.Requireable<string>;
|
|
64
|
+
right: PropTypes.Requireable<string>;
|
|
65
|
+
}>>;
|
|
66
|
+
graphProps: PropTypes.Requireable<object>;
|
|
67
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
68
|
+
mathMlOptions: PropTypes.Requireable<object>;
|
|
69
|
+
};
|
|
70
|
+
onChangeLabel: any;
|
|
71
|
+
render(): JSX.Element;
|
|
72
|
+
}
|
|
73
|
+
export default RawLabel;
|
|
74
|
+
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../src/labels.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AA0CnC,eAAO,MAAM,YAAY,GAAI,SAAI,EAAE,UAAK,EAAE,WAAM,uBAO/C,CAAC;AAuCF,cAAM,QAAS,SAAQ,KAAK,CAAC,SAAS;IACpC,MAAM,CAAC,SAAS;;;;;;;wCAnDhB,GAAC;wCAIyB,GAAE;;;wCAGA,GAAE;wCACb,GAAG;;;;;;;;;;;;;;;;;;;MAmDlB;IAEF,MAAM,CAAC,YAAY;;MAEjB;IAEF,MAAM;CAiDP;AAED,eAAO,MAAM,SAAS;;;;;CAKrB,CAAC;AAEF,qBAAa,MAAO,SAAQ,KAAK,CAAC,SAAS;IACzC,MAAM,CAAC,SAAS;;;;;;;;;;;;MAOd;IAEF,aAAa,EAAE,GAAG,CAIhB;IAEF,MAAM;CAoBP;AAED,eAAe,QAAQ,CAAC"}
|
package/dist/labels.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import t from "prop-types";
|
|
3
|
+
import { types as n } from "@pie-lib/plot";
|
|
4
|
+
import r from "classnames";
|
|
5
|
+
import { styled as i } from "@mui/material/styles";
|
|
6
|
+
import { Fragment as a, jsx as o } from "react/jsx-runtime";
|
|
7
|
+
import * as s from "@pie-lib/render-ui";
|
|
8
|
+
import { Readable as c, color as l } from "@pie-lib/render-ui";
|
|
9
|
+
import u from "@pie-lib/editable-html-tip-tap";
|
|
10
|
+
//#region src/labels.tsx
|
|
11
|
+
function d(e) {
|
|
12
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
13
|
+
}
|
|
14
|
+
function f(e, t) {
|
|
15
|
+
return !e || d(e) ? e : d(e.default) ? e.default : t && d(e[t]) ? e[t] : t && d(e[t]?.default) ? e[t].default : e;
|
|
16
|
+
}
|
|
17
|
+
var p = f(c, "Readable") || f(g.Readable, "Readable"), m = s, h = m.default, g = h && typeof h == "object" ? h : m, _ = {
|
|
18
|
+
left: -90,
|
|
19
|
+
top: 0,
|
|
20
|
+
bottom: 0,
|
|
21
|
+
right: 90
|
|
22
|
+
}, v = (e, t, n) => {
|
|
23
|
+
let r = (e, t, n) => `translate(${e}, ${t}), rotate(${n})`;
|
|
24
|
+
if (e === "left") return r(-20, n / 2, _[e]);
|
|
25
|
+
if (e === "right") return r(t + 30, n / 2, _[e]);
|
|
26
|
+
if (e === "top") return r(t / 2, -20, _[e]);
|
|
27
|
+
if (e === "bottom") return r(t / 2, n + 30, _[e]);
|
|
28
|
+
}, y = (e, t) => {
|
|
29
|
+
switch (e) {
|
|
30
|
+
case "left":
|
|
31
|
+
case "top": return -t;
|
|
32
|
+
case "right": return -t - 10;
|
|
33
|
+
default: return -t + 10;
|
|
34
|
+
}
|
|
35
|
+
}, b = "Label", x = {
|
|
36
|
+
label: `${b}-label`,
|
|
37
|
+
axisLabel: `${b}-axisLabel`,
|
|
38
|
+
disabledAxisLabel: `${b}-disabledAxisLabel`,
|
|
39
|
+
bottomLabel: `${b}-bottomLabel`
|
|
40
|
+
}, S = i("div")(({ theme: e }) => ({
|
|
41
|
+
[`& .${x.label}`]: { fill: l.defaults.SECONDARY },
|
|
42
|
+
[`& .${x.axisLabel}`]: {
|
|
43
|
+
fontSize: e.typography.fontSize - 2,
|
|
44
|
+
textAlign: "center",
|
|
45
|
+
padding: "0 4px"
|
|
46
|
+
},
|
|
47
|
+
[`& .${x.disabledAxisLabel}`]: { pointerEvents: "none" },
|
|
48
|
+
[`& .${x.bottomLabel}`]: { marginTop: "44px" }
|
|
49
|
+
})), C = class extends e.Component {
|
|
50
|
+
static propTypes = {
|
|
51
|
+
text: t.string,
|
|
52
|
+
side: t.string,
|
|
53
|
+
disabledLabel: t.bool,
|
|
54
|
+
placeholder: t.string,
|
|
55
|
+
graphProps: n.GraphPropsType.isRequired,
|
|
56
|
+
onChange: t.func,
|
|
57
|
+
mathMlOptions: t.object
|
|
58
|
+
};
|
|
59
|
+
static defaultProps = { onChange: () => {} };
|
|
60
|
+
render() {
|
|
61
|
+
let { disabledLabel: e, placeholder: t, text: n, side: i, graphProps: a, onChange: s, mathMlOptions: c = {} } = this.props, { size: l, domain: d, range: f } = a, m = (l.height || 500) + (f.padding || 0) * 2, h = (l.width || 500) + (d.padding || 0) * 2, g = v(i, h, m), _ = i === "left" || i === "right" ? m : h, b = y(i, 36), C = i === "bottom" ? 58 : 54, w = [
|
|
62
|
+
"bold",
|
|
63
|
+
"italic",
|
|
64
|
+
"underline",
|
|
65
|
+
"strikethrough",
|
|
66
|
+
"math"
|
|
67
|
+
];
|
|
68
|
+
return /* @__PURE__ */ o(S, { children: /* @__PURE__ */ o("foreignObject", {
|
|
69
|
+
x: -(_ / 2),
|
|
70
|
+
y: b,
|
|
71
|
+
width: _,
|
|
72
|
+
height: C,
|
|
73
|
+
transform: g,
|
|
74
|
+
textAnchor: "middle",
|
|
75
|
+
children: /* @__PURE__ */ o(p, { children: /* @__PURE__ */ o(u, {
|
|
76
|
+
className: r({
|
|
77
|
+
[x.bottomLabel]: i === "bottom",
|
|
78
|
+
[x.disabledAxisLabel]: e
|
|
79
|
+
}, x.axisLabel),
|
|
80
|
+
markup: n || "",
|
|
81
|
+
onChange: s,
|
|
82
|
+
placeholder: !e && t,
|
|
83
|
+
toolbarOpts: {
|
|
84
|
+
position: i === "bottom" ? "top" : "bottom",
|
|
85
|
+
noPadding: !0,
|
|
86
|
+
noBorder: !0
|
|
87
|
+
},
|
|
88
|
+
activePlugins: w,
|
|
89
|
+
mathMlOptions: c
|
|
90
|
+
}) })
|
|
91
|
+
}) });
|
|
92
|
+
}
|
|
93
|
+
}, w = {
|
|
94
|
+
left: t.string,
|
|
95
|
+
top: t.string,
|
|
96
|
+
bottom: t.string,
|
|
97
|
+
right: t.string
|
|
98
|
+
};
|
|
99
|
+
(class extends e.Component {
|
|
100
|
+
static propTypes = {
|
|
101
|
+
disabledLabels: t.bool,
|
|
102
|
+
placeholders: t.object,
|
|
103
|
+
value: t.shape(w),
|
|
104
|
+
graphProps: t.object,
|
|
105
|
+
onChange: t.func,
|
|
106
|
+
mathMlOptions: t.object
|
|
107
|
+
};
|
|
108
|
+
onChangeLabel = (e, t) => {
|
|
109
|
+
let { value: n, onChange: r } = this.props;
|
|
110
|
+
r({
|
|
111
|
+
...n,
|
|
112
|
+
[t]: e
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
render() {
|
|
116
|
+
let { disabledLabels: e, placeholders: t = {}, value: n = {}, graphProps: r, mathMlOptions: i = {} } = this.props;
|
|
117
|
+
return /* @__PURE__ */ o(a, { children: [
|
|
118
|
+
"left",
|
|
119
|
+
"top",
|
|
120
|
+
"bottom",
|
|
121
|
+
"right"
|
|
122
|
+
].map((a) => /* @__PURE__ */ o(C, {
|
|
123
|
+
side: a,
|
|
124
|
+
text: n[a],
|
|
125
|
+
disabledLabel: e,
|
|
126
|
+
placeholder: t[a],
|
|
127
|
+
graphProps: r,
|
|
128
|
+
onChange: (e) => this.onChangeLabel(e, a),
|
|
129
|
+
mathMlOptions: i
|
|
130
|
+
}, a)) });
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
//#endregion
|
|
134
|
+
export { w as LabelType };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/graphing-solution-set/src/mark-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 position: (graphProps: any, mark: any, rect: any) => string;
|
|
11
|
+
export declare const coordinates: (graphProps: any, mark: any, rect: any, position: any) => {
|
|
12
|
+
left: any;
|
|
13
|
+
top: any;
|
|
14
|
+
} | undefined;
|
|
15
|
+
export declare const MarkLabel: {
|
|
16
|
+
(props: any): JSX.Element;
|
|
17
|
+
propTypes: {
|
|
18
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
19
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
graphProps: PropTypes.Requireable<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
|
+
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
|
+
mark: PropTypes.Requireable<object>;
|
|
46
|
+
theme: PropTypes.Requireable<object>;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default MarkLabel;
|
|
50
|
+
//# sourceMappingURL=mark-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark-label.d.ts","sourceRoot":"","sources":["../src/mark-label.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,SAAS,MAAM,YAAY,CAAC;AAsBnC,eAAO,MAAM,QAAQ,GAAI,eAAU,EAAE,SAAI,EAAE,SAAI,WAY9C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,eAAU,EAAE,SAAI,EAAE,SAAI,EAAE,aAAQ;;;aAyB3D,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;wCAzBhB,GAAG;wCAGP,GAAC;;;wCAIC,GAAF;wCAC4B,GAAG;;;;;;;;;;;;;;;;;;;;;CAkEhC,CAAC;AAWF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { __toESM as e } from "./_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_AutosizeInput as t } from "./node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js";
|
|
3
|
+
import { useDebounce as n } from "./use-debounce.js";
|
|
4
|
+
import { useCallback as r, useEffect as i, useState as a } from "react";
|
|
5
|
+
import o from "prop-types";
|
|
6
|
+
import { types as s } from "@pie-lib/plot";
|
|
7
|
+
import { styled as c } from "@mui/material/styles";
|
|
8
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
9
|
+
import { color as u } from "@pie-lib/render-ui";
|
|
10
|
+
var d = c((/* @__PURE__ */ e(t(), 1)).default, { shouldForwardProp: (e) => !["disabled", "markDisabled"].includes(e) })(({ theme: e, disabled: t, markDisabled: n }) => ({ "& input": {
|
|
11
|
+
float: "right",
|
|
12
|
+
padding: e.spacing(.5),
|
|
13
|
+
fontFamily: e.typography.fontFamily,
|
|
14
|
+
fontSize: e.typography.fontSize,
|
|
15
|
+
border: `solid 1px ${t ? u.defaults.PRIMARY_DARK : n ? u.disabled() : u.defaults.SECONDARY}`,
|
|
16
|
+
borderRadius: "3px",
|
|
17
|
+
color: n ? u.disabled() : u.defaults.PRIMARY_DARK,
|
|
18
|
+
background: t || n ? e.palette.background.paper : "transparent"
|
|
19
|
+
} })), f = (e, t, n) => {
|
|
20
|
+
n ||= {
|
|
21
|
+
width: 0,
|
|
22
|
+
height: 0
|
|
23
|
+
};
|
|
24
|
+
let { scale: r, domain: i, range: a } = e, o = r.x(t.x) + n.width + 10, s = r.y(t.y) + n.height + 10, c = o >= r.x(i.max) ? "left" : "right";
|
|
25
|
+
return `${s >= r.y(a.min) ? "top" : "bottom"}-${c}`;
|
|
26
|
+
}, p = (e, t, n, r) => {
|
|
27
|
+
let { scale: i } = e;
|
|
28
|
+
switch (n ||= {
|
|
29
|
+
width: 0,
|
|
30
|
+
height: 0
|
|
31
|
+
}, r) {
|
|
32
|
+
case "bottom-right": return {
|
|
33
|
+
left: i.x(t.x) + 10,
|
|
34
|
+
top: i.y(t.y) + 10
|
|
35
|
+
};
|
|
36
|
+
case "bottom-left": return {
|
|
37
|
+
left: i.x(t.x) - 10 - n.width,
|
|
38
|
+
top: i.y(t.y) + 10
|
|
39
|
+
};
|
|
40
|
+
case "top-left": return {
|
|
41
|
+
left: i.x(t.x) - 10 - n.width,
|
|
42
|
+
top: i.y(t.y) - 10 - n.height
|
|
43
|
+
};
|
|
44
|
+
case "top-right": return {
|
|
45
|
+
left: i.x(t.x) + 10,
|
|
46
|
+
top: i.y(t.y) - 10 - n.height
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}, m = (e) => {
|
|
50
|
+
let [t, o] = a(null), s = r((e) => o(e)), { mark: c, graphProps: u, disabled: m, inputRef: h } = e, [g, _] = a(c.label), v = (e) => _(e.target.value), y = n(g, 200);
|
|
51
|
+
i(() => {
|
|
52
|
+
_(c.label);
|
|
53
|
+
}, [c.label]), i(() => {
|
|
54
|
+
typeof y == "string" && y !== c.label && e.onChange(y);
|
|
55
|
+
}, [y]);
|
|
56
|
+
let b = t ? t.getBoundingClientRect() : {
|
|
57
|
+
width: 0,
|
|
58
|
+
height: 0
|
|
59
|
+
}, x = {
|
|
60
|
+
position: "fixed",
|
|
61
|
+
pointerEvents: "auto",
|
|
62
|
+
...p(u, c, b, f(u, c, b))
|
|
63
|
+
};
|
|
64
|
+
return /* @__PURE__ */ l(d, {
|
|
65
|
+
inputRef: (e) => {
|
|
66
|
+
s(e), h(e);
|
|
67
|
+
},
|
|
68
|
+
disabled: m || c.disabled,
|
|
69
|
+
markDisabled: c.disabled,
|
|
70
|
+
value: g,
|
|
71
|
+
style: x,
|
|
72
|
+
onChange: v
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
m.propTypes = {
|
|
76
|
+
disabled: o.bool,
|
|
77
|
+
onChange: o.func,
|
|
78
|
+
graphProps: s.GraphPropsType,
|
|
79
|
+
inputRef: o.func,
|
|
80
|
+
mark: o.object,
|
|
81
|
+
theme: o.object
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
export { m as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
return e;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as _assertThisInitialized };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { toPropertyKey as e } from "./toPropertyKey.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
3
|
+
function t(t, n, r) {
|
|
4
|
+
return (n = e(n)) in t ? Object.defineProperty(t, n, {
|
|
5
|
+
value: r,
|
|
6
|
+
enumerable: !0,
|
|
7
|
+
configurable: !0,
|
|
8
|
+
writable: !0
|
|
9
|
+
}) : t[n] = r, t;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as _defineProperty };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
2
|
+
function e() {
|
|
3
|
+
return e = Object.assign ? Object.assign.bind() : function(e) {
|
|
4
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
5
|
+
var n = arguments[t];
|
|
6
|
+
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
7
|
+
}
|
|
8
|
+
return e;
|
|
9
|
+
}, e.apply(null, arguments);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as _extends };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { _setPrototypeOf as e } from "./setPrototypeOf.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
t.prototype = Object.create(n.prototype), t.prototype.constructor = t, e(t, n);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as _inheritsLoose };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { _defineProperty as e } from "./defineProperty.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
var n = Object.keys(e);
|
|
5
|
+
if (Object.getOwnPropertySymbols) {
|
|
6
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
7
|
+
t && (r = r.filter(function(t) {
|
|
8
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
9
|
+
})), n.push.apply(n, r);
|
|
10
|
+
}
|
|
11
|
+
return n;
|
|
12
|
+
}
|
|
13
|
+
function n(n) {
|
|
14
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
15
|
+
var i = arguments[r] == null ? {} : arguments[r];
|
|
16
|
+
r % 2 ? t(Object(i), !0).forEach(function(t) {
|
|
17
|
+
e(n, t, i[t]);
|
|
18
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : t(Object(i)).forEach(function(e) {
|
|
19
|
+
Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(i, e));
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return n;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { n as _objectSpread2 };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (e == null) return {};
|
|
4
|
+
var n = {};
|
|
5
|
+
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
6
|
+
if (t.indexOf(r) !== -1) continue;
|
|
7
|
+
n[r] = e[r];
|
|
8
|
+
}
|
|
9
|
+
return n;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as _objectWithoutPropertiesLoose };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
2
|
+
function e(t, n) {
|
|
3
|
+
return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
4
|
+
return e.__proto__ = t, e;
|
|
5
|
+
}, e(t, n);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as _setPrototypeOf };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { _typeof as e } from "./typeof.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
if (e(t) != "object" || !t) return t;
|
|
5
|
+
var r = t[Symbol.toPrimitive];
|
|
6
|
+
if (r !== void 0) {
|
|
7
|
+
var i = r.call(t, n || "default");
|
|
8
|
+
if (e(i) != "object") return i;
|
|
9
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
10
|
+
}
|
|
11
|
+
return (n === "string" ? String : Number)(t);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { t as toPrimitive };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { _typeof as e } from "./typeof.js";
|
|
2
|
+
import { toPrimitive as t } from "./toPrimitive.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
4
|
+
function n(n) {
|
|
5
|
+
var r = t(n, "string");
|
|
6
|
+
return e(r) == "symbol" ? r : r + "";
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as toPropertyKey };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
2
|
+
function e(t) {
|
|
3
|
+
"@babel/helpers - typeof";
|
|
4
|
+
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5
|
+
return typeof e;
|
|
6
|
+
} : function(e) {
|
|
7
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8
|
+
}, e(t);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as _typeof };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import e from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
2
|
+
import t from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
3
|
+
import n from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js";
|
|
4
|
+
import r from "../constants/orientation.js";
|
|
5
|
+
import i from "./AxisRenderer.js";
|
|
6
|
+
import a from "../utils/getTickPosition.js";
|
|
7
|
+
import o from "../utils/getTickFormatter.js";
|
|
8
|
+
import s from "../utils/createPoint.js";
|
|
9
|
+
import c from "../utils/getAxisRangePaddingConfig.js";
|
|
10
|
+
import l from "react";
|
|
11
|
+
import "prop-types";
|
|
12
|
+
import u from "classnames";
|
|
13
|
+
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js
|
|
14
|
+
var d = [
|
|
15
|
+
"children",
|
|
16
|
+
"axisClassName",
|
|
17
|
+
"hideAxisLine",
|
|
18
|
+
"hideTicks",
|
|
19
|
+
"hideZero",
|
|
20
|
+
"innerRef",
|
|
21
|
+
"left",
|
|
22
|
+
"numTicks",
|
|
23
|
+
"orientation",
|
|
24
|
+
"rangePadding",
|
|
25
|
+
"scale",
|
|
26
|
+
"tickFormat",
|
|
27
|
+
"tickLength",
|
|
28
|
+
"tickValues",
|
|
29
|
+
"top"
|
|
30
|
+
];
|
|
31
|
+
function f() {
|
|
32
|
+
return f = Object.assign ? Object.assign.bind() : function(e) {
|
|
33
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
34
|
+
var n = arguments[t];
|
|
35
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
36
|
+
}
|
|
37
|
+
return e;
|
|
38
|
+
}, f.apply(this, arguments);
|
|
39
|
+
}
|
|
40
|
+
function p(e, t) {
|
|
41
|
+
if (e == null) return {};
|
|
42
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
43
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
44
|
+
return n;
|
|
45
|
+
}
|
|
46
|
+
function m(m) {
|
|
47
|
+
var h = m.children, g = h === void 0 ? i : h, _ = m.axisClassName, v = m.hideAxisLine, y = v === void 0 ? !1 : v, b = m.hideTicks, x = b === void 0 ? !1 : b, S = m.hideZero, C = S === void 0 ? !1 : S, w = m.innerRef, T = m.left, E = T === void 0 ? 0 : T, D = m.numTicks, O = D === void 0 ? 10 : D, k = m.orientation, A = k === void 0 ? r.bottom : k, j = m.rangePadding, M = j === void 0 ? 0 : j, N = m.scale, P = m.tickFormat, F = m.tickLength, I = F === void 0 ? 8 : F, L = m.tickValues, R = m.top, z = R === void 0 ? 0 : R, B = p(m, d), V = P ?? o(N), H = A === r.left, U = A === r.top, W = U || A === r.bottom, G = a(N), K = H || U ? -1 : 1, q = N.range(), J = c(M), Y = s({
|
|
48
|
+
x: Number(q[0]) + .5 - J.start,
|
|
49
|
+
y: 0
|
|
50
|
+
}, W), X = s({
|
|
51
|
+
x: Number(q[q.length - 1]) + .5 + J.end,
|
|
52
|
+
y: 0
|
|
53
|
+
}, W), Z = (L ?? n(N, O)).filter(function(e) {
|
|
54
|
+
return !C || e !== 0 && e !== "0";
|
|
55
|
+
}).map(function(e, t) {
|
|
56
|
+
return {
|
|
57
|
+
value: e,
|
|
58
|
+
index: t
|
|
59
|
+
};
|
|
60
|
+
}), Q = Z.map(function(e) {
|
|
61
|
+
var n = e.value, r = e.index, i = t(G(n));
|
|
62
|
+
return {
|
|
63
|
+
value: n,
|
|
64
|
+
index: r,
|
|
65
|
+
from: s({
|
|
66
|
+
x: i,
|
|
67
|
+
y: 0
|
|
68
|
+
}, W),
|
|
69
|
+
to: s({
|
|
70
|
+
x: i,
|
|
71
|
+
y: I * K
|
|
72
|
+
}, W),
|
|
73
|
+
formattedValue: V(n, r, Z)
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
return /* @__PURE__ */ l.createElement(e, {
|
|
77
|
+
className: u("visx-axis", _),
|
|
78
|
+
innerRef: w,
|
|
79
|
+
top: z,
|
|
80
|
+
left: E
|
|
81
|
+
}, g(f({}, B, {
|
|
82
|
+
axisFromPoint: Y,
|
|
83
|
+
axisToPoint: X,
|
|
84
|
+
hideAxisLine: y,
|
|
85
|
+
hideTicks: x,
|
|
86
|
+
hideZero: C,
|
|
87
|
+
horizontal: W,
|
|
88
|
+
numTicks: O,
|
|
89
|
+
orientation: A,
|
|
90
|
+
rangePadding: M,
|
|
91
|
+
scale: N,
|
|
92
|
+
tickFormat: V,
|
|
93
|
+
tickLength: I,
|
|
94
|
+
tickPosition: G,
|
|
95
|
+
tickSign: K,
|
|
96
|
+
ticks: Q
|
|
97
|
+
})));
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
export { m as default };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import e from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
2
|
+
import t from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js";
|
|
3
|
+
import n from "../constants/orientation.js";
|
|
4
|
+
import r from "../utils/getLabelTransform.js";
|
|
5
|
+
import i from "./Ticks.js";
|
|
6
|
+
import a from "react";
|
|
7
|
+
import o from "classnames";
|
|
8
|
+
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js
|
|
9
|
+
function s() {
|
|
10
|
+
return s = Object.assign ? Object.assign.bind() : function(e) {
|
|
11
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
12
|
+
var n = arguments[t];
|
|
13
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
14
|
+
}
|
|
15
|
+
return e;
|
|
16
|
+
}, s.apply(this, arguments);
|
|
17
|
+
}
|
|
18
|
+
var c = {
|
|
19
|
+
textAnchor: "middle",
|
|
20
|
+
fontFamily: "Arial",
|
|
21
|
+
fontSize: 10,
|
|
22
|
+
fill: "#222"
|
|
23
|
+
};
|
|
24
|
+
function l(l) {
|
|
25
|
+
var u = l.axisFromPoint, d = l.axisLineClassName, f = l.axisToPoint, p = l.hideAxisLine, m = l.hideTicks, h = l.horizontal, g = l.label, _ = g === void 0 ? "" : g, v = l.labelClassName, y = l.labelOffset, b = y === void 0 ? 14 : y, x = l.labelProps, S = l.orientation, C = S === void 0 ? n.bottom : S, w = l.scale, T = l.stroke, E = T === void 0 ? "#222" : T, D = l.strokeDasharray, O = l.strokeWidth, k = O === void 0 ? 1 : O, A = l.tickClassName, j = l.tickComponent, M = l.tickLineProps, N = l.tickLabelProps, P = l.tickLength, F = P === void 0 ? 8 : P, I = l.tickStroke, L = I === void 0 ? "#222" : I, R = l.tickTransform, z = l.ticks, B = l.ticksComponent, V = B === void 0 ? i : B, H = s({}, c, x), U = s({}, c, typeof N == "object" ? N : null), W = z.map(function(e) {
|
|
26
|
+
var t = e.value, n = e.index;
|
|
27
|
+
return typeof N == "function" ? N(t, n, z) : U;
|
|
28
|
+
}), G = Math.max.apply(Math, [10].concat(W.map(function(e) {
|
|
29
|
+
return typeof e.fontSize == "number" ? e.fontSize : 0;
|
|
30
|
+
})));
|
|
31
|
+
return /* @__PURE__ */ a.createElement(a.Fragment, null, V({
|
|
32
|
+
hideTicks: m,
|
|
33
|
+
horizontal: h,
|
|
34
|
+
orientation: C,
|
|
35
|
+
scale: w,
|
|
36
|
+
tickClassName: A,
|
|
37
|
+
tickComponent: j,
|
|
38
|
+
tickLabelProps: W,
|
|
39
|
+
tickStroke: L,
|
|
40
|
+
tickTransform: R,
|
|
41
|
+
ticks: z,
|
|
42
|
+
strokeWidth: k,
|
|
43
|
+
tickLineProps: M
|
|
44
|
+
}), !p && /* @__PURE__ */ a.createElement(e, {
|
|
45
|
+
className: o("visx-axis-line", d),
|
|
46
|
+
from: u,
|
|
47
|
+
to: f,
|
|
48
|
+
stroke: E,
|
|
49
|
+
strokeWidth: k,
|
|
50
|
+
strokeDasharray: D
|
|
51
|
+
}), _ && /* @__PURE__ */ a.createElement(t, s({ className: o("visx-axis-label", v) }, r({
|
|
52
|
+
labelOffset: b,
|
|
53
|
+
labelProps: H,
|
|
54
|
+
orientation: C,
|
|
55
|
+
range: w.range(),
|
|
56
|
+
tickLabelFontSize: G,
|
|
57
|
+
tickLength: F
|
|
58
|
+
}), H), _));
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { l as default };
|