@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/plot/common/plot.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
import i,
|
|
4
|
+
import { D as i, DragHandle as a } from "../../common/drag-handle.js";
|
|
5
5
|
import o from "react";
|
|
6
6
|
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
|
-
var g = l("pie-lib:chart:bars"), _ = 16, v =
|
|
14
|
+
var g = l("pie-lib:chart:bars"), _ = 16, v = class extends o.Component {
|
|
15
15
|
static propTypes = {
|
|
16
16
|
onChangeCategory: s.func,
|
|
17
17
|
value: s.number,
|
|
@@ -62,12 +62,12 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = c(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 = c(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 = c(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 = c(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,38 +151,38 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = c(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
|
]
|
|
158
158
|
}) });
|
|
159
159
|
}
|
|
160
|
-
})(({ theme: e }) => ({
|
|
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"
|
|
@@ -192,7 +192,7 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = c(class extends o.Component {
|
|
|
192
192
|
width: "10px",
|
|
193
193
|
height: "10px"
|
|
194
194
|
}
|
|
195
|
-
})),
|
|
195
|
+
})), b = class extends o.Component {
|
|
196
196
|
static propTypes = {
|
|
197
197
|
data: s.array,
|
|
198
198
|
onChangeCategory: s.func,
|
|
@@ -208,7 +208,7 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = c(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,
|
|
@@ -224,4 +224,4 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = c(class extends o.Component {
|
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
//#endregion
|
|
227
|
-
export {
|
|
227
|
+
export { b as Plot, b as default, v as RawPlot };
|
package/dist/plot/dot.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
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
|
-
import i from "./common/plot.js";
|
|
4
|
+
import { Plot as i } from "./common/plot.js";
|
|
5
5
|
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
|
|
@@ -59,4 +59,4 @@ var p = class extends a.Component {
|
|
|
59
59
|
name: "Dot Plot"
|
|
60
60
|
});
|
|
61
61
|
//#endregion
|
|
62
|
-
export { m as default };
|
|
62
|
+
export { p as DotPlot, m as default };
|
package/dist/plot/line.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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
|
-
import a from "./common/plot.js";
|
|
5
|
+
import { Plot as a } from "./common/plot.js";
|
|
6
6
|
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
|
|
@@ -81,4 +81,4 @@ var h = class extends o.Component {
|
|
|
81
81
|
name: "Line Plot"
|
|
82
82
|
});
|
|
83
83
|
//#endregion
|
|
84
|
-
export { g as default };
|
|
84
|
+
export { h as LinePlot, g as default };
|
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,30 +1,35 @@
|
|
|
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
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/pie-framework/pie-elements-ng.git",
|
|
8
|
+
"directory": "packages/lib-react/charting"
|
|
9
|
+
},
|
|
5
10
|
"dependencies": {
|
|
6
11
|
"@emotion/react": "^11.14.0",
|
|
7
|
-
"@emotion/
|
|
12
|
+
"@emotion/styled": "^11.14.1",
|
|
8
13
|
"@mapbox/point-geometry": "^1.1.0",
|
|
9
14
|
"@mui/icons-material": "^7.3.4",
|
|
10
15
|
"@mui/material": "^7.3.4",
|
|
11
|
-
"@pie-lib/plot": "4.0.4-next.
|
|
12
|
-
"@pie-lib/render-ui": "6.1.1-next.
|
|
13
|
-
"@pie-lib/translator": "4.0.3-next.
|
|
14
|
-
"@visx/axis": "^
|
|
15
|
-
"@visx/event": "^
|
|
16
|
-
"@visx/grid": "^
|
|
17
|
-
"@visx/group": "^
|
|
18
|
-
"@visx/point": "^
|
|
19
|
-
"@visx/scale": "^
|
|
20
|
-
"@visx/shape": "^
|
|
16
|
+
"@pie-lib/plot": "4.0.4-next.33",
|
|
17
|
+
"@pie-lib/render-ui": "6.1.1-next.39",
|
|
18
|
+
"@pie-lib/translator": "4.0.3-next.2",
|
|
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",
|
|
21
26
|
"d3-scale": "^4.0.2",
|
|
22
27
|
"d3-selection": "^3.0.0",
|
|
23
28
|
"debug": "^4.1.1",
|
|
24
29
|
"invariant": "^2.2.4",
|
|
25
|
-
"react-draggable": "^4.
|
|
30
|
+
"react-draggable": "^4.7.1",
|
|
26
31
|
"prop-types": "^15.8.1",
|
|
27
|
-
"@pie-lib/config-ui": "13.0.4-next.
|
|
32
|
+
"@pie-lib/config-ui": "13.0.4-next.33",
|
|
28
33
|
"@pie-element/shared-math-rendering-mathjax": "0.1.1-next.0",
|
|
29
34
|
"@pie-element/shared-lodash": "0.1.1-next.1",
|
|
30
35
|
"clsx": "^2.1.1",
|
|
@@ -1,101 +0,0 @@
|
|
|
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@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
4
|
-
import r from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
5
|
-
import i from "../../../../../../@visx_scale@3.12.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 d from "react";
|
|
13
|
-
import "prop-types";
|
|
14
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js
|
|
15
|
-
var f = /* @__PURE__ */ e(t()), p = [
|
|
16
|
-
"children",
|
|
17
|
-
"axisClassName",
|
|
18
|
-
"hideAxisLine",
|
|
19
|
-
"hideTicks",
|
|
20
|
-
"hideZero",
|
|
21
|
-
"innerRef",
|
|
22
|
-
"left",
|
|
23
|
-
"numTicks",
|
|
24
|
-
"orientation",
|
|
25
|
-
"rangePadding",
|
|
26
|
-
"scale",
|
|
27
|
-
"tickFormat",
|
|
28
|
-
"tickLength",
|
|
29
|
-
"tickValues",
|
|
30
|
-
"top"
|
|
31
|
-
];
|
|
32
|
-
function m() {
|
|
33
|
-
return m = Object.assign ? Object.assign.bind() : function(e) {
|
|
34
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
35
|
-
var n = arguments[t];
|
|
36
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
37
|
-
}
|
|
38
|
-
return e;
|
|
39
|
-
}, m.apply(this, arguments);
|
|
40
|
-
}
|
|
41
|
-
function h(e, t) {
|
|
42
|
-
if (e == null) return {};
|
|
43
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
44
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
45
|
-
return n;
|
|
46
|
-
}
|
|
47
|
-
function g(e) {
|
|
48
|
-
var t = e.children, g = t === void 0 ? o : t, _ = e.axisClassName, v = e.hideAxisLine, y = v === void 0 ? !1 : v, b = e.hideTicks, x = b === void 0 ? !1 : b, S = e.hideZero, C = S === void 0 ? !1 : S, w = e.innerRef, T = e.left, E = T === void 0 ? 0 : T, D = e.numTicks, O = D === void 0 ? 10 : D, k = e.orientation, A = k === void 0 ? a.bottom : k, j = e.rangePadding, M = j === void 0 ? 0 : j, N = e.scale, P = e.tickFormat, F = e.tickLength, I = F === void 0 ? 8 : F, L = e.tickValues, R = e.top, z = R === void 0 ? 0 : R, B = h(e, p), V = P ?? c(N), H = A === a.left, U = A === a.top, W = U || A === a.bottom, G = s(N), K = H || U ? -1 : 1, q = N.range(), J = u(M), Y = l({
|
|
49
|
-
x: Number(q[0]) + .5 - J.start,
|
|
50
|
-
y: 0
|
|
51
|
-
}, W), X = l({
|
|
52
|
-
x: Number(q[q.length - 1]) + .5 + J.end,
|
|
53
|
-
y: 0
|
|
54
|
-
}, W), Z = (L ?? i(N, O)).filter(function(e) {
|
|
55
|
-
return !C || e !== 0 && e !== "0";
|
|
56
|
-
}).map(function(e, t) {
|
|
57
|
-
return {
|
|
58
|
-
value: e,
|
|
59
|
-
index: t
|
|
60
|
-
};
|
|
61
|
-
}), Q = Z.map(function(e) {
|
|
62
|
-
var t = e.value, n = e.index, i = r(G(t));
|
|
63
|
-
return {
|
|
64
|
-
value: t,
|
|
65
|
-
index: n,
|
|
66
|
-
from: l({
|
|
67
|
-
x: i,
|
|
68
|
-
y: 0
|
|
69
|
-
}, W),
|
|
70
|
-
to: l({
|
|
71
|
-
x: i,
|
|
72
|
-
y: I * K
|
|
73
|
-
}, W),
|
|
74
|
-
formattedValue: V(t, n, Z)
|
|
75
|
-
};
|
|
76
|
-
});
|
|
77
|
-
return /*#__PURE__*/ d.createElement(n, {
|
|
78
|
-
className: (0, f.default)("visx-axis", _),
|
|
79
|
-
innerRef: w,
|
|
80
|
-
top: z,
|
|
81
|
-
left: E
|
|
82
|
-
}, g(m({}, B, {
|
|
83
|
-
axisFromPoint: Y,
|
|
84
|
-
axisToPoint: X,
|
|
85
|
-
hideAxisLine: y,
|
|
86
|
-
hideTicks: x,
|
|
87
|
-
hideZero: C,
|
|
88
|
-
horizontal: W,
|
|
89
|
-
numTicks: O,
|
|
90
|
-
orientation: A,
|
|
91
|
-
rangePadding: M,
|
|
92
|
-
scale: N,
|
|
93
|
-
tickFormat: V,
|
|
94
|
-
tickLength: I,
|
|
95
|
-
tickPosition: G,
|
|
96
|
-
tickSign: K,
|
|
97
|
-
ticks: Q
|
|
98
|
-
})));
|
|
99
|
-
}
|
|
100
|
-
//#endregion
|
|
101
|
-
export { g as default };
|
|
@@ -1,46 +0,0 @@
|
|
|
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 i from "react";
|
|
6
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js
|
|
7
|
-
var a = /* @__PURE__ */ e(t()), o = [
|
|
8
|
-
"axisClassName",
|
|
9
|
-
"labelOffset",
|
|
10
|
-
"tickLength",
|
|
11
|
-
"tickLabelProps"
|
|
12
|
-
];
|
|
13
|
-
function s() {
|
|
14
|
-
return s = Object.assign ? Object.assign.bind() : function(e) {
|
|
15
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
16
|
-
var n = arguments[t];
|
|
17
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
18
|
-
}
|
|
19
|
-
return e;
|
|
20
|
-
}, s.apply(this, arguments);
|
|
21
|
-
}
|
|
22
|
-
function c(e, t) {
|
|
23
|
-
if (e == null) return {};
|
|
24
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
25
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
26
|
-
return n;
|
|
27
|
-
}
|
|
28
|
-
var l = {
|
|
29
|
-
dy: "0.25em",
|
|
30
|
-
fill: "#222",
|
|
31
|
-
fontFamily: "Arial",
|
|
32
|
-
fontSize: 10,
|
|
33
|
-
textAnchor: "middle"
|
|
34
|
-
};
|
|
35
|
-
function u(e) {
|
|
36
|
-
var t = e.axisClassName, u = e.labelOffset, d = u === void 0 ? 8 : u, f = e.tickLength, p = f === void 0 ? 8 : f, m = e.tickLabelProps, h = c(e, o), g = typeof m == "function" ? m : s({}, l, m);
|
|
37
|
-
return /*#__PURE__*/ i.createElement(r, s({
|
|
38
|
-
axisClassName: (0, a.default)("visx-axis-bottom", t),
|
|
39
|
-
labelOffset: d,
|
|
40
|
-
orientation: n.bottom,
|
|
41
|
-
tickLabelProps: g,
|
|
42
|
-
tickLength: p
|
|
43
|
-
}, h));
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
export { u as default };
|
|
@@ -1,47 +0,0 @@
|
|
|
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 i from "react";
|
|
6
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisLeft.js
|
|
7
|
-
var a = /* @__PURE__ */ e(t()), o = [
|
|
8
|
-
"axisClassName",
|
|
9
|
-
"labelOffset",
|
|
10
|
-
"tickLength",
|
|
11
|
-
"tickLabelProps"
|
|
12
|
-
];
|
|
13
|
-
function s() {
|
|
14
|
-
return s = Object.assign ? Object.assign.bind() : function(e) {
|
|
15
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
16
|
-
var n = arguments[t];
|
|
17
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
18
|
-
}
|
|
19
|
-
return e;
|
|
20
|
-
}, s.apply(this, arguments);
|
|
21
|
-
}
|
|
22
|
-
function c(e, t) {
|
|
23
|
-
if (e == null) return {};
|
|
24
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
25
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
26
|
-
return n;
|
|
27
|
-
}
|
|
28
|
-
var l = {
|
|
29
|
-
dx: "-0.25em",
|
|
30
|
-
dy: "0.25em",
|
|
31
|
-
fill: "#222",
|
|
32
|
-
fontFamily: "Arial",
|
|
33
|
-
fontSize: 10,
|
|
34
|
-
textAnchor: "end"
|
|
35
|
-
};
|
|
36
|
-
function u(e) {
|
|
37
|
-
var t = e.axisClassName, u = e.labelOffset, d = u === void 0 ? 36 : u, f = e.tickLength, p = f === void 0 ? 8 : f, m = e.tickLabelProps, h = c(e, o), g = typeof m == "function" ? m : s({}, l, m);
|
|
38
|
-
return /*#__PURE__*/ i.createElement(r, s({
|
|
39
|
-
axisClassName: (0, a.default)("visx-axis-left", t),
|
|
40
|
-
labelOffset: d,
|
|
41
|
-
orientation: n.left,
|
|
42
|
-
tickLabelProps: g,
|
|
43
|
-
tickLength: p
|
|
44
|
-
}, h));
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
export { u as default };
|
|
@@ -1,63 +0,0 @@
|
|
|
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@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
4
|
-
import r from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/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 s from "react";
|
|
9
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js
|
|
10
|
-
var c = /* @__PURE__ */ e(t());
|
|
11
|
-
function l() {
|
|
12
|
-
return l = Object.assign ? Object.assign.bind() : function(e) {
|
|
13
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
14
|
-
var n = arguments[t];
|
|
15
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
16
|
-
}
|
|
17
|
-
return e;
|
|
18
|
-
}, l.apply(this, arguments);
|
|
19
|
-
}
|
|
20
|
-
var u = {
|
|
21
|
-
textAnchor: "middle",
|
|
22
|
-
fontFamily: "Arial",
|
|
23
|
-
fontSize: 10,
|
|
24
|
-
fill: "#222"
|
|
25
|
-
};
|
|
26
|
-
function d(e) {
|
|
27
|
-
var t = e.axisFromPoint, d = e.axisLineClassName, f = e.axisToPoint, p = e.hideAxisLine, m = e.hideTicks, h = e.horizontal, g = e.label, _ = g === void 0 ? "" : g, v = e.labelClassName, y = e.labelOffset, b = y === void 0 ? 14 : y, x = e.labelProps, S = e.orientation, C = S === void 0 ? i.bottom : S, w = e.scale, T = e.stroke, E = T === void 0 ? "#222" : T, D = e.strokeDasharray, O = e.strokeWidth, k = O === void 0 ? 1 : O, A = e.tickClassName, j = e.tickComponent, M = e.tickLineProps, N = e.tickLabelProps, P = e.tickLength, F = P === void 0 ? 8 : P, I = e.tickStroke, L = I === void 0 ? "#222" : I, R = e.tickTransform, z = e.ticks, B = e.ticksComponent, V = B === void 0 ? o : B, H = l({}, u, x), U = l({}, u, typeof N == "object" ? N : null), W = z.map(function(e) {
|
|
28
|
-
var t = e.value, n = e.index;
|
|
29
|
-
return typeof N == "function" ? N(t, n, z) : U;
|
|
30
|
-
}), G = Math.max.apply(Math, [10].concat(W.map(function(e) {
|
|
31
|
-
return typeof e.fontSize == "number" ? e.fontSize : 0;
|
|
32
|
-
})));
|
|
33
|
-
return /*#__PURE__*/ s.createElement(s.Fragment, null, V({
|
|
34
|
-
hideTicks: m,
|
|
35
|
-
horizontal: h,
|
|
36
|
-
orientation: C,
|
|
37
|
-
scale: w,
|
|
38
|
-
tickClassName: A,
|
|
39
|
-
tickComponent: j,
|
|
40
|
-
tickLabelProps: W,
|
|
41
|
-
tickStroke: L,
|
|
42
|
-
tickTransform: R,
|
|
43
|
-
ticks: z,
|
|
44
|
-
strokeWidth: k,
|
|
45
|
-
tickLineProps: M
|
|
46
|
-
}), !p && /*#__PURE__*/ s.createElement(n, {
|
|
47
|
-
className: (0, c.default)("visx-axis-line", d),
|
|
48
|
-
from: t,
|
|
49
|
-
to: f,
|
|
50
|
-
stroke: E,
|
|
51
|
-
strokeWidth: k,
|
|
52
|
-
strokeDasharray: D
|
|
53
|
-
}), _ && /*#__PURE__*/ s.createElement(r, l({ className: (0, c.default)("visx-axis-label", v) }, a({
|
|
54
|
-
labelOffset: b,
|
|
55
|
-
labelProps: H,
|
|
56
|
-
orientation: C,
|
|
57
|
-
range: w.range(),
|
|
58
|
-
tickLabelFontSize: G,
|
|
59
|
-
tickLength: F
|
|
60
|
-
}), H), _));
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
export { d as default };
|
|
@@ -1,44 +0,0 @@
|
|
|
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@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
4
|
-
import r from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
|
|
5
|
-
import i from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js";
|
|
6
|
-
import a from "../constants/orientation.js";
|
|
7
|
-
import o from "react";
|
|
8
|
-
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js
|
|
9
|
-
var s = /* @__PURE__ */ e(t());
|
|
10
|
-
function c() {
|
|
11
|
-
return c = Object.assign ? Object.assign.bind() : function(e) {
|
|
12
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
13
|
-
var n = arguments[t];
|
|
14
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
15
|
-
}
|
|
16
|
-
return e;
|
|
17
|
-
}, c.apply(this, arguments);
|
|
18
|
-
}
|
|
19
|
-
function l(e) {
|
|
20
|
-
var t = e.hideTicks, l = e.horizontal, u = e.orientation, d = e.tickClassName, f = e.tickComponent, p = e.tickLabelProps, m = e.tickStroke, h = m === void 0 ? "#222" : m, g = e.tickTransform, _ = e.ticks, v = e.strokeWidth, y = e.tickLineProps;
|
|
21
|
-
return _.map(function(e) {
|
|
22
|
-
var m = e.value, _ = e.index, b = e.from, x = e.to, S = e.formattedValue, C = p[_] ?? {}, w = Math.max(10, typeof C.fontSize == "number" && C.fontSize || 0), T = x.y + (l && u !== a.top ? w : 0);
|
|
23
|
-
return /*#__PURE__*/ o.createElement(n, {
|
|
24
|
-
key: "visx-tick-" + m + "-" + _,
|
|
25
|
-
className: (0, s.default)("visx-axis-tick", d),
|
|
26
|
-
transform: g
|
|
27
|
-
}, !t && /*#__PURE__*/ o.createElement(r, c({
|
|
28
|
-
from: b,
|
|
29
|
-
to: x,
|
|
30
|
-
stroke: h,
|
|
31
|
-
strokeWidth: v,
|
|
32
|
-
strokeLinecap: "square"
|
|
33
|
-
}, y)), f ? f(c({}, C, {
|
|
34
|
-
x: x.x,
|
|
35
|
-
y: T,
|
|
36
|
-
formattedValue: S
|
|
37
|
-
})) : /*#__PURE__*/ o.createElement(i, c({
|
|
38
|
-
x: x.x,
|
|
39
|
-
y: T
|
|
40
|
-
}, C), S));
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
export { l as default };
|