@pie-lib/charting 7.0.4-next.32 → 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 +8 -8
- package/dist/axes.js +35 -35
- package/dist/bars/common/bars.js +13 -13
- package/dist/chart-setup.js +19 -19
- package/dist/common/correctness-indicators.js +18 -18
- package/dist/common/drag-handle.js +20 -20
- package/dist/grid.js +11 -11
- package/dist/key-legend.js +12 -12
- package/dist/line/common/drag-handle.js +12 -12
- package/dist/line/common/line.js +10 -10
- package/dist/line/line-cross.js +19 -19
- package/dist/line/line-dot.js +10 -10
- package/dist/mark-label.js +8 -8
- 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 +3 -5
- 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 +2 -2
- package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/scales/point.js +2 -2
- 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/plot/common/plot.js +23 -23
- package/dist/plot/dot.js +8 -8
- package/dist/plot/line.js +10 -10
- package/dist/utils.js +2 -2
- package/package.json +11 -11
- 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.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
|
@@ -0,0 +1,15 @@
|
|
|
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+shape@4.0.0+d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Bar.js
|
|
5
|
+
var r = /* @__PURE__ */ e(t());
|
|
6
|
+
function i(e) {
|
|
7
|
+
let { className: t, innerRef: i, ...a } = e;
|
|
8
|
+
return /*#__PURE__*/ n("rect", {
|
|
9
|
+
ref: i,
|
|
10
|
+
className: (0, r.default)("visx-bar", t),
|
|
11
|
+
...a
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { i as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
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+shape@4.0.0+d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Circle.js
|
|
5
|
+
var r = /* @__PURE__ */ e(t());
|
|
6
|
+
function i(e) {
|
|
7
|
+
let { className: t, innerRef: i, ...a } = e;
|
|
8
|
+
return /*#__PURE__*/ n("circle", {
|
|
9
|
+
ref: i,
|
|
10
|
+
className: (0, r.default)("visx-circle", t),
|
|
11
|
+
...a
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { i as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
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+shape@4.0.0+d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js
|
|
5
|
+
var r = /* @__PURE__ */ e(t());
|
|
6
|
+
function i(e) {
|
|
7
|
+
let { from: t = {
|
|
8
|
+
x: 0,
|
|
9
|
+
y: 0
|
|
10
|
+
}, to: i = {
|
|
11
|
+
x: 1,
|
|
12
|
+
y: 1
|
|
13
|
+
}, fill: a = "transparent", className: o, innerRef: s, ...c } = e, l = t.x === i.x || t.y === i.y;
|
|
14
|
+
return /*#__PURE__*/ n("line", {
|
|
15
|
+
ref: s,
|
|
16
|
+
className: (0, r.default)("visx-line", o),
|
|
17
|
+
x1: t.x,
|
|
18
|
+
y1: t.y,
|
|
19
|
+
x2: i.x,
|
|
20
|
+
y2: i.y,
|
|
21
|
+
fill: a,
|
|
22
|
+
shapeRendering: l ? "crispEdges" : "auto",
|
|
23
|
+
...c
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { i as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { line as n } from "../util/D3ShapeFactories.js";
|
|
4
|
+
import { Fragment as r, jsx as i } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../../node_modules/.bun/@visx+shape@4.0.0+d84c32d47042070f/node_modules/@visx/shape/esm/shapes/LinePath.js
|
|
6
|
+
var a = /* @__PURE__ */ e(t());
|
|
7
|
+
function o(e) {
|
|
8
|
+
let { children: t, data: o = [], x: s, y: c, fill: l = "transparent", className: u, curve: d, innerRef: f, defined: p = () => !0, ...m } = e, h = n({
|
|
9
|
+
x: s,
|
|
10
|
+
y: c,
|
|
11
|
+
defined: p,
|
|
12
|
+
curve: d
|
|
13
|
+
});
|
|
14
|
+
return t ? /*#__PURE__*/ i(r, { children: t({ path: h }) }) : /*#__PURE__*/ i("path", {
|
|
15
|
+
ref: f,
|
|
16
|
+
className: (0, a.default)("visx-linepath", u),
|
|
17
|
+
d: h(o) || "",
|
|
18
|
+
fill: l,
|
|
19
|
+
strokeLinecap: "round",
|
|
20
|
+
...m
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { o as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { d3_shape_exports as e } from "../../../../../../@visx_vendor@4.0.0/node_modules/@visx/vendor/esm/d3-shape.js";
|
|
2
|
+
import t from "./setNumberOrNumberAccessor.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/@visx+shape@4.0.0+d84c32d47042070f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js
|
|
4
|
+
function n() {
|
|
5
|
+
let { x: n, y: r, defined: i, curve: a } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = (0, e.line)();
|
|
6
|
+
return n && t(o.x, n), r && t(o.y, r), i && o.defined(i), a && o.curve(a), o;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as line };
|
package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import e from "./hooks/useText.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../../node_modules/.bun/@visx+text@4.0.0+d84c32d47042070f/node_modules/@visx/text/esm/Text.js
|
|
4
|
+
var n = { overflow: "visible" };
|
|
5
|
+
function r(r) {
|
|
6
|
+
let { dx: i = 0, dy: a = 0, textAnchor: o = "start", innerRef: s, innerTextRef: c, verticalAnchor: l, angle: u, lineHeight: d = "1em", scaleToFit: f = !1, capHeight: p, width: m, ...h } = r, { x: g = 0, fontSize: _ } = h, { wordsByLines: v, startDy: y, transform: b } = e(r);
|
|
7
|
+
return /*#__PURE__*/ t("svg", {
|
|
8
|
+
ref: s,
|
|
9
|
+
x: i,
|
|
10
|
+
y: a,
|
|
11
|
+
fontSize: _,
|
|
12
|
+
style: n,
|
|
13
|
+
children: v.length > 0 ? /*#__PURE__*/ t("text", {
|
|
14
|
+
ref: c,
|
|
15
|
+
transform: b,
|
|
16
|
+
...h,
|
|
17
|
+
textAnchor: o,
|
|
18
|
+
children: v.map((e, n) => /*#__PURE__*/ t("tspan", {
|
|
19
|
+
x: g,
|
|
20
|
+
dy: n === 0 ? y : d,
|
|
21
|
+
children: e.words.join(" ")
|
|
22
|
+
}, n))
|
|
23
|
+
}) : null
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { r as default };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_reduce_css_calc as t } from "../../../../../../reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js";
|
|
3
|
+
import n from "../util/getStringWidth.js";
|
|
4
|
+
import { useMemo as r } from "react";
|
|
5
|
+
//#region ../../../node_modules/.bun/@visx+text@4.0.0+d84c32d47042070f/node_modules/@visx/text/esm/hooks/useText.js
|
|
6
|
+
var i = /* @__PURE__ */ e(t());
|
|
7
|
+
function a(e) {
|
|
8
|
+
return typeof e == "number";
|
|
9
|
+
}
|
|
10
|
+
function o(e) {
|
|
11
|
+
return typeof e == "number" && Number.isFinite(e) || typeof e == "string";
|
|
12
|
+
}
|
|
13
|
+
function s(e) {
|
|
14
|
+
let { verticalAnchor: t = "end", scaleToFit: s = !1, angle: c, width: l, lineHeight: u = "1em", capHeight: d = "0.71em", children: f, style: p, ...m } = e, { x: h = 0, y: g = 0 } = m, _ = !o(h) || !o(g), { wordsWithWidth: v, spaceWidth: y } = r(() => ({
|
|
15
|
+
wordsWithWidth: (f == null ? [] : f.toString().split(/(?:(?!\u00A0+)\s+)/)).map((e) => ({
|
|
16
|
+
word: e,
|
|
17
|
+
wordWidth: n(e, p) || 0
|
|
18
|
+
})),
|
|
19
|
+
spaceWidth: n("\xA0", p) || 0
|
|
20
|
+
}), [f, p]), b = r(() => _ ? [] : l || s ? v.reduce((e, t) => {
|
|
21
|
+
let { word: n, wordWidth: r } = t, i = e[e.length - 1];
|
|
22
|
+
if (i && (l == null || s || (i.width || 0) + r + y < l)) i.words.push(n), i.width = i.width || 0, i.width += r + y;
|
|
23
|
+
else {
|
|
24
|
+
let t = {
|
|
25
|
+
words: [n],
|
|
26
|
+
width: r
|
|
27
|
+
};
|
|
28
|
+
e.push(t);
|
|
29
|
+
}
|
|
30
|
+
return e;
|
|
31
|
+
}, []) : [{ words: f == null ? [] : f.toString().split(/(?:(?!\u00A0+)\s+)/) }], [
|
|
32
|
+
_,
|
|
33
|
+
l,
|
|
34
|
+
s,
|
|
35
|
+
f,
|
|
36
|
+
v,
|
|
37
|
+
y
|
|
38
|
+
]);
|
|
39
|
+
return {
|
|
40
|
+
wordsByLines: b,
|
|
41
|
+
startDy: r(() => _ ? "" : t === "start" ? (0, i.default)(`calc(${d})`) : t === "middle" ? (0, i.default)(`calc(${(b.length - 1) / 2} * -${u} + (${d} / 2))`) : (0, i.default)(`calc(${b.length - 1} * -${u})`), [
|
|
42
|
+
_,
|
|
43
|
+
t,
|
|
44
|
+
d,
|
|
45
|
+
b.length,
|
|
46
|
+
u
|
|
47
|
+
]),
|
|
48
|
+
transform: r(() => {
|
|
49
|
+
let e = [];
|
|
50
|
+
if (_) return "";
|
|
51
|
+
if (a(h) && a(g) && a(l) && s && b.length > 0) {
|
|
52
|
+
let t = b[0].width || 1, n = s === "shrink-only" ? Math.min(l / t, 1) : l / t, r = n, i = h - n * h, a = g - r * g;
|
|
53
|
+
e.push(`matrix(${n}, 0, 0, ${r}, ${i}, ${a})`);
|
|
54
|
+
}
|
|
55
|
+
return c && e.push(`rotate(${c}, ${h}, ${g})`), e.length > 0 ? e.join(" ") : "";
|
|
56
|
+
}, [
|
|
57
|
+
_,
|
|
58
|
+
h,
|
|
59
|
+
g,
|
|
60
|
+
l,
|
|
61
|
+
s,
|
|
62
|
+
b,
|
|
63
|
+
c
|
|
64
|
+
])
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { s as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import e from "./memoize.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/@visx+text@4.0.0+d84c32d47042070f/node_modules/@visx/text/esm/util/getStringWidth.js
|
|
3
|
+
var t = "__react_svg_text_measurement_id";
|
|
4
|
+
function n(e, n) {
|
|
5
|
+
if (typeof document > "u") return null;
|
|
6
|
+
try {
|
|
7
|
+
let r = document.getElementById(t);
|
|
8
|
+
if (!r) {
|
|
9
|
+
let e = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
10
|
+
e.setAttribute("aria-hidden", "true"), e.style.width = "0", e.style.height = "0", e.style.position = "absolute", e.style.top = "-100%", e.style.left = "-100%", r = document.createElementNS("http://www.w3.org/2000/svg", "text"), r.setAttribute("id", t), e.appendChild(r), document.body.appendChild(e);
|
|
11
|
+
}
|
|
12
|
+
return Object.assign(r.style, n), r.textContent = e, r.getComputedTextLength();
|
|
13
|
+
} catch {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
var r = e(n, (e, t) => `${e}_${JSON.stringify(t)}`);
|
|
18
|
+
//#endregion
|
|
19
|
+
export { r as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region ../../../node_modules/.bun/@visx+text@4.0.0+d84c32d47042070f/node_modules/@visx/text/esm/util/memoize.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = /* @__PURE__ */ new Map();
|
|
4
|
+
return function() {
|
|
5
|
+
var r = [...arguments];
|
|
6
|
+
let i = t(...r);
|
|
7
|
+
if (n.has(i)) return n.get(i);
|
|
8
|
+
let a = e.apply(this, r);
|
|
9
|
+
return n.set(i, a), a;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll as e, __reExport as t } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
export * from "d3-interpolate";
|
|
3
|
-
//#region ../../../node_modules/.bun/@visx+vendor@
|
|
3
|
+
//#region ../../../node_modules/.bun/@visx+vendor@4.0.0/node_modules/@visx/vendor/esm/d3-interpolate.js
|
|
4
4
|
var n = /* @__PURE__ */ e({});
|
|
5
5
|
import * as r from "d3-interpolate";
|
|
6
6
|
t(n, r);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll as e, __reExport as t } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
export * from "d3-scale";
|
|
3
|
-
//#region ../../../node_modules/.bun/@visx+vendor@
|
|
3
|
+
//#region ../../../node_modules/.bun/@visx+vendor@4.0.0/node_modules/@visx/vendor/esm/d3-scale.js
|
|
4
4
|
var n = /* @__PURE__ */ e({});
|
|
5
5
|
import * as r from "d3-scale";
|
|
6
6
|
t(n, r);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll as e, __reExport as t } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export * from "d3-shape";
|
|
3
|
+
//#region ../../../node_modules/.bun/@visx+vendor@4.0.0/node_modules/@visx/vendor/esm/d3-shape.js
|
|
4
|
+
var n = /* @__PURE__ */ e({});
|
|
5
|
+
import * as r from "d3-shape";
|
|
6
|
+
t(n, r);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as d3_shape_exports };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll as e, __reExport as t } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
export * from "d3-time";
|
|
3
|
-
//#region ../../../node_modules/.bun/@visx+vendor@
|
|
3
|
+
//#region ../../../node_modules/.bun/@visx+vendor@4.0.0/node_modules/@visx/vendor/esm/d3-time.js
|
|
4
4
|
var n = /* @__PURE__ */ e({});
|
|
5
5
|
import * as r from "d3-time";
|
|
6
6
|
t(n, r);
|
package/dist/plot/common/plot.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "../../node_modules/.bun/@visx_group@
|
|
1
|
+
import e from "../../node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js";
|
|
2
2
|
import { bandKey as t } from "../../utils.js";
|
|
3
3
|
import { correct as n, incorrect as r } from "../../common/styles.js";
|
|
4
4
|
import { D as i, DragHandle as a } from "../../common/drag-handle.js";
|
|
@@ -7,8 +7,8 @@ import s from "prop-types";
|
|
|
7
7
|
import { styled as c } from "@mui/material/styles";
|
|
8
8
|
import l from "debug";
|
|
9
9
|
import { types as u } from "@pie-lib/plot";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
+
import { color as m } from "@pie-lib/render-ui";
|
|
12
12
|
import h from "@mui/icons-material/Check";
|
|
13
13
|
//#region src/plot/common/plot.tsx
|
|
14
14
|
var g = l("pie-lib:chart:bars"), _ = 16, v = class extends o.Component {
|
|
@@ -62,12 +62,12 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = class extends o.Component {
|
|
|
62
62
|
let e = n - 1;
|
|
63
63
|
s = i.y(e) - (a - o) / 2 - o / 2 - _ / 2;
|
|
64
64
|
}
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ f("foreignObject", {
|
|
66
66
|
x: e + t / 2 - _ / 2,
|
|
67
67
|
y: s,
|
|
68
68
|
width: _,
|
|
69
69
|
height: _,
|
|
70
|
-
children: /* @__PURE__ */
|
|
70
|
+
children: /* @__PURE__ */ f(h, {
|
|
71
71
|
className: "correctnessIcon correctIcon smallIcon",
|
|
72
72
|
title: r.label
|
|
73
73
|
})
|
|
@@ -79,19 +79,19 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = class extends o.Component {
|
|
|
79
79
|
let A = [];
|
|
80
80
|
for (let e = 0; e < E; e++) A.push(e);
|
|
81
81
|
let j = S.height / C, M = (j > D ? D : j) * .8, N = u ? i : a, P = u && !h;
|
|
82
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ f(o.Fragment, { children: /* @__PURE__ */ p("g", {
|
|
83
83
|
className: y,
|
|
84
84
|
onMouseEnter: this.handleMouseEnter,
|
|
85
85
|
onMouseLeave: this.handleMouseLeave,
|
|
86
86
|
onTouchStart: this.handleMouseEnter,
|
|
87
87
|
onTouchEnd: this.handleMouseLeave,
|
|
88
88
|
children: [
|
|
89
|
-
T && P && /* @__PURE__ */
|
|
89
|
+
T && P && /* @__PURE__ */ f("rect", {
|
|
90
90
|
x: k,
|
|
91
91
|
y: b.y(E),
|
|
92
92
|
width: D,
|
|
93
93
|
height: A?.length ? j * A.length : 0,
|
|
94
|
-
stroke:
|
|
94
|
+
stroke: m.defaults.BORDER_GRAY,
|
|
95
95
|
strokeWidth: "4px",
|
|
96
96
|
fill: "transparent"
|
|
97
97
|
}),
|
|
@@ -113,22 +113,22 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = class extends o.Component {
|
|
|
113
113
|
if (i > e) {
|
|
114
114
|
let i = [];
|
|
115
115
|
for (let t = 0; t < e; t++) i.push(t);
|
|
116
|
-
let a = i[i.length - 1], o = s(t({ label: r }, c)), u = s.bandwidth(),
|
|
117
|
-
return /* @__PURE__ */
|
|
116
|
+
let a = i[i.length - 1], o = s(t({ label: r }, c)), u = s.bandwidth(), m = S.height / C, g = (m > u ? u : m) * .8;
|
|
117
|
+
return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(l, {
|
|
118
118
|
index: a,
|
|
119
119
|
pointDiameter: g + 10,
|
|
120
120
|
barX: o,
|
|
121
121
|
barWidth: u,
|
|
122
|
-
pointHeight:
|
|
122
|
+
pointHeight: m,
|
|
123
123
|
label: r,
|
|
124
124
|
value: n,
|
|
125
125
|
scale: b,
|
|
126
126
|
dottedOverline: !0
|
|
127
|
-
}), this.renderCorrectnessIcon(o, u, e, h, b,
|
|
127
|
+
}), this.renderCorrectnessIcon(o, u, e, h, b, m, g)] });
|
|
128
128
|
}
|
|
129
129
|
let a = [];
|
|
130
130
|
for (let t = i; t < e; t++) a.push(t);
|
|
131
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ p(d, { children: [a.map((e) => l({
|
|
132
132
|
index: e,
|
|
133
133
|
pointDiameter: M,
|
|
134
134
|
barX: k,
|
|
@@ -140,7 +140,7 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = class extends o.Component {
|
|
|
140
140
|
dottedOverline: !0
|
|
141
141
|
})), this.renderCorrectnessIcon(k, D, e, h, b, j, M)] });
|
|
142
142
|
})(),
|
|
143
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ f(N, {
|
|
144
144
|
x: k,
|
|
145
145
|
y: E,
|
|
146
146
|
interactive: u,
|
|
@@ -151,7 +151,7 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = class extends o.Component {
|
|
|
151
151
|
correctness: h,
|
|
152
152
|
isHovered: T,
|
|
153
153
|
defineChart: _,
|
|
154
|
-
color:
|
|
154
|
+
color: m.primaryDark(),
|
|
155
155
|
isPlot: !0
|
|
156
156
|
})
|
|
157
157
|
]
|
|
@@ -159,30 +159,30 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = class extends o.Component {
|
|
|
159
159
|
}
|
|
160
160
|
}, y = c(v)(({ theme: e }) => ({
|
|
161
161
|
"& .dot": {
|
|
162
|
-
fill:
|
|
162
|
+
fill: m.visualElementsColors.PLOT_FILL_COLOR,
|
|
163
163
|
"&.correct": n("stroke"),
|
|
164
164
|
"&.incorrect": r("stroke")
|
|
165
165
|
},
|
|
166
166
|
"& .dotColor": {
|
|
167
|
-
fill:
|
|
167
|
+
fill: m.visualElementsColors.PLOT_FILL_COLOR,
|
|
168
168
|
"&.correct": n("fill"),
|
|
169
169
|
"&.incorrect": r("fill")
|
|
170
170
|
},
|
|
171
171
|
"& .line": {
|
|
172
|
-
stroke:
|
|
172
|
+
stroke: m.visualElementsColors.PLOT_FILL_COLOR,
|
|
173
173
|
"&.correct": n("stroke"),
|
|
174
174
|
"&.incorrect": r("stroke")
|
|
175
175
|
},
|
|
176
|
-
"& .correctIcon": { backgroundColor:
|
|
177
|
-
"& .incorrectIcon": { backgroundColor:
|
|
176
|
+
"& .correctIcon": { backgroundColor: m.correct() },
|
|
177
|
+
"& .incorrectIcon": { backgroundColor: m.incorrectWithIcon() },
|
|
178
178
|
"& .correctnessIcon": {
|
|
179
179
|
borderRadius: e.spacing(2),
|
|
180
|
-
color:
|
|
180
|
+
color: m.defaults.WHITE,
|
|
181
181
|
fontSize: "16px",
|
|
182
182
|
width: "16px",
|
|
183
183
|
height: "16px",
|
|
184
184
|
padding: "2px",
|
|
185
|
-
border: `1px solid ${
|
|
185
|
+
border: `1px solid ${m.defaults.WHITE}`,
|
|
186
186
|
stroke: "initial",
|
|
187
187
|
boxSizing: "unset",
|
|
188
188
|
display: "block"
|
|
@@ -208,7 +208,7 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = class extends o.Component {
|
|
|
208
208
|
};
|
|
209
209
|
render() {
|
|
210
210
|
let { data: t, graphProps: n, xBand: r, CustomBarElement: i, onChangeCategory: a, defineChart: o, correctData: s } = this.props;
|
|
211
|
-
return /* @__PURE__ */
|
|
211
|
+
return /* @__PURE__ */ f(e, { children: (t || []).map((e, t) => /* @__PURE__ */ f(y, {
|
|
212
212
|
value: e.value,
|
|
213
213
|
label: e.label,
|
|
214
214
|
interactive: o || e.interactive,
|
package/dist/plot/dot.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "../node_modules/.bun/@visx_shape@
|
|
1
|
+
import e from "../node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Circle.js";
|
|
2
2
|
import { dataToXBand as t } from "../utils.js";
|
|
3
3
|
import { correct as n, incorrect as r } from "../common/styles.js";
|
|
4
4
|
import { Plot as i } from "./common/plot.js";
|
|
@@ -6,23 +6,23 @@ import a from "react";
|
|
|
6
6
|
import o from "prop-types";
|
|
7
7
|
import { styled as s } from "@mui/material/styles";
|
|
8
8
|
import { types as c } from "@pie-lib/plot";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
10
|
+
import { color as u } from "@pie-lib/render-ui";
|
|
11
11
|
//#region src/plot/dot.tsx
|
|
12
12
|
var d = s(e)(() => ({
|
|
13
|
-
fill:
|
|
13
|
+
fill: u.visualElementsColors.PLOT_FILL_COLOR,
|
|
14
14
|
"&.correct": n("stroke"),
|
|
15
15
|
"&.incorrect": r("stroke")
|
|
16
16
|
})), f = (t) => {
|
|
17
17
|
let { index: n, pointDiameter: r, barX: i, barWidth: a, pointHeight: o, label: s, value: c, scale: f, dottedOverline: p } = t, m = r / 2, h = i + (a - r) / 2 + m, g = f.y(n) - (o - r) / 2 - m;
|
|
18
|
-
return p ? /* @__PURE__ */
|
|
18
|
+
return p ? /* @__PURE__ */ l(e, {
|
|
19
19
|
cx: h,
|
|
20
20
|
cy: g,
|
|
21
21
|
r: m + 2,
|
|
22
22
|
strokeDasharray: "4,4",
|
|
23
|
-
stroke:
|
|
23
|
+
stroke: u.defaults.BORDER_GRAY,
|
|
24
24
|
fill: "none"
|
|
25
|
-
}, `point-${s}-${c}-${n}`) : /* @__PURE__ */
|
|
25
|
+
}, `point-${s}-${c}-${n}`) : /* @__PURE__ */ l(d, {
|
|
26
26
|
cx: h,
|
|
27
27
|
cy: g,
|
|
28
28
|
r: m
|
|
@@ -47,7 +47,7 @@ var p = class extends a.Component {
|
|
|
47
47
|
};
|
|
48
48
|
render() {
|
|
49
49
|
let e = this.props, { data: n, graphProps: r } = e, { scale: a = {}, size: o = {} } = r || {}, s = t(a.x, n, o.width, "dotPlot");
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ l(i, {
|
|
51
51
|
...e,
|
|
52
52
|
xBand: s,
|
|
53
53
|
CustomBarElement: f
|
package/dist/plot/line.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 { dataToXBand as n } from "../utils.js";
|
|
4
4
|
import { correct as r, incorrect as i } from "../common/styles.js";
|
|
5
5
|
import { Plot as a } from "./common/plot.js";
|
|
@@ -7,24 +7,24 @@ import o from "react";
|
|
|
7
7
|
import s from "prop-types";
|
|
8
8
|
import { styled as c } from "@mui/material/styles";
|
|
9
9
|
import { types as l } from "@pie-lib/plot";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
|
+
import { color as f } from "@pie-lib/render-ui";
|
|
12
12
|
//#region src/plot/line.tsx
|
|
13
13
|
var p = c(t)(() => ({
|
|
14
|
-
stroke:
|
|
14
|
+
stroke: f.visualElementsColors.PLOT_FILL_COLOR,
|
|
15
15
|
"&.correct": r("stroke"),
|
|
16
16
|
"&.incorrect": i("stroke")
|
|
17
17
|
})), m = (t) => {
|
|
18
18
|
let { index: n, pointDiameter: r, barX: i, barWidth: a, pointHeight: o, label: s, value: c, scale: l, dottedOverline: m } = t, h = i + (a - r) / 2, g = l.y(n) - (o - r) / 2;
|
|
19
|
-
return m ? /* @__PURE__ */
|
|
19
|
+
return m ? /* @__PURE__ */ u("rect", {
|
|
20
20
|
x: h - 2,
|
|
21
21
|
y: g - r - 2,
|
|
22
22
|
width: r + 4,
|
|
23
23
|
height: r + 4,
|
|
24
24
|
strokeDasharray: "4,4",
|
|
25
|
-
stroke:
|
|
25
|
+
stroke: f.defaults.BORDER_GRAY,
|
|
26
26
|
fill: "none"
|
|
27
|
-
}, `point-${s}-${c}-${n}`) : /* @__PURE__ */
|
|
27
|
+
}, `point-${s}-${c}-${n}`) : /* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u(p, {
|
|
28
28
|
data: [{
|
|
29
29
|
x: h,
|
|
30
30
|
y: g
|
|
@@ -36,7 +36,7 @@ var p = c(t)(() => ({
|
|
|
36
36
|
x: (e) => e.x,
|
|
37
37
|
y: (e) => e.y,
|
|
38
38
|
strokeWidth: r / 5
|
|
39
|
-
}, `point-${s}-${c}-${n}-1`), /* @__PURE__ */
|
|
39
|
+
}, `point-${s}-${c}-${n}-1`), /* @__PURE__ */ u(p, {
|
|
40
40
|
data: [{
|
|
41
41
|
x: h,
|
|
42
42
|
y: g - r
|
|
@@ -69,7 +69,7 @@ var h = class extends o.Component {
|
|
|
69
69
|
};
|
|
70
70
|
render() {
|
|
71
71
|
let e = this.props, { data: t, graphProps: r } = e, { scale: i = {}, size: o = {} } = r || {}, s = n(i.x, t, o.width, "linePlot");
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ u(a, {
|
|
73
73
|
...e,
|
|
74
74
|
xBand: s,
|
|
75
75
|
CustomBarElement: m
|
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "./node_modules/.bun/@visx_scale@
|
|
2
|
-
import t from "./node_modules/.bun/@visx_scale@
|
|
1
|
+
import e from "./node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/scales/band.js";
|
|
2
|
+
import t from "./node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/scales/point.js";
|
|
3
3
|
import { utils as n } from "@pie-lib/plot";
|
|
4
4
|
n.tickCount, n.bounds, n.point;
|
|
5
5
|
var r = (e, t) => `${t}-${e.label || "-"}`, i = (n, i, a, o) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/charting",
|
|
3
|
-
"version": "7.0.4-next.
|
|
3
|
+
"version": "7.0.4-next.33",
|
|
4
4
|
"description": "charting",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,23 +13,23 @@
|
|
|
13
13
|
"@mapbox/point-geometry": "^1.1.0",
|
|
14
14
|
"@mui/icons-material": "^7.3.4",
|
|
15
15
|
"@mui/material": "^7.3.4",
|
|
16
|
-
"@pie-lib/plot": "4.0.4-next.
|
|
16
|
+
"@pie-lib/plot": "4.0.4-next.33",
|
|
17
17
|
"@pie-lib/render-ui": "6.1.1-next.39",
|
|
18
18
|
"@pie-lib/translator": "4.0.3-next.2",
|
|
19
|
-
"@visx/axis": "^
|
|
20
|
-
"@visx/event": "^
|
|
21
|
-
"@visx/grid": "^
|
|
22
|
-
"@visx/group": "^
|
|
23
|
-
"@visx/point": "^
|
|
24
|
-
"@visx/scale": "^
|
|
25
|
-
"@visx/shape": "^
|
|
19
|
+
"@visx/axis": "^4.0.0",
|
|
20
|
+
"@visx/event": "^4.0.0",
|
|
21
|
+
"@visx/grid": "^4.0.0",
|
|
22
|
+
"@visx/group": "^4.0.0",
|
|
23
|
+
"@visx/point": "^4.0.0",
|
|
24
|
+
"@visx/scale": "^4.0.0",
|
|
25
|
+
"@visx/shape": "^4.0.0",
|
|
26
26
|
"d3-scale": "^4.0.2",
|
|
27
27
|
"d3-selection": "^3.0.0",
|
|
28
28
|
"debug": "^4.1.1",
|
|
29
29
|
"invariant": "^2.2.4",
|
|
30
|
-
"react-draggable": "^4.
|
|
30
|
+
"react-draggable": "^4.7.1",
|
|
31
31
|
"prop-types": "^15.8.1",
|
|
32
|
-
"@pie-lib/config-ui": "13.0.4-next.
|
|
32
|
+
"@pie-lib/config-ui": "13.0.4-next.33",
|
|
33
33
|
"@pie-element/shared-math-rendering-mathjax": "0.1.1-next.0",
|
|
34
34
|
"@pie-element/shared-lodash": "0.1.1-next.1",
|
|
35
35
|
"clsx": "^2.1.1",
|