@pie-lib/charting 8.0.7-next.20261019093941 → 8.0.7-next.20261019151920
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 +3 -3
- package/dist/axes.js +30 -27
- package/dist/chart-setup.js +1 -3
- package/dist/common/correctness-indicators.js +2 -2
- package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/createColorInterpolator.js +0 -1
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +6 -4
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +38 -39
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +2 -2
- package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +1 -1
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
|
|
3
3
|
let r = {};
|
|
4
4
|
for (var i in e) t(r, i, {
|
|
5
5
|
get: e[i],
|
|
@@ -12,9 +12,9 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
12
12
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
13
|
});
|
|
14
14
|
return e;
|
|
15
|
-
}, l = (e, t, n) => (c(e, t, "default"), n && c(n, t, "default")), u = (n, r,
|
|
15
|
+
}, l = (e, t, n) => (c(e, t, "default"), n && c(n, t, "default")), u = (n, r, o) => (o = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
|
|
16
16
|
value: n,
|
|
17
17
|
enumerable: !0
|
|
18
|
-
}) :
|
|
18
|
+
}) : o, n));
|
|
19
19
|
//#endregion
|
|
20
20
|
export { o as __commonJSMin, s as __exportAll, l as __reExport, u as __toESM };
|
package/dist/axes.js
CHANGED
|
@@ -348,11 +348,11 @@ var H = class extends l.Component {
|
|
|
348
348
|
reportedOverhang = 0;
|
|
349
349
|
reportedRangeOverhang = 0;
|
|
350
350
|
labelLayout = () => {
|
|
351
|
-
let { graphProps: e, xBand: t, categories: n = [], theme: r } = this.props, { scale: a = {}, domain: o = {} } = e || {}, { height: s, width: c } = this.state, l = t && typeof t.bandwidth == "function" && t.bandwidth(), u = l || a.x && a.x(o.max) / n.length;
|
|
351
|
+
let { graphProps: e, xBand: t, categories: n = [], theme: r } = this.props, { scale: a = {}, domain: o = {} } = e || {}, { height: s, width: c } = this.state, l = t && typeof t.bandwidth == "function" && t.bandwidth(), u = l || a.x && a.x(o.max) / n.length, d = r && r.typography ? r.typography.fontSize : 14;
|
|
352
352
|
return {
|
|
353
353
|
bandWidth: l,
|
|
354
354
|
barWidth: u,
|
|
355
|
-
rotate: i(
|
|
355
|
+
rotate: i(d, s) || (c > u ? 25 : 0)
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
358
|
reportLabelOverhang = () => {
|
|
@@ -386,7 +386,7 @@ var H = class extends l.Component {
|
|
|
386
386
|
t && b(e), (e.querySelector("mjx-container") || !t) && this.measureHiddenLabel(), O(this._onDocMutation), this.observeHiddenLabelSize(e);
|
|
387
387
|
};
|
|
388
388
|
observeHiddenLabelSize = (e) => {
|
|
389
|
-
e
|
|
389
|
+
e !== this._sizedLabel && typeof ResizeObserver < "u" && (this._sizeObserver?.disconnect(), this._sizedLabel = e, this._sizeObserver = new ResizeObserver(() => this.measureHiddenLabel()), this._sizeObserver.observe(e));
|
|
390
390
|
};
|
|
391
391
|
setHiddenLabelRef = (e) => {
|
|
392
392
|
e && e !== this.hiddenLabelRef && (this.hiddenLabelRef = e, this.observeHiddenLabel(e));
|
|
@@ -419,30 +419,33 @@ var H = class extends l.Component {
|
|
|
419
419
|
top: x.y && x.y(S.min),
|
|
420
420
|
textLabelProps: () => ({ textAnchor: "middle" }),
|
|
421
421
|
tickFormat: (e) => e,
|
|
422
|
-
tickComponent: (e) =>
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
422
|
+
tickComponent: (e) => {
|
|
423
|
+
let t = {
|
|
424
|
+
hiddenLabelRef: this.setHiddenLabelRef,
|
|
425
|
+
categories: c,
|
|
426
|
+
xBand: r,
|
|
427
|
+
bandWidth: T,
|
|
428
|
+
barWidth: E,
|
|
429
|
+
rotate: D,
|
|
430
|
+
top: l,
|
|
431
|
+
defineChart: u,
|
|
432
|
+
chartingOptions: d,
|
|
433
|
+
autoFocus: m,
|
|
434
|
+
onAutoFocusUsed: h,
|
|
435
|
+
error: g,
|
|
436
|
+
onChangeCategory: s,
|
|
437
|
+
changeInteractiveEnabled: f,
|
|
438
|
+
changeEditableEnabled: p,
|
|
439
|
+
onChange: a,
|
|
440
|
+
graphProps: n,
|
|
441
|
+
x: e.x,
|
|
442
|
+
y: e.y,
|
|
443
|
+
formattedValue: e.formattedValue,
|
|
444
|
+
showCorrectness: y,
|
|
445
|
+
language: b
|
|
446
|
+
};
|
|
447
|
+
return /* @__PURE__ */ _(I, { ...t });
|
|
448
|
+
},
|
|
446
449
|
autoFocus: m,
|
|
447
450
|
onAutoFocusUsed: h
|
|
448
451
|
})]
|
package/dist/chart-setup.js
CHANGED
|
@@ -54,9 +54,9 @@ var o = t(i)(({ theme: e }) => ({
|
|
|
54
54
|
if (n && n.value === "incorrect") {
|
|
55
55
|
let s = parseFloat(i.find((e) => e.label === a)?.value);
|
|
56
56
|
if (isNaN(s)) return null;
|
|
57
|
-
let c = e.y(s) - 7.5;
|
|
57
|
+
let c = e.y(s) - 7.5, l = e.x(t) - 7.5;
|
|
58
58
|
return /* @__PURE__ */ r("foreignObject", {
|
|
59
|
-
x:
|
|
59
|
+
x: l,
|
|
60
60
|
y: c,
|
|
61
61
|
width: 15,
|
|
62
62
|
height: 15,
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
function e(t) {
|
|
3
3
|
var n, r, i = "";
|
|
4
4
|
if (typeof t == "string" || typeof t == "number") i += t;
|
|
5
|
-
else if (typeof t == "object")
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
else if (typeof t == "object") {
|
|
6
|
+
if (Array.isArray(t)) {
|
|
7
|
+
var a = t.length;
|
|
8
|
+
for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
|
|
9
|
+
} else for (r in t) t[r] && (i && (i += " "), i += r);
|
|
10
|
+
}
|
|
9
11
|
return i;
|
|
10
12
|
}
|
|
11
13
|
function t() {
|
|
@@ -456,47 +456,46 @@ var n = /* @__PURE__ */ e(((e, n) => {
|
|
|
456
456
|
var w = C[x];
|
|
457
457
|
if (w.type === 14) {
|
|
458
458
|
if (x > 0 && x < C.length - 1 && C[x + 1].type === 1 && (C[x - 1].type === 1 || C[x - 1].type === 6)) throw new r.Exception("Unexpected Space");
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
459
|
+
} else {
|
|
460
|
+
for (var T = w.token, E = w.type, D = w.value, O = w.precedence, k = w.show, A = n[n.length - 1], j = a.length; j-- && a[j] === 0;) if ([
|
|
461
|
+
0,
|
|
462
|
+
2,
|
|
463
|
+
3,
|
|
464
|
+
4,
|
|
465
|
+
5,
|
|
466
|
+
9,
|
|
467
|
+
11,
|
|
468
|
+
12,
|
|
469
|
+
13
|
|
470
|
+
].indexOf(E) !== -1) {
|
|
471
|
+
if (s[E] !== !0) throw new r.Exception(T + " is not allowed after " + g);
|
|
472
|
+
n.push(y), s = l, h = f, a.pop();
|
|
473
|
+
}
|
|
473
474
|
if (s[E] !== !0) throw new r.Exception(T + " is not allowed after " + g);
|
|
474
|
-
|
|
475
|
+
if (h[E] === !0 && (E = 2, D = r.math.mul, k = "×", O = 3, --x), S = {
|
|
476
|
+
value: D,
|
|
477
|
+
type: E,
|
|
478
|
+
pre: O,
|
|
479
|
+
show: k,
|
|
480
|
+
numberOfArguments: w.numberOfArguments
|
|
481
|
+
}, E === 0) s = c, h = d, i(a, 2), n.push(S), C[x + 1].type !== 4 && (n.push(b), a.push(2));
|
|
482
|
+
else if (E === 1) A.type === 1 ? (A.value += D, i(a, 1)) : n.push(S), s = l, h = u;
|
|
483
|
+
else if (E === 2) s = c, h = d, i(a, 2), n.push(S);
|
|
484
|
+
else if (E === 3) n.push(S), s = l, h = f;
|
|
485
|
+
else if (E === 4) i(a, 1), m++, s = c, h = d, n.push(S);
|
|
486
|
+
else if (E === 5) {
|
|
487
|
+
if (!m) throw new r.Exception("Closing parenthesis are more than opening one, wait What!!!");
|
|
488
|
+
m--, s = l, h = f, n.push(S), i(a, 1);
|
|
489
|
+
} else if (E === 6) {
|
|
490
|
+
if (A.hasDec) throw new r.Exception("Two decimals are not allowed in one number");
|
|
491
|
+
A.type !== 1 && (A = {
|
|
492
|
+
value: 0,
|
|
493
|
+
type: 1,
|
|
494
|
+
pre: 0
|
|
495
|
+
}, n.push(A)), s = p, i(a, 1), h = d, A.value += D, A.hasDec = !0;
|
|
496
|
+
} else E === 7 && (s = l, h = f, i(a, 1), n.push(S));
|
|
497
|
+
E === 8 ? (s = c, h = d, i(a, w.numberOfArguments + 2), n.push(S), C[x + 1].type !== 4 && (n.push(b), a.push(w.numberOfArguments + 2))) : E === 9 ? (A.type === 9 ? A.value === r.math.add ? (A.value = D, A.show = k, i(a, 1)) : A.value === r.math.sub && k === "-" && (A.value = r.math.add, A.show = "+", i(a, 1)) : A.type !== 5 && A.type !== 7 && A.type !== 1 && A.type !== 3 && A.type !== 13 ? T === "-" && (s = c, h = d, i(a, 2).push(2), n.push(v), n.push(b)) : (n.push(S), i(a, 2)), s = c, h = d) : E === 10 ? (s = c, h = d, i(a, 2), n.push(S)) : E === 11 ? (s = c, h = d, n.push(S)) : E === 12 ? (s = c, h = d, i(a, 6), n.push(S), C[x + 1].type !== 4 && (n.push(b), a.push(6))) : E === 13 && (s = l, h = f, n.push(S)), i(a, -1), g = T;
|
|
475
498
|
}
|
|
476
|
-
if (s[E] !== !0) throw new r.Exception(T + " is not allowed after " + g);
|
|
477
|
-
if (h[E] === !0 && (E = 2, D = r.math.mul, k = "×", O = 3, --x), S = {
|
|
478
|
-
value: D,
|
|
479
|
-
type: E,
|
|
480
|
-
pre: O,
|
|
481
|
-
show: k,
|
|
482
|
-
numberOfArguments: w.numberOfArguments
|
|
483
|
-
}, E === 0) s = c, h = d, i(a, 2), n.push(S), C[x + 1].type !== 4 && (n.push(b), a.push(2));
|
|
484
|
-
else if (E === 1) A.type === 1 ? (A.value += D, i(a, 1)) : n.push(S), s = l, h = u;
|
|
485
|
-
else if (E === 2) s = c, h = d, i(a, 2), n.push(S);
|
|
486
|
-
else if (E === 3) n.push(S), s = l, h = f;
|
|
487
|
-
else if (E === 4) i(a, 1), m++, s = c, h = d, n.push(S);
|
|
488
|
-
else if (E === 5) {
|
|
489
|
-
if (!m) throw new r.Exception("Closing parenthesis are more than opening one, wait What!!!");
|
|
490
|
-
m--, s = l, h = f, n.push(S), i(a, 1);
|
|
491
|
-
} else if (E === 6) {
|
|
492
|
-
if (A.hasDec) throw new r.Exception("Two decimals are not allowed in one number");
|
|
493
|
-
A.type !== 1 && (A = {
|
|
494
|
-
value: 0,
|
|
495
|
-
type: 1,
|
|
496
|
-
pre: 0
|
|
497
|
-
}, n.push(A)), s = p, i(a, 1), h = d, A.value += D, A.hasDec = !0;
|
|
498
|
-
} else E === 7 && (s = l, h = f, i(a, 1), n.push(S));
|
|
499
|
-
E === 8 ? (s = c, h = d, i(a, w.numberOfArguments + 2), n.push(S), C[x + 1].type !== 4 && (n.push(b), a.push(w.numberOfArguments + 2))) : E === 9 ? (A.type === 9 ? A.value === r.math.add ? (A.value = D, A.show = k, i(a, 1)) : A.value === r.math.sub && k === "-" && (A.value = r.math.add, A.show = "+", i(a, 1)) : A.type !== 5 && A.type !== 7 && A.type !== 1 && A.type !== 3 && A.type !== 13 ? T === "-" && (s = c, h = d, i(a, 2).push(2), n.push(v), n.push(b)) : (n.push(S), i(a, 2)), s = c, h = d) : E === 10 ? (s = c, h = d, i(a, 2), n.push(S)) : E === 11 ? (s = c, h = d, n.push(S)) : E === 12 ? (s = c, h = d, i(a, 6), n.push(S), C[x + 1].type !== 4 && (n.push(b), a.push(6))) : E === 13 && (s = l, h = f, n.push(S)), i(a, -1), g = T;
|
|
500
499
|
}
|
|
501
500
|
for (j = a.length; j--;) n.push(y);
|
|
502
501
|
if (s[5] !== !0) throw new r.Exception("complete the expression");
|
|
@@ -40,7 +40,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
40
40
|
return n.math.isDegree && (e = n.math.toRadian(e)), Math.cos(e);
|
|
41
41
|
},
|
|
42
42
|
cosh: function(e) {
|
|
43
|
-
return (Math.E **
|
|
43
|
+
return (Math.E ** e + Math.E ** (-1 * e)) / 2;
|
|
44
44
|
},
|
|
45
45
|
div: function(e, t) {
|
|
46
46
|
return e / t;
|
|
@@ -82,7 +82,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
82
82
|
return n.math.isDegree && (e = n.math.toRadian(e)), Math.sin(e);
|
|
83
83
|
},
|
|
84
84
|
sinh: function(e) {
|
|
85
|
-
return (Math.E **
|
|
85
|
+
return (Math.E ** e - Math.E ** (-1 * e)) / 2;
|
|
86
86
|
},
|
|
87
87
|
sub: function(e, t) {
|
|
88
88
|
return e - t;
|
|
@@ -40,7 +40,7 @@ var i = /* @__PURE__ */ e(((e, i) => {
|
|
|
40
40
|
return o(e, /((?:\-[a-z]+\-)?calc)\(/, n);
|
|
41
41
|
}
|
|
42
42
|
function f(e) {
|
|
43
|
-
for (var t = [], n = [], r = /[\.0-9]([%a-z]+)/gi, i = r.exec(e); i;)
|
|
43
|
+
for (var t = [], n = [], r = /[\.0-9]([%a-z]+)/gi, i = r.exec(e); i;) i && i[1] && (n.indexOf(i[1].toLowerCase()) === -1 && (t.push(i[1]), n.push(i[1].toLowerCase())), i = r.exec(e));
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
46
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/charting",
|
|
3
|
-
"version": "8.0.7-next.
|
|
3
|
+
"version": "8.0.7-next.20261019151920",
|
|
4
4
|
"description": "charting",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,10 +13,10 @@
|
|
|
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-element/shared-utils": "0.1.6-next.
|
|
17
|
-
"@pie-lib/plot": "5.0.7-next.
|
|
18
|
-
"@pie-lib/render-ui": "8.0.7-next.
|
|
19
|
-
"@pie-lib/translator": "5.0.2-next.
|
|
16
|
+
"@pie-element/shared-utils": "0.1.6-next.20261019151920",
|
|
17
|
+
"@pie-lib/plot": "5.0.7-next.20261019151920",
|
|
18
|
+
"@pie-lib/render-ui": "8.0.7-next.20261019151920",
|
|
19
|
+
"@pie-lib/translator": "5.0.2-next.20261019151920",
|
|
20
20
|
"@visx/axis": "^4.0.0",
|
|
21
21
|
"@visx/event": "^4.0.0",
|
|
22
22
|
"@visx/grid": "^4.0.0",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"invariant": "^2.2.4",
|
|
31
31
|
"react-draggable": "^4.7.1",
|
|
32
32
|
"prop-types": "^15.8.1",
|
|
33
|
-
"@pie-lib/config-ui": "14.0.7-next.
|
|
34
|
-
"@pie-element/shared-math-rendering-mathjax": "0.1.8-next.
|
|
35
|
-
"@pie-element/shared-lodash": "0.1.3-next.
|
|
33
|
+
"@pie-lib/config-ui": "14.0.7-next.20261019151920",
|
|
34
|
+
"@pie-element/shared-math-rendering-mathjax": "0.1.8-next.20261019151920",
|
|
35
|
+
"@pie-element/shared-lodash": "0.1.3-next.20261019151920",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"d3-time": "^3.1.0",
|
|
38
38
|
"d3-interpolate": "^3.0.1",
|