@pie-lib/charting 7.0.4-next.0 → 7.0.4-next.102
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 +17 -0
- package/CHANGELOG.md +1116 -0
- package/LICENSE.md +5 -0
- package/lib/actions-button.js +145 -0
- package/lib/actions-button.js.map +1 -0
- package/lib/axes.js +643 -0
- package/lib/axes.js.map +1 -0
- package/lib/bars/bar.js +58 -0
- package/lib/bars/bar.js.map +1 -0
- package/lib/bars/common/bars.js +277 -0
- package/lib/bars/common/bars.js.map +1 -0
- package/lib/bars/common/correct-check-icon.js +54 -0
- package/lib/bars/common/correct-check-icon.js.map +1 -0
- package/lib/bars/histogram.js +59 -0
- package/lib/bars/histogram.js.map +1 -0
- package/lib/chart-setup.js +382 -0
- package/lib/chart-setup.js.map +1 -0
- package/lib/chart-type.js +80 -0
- package/lib/chart-type.js.map +1 -0
- package/lib/chart-types.js +22 -0
- package/lib/chart-types.js.map +1 -0
- package/lib/chart.js +384 -0
- package/lib/chart.js.map +1 -0
- package/lib/common/correctness-indicators.js +156 -0
- package/lib/common/correctness-indicators.js.map +1 -0
- package/lib/common/drag-handle.js +160 -0
- package/lib/common/drag-handle.js.map +1 -0
- package/lib/common/drag-icon.js +52 -0
- package/lib/common/drag-icon.js.map +1 -0
- package/lib/common/styles.js +22 -0
- package/lib/common/styles.js.map +1 -0
- package/lib/grid.js +112 -0
- package/lib/grid.js.map +1 -0
- package/lib/index.js +42 -0
- package/lib/index.js.map +1 -0
- package/lib/key-legend.js +87 -0
- package/lib/key-legend.js.map +1 -0
- package/lib/line/common/drag-handle.js +146 -0
- package/lib/line/common/drag-handle.js.map +1 -0
- package/lib/line/common/line.js +214 -0
- package/lib/line/common/line.js.map +1 -0
- package/lib/line/line-cross.js +214 -0
- package/lib/line/line-cross.js.map +1 -0
- package/lib/line/line-dot.js +158 -0
- package/lib/line/line-dot.js.map +1 -0
- package/lib/mark-label.js +237 -0
- package/lib/mark-label.js.map +1 -0
- package/lib/plot/common/plot.js +349 -0
- package/lib/plot/common/plot.js.map +1 -0
- package/lib/plot/dot.js +110 -0
- package/lib/plot/dot.js.map +1 -0
- package/lib/plot/line.js +140 -0
- package/lib/plot/line.js.map +1 -0
- package/lib/tool-menu.js +106 -0
- package/lib/tool-menu.js.map +1 -0
- package/lib/utils.js +189 -0
- package/lib/utils.js.map +1 -0
- package/package.json +26 -36
- package/src/__tests__/actions-button.test.jsx +280 -0
- package/src/__tests__/axes.test.jsx +667 -0
- package/src/__tests__/chart-setup.test.jsx +532 -0
- package/src/__tests__/chart-type.test.jsx +23 -0
- package/src/__tests__/chart.test.jsx +86 -0
- package/src/__tests__/grid.test.jsx +37 -0
- package/src/__tests__/key-legend.test.jsx +223 -0
- package/src/__tests__/mark-label.test.jsx +33 -0
- package/src/__tests__/tool-menu.test.jsx +522 -0
- package/src/__tests__/utils.js +36 -0
- package/src/__tests__/utils.test.js +100 -0
- package/src/actions-button.jsx +115 -0
- package/src/axes.jsx +594 -0
- package/src/bars/__tests__/bar.test.jsx +45 -0
- package/src/bars/__tests__/histogram.test.jsx +45 -0
- package/src/bars/__tests__/utils.js +30 -0
- package/src/bars/bar.js +28 -0
- package/src/bars/common/__tests__/bars.test.jsx +68 -0
- package/src/bars/common/__tests__/utils.js +30 -0
- package/src/bars/common/bars.jsx +249 -0
- package/src/bars/common/correct-check-icon.jsx +25 -0
- package/src/bars/histogram.js +28 -0
- package/src/chart-setup.jsx +356 -0
- package/src/chart-type.js +59 -0
- package/src/chart-types.js +8 -0
- package/src/chart.jsx +357 -0
- package/src/common/__tests__/correctness-indicators.test.jsx +720 -0
- package/src/common/__tests__/drag-handle.test.jsx +58 -0
- package/src/common/__tests__/utils.js +30 -0
- package/src/common/correctness-indicators.jsx +128 -0
- package/src/common/drag-handle.jsx +125 -0
- package/src/common/drag-icon.jsx +36 -0
- package/src/common/styles.js +19 -0
- package/src/grid.jsx +80 -0
- package/src/index.js +7 -0
- package/src/key-legend.jsx +77 -0
- package/src/line/__tests__/line-cross.test.jsx +463 -0
- package/src/line/__tests__/line-dot.test.jsx +41 -0
- package/src/line/__tests__/utils.js +36 -0
- package/src/line/common/__tests__/drag-handle.test.jsx +62 -0
- package/src/line/common/__tests__/line.test.jsx +79 -0
- package/src/line/common/__tests__/utils.js +30 -0
- package/src/line/common/drag-handle.jsx +114 -0
- package/src/line/common/line.jsx +171 -0
- package/src/line/line-cross.js +144 -0
- package/src/line/line-dot.js +111 -0
- package/src/mark-label.jsx +238 -0
- package/src/plot/__tests__/dot.test.jsx +344 -0
- package/src/plot/__tests__/line.test.jsx +375 -0
- package/src/plot/__tests__/utils.js +30 -0
- package/src/plot/common/__tests__/plot.test.jsx +69 -0
- package/src/plot/common/__tests__/utils.js +30 -0
- package/src/plot/common/plot.jsx +358 -0
- package/src/plot/dot.js +74 -0
- package/src/plot/line.js +98 -0
- package/src/tool-menu.jsx +85 -0
- package/src/utils.js +201 -0
- package/dist/_virtual/_rolldown/runtime.js +0 -23
- package/dist/actions-button.d.ts +0 -26
- package/dist/actions-button.js +0 -84
- package/dist/axes.d.ts +0 -84
- package/dist/axes.js +0 -376
- package/dist/bars/bar.d.ts +0 -47
- package/dist/bars/bar.js +0 -27
- package/dist/bars/common/bars.d.ts +0 -98
- package/dist/bars/common/bars.js +0 -174
- package/dist/bars/common/correct-check-icon.d.ts +0 -18
- package/dist/bars/common/correct-check-icon.js +0 -50
- package/dist/bars/histogram.d.ts +0 -47
- package/dist/bars/histogram.js +0 -28
- package/dist/chart-setup.d.ts +0 -29
- package/dist/chart-setup.js +0 -231
- package/dist/chart-type.d.ts +0 -32
- package/dist/chart-type.js +0 -68
- package/dist/chart-types.d.ts +0 -41
- package/dist/chart-types.js +0 -17
- package/dist/chart.d.ts +0 -88
- package/dist/chart.js +0 -250
- package/dist/common/correctness-indicators.d.ts +0 -70
- package/dist/common/correctness-indicators.js +0 -106
- package/dist/common/drag-handle.d.ts +0 -129
- package/dist/common/drag-handle.js +0 -120
- package/dist/common/drag-icon.d.ts +0 -23
- package/dist/common/drag-icon.js +0 -45
- package/dist/common/styles.d.ts +0 -23
- package/dist/common/styles.js +0 -17
- package/dist/grid.d.ts +0 -45
- package/dist/grid.js +0 -56
- package/dist/index.d.ts +0 -14
- package/dist/index.js +0 -6
- package/dist/key-legend.d.ts +0 -19
- package/dist/key-legend.js +0 -46
- package/dist/line/common/drag-handle.d.ts +0 -120
- package/dist/line/common/drag-handle.js +0 -92
- package/dist/line/common/line.d.ts +0 -96
- package/dist/line/common/line.js +0 -114
- package/dist/line/line-cross.d.ts +0 -47
- package/dist/line/line-cross.js +0 -133
- package/dist/line/line-dot.d.ts +0 -47
- package/dist/line/line-dot.js +0 -101
- package/dist/mark-label.d.ts +0 -55
- package/dist/mark-label.js +0 -139
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -100
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js +0 -45
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisLeft.js +0 -46
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -61
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -42
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
- package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -49
- package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/align.js +0 -6
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/base.js +0 -6
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/clamp.js +0 -6
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/constant.js +0 -6
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/domain.js +0 -6
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/exponent.js +0 -6
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/interpolate.js +0 -10
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/nice.js +0 -37
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/padding.js +0 -6
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/range.js +0 -6
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/reverse.js +0 -9
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/round.js +0 -7
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/scaleOperator.js +0 -58
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/unknown.js +0 -6
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/zero.js +0 -9
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/scales/band.js +0 -9
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/scales/point.js +0 -9
- 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/createColorInterpolator.js +0 -29
- 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/isUtcScale.js +0 -7
- 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/Bar.js +0 -28
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Circle.js +0 -28
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -46
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +0 -49
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +0 -9
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +0 -6
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -52
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
- package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-interpolate.js +0 -8
- package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-scale.js +0 -8
- package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-time.js +0 -8
- 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/lodash@4.18.1/node_modules/lodash/_Hash.js +0 -21
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +0 -21
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +0 -10
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +0 -21
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +0 -16
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +0 -9
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +0 -15
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +0 -11
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +0 -18
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +0 -16
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +0 -11
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +0 -19
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +0 -9
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +0 -20
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +0 -11
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +0 -16
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +0 -20
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +0 -37
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +0 -509
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +0 -108
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +0 -31
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +0 -45
- package/dist/node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js +0 -216
- package/dist/node_modules/.bun/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/plot/common/plot.d.ts +0 -103
- package/dist/plot/common/plot.js +0 -227
- package/dist/plot/dot.d.ts +0 -47
- package/dist/plot/dot.js +0 -62
- package/dist/plot/line.d.ts +0 -47
- package/dist/plot/line.js +0 -84
- package/dist/tool-menu.d.ts +0 -31
- package/dist/utils.d.ts +0 -39
- package/dist/utils.js +0 -101
package/dist/mark-label.js
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { __toESM as e } from "./_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_AutosizeInput as t } from "./node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js";
|
|
3
|
-
import { correct as n, disabled as r, incorrect as i } from "./common/styles.js";
|
|
4
|
-
import { useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
5
|
-
import l from "prop-types";
|
|
6
|
-
import { styled as u } from "@mui/material/styles";
|
|
7
|
-
import { types as d } from "@pie-lib/plot";
|
|
8
|
-
import f from "classnames";
|
|
9
|
-
import { color as p } from "@pie-lib/render-ui";
|
|
10
|
-
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
11
|
-
import { renderMath as g } from "@pie-element/shared-math-rendering-mathjax";
|
|
12
|
-
//#region src/mark-label.tsx
|
|
13
|
-
var _ = /* @__PURE__ */ e(t(), 1), v = _.default?.default ?? _.default, y = u("div")({
|
|
14
|
-
display: "flex",
|
|
15
|
-
flexDirection: "column",
|
|
16
|
-
alignItems: "center"
|
|
17
|
-
});
|
|
18
|
-
u("input")(({ theme: e }) => ({
|
|
19
|
-
float: "right",
|
|
20
|
-
fontFamily: e.typography.fontFamily,
|
|
21
|
-
fontSize: e.typography.fontSize,
|
|
22
|
-
border: "none",
|
|
23
|
-
"&.correct": n("color"),
|
|
24
|
-
"&.incorrect": i("color"),
|
|
25
|
-
"&.disabled": { backgroundColor: "transparent !important" },
|
|
26
|
-
"&.error": { border: `2px solid ${e.palette.error.main}` }
|
|
27
|
-
}));
|
|
28
|
-
var b = u("div")(({ theme: e }) => ({
|
|
29
|
-
pointerEvents: "auto",
|
|
30
|
-
textAlign: "center",
|
|
31
|
-
fontSize: e.typography.fontSize + 2,
|
|
32
|
-
fontFamily: e.typography.fontFamily,
|
|
33
|
-
color: p.primaryDark(),
|
|
34
|
-
paddingTop: e.typography.fontSize / 2,
|
|
35
|
-
"&.disabled": {
|
|
36
|
-
...r("color"),
|
|
37
|
-
backgroundColor: "transparent !important"
|
|
38
|
-
},
|
|
39
|
-
"&.error": { border: `2px solid ${e.palette.error.main}` },
|
|
40
|
-
"&.correct": { ...n("color") },
|
|
41
|
-
"&.incorrect": { ...i("color") }
|
|
42
|
-
}));
|
|
43
|
-
function x(e) {
|
|
44
|
-
let t = e?.trim() || "";
|
|
45
|
-
return (/* @__PURE__ */ new RegExp(/^[1-9]*[0-9]*\s?[1-9][0-9]*\/[1-9][0-9]*$/)).test(t);
|
|
46
|
-
}
|
|
47
|
-
function S(e) {
|
|
48
|
-
let t = e?.trim() || "", n, r = "", i = t.split(" ");
|
|
49
|
-
n = i[1] && i[1].includes("/") ? i[1].split("/") || "" : t?.split("/") || "";
|
|
50
|
-
let a;
|
|
51
|
-
if (x(e)) return i[0] && i[1] && (r = i[0]), a = `\\(${r}\\frac{${n[0]}}{${n[1]}}\\)`, a;
|
|
52
|
-
}
|
|
53
|
-
var C = (e) => {
|
|
54
|
-
let [t, n] = c(null), r = a((e) => n(e), null), { mark: i = {}, disabled: l, inputRef: u, barWidth: d, rotate: p, correctness: _, autoFocus: x, error: C, isHiddenLabel: w, limitCharacters: T, correctnessIndicator: E } = e, [D, O] = c(i.label), [k, A] = c(S(i.label)), [j, M] = c(!1), N = s(null), P = (e) => {
|
|
55
|
-
T && e.target.value && e.target.value.length > 20 || O(e.target.value);
|
|
56
|
-
}, F = () => j === !1 && k !== void 0, I = (t) => {
|
|
57
|
-
A(S(i.label)), M(!1), e.onChange(t.target.value);
|
|
58
|
-
}, L = {};
|
|
59
|
-
return p && (L = {
|
|
60
|
-
width: "unset",
|
|
61
|
-
textAlign: "left"
|
|
62
|
-
}), o(() => {
|
|
63
|
-
O(i.label);
|
|
64
|
-
}, [i.label]), o(() => {
|
|
65
|
-
let e = N.current;
|
|
66
|
-
e && k && (e.innerHTML = k, g(e));
|
|
67
|
-
}, [D, k]), /* @__PURE__ */ h(y, { children: [E, F() ? /* @__PURE__ */ m(b, {
|
|
68
|
-
ref: (e) => {
|
|
69
|
-
N.current = e, typeof u == "function" && u(e);
|
|
70
|
-
},
|
|
71
|
-
className: f({
|
|
72
|
-
disabled: l,
|
|
73
|
-
error: C,
|
|
74
|
-
correct: i.editable && _?.label === "correct",
|
|
75
|
-
incorrect: i.editable && _?.label === "incorrect"
|
|
76
|
-
}),
|
|
77
|
-
onClick: () => M(!0),
|
|
78
|
-
style: {
|
|
79
|
-
minWidth: d,
|
|
80
|
-
position: "fixed",
|
|
81
|
-
transformOrigin: "left",
|
|
82
|
-
transform: `rotate(${p}deg)`,
|
|
83
|
-
visibility: w ? "hidden" : "unset",
|
|
84
|
-
marginTop: E ? "24px" : "0"
|
|
85
|
-
}
|
|
86
|
-
}) : /* @__PURE__ */ m(v, {
|
|
87
|
-
inputRef: (e) => {
|
|
88
|
-
r(e), typeof u == "function" && u(e);
|
|
89
|
-
},
|
|
90
|
-
name: "mark-label-input",
|
|
91
|
-
autoFocus: j || x,
|
|
92
|
-
disabled: l,
|
|
93
|
-
inputClassName: f(_ && i.editable ? _.label : null, l && "disabled", C && "error"),
|
|
94
|
-
inputStyle: {
|
|
95
|
-
minWidth: d,
|
|
96
|
-
textAlign: "center",
|
|
97
|
-
background: "transparent",
|
|
98
|
-
boxSizing: "border-box",
|
|
99
|
-
paddingLeft: 0,
|
|
100
|
-
paddingRight: 0,
|
|
101
|
-
border: "none",
|
|
102
|
-
...L
|
|
103
|
-
},
|
|
104
|
-
value: D,
|
|
105
|
-
style: {
|
|
106
|
-
position: "fixed",
|
|
107
|
-
pointerEvents: "auto",
|
|
108
|
-
top: 0,
|
|
109
|
-
left: 0,
|
|
110
|
-
minWidth: d,
|
|
111
|
-
transformOrigin: "left",
|
|
112
|
-
transform: `rotate(${p}deg)`,
|
|
113
|
-
visibility: w ? "hidden" : "unset",
|
|
114
|
-
marginTop: E ? "24px" : "0"
|
|
115
|
-
},
|
|
116
|
-
onChange: P,
|
|
117
|
-
onBlur: I
|
|
118
|
-
})] });
|
|
119
|
-
};
|
|
120
|
-
C.propTypes = {
|
|
121
|
-
autoFocus: l.bool,
|
|
122
|
-
disabled: l.bool,
|
|
123
|
-
error: l.any,
|
|
124
|
-
onChange: l.func,
|
|
125
|
-
graphProps: d.GraphPropsType,
|
|
126
|
-
inputRef: l.func,
|
|
127
|
-
mark: l.object,
|
|
128
|
-
barWidth: l.number,
|
|
129
|
-
rotate: l.number,
|
|
130
|
-
correctness: l.shape({
|
|
131
|
-
value: l.string,
|
|
132
|
-
label: l.string
|
|
133
|
-
}),
|
|
134
|
-
isHiddenLabel: l.bool,
|
|
135
|
-
limitCharacters: l.bool,
|
|
136
|
-
correctnessIndicator: l.node
|
|
137
|
-
};
|
|
138
|
-
//#endregion
|
|
139
|
-
export { C as default };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import e from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
2
|
-
import t from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
3
|
-
import n from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js";
|
|
4
|
-
import r from "../constants/orientation.js";
|
|
5
|
-
import i from "./AxisRenderer.js";
|
|
6
|
-
import a from "../utils/getTickPosition.js";
|
|
7
|
-
import o from "../utils/getTickFormatter.js";
|
|
8
|
-
import s from "../utils/createPoint.js";
|
|
9
|
-
import c from "../utils/getAxisRangePaddingConfig.js";
|
|
10
|
-
import l from "react";
|
|
11
|
-
import "prop-types";
|
|
12
|
-
import u from "classnames";
|
|
13
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js
|
|
14
|
-
var d = [
|
|
15
|
-
"children",
|
|
16
|
-
"axisClassName",
|
|
17
|
-
"hideAxisLine",
|
|
18
|
-
"hideTicks",
|
|
19
|
-
"hideZero",
|
|
20
|
-
"innerRef",
|
|
21
|
-
"left",
|
|
22
|
-
"numTicks",
|
|
23
|
-
"orientation",
|
|
24
|
-
"rangePadding",
|
|
25
|
-
"scale",
|
|
26
|
-
"tickFormat",
|
|
27
|
-
"tickLength",
|
|
28
|
-
"tickValues",
|
|
29
|
-
"top"
|
|
30
|
-
];
|
|
31
|
-
function f() {
|
|
32
|
-
return f = Object.assign ? Object.assign.bind() : function(e) {
|
|
33
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
34
|
-
var n = arguments[t];
|
|
35
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
36
|
-
}
|
|
37
|
-
return e;
|
|
38
|
-
}, f.apply(this, arguments);
|
|
39
|
-
}
|
|
40
|
-
function p(e, t) {
|
|
41
|
-
if (e == null) return {};
|
|
42
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
43
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
44
|
-
return n;
|
|
45
|
-
}
|
|
46
|
-
function m(m) {
|
|
47
|
-
var h = m.children, g = h === void 0 ? i : h, _ = m.axisClassName, v = m.hideAxisLine, y = v === void 0 ? !1 : v, b = m.hideTicks, x = b === void 0 ? !1 : b, S = m.hideZero, C = S === void 0 ? !1 : S, w = m.innerRef, T = m.left, E = T === void 0 ? 0 : T, D = m.numTicks, O = D === void 0 ? 10 : D, k = m.orientation, A = k === void 0 ? r.bottom : k, j = m.rangePadding, M = j === void 0 ? 0 : j, N = m.scale, P = m.tickFormat, F = m.tickLength, I = F === void 0 ? 8 : F, L = m.tickValues, R = m.top, z = R === void 0 ? 0 : R, B = p(m, d), V = P ?? o(N), H = A === r.left, U = A === r.top, W = U || A === r.bottom, G = a(N), K = H || U ? -1 : 1, q = N.range(), J = c(M), Y = s({
|
|
48
|
-
x: Number(q[0]) + .5 - J.start,
|
|
49
|
-
y: 0
|
|
50
|
-
}, W), X = s({
|
|
51
|
-
x: Number(q[q.length - 1]) + .5 + J.end,
|
|
52
|
-
y: 0
|
|
53
|
-
}, W), Z = (L ?? n(N, O)).filter(function(e) {
|
|
54
|
-
return !C || e !== 0 && e !== "0";
|
|
55
|
-
}).map(function(e, t) {
|
|
56
|
-
return {
|
|
57
|
-
value: e,
|
|
58
|
-
index: t
|
|
59
|
-
};
|
|
60
|
-
}), Q = Z.map(function(e) {
|
|
61
|
-
var n = e.value, r = e.index, i = t(G(n));
|
|
62
|
-
return {
|
|
63
|
-
value: n,
|
|
64
|
-
index: r,
|
|
65
|
-
from: s({
|
|
66
|
-
x: i,
|
|
67
|
-
y: 0
|
|
68
|
-
}, W),
|
|
69
|
-
to: s({
|
|
70
|
-
x: i,
|
|
71
|
-
y: I * K
|
|
72
|
-
}, W),
|
|
73
|
-
formattedValue: V(n, r, Z)
|
|
74
|
-
};
|
|
75
|
-
});
|
|
76
|
-
return /*#__PURE__*/ l.createElement(e, {
|
|
77
|
-
className: u("visx-axis", _),
|
|
78
|
-
innerRef: w,
|
|
79
|
-
top: z,
|
|
80
|
-
left: E
|
|
81
|
-
}, g(f({}, B, {
|
|
82
|
-
axisFromPoint: Y,
|
|
83
|
-
axisToPoint: X,
|
|
84
|
-
hideAxisLine: y,
|
|
85
|
-
hideTicks: x,
|
|
86
|
-
hideZero: C,
|
|
87
|
-
horizontal: W,
|
|
88
|
-
numTicks: O,
|
|
89
|
-
orientation: A,
|
|
90
|
-
rangePadding: M,
|
|
91
|
-
scale: N,
|
|
92
|
-
tickFormat: V,
|
|
93
|
-
tickLength: I,
|
|
94
|
-
tickPosition: G,
|
|
95
|
-
tickSign: K,
|
|
96
|
-
ticks: Q
|
|
97
|
-
})));
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
export { m as default };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import e from "../constants/orientation.js";
|
|
2
|
-
import t from "./Axis.js";
|
|
3
|
-
import n from "react";
|
|
4
|
-
import r from "classnames";
|
|
5
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js
|
|
6
|
-
var i = [
|
|
7
|
-
"axisClassName",
|
|
8
|
-
"labelOffset",
|
|
9
|
-
"tickLength",
|
|
10
|
-
"tickLabelProps"
|
|
11
|
-
];
|
|
12
|
-
function a() {
|
|
13
|
-
return a = Object.assign ? Object.assign.bind() : function(e) {
|
|
14
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
15
|
-
var n = arguments[t];
|
|
16
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
17
|
-
}
|
|
18
|
-
return e;
|
|
19
|
-
}, a.apply(this, arguments);
|
|
20
|
-
}
|
|
21
|
-
function o(e, t) {
|
|
22
|
-
if (e == null) return {};
|
|
23
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
24
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
25
|
-
return n;
|
|
26
|
-
}
|
|
27
|
-
var s = {
|
|
28
|
-
dy: "0.25em",
|
|
29
|
-
fill: "#222",
|
|
30
|
-
fontFamily: "Arial",
|
|
31
|
-
fontSize: 10,
|
|
32
|
-
textAnchor: "middle"
|
|
33
|
-
};
|
|
34
|
-
function c(c) {
|
|
35
|
-
var l = c.axisClassName, u = c.labelOffset, d = u === void 0 ? 8 : u, f = c.tickLength, p = f === void 0 ? 8 : f, m = c.tickLabelProps, h = o(c, i), g = typeof m == "function" ? m : a({}, s, m);
|
|
36
|
-
return /*#__PURE__*/ n.createElement(t, a({
|
|
37
|
-
axisClassName: r("visx-axis-bottom", l),
|
|
38
|
-
labelOffset: d,
|
|
39
|
-
orientation: e.bottom,
|
|
40
|
-
tickLabelProps: g,
|
|
41
|
-
tickLength: p
|
|
42
|
-
}, h));
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
|
-
export { c as default };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import e from "../constants/orientation.js";
|
|
2
|
-
import t from "./Axis.js";
|
|
3
|
-
import n from "react";
|
|
4
|
-
import r from "classnames";
|
|
5
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisLeft.js
|
|
6
|
-
var i = [
|
|
7
|
-
"axisClassName",
|
|
8
|
-
"labelOffset",
|
|
9
|
-
"tickLength",
|
|
10
|
-
"tickLabelProps"
|
|
11
|
-
];
|
|
12
|
-
function a() {
|
|
13
|
-
return a = Object.assign ? Object.assign.bind() : function(e) {
|
|
14
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
15
|
-
var n = arguments[t];
|
|
16
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
17
|
-
}
|
|
18
|
-
return e;
|
|
19
|
-
}, a.apply(this, arguments);
|
|
20
|
-
}
|
|
21
|
-
function o(e, t) {
|
|
22
|
-
if (e == null) return {};
|
|
23
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
24
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
25
|
-
return n;
|
|
26
|
-
}
|
|
27
|
-
var s = {
|
|
28
|
-
dx: "-0.25em",
|
|
29
|
-
dy: "0.25em",
|
|
30
|
-
fill: "#222",
|
|
31
|
-
fontFamily: "Arial",
|
|
32
|
-
fontSize: 10,
|
|
33
|
-
textAnchor: "end"
|
|
34
|
-
};
|
|
35
|
-
function c(c) {
|
|
36
|
-
var l = c.axisClassName, u = c.labelOffset, d = u === void 0 ? 36 : u, f = c.tickLength, p = f === void 0 ? 8 : f, m = c.tickLabelProps, h = o(c, i), g = typeof m == "function" ? m : a({}, s, m);
|
|
37
|
-
return /*#__PURE__*/ n.createElement(t, a({
|
|
38
|
-
axisClassName: r("visx-axis-left", l),
|
|
39
|
-
labelOffset: d,
|
|
40
|
-
orientation: e.left,
|
|
41
|
-
tickLabelProps: g,
|
|
42
|
-
tickLength: p
|
|
43
|
-
}, h));
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
export { c as default };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import e from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
2
|
-
import t from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js";
|
|
3
|
-
import n from "../constants/orientation.js";
|
|
4
|
-
import r from "../utils/getLabelTransform.js";
|
|
5
|
-
import i from "./Ticks.js";
|
|
6
|
-
import a from "react";
|
|
7
|
-
import o from "classnames";
|
|
8
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js
|
|
9
|
-
function s() {
|
|
10
|
-
return s = Object.assign ? Object.assign.bind() : function(e) {
|
|
11
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
12
|
-
var n = arguments[t];
|
|
13
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
14
|
-
}
|
|
15
|
-
return e;
|
|
16
|
-
}, s.apply(this, arguments);
|
|
17
|
-
}
|
|
18
|
-
var c = {
|
|
19
|
-
textAnchor: "middle",
|
|
20
|
-
fontFamily: "Arial",
|
|
21
|
-
fontSize: 10,
|
|
22
|
-
fill: "#222"
|
|
23
|
-
};
|
|
24
|
-
function l(l) {
|
|
25
|
-
var u = l.axisFromPoint, d = l.axisLineClassName, f = l.axisToPoint, p = l.hideAxisLine, m = l.hideTicks, h = l.horizontal, g = l.label, _ = g === void 0 ? "" : g, v = l.labelClassName, y = l.labelOffset, b = y === void 0 ? 14 : y, x = l.labelProps, S = l.orientation, C = S === void 0 ? n.bottom : S, w = l.scale, T = l.stroke, E = T === void 0 ? "#222" : T, D = l.strokeDasharray, O = l.strokeWidth, k = O === void 0 ? 1 : O, A = l.tickClassName, j = l.tickComponent, M = l.tickLineProps, N = l.tickLabelProps, P = l.tickLength, F = P === void 0 ? 8 : P, I = l.tickStroke, L = I === void 0 ? "#222" : I, R = l.tickTransform, z = l.ticks, B = l.ticksComponent, V = B === void 0 ? i : B, H = s({}, c, x), U = s({}, c, typeof N == "object" ? N : null), W = z.map(function(e) {
|
|
26
|
-
var t = e.value, n = e.index;
|
|
27
|
-
return typeof N == "function" ? N(t, n, z) : U;
|
|
28
|
-
}), G = Math.max.apply(Math, [10].concat(W.map(function(e) {
|
|
29
|
-
return typeof e.fontSize == "number" ? e.fontSize : 0;
|
|
30
|
-
})));
|
|
31
|
-
return /*#__PURE__*/ a.createElement(a.Fragment, null, V({
|
|
32
|
-
hideTicks: m,
|
|
33
|
-
horizontal: h,
|
|
34
|
-
orientation: C,
|
|
35
|
-
scale: w,
|
|
36
|
-
tickClassName: A,
|
|
37
|
-
tickComponent: j,
|
|
38
|
-
tickLabelProps: W,
|
|
39
|
-
tickStroke: L,
|
|
40
|
-
tickTransform: R,
|
|
41
|
-
ticks: z,
|
|
42
|
-
strokeWidth: k,
|
|
43
|
-
tickLineProps: M
|
|
44
|
-
}), !p && /*#__PURE__*/ a.createElement(e, {
|
|
45
|
-
className: o("visx-axis-line", d),
|
|
46
|
-
from: u,
|
|
47
|
-
to: f,
|
|
48
|
-
stroke: E,
|
|
49
|
-
strokeWidth: k,
|
|
50
|
-
strokeDasharray: D
|
|
51
|
-
}), _ && /*#__PURE__*/ a.createElement(t, s({ className: o("visx-axis-label", v) }, r({
|
|
52
|
-
labelOffset: b,
|
|
53
|
-
labelProps: H,
|
|
54
|
-
orientation: C,
|
|
55
|
-
range: w.range(),
|
|
56
|
-
tickLabelFontSize: G,
|
|
57
|
-
tickLength: F
|
|
58
|
-
}), H), _));
|
|
59
|
-
}
|
|
60
|
-
//#endregion
|
|
61
|
-
export { l as default };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import e from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
2
|
-
import t from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
3
|
-
import n from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js";
|
|
4
|
-
import r from "../constants/orientation.js";
|
|
5
|
-
import i from "react";
|
|
6
|
-
import a from "classnames";
|
|
7
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js
|
|
8
|
-
function o() {
|
|
9
|
-
return o = Object.assign ? Object.assign.bind() : function(e) {
|
|
10
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
11
|
-
var n = arguments[t];
|
|
12
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
13
|
-
}
|
|
14
|
-
return e;
|
|
15
|
-
}, o.apply(this, arguments);
|
|
16
|
-
}
|
|
17
|
-
function s(s) {
|
|
18
|
-
var c = s.hideTicks, l = s.horizontal, u = s.orientation, d = s.tickClassName, f = s.tickComponent, p = s.tickLabelProps, m = s.tickStroke, h = m === void 0 ? "#222" : m, g = s.tickTransform, _ = s.ticks, v = s.strokeWidth, y = s.tickLineProps;
|
|
19
|
-
return _.map(function(s) {
|
|
20
|
-
var m = s.value, _ = s.index, b = s.from, x = s.to, S = s.formattedValue, C = p[_] ?? {}, w = Math.max(10, typeof C.fontSize == "number" && C.fontSize || 0), T = x.y + (l && u !== r.top ? w : 0);
|
|
21
|
-
return /*#__PURE__*/ i.createElement(e, {
|
|
22
|
-
key: "visx-tick-" + m + "-" + _,
|
|
23
|
-
className: a("visx-axis-tick", d),
|
|
24
|
-
transform: g
|
|
25
|
-
}, !c && /*#__PURE__*/ i.createElement(t, o({
|
|
26
|
-
from: b,
|
|
27
|
-
to: x,
|
|
28
|
-
stroke: h,
|
|
29
|
-
strokeWidth: v,
|
|
30
|
-
strokeLinecap: "square"
|
|
31
|
-
}, y)), f ? f(o({}, C, {
|
|
32
|
-
x: x.x,
|
|
33
|
-
y: T,
|
|
34
|
-
formattedValue: S
|
|
35
|
-
})) : /*#__PURE__*/ i.createElement(n, o({
|
|
36
|
-
x: x.x,
|
|
37
|
-
y: T
|
|
38
|
-
}, C), S));
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
42
|
-
export { s as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Point as e } from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js
|
|
3
|
-
function t(t, n) {
|
|
4
|
-
var r = t.x, i = t.y;
|
|
5
|
-
return new e(n ? {
|
|
6
|
-
x: r,
|
|
7
|
-
y: i
|
|
8
|
-
} : {
|
|
9
|
-
x: i,
|
|
10
|
-
y: r
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { t as default };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js
|
|
2
|
-
function e() {
|
|
3
|
-
return e = Object.assign ? Object.assign.bind() : function(e) {
|
|
4
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
5
|
-
var n = arguments[t];
|
|
6
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
7
|
-
}
|
|
8
|
-
return e;
|
|
9
|
-
}, e.apply(this, arguments);
|
|
10
|
-
}
|
|
11
|
-
function t(t) {
|
|
12
|
-
return t === void 0 && (t = 0), typeof t == "number" ? {
|
|
13
|
-
start: t,
|
|
14
|
-
end: t
|
|
15
|
-
} : e({
|
|
16
|
-
start: 0,
|
|
17
|
-
end: 0
|
|
18
|
-
}, t);
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
export { t as default };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import e from "../constants/orientation.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js
|
|
3
|
-
function t(t) {
|
|
4
|
-
var n = t.labelOffset, r = t.labelProps, i = t.orientation, a = t.range, o = t.tickLabelFontSize, s = t.tickLength, c = i === e.left || i === e.top ? -1 : 1, l, u, d;
|
|
5
|
-
if (i === e.top || i === e.bottom) {
|
|
6
|
-
var f = i === e.bottom && typeof r.fontSize == "number" ? r.fontSize : 0;
|
|
7
|
-
l = (Number(a[0]) + Number(a[a.length - 1])) / 2, u = c * (s + n + o + f);
|
|
8
|
-
} else l = c * ((Number(a[0]) + Number(a[a.length - 1])) / 2), u = -(s + n), d = "rotate(" + c * 90 + ")";
|
|
9
|
-
return {
|
|
10
|
-
x: l,
|
|
11
|
-
y: u,
|
|
12
|
-
transform: d
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { t as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import e from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js
|
|
3
|
-
function t(t) {
|
|
4
|
-
var n = t;
|
|
5
|
-
return "tickFormat" in n ? n.tickFormat() : e;
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as default };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
t === void 0 && (t = "center");
|
|
4
|
-
var n = e;
|
|
5
|
-
if (t !== "start" && "bandwidth" in n) {
|
|
6
|
-
var r = n.bandwidth();
|
|
7
|
-
return t === "center" && (r /= 2), n.round() && (r = Math.round(r)), function(e) {
|
|
8
|
-
var t = n(e);
|
|
9
|
-
return typeof t == "number" ? t + r : t;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
return e;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { e as default };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_Line as t } from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js";
|
|
3
|
-
import n from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
4
|
-
import { Point as r } from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
|
|
5
|
-
import i from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
6
|
-
import a from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js";
|
|
7
|
-
import o from "../utils/getScaleBandwidth.js";
|
|
8
|
-
import s from "react";
|
|
9
|
-
import c from "prop-types";
|
|
10
|
-
import l from "classnames";
|
|
11
|
-
//#region ../../../node_modules/.bun/@visx+grid@3.12.0+f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js
|
|
12
|
-
var u = /* @__PURE__ */ e(t()), d = [
|
|
13
|
-
"top",
|
|
14
|
-
"left",
|
|
15
|
-
"scale",
|
|
16
|
-
"height",
|
|
17
|
-
"stroke",
|
|
18
|
-
"strokeWidth",
|
|
19
|
-
"strokeDasharray",
|
|
20
|
-
"className",
|
|
21
|
-
"numTicks",
|
|
22
|
-
"lineStyle",
|
|
23
|
-
"offset",
|
|
24
|
-
"tickValues",
|
|
25
|
-
"children"
|
|
26
|
-
];
|
|
27
|
-
function f() {
|
|
28
|
-
return f = Object.assign ? Object.assign.bind() : function(e) {
|
|
29
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
30
|
-
var n = arguments[t];
|
|
31
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
32
|
-
}
|
|
33
|
-
return e;
|
|
34
|
-
}, f.apply(this, arguments);
|
|
35
|
-
}
|
|
36
|
-
function p(e, t) {
|
|
37
|
-
if (e == null) return {};
|
|
38
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
39
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
40
|
-
return n;
|
|
41
|
-
}
|
|
42
|
-
function m(e) {
|
|
43
|
-
var t = e.top, c = t === void 0 ? 0 : t, m = e.left, h = m === void 0 ? 0 : m, g = e.scale, _ = e.height, v = e.stroke, y = v === void 0 ? "#eaf0f6" : v, b = e.strokeWidth, x = b === void 0 ? 1 : b, S = e.strokeDasharray, C = e.className, w = e.numTicks, T = w === void 0 ? 10 : w, E = e.lineStyle, D = e.offset, O = e.tickValues, k = e.children, A = p(e, d), j = O ?? a(g, T), M = (D ?? 0) + o(g) / 2, N = j.map(function(e, t) {
|
|
44
|
-
var n = (i(g(e)) ?? 0) + M;
|
|
45
|
-
return {
|
|
46
|
-
index: t,
|
|
47
|
-
from: new r({
|
|
48
|
-
x: n,
|
|
49
|
-
y: 0
|
|
50
|
-
}),
|
|
51
|
-
to: new r({
|
|
52
|
-
x: n,
|
|
53
|
-
y: _
|
|
54
|
-
})
|
|
55
|
-
};
|
|
56
|
-
});
|
|
57
|
-
return /*#__PURE__*/ s.createElement(n, {
|
|
58
|
-
className: l("visx-columns", C),
|
|
59
|
-
top: c,
|
|
60
|
-
left: h
|
|
61
|
-
}, k ? k({ lines: N }) : N.map(function(e) {
|
|
62
|
-
var t = e.from, n = e.to, r = e.index;
|
|
63
|
-
return /*#__PURE__*/ s.createElement(u.default, f({
|
|
64
|
-
key: "column-line-" + r,
|
|
65
|
-
from: t,
|
|
66
|
-
to: n,
|
|
67
|
-
stroke: y,
|
|
68
|
-
strokeWidth: x,
|
|
69
|
-
strokeDasharray: S,
|
|
70
|
-
style: E
|
|
71
|
-
}, A));
|
|
72
|
-
}));
|
|
73
|
-
}
|
|
74
|
-
m.propTypes = {
|
|
75
|
-
tickValues: c.array,
|
|
76
|
-
height: c.number.isRequired
|
|
77
|
-
};
|
|
78
|
-
//#endregion
|
|
79
|
-
export { m as default };
|