@pie-lib/charting 7.0.4-next.30 → 7.0.4-next.32
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/actions-button.js +1 -1
- package/dist/axes.js +2 -2
- package/dist/bars/bar.js +2 -2
- package/dist/bars/common/bars.js +4 -4
- package/dist/bars/histogram.js +2 -2
- package/dist/chart-setup.js +1 -1
- package/dist/chart.js +6 -6
- package/dist/common/drag-handle.js +1 -1
- package/dist/grid.js +1 -1
- package/dist/index.js +1 -1
- package/dist/line/common/drag-handle.js +1 -1
- package/dist/line/common/line.js +5 -5
- package/dist/line/line-cross.js +2 -2
- package/dist/line/line-dot.js +2 -2
- package/dist/mark-label.js +6 -6
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +1 -1
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js +1 -1
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisLeft.js +1 -1
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +1 -1
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +1 -1
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +1 -1
- package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +1 -1
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/scaleOperator.js +2 -2
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/scales/band.js +1 -1
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/scales/point.js +1 -1
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.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 +6 -6
- package/dist/plot/dot.js +2 -2
- package/dist/plot/line.js +2 -2
- package/package.json +12 -7
package/dist/actions-button.js
CHANGED
package/dist/axes.js
CHANGED
|
@@ -2,7 +2,7 @@ import e from "./node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modul
|
|
|
2
2
|
import t from "./node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js";
|
|
3
3
|
import { TickCorrectnessIndicator as n } from "./common/correctness-indicators.js";
|
|
4
4
|
import { bandKey as r, getRotateAngle as i, getTickValues as a } from "./utils.js";
|
|
5
|
-
import o from "./mark-label.js";
|
|
5
|
+
import { MarkLabel as o } from "./mark-label.js";
|
|
6
6
|
import s from "react";
|
|
7
7
|
import c from "prop-types";
|
|
8
8
|
import { styled as l } from "@mui/material/styles";
|
|
@@ -373,4 +373,4 @@ var O = class extends s.Component {
|
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
//#endregion
|
|
376
|
-
export { O as default };
|
|
376
|
+
export { O as RawChartAxes, O as default, D as TickComponent };
|
package/dist/bars/bar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { dataToXBand as e } from "../utils.js";
|
|
2
|
-
import t from "./common/bars.js";
|
|
2
|
+
import { Bars as t } from "./common/bars.js";
|
|
3
3
|
import n from "react";
|
|
4
4
|
import r from "prop-types";
|
|
5
5
|
import { types as i } from "@pie-lib/plot";
|
|
@@ -24,4 +24,4 @@ var o = class extends n.Component {
|
|
|
24
24
|
name: "Bar"
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
|
-
export { s as default };
|
|
27
|
+
export { o as Bar, s as default };
|
package/dist/bars/common/bars.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
2
2
|
import t from "../../node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Bar.js";
|
|
3
3
|
import { bandKey as n } from "../../utils.js";
|
|
4
|
-
import r,
|
|
4
|
+
import { D as r, DragHandle as i } from "../../common/drag-handle.js";
|
|
5
5
|
import { CorrectCheckIcon as a } from "./correct-check-icon.js";
|
|
6
6
|
import o from "react";
|
|
7
7
|
import s from "prop-types";
|
|
@@ -143,7 +143,7 @@ var h = l("pie-lib:chart:bars"), g = [
|
|
|
143
143
|
]
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
}, x = class extends o.Component {
|
|
146
|
+
}, x = b, S = class extends o.Component {
|
|
147
147
|
static propTypes = {
|
|
148
148
|
data: s.array,
|
|
149
149
|
correctData: s.array,
|
|
@@ -155,7 +155,7 @@ var h = l("pie-lib:chart:bars"), g = [
|
|
|
155
155
|
};
|
|
156
156
|
render() {
|
|
157
157
|
let { data: t, graphProps: n, xBand: r, onChangeCategory: i, defineChart: a, histogram: o, correctData: s } = this.props;
|
|
158
|
-
return /* @__PURE__ */ p(e, { children: (t || []).map((e, t) => /* @__PURE__ */ p(
|
|
158
|
+
return /* @__PURE__ */ p(e, { children: (t || []).map((e, t) => /* @__PURE__ */ p(x, {
|
|
159
159
|
value: e.value,
|
|
160
160
|
interactive: a || e.interactive,
|
|
161
161
|
defineChart: a,
|
|
@@ -171,4 +171,4 @@ var h = l("pie-lib:chart:bars"), g = [
|
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
//#endregion
|
|
174
|
-
export {
|
|
174
|
+
export { S as Bars, S as default, b as RawBar };
|
package/dist/bars/histogram.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { dataToXBand as e } from "../utils.js";
|
|
2
|
-
import t from "./common/bars.js";
|
|
2
|
+
import { Bars as t } from "./common/bars.js";
|
|
3
3
|
import n from "react";
|
|
4
4
|
import r from "prop-types";
|
|
5
5
|
import { types as i } from "@pie-lib/plot";
|
|
@@ -25,4 +25,4 @@ var o = class extends n.Component {
|
|
|
25
25
|
name: "Histogram"
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
|
-
export { s as default };
|
|
28
|
+
export { o as Histogram, s as default };
|
package/dist/chart-setup.js
CHANGED
package/dist/chart.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import e from "./grid.js";
|
|
1
|
+
import { Grid as e } from "./grid.js";
|
|
2
2
|
import { dataToXBand as t, getDomainAndRangeByChartType as n, getGridLinesAndAxisByChartType as r, getTopPadding as i } from "./utils.js";
|
|
3
|
-
import a from "./axes.js";
|
|
3
|
+
import { RawChartAxes as a } from "./axes.js";
|
|
4
4
|
import o from "./chart-types.js";
|
|
5
|
-
import s from "./actions-button.js";
|
|
5
|
+
import { ActionsButton as s } from "./actions-button.js";
|
|
6
6
|
import c from "react";
|
|
7
7
|
import l from "prop-types";
|
|
8
8
|
import { styled as u } from "@mui/material/styles";
|
|
@@ -125,8 +125,8 @@ var { translator: y } = v, b = d("pie-lib:charts:chart"), x = u("div")(() => ({
|
|
|
125
125
|
label: n || y.t("charting.newLabel", { lng: a }),
|
|
126
126
|
value: 0,
|
|
127
127
|
deletable: !0,
|
|
128
|
-
editable: i
|
|
129
|
-
interactive: i
|
|
128
|
+
editable: !i || i?.editable,
|
|
129
|
+
interactive: !i || i?.interactive
|
|
130
130
|
}]));
|
|
131
131
|
};
|
|
132
132
|
deleteCategory = (e) => {
|
|
@@ -247,4 +247,4 @@ var { translator: y } = v, b = d("pie-lib:charts:chart"), x = u("div")(() => ({
|
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
//#endregion
|
|
250
|
-
export { S as default };
|
|
250
|
+
export { S as Chart, S as default };
|
package/dist/grid.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
package/dist/line/common/line.js
CHANGED
|
@@ -21,7 +21,7 @@ var f = (e, t) => {
|
|
|
21
21
|
stroke: l.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,
|
|
@@ -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
88
|
stroke: l.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__ */ u(e, { children: /* @__PURE__ */ u(
|
|
107
|
+
return /* @__PURE__ */ u(e, { children: /* @__PURE__ */ u(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
|
@@ -2,7 +2,7 @@ import e from "../node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_mod
|
|
|
2
2
|
import t from "../node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/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";
|
|
@@ -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 };
|
package/dist/line/line-dot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CorrectnessIndicator as e, SmallCorrectPointIndicator as t } from "../common/correctness-indicators.js";
|
|
2
2
|
import { dataToXBand as n } from "../utils.js";
|
|
3
|
-
import r from "./common/line.js";
|
|
3
|
+
import { Line as r } from "./common/line.js";
|
|
4
4
|
import i from "react";
|
|
5
5
|
import a from "prop-types";
|
|
6
6
|
import { styled as o } from "@mui/material/styles";
|
|
@@ -98,4 +98,4 @@ var m = class extends i.Component {
|
|
|
98
98
|
name: "Line Dot"
|
|
99
99
|
});
|
|
100
100
|
//#endregion
|
|
101
|
-
export { h as default };
|
|
101
|
+
export { m as LineDot, h as default };
|
package/dist/mark-label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "./node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
1
|
+
import { clsx as e } from "./node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { AutosizeInput as t } from "./autosize-input.js";
|
|
3
3
|
import { correct as n, disabled as r, incorrect as i } from "./common/styles.js";
|
|
4
4
|
import { useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
@@ -21,7 +21,7 @@ u("input")(({ theme: e }) => ({
|
|
|
21
21
|
border: "none",
|
|
22
22
|
"&.correct": n("color"),
|
|
23
23
|
"&.incorrect": i("color"),
|
|
24
|
-
"&.
|
|
24
|
+
"&.disabledMarkLabel": { backgroundColor: "transparent !important" },
|
|
25
25
|
"&.error": { border: `2px solid ${e.palette.error.main}` }
|
|
26
26
|
}));
|
|
27
27
|
var _ = u("div")(({ theme: e }) => ({
|
|
@@ -31,7 +31,7 @@ var _ = u("div")(({ theme: e }) => ({
|
|
|
31
31
|
fontFamily: e.typography.fontFamily,
|
|
32
32
|
color: f.primaryDark(),
|
|
33
33
|
paddingTop: e.typography.fontSize / 2,
|
|
34
|
-
"&.
|
|
34
|
+
"&.disabledMarkLabel": {
|
|
35
35
|
...r("color"),
|
|
36
36
|
backgroundColor: "transparent !important"
|
|
37
37
|
},
|
|
@@ -68,7 +68,7 @@ var b = (n) => {
|
|
|
68
68
|
N.current = e, typeof f == "function" && f(e);
|
|
69
69
|
},
|
|
70
70
|
className: e({
|
|
71
|
-
|
|
71
|
+
disabledMarkLabel: d,
|
|
72
72
|
error: C,
|
|
73
73
|
correct: u.editable && x?.label === "correct",
|
|
74
74
|
incorrect: u.editable && x?.label === "incorrect"
|
|
@@ -89,7 +89,7 @@ var b = (n) => {
|
|
|
89
89
|
name: "mark-label-input",
|
|
90
90
|
autoFocus: j || S,
|
|
91
91
|
disabled: d,
|
|
92
|
-
inputClassName: e(x && u.editable ? x.label : null, d && "
|
|
92
|
+
inputClassName: e(x && u.editable ? x.label : null, d && "disabledMarkLabel", C && "error"),
|
|
93
93
|
inputStyle: {
|
|
94
94
|
minWidth: v,
|
|
95
95
|
textAlign: "center",
|
|
@@ -135,4 +135,4 @@ b.propTypes = {
|
|
|
135
135
|
correctnessIndicator: l.node
|
|
136
136
|
};
|
|
137
137
|
//#endregion
|
|
138
|
-
export { b as default };
|
|
138
|
+
export { b as MarkLabel, b as default };
|
|
@@ -45,7 +45,7 @@ function h(e, t) {
|
|
|
45
45
|
return n;
|
|
46
46
|
}
|
|
47
47
|
function g(e) {
|
|
48
|
-
var t = e.children, g = t === void 0 ? o : t, _ = e.axisClassName, v = e.hideAxisLine, y = v
|
|
48
|
+
var t = e.children, g = t === void 0 ? o : t, _ = e.axisClassName, v = e.hideAxisLine, y = v !== void 0 && v, b = e.hideTicks, x = b !== void 0 && b, S = e.hideZero, C = S !== void 0 && 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
49
|
x: Number(q[0]) + .5 - J.start,
|
|
50
50
|
y: 0
|
|
51
51
|
}, W), X = l({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
|
|
2
2
|
//#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
var r = t.x, i = t.y;
|
|
@@ -2,7 +2,7 @@ import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime
|
|
|
2
2
|
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
3
|
import { require_Line as n } from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js";
|
|
4
4
|
import r from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
5
|
-
import
|
|
5
|
+
import i from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
|
|
6
6
|
import a from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
7
7
|
import o from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js";
|
|
8
8
|
import s from "../utils/getScaleBandwidth.js";
|
|
@@ -2,7 +2,7 @@ import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime
|
|
|
2
2
|
import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
3
|
import { require_Line as n } from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js";
|
|
4
4
|
import r from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
|
|
5
|
-
import
|
|
5
|
+
import i from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
|
|
6
6
|
import a from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
|
|
7
7
|
import o from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js";
|
|
8
8
|
import s from "../utils/getScaleBandwidth.js";
|
|
@@ -45,7 +45,7 @@ var m = [
|
|
|
45
45
|
unknown: f
|
|
46
46
|
};
|
|
47
47
|
function g() {
|
|
48
|
-
var e = new Set([...arguments]), t = m.filter(function(t) {
|
|
48
|
+
var e = /* @__PURE__ */ new Set([...arguments]), t = m.filter(function(t) {
|
|
49
49
|
return e.has(t);
|
|
50
50
|
});
|
|
51
51
|
return function(e, n) {
|
|
@@ -55,4 +55,4 @@ function g() {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
export { g as default };
|
|
58
|
+
export { m as ALL_OPERATORS, g as default };
|
|
@@ -26,7 +26,7 @@ function c(e) {
|
|
|
26
26
|
return typeof e == "number" && Number.isFinite(e) || typeof e == "string";
|
|
27
27
|
}
|
|
28
28
|
function l(e) {
|
|
29
|
-
var t = e.verticalAnchor, l = t === void 0 ? "end" : t, u = e.scaleToFit, d = u
|
|
29
|
+
var t = e.verticalAnchor, l = t === void 0 ? "end" : t, u = e.scaleToFit, d = u !== void 0 && u, f = e.angle, p = e.width, m = e.lineHeight, h = m === void 0 ? "1em" : m, g = e.capHeight, _ = g === void 0 ? "0.71em" : g, v = e.children, y = e.style, b = o(e, a), x = b.x, S = x === void 0 ? 0 : x, C = b.y, w = C === void 0 ? 0 : C, T = !c(S) || !c(w), E = r(function() {
|
|
30
30
|
return {
|
|
31
31
|
wordsWithWidth: (v == null ? [] : v.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e) {
|
|
32
32
|
return {
|
package/dist/plot/common/plot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/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";
|
|
@@ -11,7 +11,7 @@ import { color as d } from "@pie-lib/render-ui";
|
|
|
11
11
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
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,
|
|
@@ -157,7 +157,7 @@ var g = l("pie-lib:chart:bars"), _ = 16, v = c(class extends o.Component {
|
|
|
157
157
|
]
|
|
158
158
|
}) });
|
|
159
159
|
}
|
|
160
|
-
})(({ theme: e }) => ({
|
|
160
|
+
}, y = c(v)(({ theme: e }) => ({
|
|
161
161
|
"& .dot": {
|
|
162
162
|
fill: d.visualElementsColors.PLOT_FILL_COLOR,
|
|
163
163
|
"&.correct": n("stroke"),
|
|
@@ -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__ */ p(e, { children: (t || []).map((e, t) => /* @__PURE__ */ p(
|
|
211
|
+
return /* @__PURE__ */ p(e, { children: (t || []).map((e, t) => /* @__PURE__ */ p(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,7 +1,7 @@
|
|
|
1
1
|
import e from "../node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/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";
|
|
@@ -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
|
@@ -2,7 +2,7 @@ import e from "../node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_mod
|
|
|
2
2
|
import t from "../node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/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";
|
|
@@ -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/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/charting",
|
|
3
|
-
"version": "7.0.4-next.
|
|
3
|
+
"version": "7.0.4-next.32",
|
|
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.
|
|
16
|
+
"@pie-lib/plot": "4.0.4-next.32",
|
|
17
|
+
"@pie-lib/render-ui": "6.1.1-next.39",
|
|
18
|
+
"@pie-lib/translator": "4.0.3-next.2",
|
|
14
19
|
"@visx/axis": "^3.0.0",
|
|
15
20
|
"@visx/event": "^3.0.0",
|
|
16
21
|
"@visx/grid": "^3.0.0",
|
|
@@ -24,9 +29,9 @@
|
|
|
24
29
|
"invariant": "^2.2.4",
|
|
25
30
|
"react-draggable": "^4.6.0",
|
|
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.32",
|
|
28
33
|
"@pie-element/shared-math-rendering-mathjax": "0.1.1-next.0",
|
|
29
|
-
"@pie-element/shared-lodash": "0.1.1-next.
|
|
34
|
+
"@pie-element/shared-lodash": "0.1.1-next.1",
|
|
30
35
|
"clsx": "^2.1.1",
|
|
31
36
|
"d3-time": "^3.1.0",
|
|
32
37
|
"d3-interpolate": "^3.0.1",
|