@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
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import e from "prop-types";
|
|
3
3
|
import { styled as t } from "@mui/material/styles";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
import { color as r } from "@pie-lib/render-ui";
|
|
6
6
|
import i from "@mui/icons-material/Check";
|
|
7
7
|
import a from "@mui/icons-material/Close";
|
|
8
8
|
//#region src/common/correctness-indicators.tsx
|
|
9
9
|
var o = t(i)(({ theme: e }) => ({
|
|
10
10
|
borderRadius: e.spacing(2),
|
|
11
|
-
color:
|
|
11
|
+
color: r.defaults.WHITE,
|
|
12
12
|
fontSize: "16px",
|
|
13
13
|
width: "16px",
|
|
14
14
|
height: "16px",
|
|
15
15
|
padding: "2px",
|
|
16
|
-
border: `1px solid ${
|
|
16
|
+
border: `1px solid ${r.defaults.WHITE}`,
|
|
17
17
|
stroke: "initial",
|
|
18
18
|
boxSizing: "unset",
|
|
19
|
-
backgroundColor:
|
|
19
|
+
backgroundColor: r.correct(),
|
|
20
20
|
display: "block",
|
|
21
21
|
"&.small": {
|
|
22
22
|
fontSize: "10px",
|
|
@@ -25,49 +25,49 @@ var o = t(i)(({ theme: e }) => ({
|
|
|
25
25
|
}
|
|
26
26
|
})), s = t(a)(({ theme: e }) => ({
|
|
27
27
|
borderRadius: e.spacing(2),
|
|
28
|
-
color:
|
|
28
|
+
color: r.defaults.WHITE,
|
|
29
29
|
fontSize: "16px",
|
|
30
30
|
width: "16px",
|
|
31
31
|
height: "16px",
|
|
32
32
|
padding: "2px",
|
|
33
|
-
border: `1px solid ${
|
|
33
|
+
border: `1px solid ${r.defaults.WHITE}`,
|
|
34
34
|
stroke: "initial",
|
|
35
35
|
boxSizing: "unset",
|
|
36
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: r.incorrectWithIcon(),
|
|
37
37
|
display: "block",
|
|
38
38
|
"&.small": {
|
|
39
39
|
fontSize: "10px",
|
|
40
40
|
width: "10px",
|
|
41
41
|
height: "10px"
|
|
42
42
|
}
|
|
43
|
-
})), c = ({ scale: e, x: t, y:
|
|
43
|
+
})), c = ({ scale: e, x: t, y: r, correctness: i, interactive: a }) => {
|
|
44
44
|
if (!i || !a) return null;
|
|
45
|
-
let c = e ? e.x(t) : t, l = e ? e.y(
|
|
46
|
-
return /* @__PURE__ */
|
|
45
|
+
let c = e ? e.x(t) : t, l = e ? e.y(r) : r, u = i.value === "correct";
|
|
46
|
+
return /* @__PURE__ */ n("foreignObject", {
|
|
47
47
|
x: c - 11,
|
|
48
48
|
y: l - 11,
|
|
49
49
|
width: 22,
|
|
50
50
|
height: 22,
|
|
51
|
-
children:
|
|
51
|
+
children: n(u ? o : s, { title: i.label })
|
|
52
52
|
});
|
|
53
|
-
}, l = ({ scale: e, x: t, correctness:
|
|
54
|
-
if (
|
|
53
|
+
}, l = ({ scale: e, x: t, correctness: r, correctData: i, label: a }) => {
|
|
54
|
+
if (r && r.value === "incorrect") {
|
|
55
55
|
let s = parseFloat(i.find((e) => e.label === a)?.value);
|
|
56
56
|
if (isNaN(s)) return null;
|
|
57
57
|
let c = e.y(s) - 7.5;
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ n("foreignObject", {
|
|
59
59
|
x: e.x(t) - 7.5,
|
|
60
60
|
y: c,
|
|
61
61
|
width: 15,
|
|
62
62
|
height: 15,
|
|
63
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ n(o, {
|
|
64
64
|
className: "small",
|
|
65
|
-
title:
|
|
65
|
+
title: r.label
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
return null;
|
|
70
|
-
}, u = ({ correctness: e, interactive: t }) => !e || !t ? null : e.value === "correct" ? /* @__PURE__ */
|
|
70
|
+
}, u = ({ correctness: e, interactive: t }) => !e || !t ? null : e.value === "correct" ? /* @__PURE__ */ n(o, { title: e.label }) : /* @__PURE__ */ n(s, { title: e.label });
|
|
71
71
|
c.propTypes = {
|
|
72
72
|
scale: e.shape({
|
|
73
73
|
x: e.func,
|
|
@@ -4,8 +4,8 @@ import "react";
|
|
|
4
4
|
import n from "prop-types";
|
|
5
5
|
import { styled as r } from "@mui/material/styles";
|
|
6
6
|
import { gridDraggable as i, types as a, utils as o } from "@pie-lib/plot";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
import { color as l } from "@pie-lib/render-ui";
|
|
9
9
|
import u from "@mui/icons-material/Check";
|
|
10
10
|
import d from "@mui/icons-material/Close";
|
|
11
11
|
//#region src/common/drag-handle.tsx
|
|
@@ -13,75 +13,75 @@ var f = r("svg")(() => ({ overflow: "visible !important" })), p = r("ellipse")((
|
|
|
13
13
|
fill: "transparent",
|
|
14
14
|
clipPath: "polygon(50% 0%, 100% 0%, 100% 50%, 0% 50%, 0% 0%)"
|
|
15
15
|
})), m = r(u)(() => ({
|
|
16
|
-
backgroundColor:
|
|
16
|
+
backgroundColor: l.correct(),
|
|
17
17
|
borderRadius: "16px",
|
|
18
|
-
color:
|
|
18
|
+
color: l.defaults.WHITE,
|
|
19
19
|
fontSize: "16px",
|
|
20
20
|
padding: "2px",
|
|
21
|
-
border: `4px solid ${
|
|
21
|
+
border: `4px solid ${l.defaults.WHITE}`,
|
|
22
22
|
width: "16px",
|
|
23
23
|
height: "16px",
|
|
24
24
|
boxSizing: "unset"
|
|
25
25
|
})), h = r(d)(() => ({
|
|
26
|
-
backgroundColor:
|
|
26
|
+
backgroundColor: l.incorrectWithIcon(),
|
|
27
27
|
borderRadius: "16px",
|
|
28
|
-
color:
|
|
28
|
+
color: l.defaults.WHITE,
|
|
29
29
|
fontSize: "16px",
|
|
30
30
|
padding: "2px",
|
|
31
|
-
border: `4px solid ${
|
|
31
|
+
border: `4px solid ${l.defaults.WHITE}`,
|
|
32
32
|
width: "16px",
|
|
33
33
|
height: "16px",
|
|
34
34
|
boxSizing: "unset"
|
|
35
35
|
})), g = ({ x: n, y: r, width: i, graphProps: a, interactive: o, isHovered: u, correctness: d, isPlot: g, ..._ }) => {
|
|
36
36
|
let { scale: v } = a, y = e(i)?.scale;
|
|
37
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ c(f, {
|
|
38
38
|
x: n,
|
|
39
39
|
y: v.y(r) - 10,
|
|
40
40
|
width: i,
|
|
41
41
|
overflow: "visible",
|
|
42
42
|
children: [
|
|
43
|
-
u && !d && o && /* @__PURE__ */
|
|
43
|
+
u && !d && o && /* @__PURE__ */ s(t, {
|
|
44
44
|
width: i,
|
|
45
45
|
scaleValue: y,
|
|
46
|
-
color:
|
|
46
|
+
color: l.defaults.BORDER_GRAY
|
|
47
47
|
}),
|
|
48
|
-
o && !d && /* @__PURE__ */
|
|
48
|
+
o && !d && /* @__PURE__ */ s(p, {
|
|
49
49
|
cx: i / 2,
|
|
50
50
|
cy: 10,
|
|
51
51
|
rx: i / 2,
|
|
52
52
|
ry: 66,
|
|
53
53
|
..._
|
|
54
54
|
}),
|
|
55
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ c("filter", {
|
|
56
56
|
id: "bottomShadow",
|
|
57
57
|
x: "0",
|
|
58
58
|
y: "0",
|
|
59
59
|
width: "140%",
|
|
60
60
|
height: "140%",
|
|
61
61
|
children: [
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ s("feGaussianBlur", {
|
|
63
63
|
in: "SourceAlpha",
|
|
64
64
|
stdDeviation: "3"
|
|
65
65
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ s("feOffset", {
|
|
67
67
|
dx: "0",
|
|
68
68
|
dy: "5",
|
|
69
69
|
result: "offsetblur"
|
|
70
70
|
}),
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ s("feFlood", { floodColor: "#00000033" }),
|
|
72
|
+
/* @__PURE__ */ s("feComposite", {
|
|
73
73
|
in2: "offsetblur",
|
|
74
74
|
operator: "in"
|
|
75
75
|
}),
|
|
76
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ c("feMerge", { children: [/* @__PURE__ */ s("feMergeNode", {}), /* @__PURE__ */ s("feMergeNode", { in: "SourceGraphic" })] })
|
|
77
77
|
]
|
|
78
78
|
}) }),
|
|
79
|
-
d && o && !g && /* @__PURE__ */
|
|
79
|
+
d && o && !g && /* @__PURE__ */ s("foreignObject", {
|
|
80
80
|
x: i / 2 - 14,
|
|
81
81
|
y: 0,
|
|
82
82
|
width: 40,
|
|
83
83
|
height: 40,
|
|
84
|
-
children: d.value === "correct" ? /* @__PURE__ */
|
|
84
|
+
children: d.value === "correct" ? /* @__PURE__ */ s(m, { title: d.label }) : /* @__PURE__ */ s(h, { title: d.label })
|
|
85
85
|
})
|
|
86
86
|
]
|
|
87
87
|
});
|
|
@@ -117,4 +117,4 @@ var _ = g, v = i({
|
|
|
117
117
|
})
|
|
118
118
|
})(_);
|
|
119
119
|
//#endregion
|
|
120
|
-
export {
|
|
120
|
+
export { v as D, v as default, _ as DragHandle };
|
package/dist/grid.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import e from "./node_modules/.bun/@visx_grid@
|
|
2
|
-
import t from "./node_modules/.bun/@visx_grid@
|
|
1
|
+
import e from "./node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js";
|
|
2
|
+
import t from "./node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js";
|
|
3
3
|
import n from "react";
|
|
4
4
|
import r from "prop-types";
|
|
5
5
|
import { styled as i } from "@mui/material/styles";
|
|
6
6
|
import { types as a } from "@pie-lib/plot";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
import { color as c } from "@pie-lib/render-ui";
|
|
9
9
|
//#region src/grid.tsx
|
|
10
|
-
var l = i("g")(() => ({ stroke:
|
|
10
|
+
var l = i("g")(() => ({ stroke: c.primaryLight() })), u = class extends n.Component {
|
|
11
11
|
static propTypes = {
|
|
12
12
|
className: r.string,
|
|
13
13
|
graphProps: a.GraphPropsType.isRequired,
|
|
@@ -24,26 +24,26 @@ var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Compon
|
|
|
24
24
|
unlabeledLines: [],
|
|
25
25
|
labeledLines: []
|
|
26
26
|
});
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ s(l, { children: [
|
|
28
|
+
/* @__PURE__ */ o(e, {
|
|
29
29
|
scale: u.y,
|
|
30
30
|
width: d.width,
|
|
31
31
|
tickValues: _,
|
|
32
32
|
lineStyle: {
|
|
33
|
-
stroke:
|
|
33
|
+
stroke: c.fadedPrimary(),
|
|
34
34
|
strokeWidth: 1
|
|
35
35
|
}
|
|
36
36
|
}),
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ o(e, {
|
|
38
38
|
scale: u.y,
|
|
39
39
|
width: d.width,
|
|
40
40
|
tickValues: v,
|
|
41
41
|
lineStyle: {
|
|
42
|
-
stroke: _.length ?
|
|
42
|
+
stroke: _.length ? c.visualElementsColors.GRIDLINES_COLOR : c.fadedPrimary(),
|
|
43
43
|
strokeWidth: 1
|
|
44
44
|
}
|
|
45
45
|
}),
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ o(t, {
|
|
47
47
|
scale: r,
|
|
48
48
|
height: d.height,
|
|
49
49
|
offset: r.bandwidth() / 2,
|
|
@@ -53,4 +53,4 @@ var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Compon
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
//#endregion
|
|
56
|
-
export { u as default };
|
|
56
|
+
export { u as Grid, u as default };
|
package/dist/index.js
CHANGED
package/dist/key-legend.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import e from "prop-types";
|
|
3
3
|
import { styled as t } from "@mui/material/styles";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
import { color as i } from "@pie-lib/render-ui";
|
|
6
6
|
import a from "@mui/icons-material/Check";
|
|
7
7
|
import o from "@mui/icons-material/Close";
|
|
8
8
|
import s from "@pie-lib/translator";
|
|
9
9
|
//#region src/key-legend.tsx
|
|
10
10
|
var c = t("div")(({ theme: e }) => ({
|
|
11
|
-
backgroundColor:
|
|
11
|
+
backgroundColor: i.defaults.WHITE,
|
|
12
12
|
padding: e.spacing(2),
|
|
13
13
|
width: "355px",
|
|
14
14
|
boxShadow: "inset 0px 1px 5px 0px #9297A6",
|
|
@@ -23,23 +23,23 @@ var c = t("div")(({ theme: e }) => ({
|
|
|
23
23
|
fontSize: e.typography.h6.fontSize,
|
|
24
24
|
fontWeight: "700"
|
|
25
25
|
})), d = t("div")(() => ({ marginLeft: "2px" })), f = t(a)(({ theme: e }) => ({
|
|
26
|
-
backgroundColor:
|
|
26
|
+
backgroundColor: i.correct(),
|
|
27
27
|
borderRadius: e.spacing(2),
|
|
28
|
-
color:
|
|
28
|
+
color: i.defaults.WHITE
|
|
29
29
|
})), p = t(o)(({ theme: e }) => ({
|
|
30
|
-
backgroundColor:
|
|
30
|
+
backgroundColor: i.incorrectWithIcon(),
|
|
31
31
|
borderRadius: e.spacing(2),
|
|
32
|
-
color:
|
|
32
|
+
color: i.defaults.WHITE
|
|
33
33
|
})), m = t("div")(() => ({
|
|
34
34
|
marginLeft: "3px",
|
|
35
35
|
display: "flex",
|
|
36
36
|
alignItems: "center",
|
|
37
37
|
gap: "12px"
|
|
38
|
-
})), { translator: h } = s, g = ({ language: e }) => /* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
38
|
+
})), { translator: h } = s, g = ({ language: e }) => /* @__PURE__ */ r(c, { children: [
|
|
39
|
+
/* @__PURE__ */ n(u, { children: "Key" }),
|
|
40
|
+
/* @__PURE__ */ r(l, { children: [/* @__PURE__ */ n(p, {}), /* @__PURE__ */ n("div", { children: h.t("charting.keyLegend.incorrectAnswer", { lng: e }) })] }),
|
|
41
|
+
/* @__PURE__ */ r(l, { children: [/* @__PURE__ */ n(f, {}), /* @__PURE__ */ n("div", { children: h.t("charting.keyLegend.correctAnswer", { lng: e }) })] }),
|
|
42
|
+
/* @__PURE__ */ r(m, { children: [/* @__PURE__ */ n(f, { fontSize: "small" }), /* @__PURE__ */ n(d, { children: h.t("charting.keyLegend.correctKeyAnswer", { lng: e }) })] })
|
|
43
43
|
] });
|
|
44
44
|
g.propTypes = { language: e.string };
|
|
45
45
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { disabled as t } from "../../common/styles.js";
|
|
3
3
|
import n from "react";
|
|
4
4
|
import r from "prop-types";
|
|
5
5
|
import { styled as i } from "@mui/material/styles";
|
|
6
6
|
import { gridDraggable as a, types as o, utils as s } from "@pie-lib/plot";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
8
|
+
import { color as l } from "@pie-lib/render-ui";
|
|
9
9
|
//#region src/line/common/drag-handle.tsx
|
|
10
10
|
var u = i("g")(({ theme: e }) => ({
|
|
11
11
|
color: "black",
|
|
@@ -19,24 +19,24 @@ var u = i("g")(({ theme: e }) => ({
|
|
|
19
19
|
stroke: "transparent"
|
|
20
20
|
},
|
|
21
21
|
"& .line": {
|
|
22
|
-
stroke:
|
|
22
|
+
stroke: l.defaults.TEXT,
|
|
23
23
|
transition: "fill 200ms linear, height 200ms linear",
|
|
24
24
|
"&.non-interactive": t("stroke")
|
|
25
25
|
},
|
|
26
26
|
"& .disabledPoint": {
|
|
27
|
-
fill:
|
|
28
|
-
stroke:
|
|
27
|
+
fill: l.defaults.BLACK + " !important",
|
|
28
|
+
stroke: l.defaults.BLACK + " !important"
|
|
29
29
|
},
|
|
30
|
-
"& .correctIcon": { backgroundColor:
|
|
31
|
-
"& .incorrectIcon": { backgroundColor:
|
|
30
|
+
"& .correctIcon": { backgroundColor: l.correct() },
|
|
31
|
+
"& .incorrectIcon": { backgroundColor: l.incorrectWithIcon() },
|
|
32
32
|
"& .correctnessIcon": {
|
|
33
33
|
borderRadius: e.spacing(2),
|
|
34
|
-
color:
|
|
34
|
+
color: l.defaults.WHITE,
|
|
35
35
|
fontSize: "16px",
|
|
36
36
|
width: "16px",
|
|
37
37
|
height: "16px",
|
|
38
38
|
padding: "2px",
|
|
39
|
-
border: `1px solid ${
|
|
39
|
+
border: `1px solid ${l.defaults.WHITE}`,
|
|
40
40
|
stroke: "initial",
|
|
41
41
|
boxSizing: "unset"
|
|
42
42
|
},
|
|
@@ -60,15 +60,15 @@ var u = i("g")(({ theme: e }) => ({
|
|
|
60
60
|
})
|
|
61
61
|
};
|
|
62
62
|
render() {
|
|
63
|
-
let { x: t, y: n, graphProps: r, className: i, interactive: a, CustomDraggableComponent: o, correctness: s, ...
|
|
64
|
-
return o ? /* @__PURE__ */
|
|
63
|
+
let { x: t, y: n, graphProps: r, className: i, interactive: a, CustomDraggableComponent: o, correctness: s, ...l } = this.props, { scale: d } = r;
|
|
64
|
+
return o ? /* @__PURE__ */ c(u, { children: /* @__PURE__ */ c(o, {
|
|
65
65
|
scale: d,
|
|
66
66
|
x: t,
|
|
67
67
|
y: n,
|
|
68
68
|
className: e(i, !a && "non-interactive"),
|
|
69
69
|
correctness: s,
|
|
70
70
|
interactive: a,
|
|
71
|
-
...
|
|
71
|
+
...l
|
|
72
72
|
}) }) : null;
|
|
73
73
|
}
|
|
74
74
|
}, f = a({
|
package/dist/line/common/line.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import e from "../../node_modules/.bun/@visx_group@
|
|
2
|
-
import t from "../../node_modules/.bun/@visx_shape@
|
|
1
|
+
import e from "../../node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js";
|
|
2
|
+
import t from "../../node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/LinePath.js";
|
|
3
3
|
import n, { DragHandle as r } from "./drag-handle.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 { isEqual as s } from "@pie-element/shared-lodash";
|
|
8
8
|
import { types as c } from "@pie-lib/plot";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
+
import { color as d } from "@pie-lib/render-ui";
|
|
11
11
|
//#region src/line/common/line.tsx
|
|
12
12
|
var f = (e, t) => {
|
|
13
13
|
let { max: n } = t || {}, r = e.length;
|
|
@@ -18,10 +18,10 @@ var f = (e, t) => {
|
|
|
18
18
|
}));
|
|
19
19
|
}, p = o(t)(() => ({
|
|
20
20
|
fill: "transparent",
|
|
21
|
-
stroke:
|
|
21
|
+
stroke: d.defaults.TERTIARY,
|
|
22
22
|
strokeWidth: 3,
|
|
23
23
|
transition: "stroke 200ms ease-in, stroke-width 200ms ease-in"
|
|
24
|
-
})), m =
|
|
24
|
+
})), m = class extends i.Component {
|
|
25
25
|
static propTypes = {
|
|
26
26
|
onChange: a.func,
|
|
27
27
|
value: a.number,
|
|
@@ -59,15 +59,15 @@ var f = (e, t) => {
|
|
|
59
59
|
r[e].dragValue = n, this.setDragValue(r);
|
|
60
60
|
};
|
|
61
61
|
render() {
|
|
62
|
-
let { graphProps: e, data: t, CustomDraggableComponent: a, defineChart: o, correctData: s } = this.props, { line: c, dragging:
|
|
63
|
-
return /* @__PURE__ */
|
|
62
|
+
let { graphProps: e, data: t, CustomDraggableComponent: a, defineChart: o, correctData: s } = this.props, { line: c, dragging: d } = this.state, { scale: m } = e, h = d ? c : f(t, e.domain);
|
|
63
|
+
return /* @__PURE__ */ u(i.Fragment, { children: [/* @__PURE__ */ l(p, {
|
|
64
64
|
data: h,
|
|
65
65
|
x: (e) => m.x(e.x),
|
|
66
66
|
y: (e) => m.y(e.dragValue === void 0 ? e.y : e.dragValue),
|
|
67
67
|
className: "line"
|
|
68
68
|
}), h && h.map((t, i) => {
|
|
69
69
|
let c = o || t.interactive;
|
|
70
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ l(c ? n : r, {
|
|
71
71
|
x: t.x,
|
|
72
72
|
y: t.dragValue === void 0 ? t.y : t.dragValue,
|
|
73
73
|
interactive: c,
|
|
@@ -83,12 +83,12 @@ var f = (e, t) => {
|
|
|
83
83
|
}, `point-${t.x}-${i}`);
|
|
84
84
|
})] });
|
|
85
85
|
}
|
|
86
|
-
})(() => ({ "& .line": {
|
|
86
|
+
}, h = o(m)(() => ({ "& .line": {
|
|
87
87
|
fill: "transparent",
|
|
88
|
-
stroke:
|
|
88
|
+
stroke: d.defaults.TERTIARY,
|
|
89
89
|
strokeWidth: 3,
|
|
90
90
|
transition: "stroke 200ms ease-in, stroke-width 200ms ease-in"
|
|
91
|
-
} })),
|
|
91
|
+
} })), g = class extends i.Component {
|
|
92
92
|
static propTypes = {
|
|
93
93
|
data: a.array,
|
|
94
94
|
onChange: a.func,
|
|
@@ -104,11 +104,11 @@ var f = (e, t) => {
|
|
|
104
104
|
};
|
|
105
105
|
render() {
|
|
106
106
|
let t = this.props;
|
|
107
|
-
return /* @__PURE__ */
|
|
107
|
+
return /* @__PURE__ */ l(e, { children: /* @__PURE__ */ l(h, {
|
|
108
108
|
...t,
|
|
109
109
|
onChange: this.changeLine
|
|
110
110
|
}) });
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
//#endregion
|
|
114
|
-
export {
|
|
114
|
+
export { g as Line, g as default, m as RawLine };
|
package/dist/line/line-cross.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import e from "../node_modules/.bun/@visx_group@
|
|
2
|
-
import t from "../node_modules/.bun/@visx_shape@
|
|
1
|
+
import e from "../node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js";
|
|
2
|
+
import t from "../node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/LinePath.js";
|
|
3
3
|
import { CorrectnessIndicator as n, SmallCorrectPointIndicator as r } from "../common/correctness-indicators.js";
|
|
4
4
|
import { dataToXBand as i } from "../utils.js";
|
|
5
|
-
import a from "./common/line.js";
|
|
5
|
+
import { Line as a } from "./common/line.js";
|
|
6
6
|
import o, { useState as s } from "react";
|
|
7
7
|
import c from "prop-types";
|
|
8
8
|
import { styled as l } from "@mui/material/styles";
|
|
9
9
|
import { types as u } from "@pie-lib/plot";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
11
|
+
import { color as p } from "@pie-lib/render-ui";
|
|
12
12
|
//#region src/line/line-cross.tsx
|
|
13
13
|
var m = l(t)(() => ({
|
|
14
|
-
stroke:
|
|
14
|
+
stroke: p.defaults.TEXT,
|
|
15
15
|
transition: "fill 200ms linear, height 200ms linear",
|
|
16
|
-
"&.non-interactive": { stroke:
|
|
16
|
+
"&.non-interactive": { stroke: p.disabled?.() || "#ccc" }
|
|
17
17
|
})), h = l(e)(({ correctness: e, interactive: t }) => ({
|
|
18
|
-
stroke:
|
|
18
|
+
stroke: p.defaults.TEXT,
|
|
19
19
|
transition: "fill 200ms linear, height 200ms linear",
|
|
20
20
|
...e && !t && {
|
|
21
|
-
fill: `${
|
|
22
|
-
stroke: `${
|
|
21
|
+
fill: `${p.defaults.BLACK} !important`,
|
|
22
|
+
stroke: `${p.defaults.BLACK} !important`
|
|
23
23
|
},
|
|
24
|
-
"&.non-interactive": { stroke:
|
|
24
|
+
"&.non-interactive": { stroke: p.disabled?.() || "#ccc" }
|
|
25
25
|
})), g = l("circle")(() => ({
|
|
26
26
|
height: "20px",
|
|
27
27
|
fill: "transparent",
|
|
28
28
|
stroke: "transparent"
|
|
29
29
|
})), _ = (e) => {
|
|
30
30
|
let { className: t, scale: i, x: a, y: o, r: c, correctness: l, interactive: u, correctData: _, label: v, ...y } = e, [b, x] = s(!1), S = c * 4, C = S / 2, w = i.x(a), T = i.y(o);
|
|
31
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ f(h, {
|
|
32
32
|
className: t,
|
|
33
33
|
correctness: l,
|
|
34
34
|
interactive: u,
|
|
35
35
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ d(m, {
|
|
37
37
|
data: [{
|
|
38
38
|
x: i.x(a) - c,
|
|
39
39
|
y: i.y(o) + c
|
|
@@ -46,7 +46,7 @@ var m = l(t)(() => ({
|
|
|
46
46
|
strokeWidth: 5,
|
|
47
47
|
style: { pointerEvents: "none" }
|
|
48
48
|
}, `point-${a}-${o}-1`),
|
|
49
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ d(m, {
|
|
50
50
|
data: [{
|
|
51
51
|
x: i.x(a) - c,
|
|
52
52
|
y: i.y(o) - c
|
|
@@ -59,17 +59,17 @@ var m = l(t)(() => ({
|
|
|
59
59
|
strokeWidth: 5,
|
|
60
60
|
style: { pointerEvents: "none" }
|
|
61
61
|
}, `point-${a}-${o}-2`),
|
|
62
|
-
b && /* @__PURE__ */
|
|
62
|
+
b && /* @__PURE__ */ d("rect", {
|
|
63
63
|
x: w - C,
|
|
64
64
|
y: T - C,
|
|
65
65
|
width: S,
|
|
66
66
|
height: S,
|
|
67
|
-
stroke:
|
|
67
|
+
stroke: p.defaults.BORDER_GRAY,
|
|
68
68
|
fill: "none",
|
|
69
69
|
strokeWidth: 2,
|
|
70
70
|
pointerEvents: "none"
|
|
71
71
|
}),
|
|
72
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ d(g, {
|
|
73
73
|
cx: w,
|
|
74
74
|
cy: T,
|
|
75
75
|
r: c * 2,
|
|
@@ -77,7 +77,7 @@ var m = l(t)(() => ({
|
|
|
77
77
|
onMouseLeave: () => x(!1),
|
|
78
78
|
...y
|
|
79
79
|
}),
|
|
80
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ d(n, {
|
|
81
81
|
scale: i,
|
|
82
82
|
x: a,
|
|
83
83
|
y: o,
|
|
@@ -85,7 +85,7 @@ var m = l(t)(() => ({
|
|
|
85
85
|
correctness: l,
|
|
86
86
|
interactive: u
|
|
87
87
|
}),
|
|
88
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ d(r, {
|
|
89
89
|
scale: i,
|
|
90
90
|
x: a,
|
|
91
91
|
r: c,
|
|
@@ -118,7 +118,7 @@ var v = class extends o.Component {
|
|
|
118
118
|
};
|
|
119
119
|
render() {
|
|
120
120
|
let e = this.props, { data: t, graphProps: n } = e, { scale: r = {}, size: o = {} } = n || {}, s = i(r.x, t, o.width, "lineCross");
|
|
121
|
-
return /* @__PURE__ */
|
|
121
|
+
return /* @__PURE__ */ d(a, {
|
|
122
122
|
...e,
|
|
123
123
|
xBand: s,
|
|
124
124
|
CustomDraggableComponent: _
|
|
@@ -130,4 +130,4 @@ var v = class extends o.Component {
|
|
|
130
130
|
name: "Line Cross"
|
|
131
131
|
});
|
|
132
132
|
//#endregion
|
|
133
|
-
export { y as default };
|
|
133
|
+
export { v as LineCross, y as default };
|