@pie-lib/charting 7.0.4-next.31 → 7.0.4-next.33
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 +2 -5
- package/dist/actions-button.js +9 -9
- package/dist/axes.js +37 -37
- package/dist/bars/bar.js +2 -2
- package/dist/bars/common/bars.js +16 -16
- package/dist/bars/histogram.js +2 -2
- package/dist/chart-setup.js +20 -20
- package/dist/chart.js +6 -6
- package/dist/common/correctness-indicators.js +18 -18
- package/dist/common/drag-handle.js +21 -21
- package/dist/grid.js +12 -12
- package/dist/index.js +1 -1
- package/dist/key-legend.js +12 -12
- package/dist/line/common/drag-handle.js +13 -13
- package/dist/line/common/line.js +14 -14
- package/dist/line/line-cross.js +21 -21
- package/dist/line/line-dot.js +12 -12
- package/dist/mark-label.js +14 -14
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js +67 -0
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisBottom.js +29 -0
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisLeft.js +30 -0
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +66 -0
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Ticks.js +39 -0
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +13 -0
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
- package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickPosition.js +14 -0
- package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js +46 -0
- package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js +46 -0
- package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
- package/dist/node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js +17 -0
- package/dist/node_modules/.bun/@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js +20 -0
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/align.js +1 -1
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/base.js +1 -1
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/clamp.js +1 -1
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/constant.js +1 -1
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/domain.js +1 -1
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/exponent.js +1 -1
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/interpolate.js +2 -2
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/nice.js +7 -7
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/padding.js +1 -1
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/range.js +1 -1
- package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/reverse.js +9 -0
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/round.js +2 -2
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/scaleOperator.js +4 -6
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/unknown.js +1 -1
- package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/zero.js +9 -0
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/scales/band.js +3 -3
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/scales/point.js +3 -3
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/utils/coerceNumber.js +2 -2
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/utils/createColorInterpolator.js +3 -3
- package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js +7 -0
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/utils/isUtcScale.js +1 -1
- package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
- package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Bar.js +15 -0
- package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Circle.js +15 -0
- package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js +27 -0
- package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/LinePath.js +24 -0
- package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +9 -0
- package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +6 -0
- package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js +27 -0
- package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/hooks/useText.js +68 -0
- package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/getStringWidth.js +19 -0
- package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/memoize.js +13 -0
- package/dist/node_modules/.bun/{@visx_vendor@3.12.0 → @visx_vendor@4.0.0}/node_modules/@visx/vendor/esm/d3-interpolate.js +1 -1
- package/dist/node_modules/.bun/{@visx_vendor@3.12.0 → @visx_vendor@4.0.0}/node_modules/@visx/vendor/esm/d3-scale.js +1 -1
- package/dist/node_modules/.bun/@visx_vendor@4.0.0/node_modules/@visx/vendor/esm/d3-shape.js +8 -0
- package/dist/node_modules/.bun/{@visx_vendor@3.12.0 → @visx_vendor@4.0.0}/node_modules/@visx/vendor/esm/d3-time.js +1 -1
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +1 -1
- package/dist/plot/common/plot.js +28 -28
- package/dist/plot/dot.js +10 -10
- package/dist/plot/line.js +12 -12
- package/dist/utils.js +2 -2
- package/package.json +19 -14
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -101
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js +0 -46
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisLeft.js +0 -47
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -63
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -44
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
- package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -50
- package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/reverse.js +0 -9
- 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/utils/getTicks.js +0 -9
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Bar.js +0 -29
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Circle.js +0 -29
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -47
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +0 -50
- 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 -53
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Hash.js +0 -21
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_ListCache.js +0 -21
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Map.js +0 -10
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_MapCache.js +0 -21
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Symbol.js +0 -9
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +0 -14
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +0 -15
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +0 -16
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_coreJsData.js +0 -9
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +0 -8
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getMapData.js +0 -14
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getNative.js +0 -15
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getRawTag.js +0 -19
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getValue.js +0 -11
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashClear.js +0 -13
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashDelete.js +0 -12
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashGet.js +0 -18
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashHas.js +0 -14
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isKeyable.js +0 -12
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isMasked.js +0 -16
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +0 -11
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +0 -14
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +0 -13
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +0 -19
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +0 -14
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +0 -13
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +0 -13
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +0 -9
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_objectToString.js +0 -12
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_root.js +0 -10
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_toSource.js +0 -20
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/eq.js +0 -11
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/isFunction.js +0 -16
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/isObject.js +0 -12
- package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/memoize.js +0 -20
package/dist/line/line-dot.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CorrectnessIndicator as e, SmallCorrectPointIndicator as t } from "../common/correctness-indicators.js";
|
|
2
2
|
import { dataToXBand as n } from "../utils.js";
|
|
3
|
-
import r from "./common/line.js";
|
|
3
|
+
import { Line as r } from "./common/line.js";
|
|
4
4
|
import i from "react";
|
|
5
5
|
import a from "prop-types";
|
|
6
6
|
import { styled as o } from "@mui/material/styles";
|
|
7
7
|
import { types as s } from "@pie-lib/plot";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
|
+
import { color as u } from "@pie-lib/render-ui";
|
|
10
10
|
//#region src/line/line-dot.tsx
|
|
11
11
|
var d = o("circle")(() => ({})), f = o("circle")(() => ({
|
|
12
12
|
height: "20px",
|
|
@@ -15,13 +15,13 @@ var d = o("circle")(() => ({})), f = o("circle")(() => ({
|
|
|
15
15
|
pointerEvents: "auto"
|
|
16
16
|
})), p = ({ scale: n, x: r, y: a, r: o, correctness: s, interactive: p, correctData: m, label: h, ...g }) => {
|
|
17
17
|
let [_, v] = i.useState(!1), y = !s && p;
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ l("g", {
|
|
19
19
|
onMouseEnter: () => v(!0),
|
|
20
20
|
onMouseLeave: () => v(!1),
|
|
21
21
|
onTouchStart: () => v(!0),
|
|
22
22
|
onTouchEnd: () => v(!1),
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ c(f, {
|
|
25
25
|
cx: n.x(r),
|
|
26
26
|
cy: n.y(a),
|
|
27
27
|
r: o * 3,
|
|
@@ -29,7 +29,7 @@ var d = o("circle")(() => ({})), f = o("circle")(() => ({
|
|
|
29
29
|
onMouseLeave: () => v(!1),
|
|
30
30
|
...g
|
|
31
31
|
}),
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ c(d, {
|
|
33
33
|
cx: n.x(r),
|
|
34
34
|
cy: n.y(a),
|
|
35
35
|
r: o,
|
|
@@ -37,7 +37,7 @@ var d = o("circle")(() => ({})), f = o("circle")(() => ({
|
|
|
37
37
|
interactive: p,
|
|
38
38
|
...g
|
|
39
39
|
}),
|
|
40
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ c(e, {
|
|
41
41
|
scale: n,
|
|
42
42
|
x: r,
|
|
43
43
|
y: a,
|
|
@@ -45,7 +45,7 @@ var d = o("circle")(() => ({})), f = o("circle")(() => ({
|
|
|
45
45
|
correctness: s,
|
|
46
46
|
interactive: p
|
|
47
47
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ c(t, {
|
|
49
49
|
scale: n,
|
|
50
50
|
x: r,
|
|
51
51
|
r: o,
|
|
@@ -53,12 +53,12 @@ var d = o("circle")(() => ({})), f = o("circle")(() => ({
|
|
|
53
53
|
correctData: m,
|
|
54
54
|
label: h
|
|
55
55
|
}),
|
|
56
|
-
_ && y && /* @__PURE__ */
|
|
56
|
+
_ && y && /* @__PURE__ */ c("rect", {
|
|
57
57
|
x: n.x(r) - o * 2,
|
|
58
58
|
y: n.y(a) - o * 2,
|
|
59
59
|
width: o * 4,
|
|
60
60
|
height: o * 4,
|
|
61
|
-
stroke:
|
|
61
|
+
stroke: u.defaults.BORDER_GRAY,
|
|
62
62
|
strokeWidth: "1",
|
|
63
63
|
fill: "none"
|
|
64
64
|
})
|
|
@@ -86,7 +86,7 @@ var m = class extends i.Component {
|
|
|
86
86
|
};
|
|
87
87
|
render() {
|
|
88
88
|
let e = this.props, { data: t, graphProps: i } = e, { scale: a = {}, size: o = {} } = i || {}, s = n(a.x, t, o.width, "lineDot");
|
|
89
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ c(r, {
|
|
90
90
|
...e,
|
|
91
91
|
xBand: s,
|
|
92
92
|
CustomDraggableComponent: p
|
|
@@ -98,4 +98,4 @@ var m = class extends i.Component {
|
|
|
98
98
|
name: "Line Dot"
|
|
99
99
|
});
|
|
100
100
|
//#endregion
|
|
101
|
-
export { h as default };
|
|
101
|
+
export { m as LineDot, h as default };
|
package/dist/mark-label.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import e from "./node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
1
|
+
import { clsx as e } from "./node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { AutosizeInput as t } from "./autosize-input.js";
|
|
3
3
|
import { correct as n, disabled as r, incorrect as i } from "./common/styles.js";
|
|
4
4
|
import { useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
5
5
|
import l from "prop-types";
|
|
6
6
|
import { styled as u } from "@mui/material/styles";
|
|
7
7
|
import { types as d } from "@pie-lib/plot";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
9
|
+
import { color as m } from "@pie-lib/render-ui";
|
|
10
10
|
import { renderMath as h } from "@pie-element/shared-math-rendering-mathjax";
|
|
11
11
|
//#region src/mark-label.tsx
|
|
12
12
|
var g = u("div")({
|
|
@@ -21,7 +21,7 @@ u("input")(({ theme: e }) => ({
|
|
|
21
21
|
border: "none",
|
|
22
22
|
"&.correct": n("color"),
|
|
23
23
|
"&.incorrect": i("color"),
|
|
24
|
-
"&.
|
|
24
|
+
"&.disabledMarkLabel": { backgroundColor: "transparent !important" },
|
|
25
25
|
"&.error": { border: `2px solid ${e.palette.error.main}` }
|
|
26
26
|
}));
|
|
27
27
|
var _ = u("div")(({ theme: e }) => ({
|
|
@@ -29,9 +29,9 @@ var _ = u("div")(({ theme: e }) => ({
|
|
|
29
29
|
textAlign: "center",
|
|
30
30
|
fontSize: e.typography.fontSize + 2,
|
|
31
31
|
fontFamily: e.typography.fontFamily,
|
|
32
|
-
color:
|
|
32
|
+
color: m.primaryDark(),
|
|
33
33
|
paddingTop: e.typography.fontSize / 2,
|
|
34
|
-
"&.
|
|
34
|
+
"&.disabledMarkLabel": {
|
|
35
35
|
...r("color"),
|
|
36
36
|
backgroundColor: "transparent !important"
|
|
37
37
|
},
|
|
@@ -50,7 +50,7 @@ function y(e) {
|
|
|
50
50
|
if (v(e)) return i[0] && i[1] && (r = i[0]), a = `\\(${r}\\frac{${n[0]}}{${n[1]}}\\)`, a;
|
|
51
51
|
}
|
|
52
52
|
var b = (n) => {
|
|
53
|
-
let [r, i] = c(null), l = a((e) => i(e), null), { mark: u = {}, disabled: d, inputRef:
|
|
53
|
+
let [r, i] = c(null), l = a((e) => i(e), null), { mark: u = {}, disabled: d, inputRef: m, barWidth: v, rotate: b, correctness: x, autoFocus: S, error: C, isHiddenLabel: w, limitCharacters: T, correctnessIndicator: E } = n, [D, O] = c(u.label), [k, A] = c(y(u.label)), [j, M] = c(!1), N = s(null), P = (e) => {
|
|
54
54
|
T && e.target.value && e.target.value.length > 20 || O(e.target.value);
|
|
55
55
|
}, F = () => j === !1 && k !== void 0, I = (e) => {
|
|
56
56
|
A(y(u.label)), M(!1), n.onChange(e.target.value);
|
|
@@ -63,12 +63,12 @@ var b = (n) => {
|
|
|
63
63
|
}, [u.label]), o(() => {
|
|
64
64
|
let e = N.current;
|
|
65
65
|
e && k && (e.innerHTML = k, h(e));
|
|
66
|
-
}, [D, k]), /* @__PURE__ */
|
|
66
|
+
}, [D, k]), /* @__PURE__ */ p(g, { children: [E, F() ? /* @__PURE__ */ f(_, {
|
|
67
67
|
ref: (e) => {
|
|
68
|
-
N.current = e, typeof
|
|
68
|
+
N.current = e, typeof m == "function" && m(e);
|
|
69
69
|
},
|
|
70
70
|
className: e({
|
|
71
|
-
|
|
71
|
+
disabledMarkLabel: d,
|
|
72
72
|
error: C,
|
|
73
73
|
correct: u.editable && x?.label === "correct",
|
|
74
74
|
incorrect: u.editable && x?.label === "incorrect"
|
|
@@ -82,14 +82,14 @@ var b = (n) => {
|
|
|
82
82
|
visibility: w ? "hidden" : "unset",
|
|
83
83
|
marginTop: E ? "24px" : "0"
|
|
84
84
|
}
|
|
85
|
-
}) : /* @__PURE__ */
|
|
85
|
+
}) : /* @__PURE__ */ f(t, {
|
|
86
86
|
inputRef: (e) => {
|
|
87
|
-
l(e), typeof
|
|
87
|
+
l(e), typeof m == "function" && m(e);
|
|
88
88
|
},
|
|
89
89
|
name: "mark-label-input",
|
|
90
90
|
autoFocus: j || S,
|
|
91
91
|
disabled: d,
|
|
92
|
-
inputClassName: e(x && u.editable ? x.label : null, d && "
|
|
92
|
+
inputClassName: e(x && u.editable ? x.label : null, d && "disabledMarkLabel", C && "error"),
|
|
93
93
|
inputStyle: {
|
|
94
94
|
minWidth: v,
|
|
95
95
|
textAlign: "center",
|
|
@@ -135,4 +135,4 @@ b.propTypes = {
|
|
|
135
135
|
correctnessIndicator: l.node
|
|
136
136
|
};
|
|
137
137
|
//#endregion
|
|
138
|
-
export { b as default };
|
|
138
|
+
export { b as MarkLabel, b as default };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import n from "../../../../../../@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js";
|
|
4
|
+
import r from "../../../../../../@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
5
|
+
import i from "../../../../../../@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js";
|
|
6
|
+
import a from "../constants/orientation.js";
|
|
7
|
+
import o from "./AxisRenderer.js";
|
|
8
|
+
import s from "../utils/getTickPosition.js";
|
|
9
|
+
import c from "../utils/getTickFormatter.js";
|
|
10
|
+
import l from "../utils/createPoint.js";
|
|
11
|
+
import u from "../utils/getAxisRangePaddingConfig.js";
|
|
12
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../../node_modules/.bun/@visx+axis@4.0.0+d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js
|
|
14
|
+
var f = /* @__PURE__ */ e(t());
|
|
15
|
+
function p(e) {
|
|
16
|
+
let { children: t = o, axisClassName: p, hideAxisLine: m = !1, hideTicks: h = !1, hideZero: g = !1, innerRef: _, left: v = 0, numTicks: y = 10, orientation: b = a.bottom, rangePadding: x = 0, scale: S, tickFormat: C, tickLength: w = 8, tickValues: T, top: E = 0, ...D } = e, O = C ?? c(S), k = b === a.left, A = b === a.top, j = A || b === a.bottom, M = s(S), N = k || A ? -1 : 1, P = S.range(), F = u(x), I = l({
|
|
17
|
+
x: Number(P[0]) + .5 - F.start,
|
|
18
|
+
y: 0
|
|
19
|
+
}, j), L = l({
|
|
20
|
+
x: Number(P[P.length - 1]) + .5 + F.end,
|
|
21
|
+
y: 0
|
|
22
|
+
}, j), R = (T ?? i(S, y)).filter((e) => !g || e !== 0 && e !== "0").map((e, t) => ({
|
|
23
|
+
value: e,
|
|
24
|
+
index: t
|
|
25
|
+
})), z = R.map((e) => {
|
|
26
|
+
let { value: t, index: n } = e, i = r(M(t));
|
|
27
|
+
return {
|
|
28
|
+
value: t,
|
|
29
|
+
index: n,
|
|
30
|
+
from: l({
|
|
31
|
+
x: i,
|
|
32
|
+
y: 0
|
|
33
|
+
}, j),
|
|
34
|
+
to: l({
|
|
35
|
+
x: i,
|
|
36
|
+
y: w * N
|
|
37
|
+
}, j),
|
|
38
|
+
formattedValue: O(t, n, R)
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
return /*#__PURE__*/ d(n, {
|
|
42
|
+
className: (0, f.default)("visx-axis", p),
|
|
43
|
+
innerRef: _,
|
|
44
|
+
top: E,
|
|
45
|
+
left: v,
|
|
46
|
+
children: t({
|
|
47
|
+
...D,
|
|
48
|
+
axisFromPoint: I,
|
|
49
|
+
axisToPoint: L,
|
|
50
|
+
hideAxisLine: m,
|
|
51
|
+
hideTicks: h,
|
|
52
|
+
hideZero: g,
|
|
53
|
+
horizontal: j,
|
|
54
|
+
numTicks: y,
|
|
55
|
+
orientation: b,
|
|
56
|
+
rangePadding: x,
|
|
57
|
+
scale: S,
|
|
58
|
+
tickFormat: O,
|
|
59
|
+
tickLength: w,
|
|
60
|
+
tickPosition: M,
|
|
61
|
+
tickSign: N,
|
|
62
|
+
ticks: z
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { p as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import n from "../constants/orientation.js";
|
|
4
|
+
import r from "./Axis.js";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
//#region ../../../node_modules/.bun/@visx+axis@4.0.0+d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisBottom.js
|
|
7
|
+
var a = /* @__PURE__ */ e(t()), o = {
|
|
8
|
+
dy: "0.25em",
|
|
9
|
+
fill: "#222",
|
|
10
|
+
fontFamily: "Arial",
|
|
11
|
+
fontSize: 10,
|
|
12
|
+
textAnchor: "middle"
|
|
13
|
+
};
|
|
14
|
+
function s(e) {
|
|
15
|
+
let { axisClassName: t, labelOffset: s = 8, tickLength: c = 8, tickLabelProps: l, ...u } = e, d = typeof l == "function" ? l : {
|
|
16
|
+
...o,
|
|
17
|
+
...l
|
|
18
|
+
};
|
|
19
|
+
return /*#__PURE__*/ i(r, {
|
|
20
|
+
axisClassName: (0, a.default)("visx-axis-bottom", t),
|
|
21
|
+
labelOffset: s,
|
|
22
|
+
orientation: n.bottom,
|
|
23
|
+
tickLabelProps: d,
|
|
24
|
+
tickLength: c,
|
|
25
|
+
...u
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { o as bottomTickLabelProps, s as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import n from "../constants/orientation.js";
|
|
4
|
+
import r from "./Axis.js";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
//#region ../../../node_modules/.bun/@visx+axis@4.0.0+d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisLeft.js
|
|
7
|
+
var a = /* @__PURE__ */ e(t()), o = {
|
|
8
|
+
dx: "-0.25em",
|
|
9
|
+
dy: "0.25em",
|
|
10
|
+
fill: "#222",
|
|
11
|
+
fontFamily: "Arial",
|
|
12
|
+
fontSize: 10,
|
|
13
|
+
textAnchor: "end"
|
|
14
|
+
};
|
|
15
|
+
function s(e) {
|
|
16
|
+
let { axisClassName: t, labelOffset: s = 36, tickLength: c = 8, tickLabelProps: l, ...u } = e, d = typeof l == "function" ? l : {
|
|
17
|
+
...o,
|
|
18
|
+
...l
|
|
19
|
+
};
|
|
20
|
+
return /*#__PURE__*/ i(r, {
|
|
21
|
+
axisClassName: (0, a.default)("visx-axis-left", t),
|
|
22
|
+
labelOffset: s,
|
|
23
|
+
orientation: n.left,
|
|
24
|
+
tickLabelProps: d,
|
|
25
|
+
tickLength: c,
|
|
26
|
+
...u
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { s as default, o as leftTickLabelProps };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import n from "../../../../../../@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
4
|
+
import r from "../../../../../../@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js";
|
|
5
|
+
import i from "../constants/orientation.js";
|
|
6
|
+
import a from "../utils/getLabelTransform.js";
|
|
7
|
+
import o from "./Ticks.js";
|
|
8
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
|
+
//#region ../../../node_modules/.bun/@visx+axis@4.0.0+d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisRenderer.js
|
|
10
|
+
var u = /* @__PURE__ */ e(t()), d = {
|
|
11
|
+
textAnchor: "middle",
|
|
12
|
+
fontFamily: "Arial",
|
|
13
|
+
fontSize: 10,
|
|
14
|
+
fill: "#222"
|
|
15
|
+
};
|
|
16
|
+
function f(e) {
|
|
17
|
+
let { axisFromPoint: t, axisLineClassName: f, axisToPoint: p, hideAxisLine: m, hideTicks: h, horizontal: g, label: _ = "", labelClassName: v, labelOffset: y = 14, labelProps: b, orientation: x = i.bottom, scale: S, stroke: C = "#222", strokeDasharray: w, strokeWidth: T = 1, tickClassName: E, tickComponent: D, tickLineProps: O, tickLabelProps: k, tickLength: A = 8, tickStroke: j = "#222", tickTransform: M, ticks: N, ticksComponent: P = o } = e, F = {
|
|
18
|
+
...d,
|
|
19
|
+
...b
|
|
20
|
+
}, I = {
|
|
21
|
+
...d,
|
|
22
|
+
...typeof k == "object" ? k : null
|
|
23
|
+
}, L = N.map((e) => {
|
|
24
|
+
let { value: t, index: n } = e;
|
|
25
|
+
return typeof k == "function" ? k(t, n, N) : I;
|
|
26
|
+
}), R = Math.max(10, ...L.map((e) => typeof e.fontSize == "number" ? e.fontSize : 0));
|
|
27
|
+
return /*#__PURE__*/ l(s, { children: [
|
|
28
|
+
P({
|
|
29
|
+
hideTicks: h,
|
|
30
|
+
horizontal: g,
|
|
31
|
+
orientation: x,
|
|
32
|
+
scale: S,
|
|
33
|
+
tickClassName: E,
|
|
34
|
+
tickComponent: D,
|
|
35
|
+
tickLabelProps: L,
|
|
36
|
+
tickStroke: j,
|
|
37
|
+
tickTransform: M,
|
|
38
|
+
ticks: N,
|
|
39
|
+
strokeWidth: T,
|
|
40
|
+
tickLineProps: O
|
|
41
|
+
}),
|
|
42
|
+
!m && /*#__PURE__*/ c(n, {
|
|
43
|
+
className: (0, u.default)("visx-axis-line", f),
|
|
44
|
+
from: t,
|
|
45
|
+
to: p,
|
|
46
|
+
stroke: C,
|
|
47
|
+
strokeWidth: T,
|
|
48
|
+
strokeDasharray: w
|
|
49
|
+
}),
|
|
50
|
+
_ && /*#__PURE__*/ c(r, {
|
|
51
|
+
className: (0, u.default)("visx-axis-label", v),
|
|
52
|
+
...a({
|
|
53
|
+
labelOffset: y,
|
|
54
|
+
labelProps: F,
|
|
55
|
+
orientation: x,
|
|
56
|
+
range: S.range(),
|
|
57
|
+
tickLabelFontSize: R,
|
|
58
|
+
tickLength: A
|
|
59
|
+
}),
|
|
60
|
+
...F,
|
|
61
|
+
children: _
|
|
62
|
+
})
|
|
63
|
+
] });
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { f as default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import n from "../../../../../../@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js";
|
|
4
|
+
import r from "../../../../../../@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
5
|
+
import i from "../../../../../../@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js";
|
|
6
|
+
import a from "../constants/orientation.js";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
//#region ../../../node_modules/.bun/@visx+axis@4.0.0+d84c32d47042070f/node_modules/@visx/axis/esm/axis/Ticks.js
|
|
9
|
+
var c = /* @__PURE__ */ e(t());
|
|
10
|
+
function l(e) {
|
|
11
|
+
let { hideTicks: t, horizontal: l, orientation: u, tickClassName: d, tickComponent: f, tickLabelProps: p, tickStroke: m = "#222", tickTransform: h, ticks: g, strokeWidth: _, tickLineProps: v } = e;
|
|
12
|
+
return g.map((e) => {
|
|
13
|
+
let { value: g, index: y, from: b, to: x, formattedValue: S } = e, C = p[y] ?? {}, w = Math.max(10, typeof C.fontSize == "number" && C.fontSize || 0), T = x.y + (l && u !== a.top ? w : 0);
|
|
14
|
+
return /*#__PURE__*/ s(n, {
|
|
15
|
+
className: (0, c.default)("visx-axis-tick", d),
|
|
16
|
+
transform: h,
|
|
17
|
+
children: [!t && /*#__PURE__*/ o(r, {
|
|
18
|
+
from: b,
|
|
19
|
+
to: x,
|
|
20
|
+
stroke: m,
|
|
21
|
+
strokeWidth: _,
|
|
22
|
+
strokeLinecap: "square",
|
|
23
|
+
...v
|
|
24
|
+
}), f ? f({
|
|
25
|
+
...C,
|
|
26
|
+
x: x.x,
|
|
27
|
+
y: T,
|
|
28
|
+
formattedValue: S
|
|
29
|
+
}) : /*#__PURE__*/ o(i, {
|
|
30
|
+
x: x.x,
|
|
31
|
+
y: T,
|
|
32
|
+
...C,
|
|
33
|
+
children: S
|
|
34
|
+
})]
|
|
35
|
+
}, `visx-tick-${g}-${y}`);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { l as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import e from "../../../../../../@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/@visx+axis@4.0.0+d84c32d47042070f/node_modules/@visx/axis/esm/utils/createPoint.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let { x: r, y: i } = t;
|
|
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 };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import e from "../constants/orientation.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/@visx+axis@4.0.0+d84c32d47042070f/node_modules/@visx/axis/esm/utils/getLabelTransform.js
|
|
3
|
+
function t(t) {
|
|
4
|
+
let { labelOffset: n, labelProps: r, orientation: i, range: a, tickLabelFontSize: o, tickLength: s } = t, c = i === e.left || i === e.top ? -1 : 1, l, u, d;
|
|
5
|
+
if (i === e.top || i === e.bottom) {
|
|
6
|
+
let t = 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 + t);
|
|
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 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import e from "../../../../../../@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/toString.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/@visx+axis@4.0.0+d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickFormatter.js
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = t;
|
|
5
|
+
return "tickFormat" in n ? n.tickFormat() : e;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@visx+axis@4.0.0+d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickPosition.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "center", n = e;
|
|
4
|
+
if (t !== "start" && "bandwidth" in n) {
|
|
5
|
+
let e = n.bandwidth();
|
|
6
|
+
return t === "center" && (e /= 2), n.round() && (e = Math.round(e)), (t) => {
|
|
7
|
+
let r = n(t);
|
|
8
|
+
return typeof r == "number" ? r + e : r;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { e as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import n from "../../../../../../@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js";
|
|
4
|
+
import r from "../../../../../../@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
5
|
+
import i from "../../../../../../@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js";
|
|
6
|
+
import a from "../../../../../../@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
7
|
+
import o from "../../../../../../@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js";
|
|
8
|
+
import s from "../utils/getScaleBandwidth.js";
|
|
9
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
10
|
+
//#region ../../../node_modules/.bun/@visx+grid@4.0.0+d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js
|
|
11
|
+
var l = /* @__PURE__ */ e(t());
|
|
12
|
+
function u(e) {
|
|
13
|
+
let { top: t = 0, left: u = 0, scale: d, height: f, stroke: p = "#eaf0f6", strokeWidth: m = 1, strokeDasharray: h, className: g, numTicks: _ = 10, lineStyle: v, offset: y, tickValues: b, children: x, ...S } = e, C = b ?? o(d, _), w = (y ?? 0) + s(d) / 2, T = C.map((e, t) => {
|
|
14
|
+
let n = (a(d(e)) ?? 0) + w;
|
|
15
|
+
return {
|
|
16
|
+
index: t,
|
|
17
|
+
from: new i({
|
|
18
|
+
x: n,
|
|
19
|
+
y: 0
|
|
20
|
+
}),
|
|
21
|
+
to: new i({
|
|
22
|
+
x: n,
|
|
23
|
+
y: f
|
|
24
|
+
})
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
return /*#__PURE__*/ c(n, {
|
|
28
|
+
className: (0, l.default)("visx-columns", g),
|
|
29
|
+
top: t,
|
|
30
|
+
left: u,
|
|
31
|
+
children: x ? x({ lines: T }) : T.map((e) => {
|
|
32
|
+
let { from: t, to: n, index: i } = e;
|
|
33
|
+
return /*#__PURE__*/ c(r, {
|
|
34
|
+
from: t,
|
|
35
|
+
to: n,
|
|
36
|
+
stroke: p,
|
|
37
|
+
strokeWidth: m,
|
|
38
|
+
strokeDasharray: h,
|
|
39
|
+
style: v,
|
|
40
|
+
...S
|
|
41
|
+
}, `column-line-${i}`);
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { u as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import n from "../../../../../../@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js";
|
|
4
|
+
import r from "../../../../../../@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
5
|
+
import i from "../../../../../../@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js";
|
|
6
|
+
import a from "../../../../../../@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
7
|
+
import o from "../../../../../../@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js";
|
|
8
|
+
import s from "../utils/getScaleBandwidth.js";
|
|
9
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
10
|
+
//#region ../../../node_modules/.bun/@visx+grid@4.0.0+d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js
|
|
11
|
+
var l = /* @__PURE__ */ e(t());
|
|
12
|
+
function u(e) {
|
|
13
|
+
let { top: t = 0, left: u = 0, scale: d, width: f, stroke: p = "#eaf0f6", strokeWidth: m = 1, strokeDasharray: h, className: g, children: _, numTicks: v = 10, lineStyle: y, offset: b, tickValues: x, ...S } = e, C = x ?? o(d, v), w = (b ?? 0) + s(d) / 2, T = C.map((e, t) => {
|
|
14
|
+
let n = (a(d(e)) ?? 0) + w;
|
|
15
|
+
return {
|
|
16
|
+
index: t,
|
|
17
|
+
from: new i({
|
|
18
|
+
x: 0,
|
|
19
|
+
y: n
|
|
20
|
+
}),
|
|
21
|
+
to: new i({
|
|
22
|
+
x: f,
|
|
23
|
+
y: n
|
|
24
|
+
})
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
return /*#__PURE__*/ c(n, {
|
|
28
|
+
className: (0, l.default)("visx-rows", g),
|
|
29
|
+
top: t,
|
|
30
|
+
left: u,
|
|
31
|
+
children: _ ? _({ lines: T }) : T.map((e) => {
|
|
32
|
+
let { from: t, to: n, index: i } = e;
|
|
33
|
+
return /*#__PURE__*/ c(r, {
|
|
34
|
+
from: t,
|
|
35
|
+
to: n,
|
|
36
|
+
stroke: p,
|
|
37
|
+
strokeWidth: m,
|
|
38
|
+
strokeDasharray: h,
|
|
39
|
+
style: y,
|
|
40
|
+
...S
|
|
41
|
+
}, `row-line-${i}`);
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { u as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_classnames as t } from "../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../../node_modules/.bun/@visx+group@4.0.0+d84c32d47042070f/node_modules/@visx/group/esm/Group.js
|
|
5
|
+
var r = /* @__PURE__ */ e(t());
|
|
6
|
+
function i(e) {
|
|
7
|
+
let { top: t = 0, left: i = 0, transform: a, className: o, children: s, innerRef: c, ...l } = e;
|
|
8
|
+
return /*#__PURE__*/ n("g", {
|
|
9
|
+
ref: c,
|
|
10
|
+
className: (0, r.default)("visx-group", o),
|
|
11
|
+
transform: a || `translate(${i}, ${t})`,
|
|
12
|
+
...l,
|
|
13
|
+
children: s
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { i as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@visx+point@4.0.0/node_modules/@visx/point/esm/Point.js
|
|
2
|
+
var e = class {
|
|
3
|
+
x = 0;
|
|
4
|
+
y = 0;
|
|
5
|
+
constructor(e) {
|
|
6
|
+
let { x: t = 0, y: n = 0 } = e;
|
|
7
|
+
this.x = t, this.y = n;
|
|
8
|
+
}
|
|
9
|
+
value() {
|
|
10
|
+
return {
|
|
11
|
+
x: this.x,
|
|
12
|
+
y: this.y
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
toArray() {
|
|
16
|
+
return [this.x, this.y];
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@visx+scale@
|
|
1
|
+
//#region ../../../node_modules/.bun/@visx+scale@4.0.0/node_modules/@visx/scale/esm/operators/align.js
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
"align" in e && "align" in t && t.align !== void 0 && e.align(t.align);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@visx+scale@
|
|
1
|
+
//#region ../../../node_modules/.bun/@visx+scale@4.0.0/node_modules/@visx/scale/esm/operators/base.js
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
"base" in e && "base" in t && t.base !== void 0 && e.base(t.base);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@visx+scale@
|
|
1
|
+
//#region ../../../node_modules/.bun/@visx+scale@4.0.0/node_modules/@visx/scale/esm/operators/clamp.js
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
"clamp" in e && "clamp" in t && t.clamp !== void 0 && e.clamp(t.clamp);
|
|
4
4
|
}
|