@pie-element/graphing 11.0.5 → 11.0.6-next.20261016071127
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/browser/author/index.js +2 -2
- package/dist/browser/{container-DROjp6QX.js → container-C1otxSO2.js} +27 -26
- package/dist/browser/{container-DROjp6QX.js.map → container-C1otxSO2.js.map} +1 -1
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/author/index.js +2 -2
- package/dist/browser/editor-runtime/{container-DwlL4n8q.js → container-CihLn8rt.js} +27 -26
- package/dist/browser/editor-runtime/{container-DwlL4n8q.js.map → container-CihLn8rt.js.map} +1 -1
- package/dist/browser/editor-runtime/controller/index.js +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-DSNjBK1e.js → mathjax-CptWnMbQ-DIfiZlF2.js} +2 -2
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-DSNjBK1e.js.map → mathjax-CptWnMbQ-DIfiZlF2.js.map} +1 -1
- package/dist/browser/{mathjax-CptWnMbQ-0iy-tZoW.js → mathjax-CptWnMbQ-upOeuH8W.js} +2 -2
- package/dist/browser/{mathjax-CptWnMbQ-0iy-tZoW.js.map → mathjax-CptWnMbQ-upOeuH8W.js.map} +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/schemas/configuration.schema.json +1 -1
- package/dist/schemas/model.schema.json +1 -1
- package/dist/schemas/session.schema.json +1 -1
- package/package.json +15 -15
|
@@ -338,7 +338,7 @@ var Y = (e, t) => new Promise((n) => {
|
|
|
338
338
|
}), o(a) || (i.correctAnswerErrors = a), i;
|
|
339
339
|
}, Q = Object.freeze({
|
|
340
340
|
name: "@pie-element/graphing",
|
|
341
|
-
version: "11.0.
|
|
341
|
+
version: "11.0.6-next.20261016071127"
|
|
342
342
|
});
|
|
343
343
|
//#endregion
|
|
344
344
|
export { V as comparLabelMarks, B as compareMarks, Y as createCorrectResponseSession, H as getAnswerCorrected, W as getBestAnswer, q as getLogTrace, K as model, G as normalize, J as outcome, Q as piePackage, Z as validate };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { R as e } from "../dist-BUH2aT6V.js";
|
|
2
|
-
import { C as t, D as n, E as r, N as i, R as a, T as o, _t as s, at as c, gt as l, nt as u, rt as d, t as f, w as p, z as m } from "../container-
|
|
2
|
+
import { C as t, D as n, E as r, N as i, R as a, T as o, _t as s, at as c, gt as l, nt as u, rt as d, t as f, w as p, z as m } from "../container-C1otxSO2.js";
|
|
3
3
|
import h, { useRef as g } from "react";
|
|
4
4
|
import { createRoot as _ } from "react-dom/client";
|
|
5
5
|
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
@@ -721,7 +721,7 @@ var K = t, q = K.default, J = q && typeof q == "object" ? q : K, ae = G(i, "UiLa
|
|
|
721
721
|
}
|
|
722
722
|
}, le = Object.freeze({
|
|
723
723
|
name: "@pie-element/graphing",
|
|
724
|
-
version: "11.0.
|
|
724
|
+
version: "11.0.6-next.20261016071127"
|
|
725
725
|
});
|
|
726
726
|
//#endregion
|
|
727
727
|
export { $ as Component, ce as default, le as piePackage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as e, M as t, O as n, S as r, j as i, m as a, u as o, z as s } from "../dist-BTqjvlEc.js";
|
|
2
|
-
import { $ as c, A as l, B as u, C as d, F as f, G as p, H as m, I as h, J as g, K as _, L as v, M as y, O as b, P as x, Q as S, S as C, U as w, V as T, W as E, X as D, Y as O, Z as k, _ as A, _t as j, a as ee, at as M, b as N, c as te, ct as P, d as ne, dt as re, et as ie, f as ae, ft as F, g as I, gt as oe, h as se, ht as L, i as ce, it as le, j as ue, k as R, l as de, lt as fe, m as pe, mt as z, n as me, o as he, ot as ge, p as _e, pt as B, q as ve, r as ye, rt as V, s as be, st as xe, t as Se, tt as Ce, u as we, ut as H, v as Te, x as Ee, y as De } from "../container-
|
|
2
|
+
import { $ as c, A as l, B as u, C as d, F as f, G as p, H as m, I as h, J as g, K as _, L as v, M as y, O as b, P as x, Q as S, S as C, U as w, V as T, W as E, X as D, Y as O, Z as k, _ as A, _t as j, a as ee, at as M, b as N, c as te, ct as P, d as ne, dt as re, et as ie, f as ae, ft as F, g as I, gt as oe, h as se, ht as L, i as ce, it as le, j as ue, k as R, l as de, lt as fe, m as pe, mt as z, n as me, o as he, ot as ge, p as _e, pt as B, q as ve, r as ye, rt as V, s as be, st as xe, t as Se, tt as Ce, u as we, ut as H, v as Te, x as Ee, y as De } from "../container-CihLn8rt.js";
|
|
3
3
|
import * as U from "react";
|
|
4
4
|
import W, { Component as Oe, createElement as ke, useId as Ae } from "react";
|
|
5
5
|
import { createRoot as je } from "react-dom/client";
|
|
@@ -4486,7 +4486,7 @@ var la = class extends U.Component {
|
|
|
4486
4486
|
}
|
|
4487
4487
|
}, Aa = Object.freeze({
|
|
4488
4488
|
name: "@pie-element/graphing",
|
|
4489
|
-
version: "11.0.
|
|
4489
|
+
version: "11.0.6-next.20261016071127"
|
|
4490
4490
|
});
|
|
4491
4491
|
//#endregion
|
|
4492
4492
|
export { ka as default, Aa as piePackage };
|
|
@@ -172,7 +172,7 @@ var Tt;
|
|
|
172
172
|
function Et() {
|
|
173
173
|
return Tt;
|
|
174
174
|
}
|
|
175
|
-
var Dt = import("./mathjax-CptWnMbQ-
|
|
175
|
+
var Dt = import("./mathjax-CptWnMbQ-DIfiZlF2.js");
|
|
176
176
|
Dt.catch(() => {});
|
|
177
177
|
async function Ot(e, t) {
|
|
178
178
|
let { createMathJax: n } = await Dt;
|
|
@@ -31469,7 +31469,8 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31469
31469
|
mathMlOptions: W.default.object,
|
|
31470
31470
|
labelsCharactersLimit: W.default.number,
|
|
31471
31471
|
ariaLabel: W.default.string,
|
|
31472
|
-
ariaDescription: W.default.string
|
|
31472
|
+
ariaDescription: W.default.string,
|
|
31473
|
+
leftAxisOverhang: W.default.number
|
|
31473
31474
|
};
|
|
31474
31475
|
mouseMove = (e, t) => {
|
|
31475
31476
|
let { graphProps: n, onMouseMove: r } = this.props;
|
|
@@ -31535,7 +31536,7 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31535
31536
|
this.resizeObserver &&= (this.resizeObserver.disconnect(), null);
|
|
31536
31537
|
};
|
|
31537
31538
|
render() {
|
|
31538
|
-
let { disabledTitle: e, disabledLabels: t, labels: n, labelsPlaceholders: r, titlePlaceholder: i, graphProps: a, children: o, defineChart: s, onChangeTitle: c, isChart: l, showLabels: u, showPixelGuides: d, showTitle: f, title: p, rootRef: m, mathMlOptions: h = {}, labelsCharactersLimit: g, ariaLabel: _, ariaDescription: v } = this.props, { size: { width:
|
|
31539
|
+
let { disabledTitle: e, disabledLabels: t, labels: n, labelsPlaceholders: r, titlePlaceholder: i, graphProps: a, children: o, defineChart: s, onChangeTitle: c, isChart: l, showLabels: u, showPixelGuides: d, showTitle: f, title: p, rootRef: m, mathMlOptions: h = {}, labelsCharactersLimit: g, ariaLabel: _, ariaDescription: v, leftAxisOverhang: y = 0 } = this.props, { size: { width: b = 500, height: x = 500 }, domain: S, range: C } = a, w = (uf(cf(n?.left)) && lf(r) ? 48 : 70) + y, T = uf(cf(n?.right)) && lf(r) ? 48 : 70, E = b + w + T + (S.padding || 0) * 2, D = x + 80 + (C.padding || 0) * 2, O = [
|
|
31539
31540
|
"bold",
|
|
31540
31541
|
"italic",
|
|
31541
31542
|
"underline",
|
|
@@ -31543,20 +31544,20 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31543
31544
|
"subscript",
|
|
31544
31545
|
"strikethrough",
|
|
31545
31546
|
"math"
|
|
31546
|
-
],
|
|
31547
|
+
], k = s && d ? x - 160 : x, A = parseInt(b / 100), j = parseInt(k / 100), M = parseInt(k % 100), { titleHeight: N } = this.state, ee = {
|
|
31547
31548
|
..._ && {
|
|
31548
31549
|
role: "group",
|
|
31549
31550
|
"aria-label": _
|
|
31550
31551
|
},
|
|
31551
31552
|
...v && { "aria-describedby": this.descriptionId }
|
|
31552
|
-
},
|
|
31553
|
+
}, P = v ? /* @__PURE__ */ z("desc", {
|
|
31553
31554
|
id: this.descriptionId,
|
|
31554
31555
|
children: v
|
|
31555
31556
|
}) : null;
|
|
31556
31557
|
return /* @__PURE__ */ B(oG, { children: [
|
|
31557
31558
|
d && /* @__PURE__ */ z(pG, {
|
|
31558
31559
|
style: { marginLeft: l ? 80 : u ? 30 : 10 },
|
|
31559
|
-
children: [...Array(
|
|
31560
|
+
children: [...Array(A + 1).keys()].map((e) => /* @__PURE__ */ z(iG, {
|
|
31560
31561
|
false: !0,
|
|
31561
31562
|
children: /* @__PURE__ */ B(mG, { children: [/* @__PURE__ */ B("div", { children: [e * 100, "px"] }), /* @__PURE__ */ z("div", { children: "|" })] })
|
|
31562
31563
|
}, `top-guide-${e}`))
|
|
@@ -31564,7 +31565,7 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31564
31565
|
f && (e ? /* @__PURE__ */ z("div", {
|
|
31565
31566
|
ref: (e) => this.titleRef = e,
|
|
31566
31567
|
style: {
|
|
31567
|
-
...l && { width:
|
|
31568
|
+
...l && { width: E },
|
|
31568
31569
|
...uf(cf(p)) && { display: "none" }
|
|
31569
31570
|
},
|
|
31570
31571
|
children: z(l ? fG : dG, {
|
|
@@ -31576,7 +31577,7 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31576
31577
|
children: z(l ? fG : dG, {
|
|
31577
31578
|
className: d ? "rightMargin" : "",
|
|
31578
31579
|
children: /* @__PURE__ */ z(VH, {
|
|
31579
|
-
...l && { width:
|
|
31580
|
+
...l && { width: E },
|
|
31580
31581
|
markup: p || "",
|
|
31581
31582
|
onChange: c,
|
|
31582
31583
|
placeholder: s && i || !e && "Click here to add a title for this graph",
|
|
@@ -31584,7 +31585,7 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31584
31585
|
noPadding: !0,
|
|
31585
31586
|
noBorder: !0
|
|
31586
31587
|
},
|
|
31587
|
-
activePlugins:
|
|
31588
|
+
activePlugins: O,
|
|
31588
31589
|
disableScrollbar: !0,
|
|
31589
31590
|
onKeyDown: this.handleKeyDown
|
|
31590
31591
|
})
|
|
@@ -31595,8 +31596,8 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31595
31596
|
text: n.top,
|
|
31596
31597
|
disabledLabel: t,
|
|
31597
31598
|
placeholder: r?.top,
|
|
31598
|
-
graphHeight:
|
|
31599
|
-
graphWidth:
|
|
31599
|
+
graphHeight: D,
|
|
31600
|
+
graphWidth: E,
|
|
31600
31601
|
onChange: (e) => this.onChangeLabel(e, "top"),
|
|
31601
31602
|
mathMlOptions: h,
|
|
31602
31603
|
preventNewLines: !0,
|
|
@@ -31608,8 +31609,8 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31608
31609
|
text: n.left,
|
|
31609
31610
|
disabledLabel: t,
|
|
31610
31611
|
placeholder: r?.left,
|
|
31611
|
-
graphHeight:
|
|
31612
|
-
graphWidth:
|
|
31612
|
+
graphHeight: D,
|
|
31613
|
+
graphWidth: E,
|
|
31613
31614
|
isChartLeftLabel: l && !s,
|
|
31614
31615
|
isDefineChartLeftLabel: l && s,
|
|
31615
31616
|
onChange: (e) => this.onChangeLabel(e, "left"),
|
|
@@ -31618,14 +31619,14 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31618
31619
|
charactersLimit: g
|
|
31619
31620
|
}),
|
|
31620
31621
|
B(s ? cG : lG, {
|
|
31621
|
-
width:
|
|
31622
|
-
height:
|
|
31623
|
-
...
|
|
31624
|
-
children: [
|
|
31622
|
+
width: E,
|
|
31623
|
+
height: D,
|
|
31624
|
+
...ee,
|
|
31625
|
+
children: [P, /* @__PURE__ */ z(uG, {
|
|
31625
31626
|
ref: (e) => {
|
|
31626
31627
|
this.g = e, m && m(e);
|
|
31627
31628
|
},
|
|
31628
|
-
transform: `translate(${
|
|
31629
|
+
transform: `translate(${w + (S.padding || 0)}, ${40 + (C.padding || 0)})`,
|
|
31629
31630
|
children: o
|
|
31630
31631
|
})]
|
|
31631
31632
|
}),
|
|
@@ -31634,8 +31635,8 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31634
31635
|
text: n.right,
|
|
31635
31636
|
disabledLabel: t,
|
|
31636
31637
|
placeholder: r?.right,
|
|
31637
|
-
graphHeight:
|
|
31638
|
-
graphWidth:
|
|
31638
|
+
graphHeight: D,
|
|
31639
|
+
graphWidth: E,
|
|
31639
31640
|
onChange: (e) => this.onChangeLabel(e, "right"),
|
|
31640
31641
|
mathMlOptions: h,
|
|
31641
31642
|
preventNewLines: !0,
|
|
@@ -31643,10 +31644,10 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31643
31644
|
}),
|
|
31644
31645
|
d && /* @__PURE__ */ z(hG, {
|
|
31645
31646
|
style: {
|
|
31646
|
-
paddingTop:
|
|
31647
|
+
paddingTop: M,
|
|
31647
31648
|
marginTop: 31
|
|
31648
31649
|
},
|
|
31649
|
-
children: [...Array(
|
|
31650
|
+
children: [...Array(j + 1).keys()].reverse().map((e) => /* @__PURE__ */ z(iG, {
|
|
31650
31651
|
false: !0,
|
|
31651
31652
|
children: /* @__PURE__ */ B(gG, { children: [
|
|
31652
31653
|
"━ ",
|
|
@@ -31661,9 +31662,9 @@ var tG = IS, nG = tG.default, rG = nG && typeof nG == "object" ? nG : tG, iG = e
|
|
|
31661
31662
|
text: n.bottom,
|
|
31662
31663
|
disabledLabel: t,
|
|
31663
31664
|
placeholder: r?.bottom,
|
|
31664
|
-
graphHeight:
|
|
31665
|
-
graphWidth:
|
|
31666
|
-
titleHeight:
|
|
31665
|
+
graphHeight: D,
|
|
31666
|
+
graphWidth: E,
|
|
31667
|
+
titleHeight: N,
|
|
31667
31668
|
isChartBottomLabel: l && !s,
|
|
31668
31669
|
isDefineChartBottomLabel: l && s,
|
|
31669
31670
|
onChange: (e) => this.onChangeLabel(e, "bottom"),
|
|
@@ -40731,4 +40732,4 @@ var L3 = I3, R3 = F3((e) => ({ marks: e.marks.present }), (e) => ({
|
|
|
40731
40732
|
//#endregion
|
|
40732
40733
|
export { d_ as $, Ax as A, oy as B, IS as C, aS as D, oS as E, Wb as F, Mv as G, Rv as H, Bb as I, nv as J, Dv as K, Cb as L, Ox as M, wx as N, Xx as O, mx as P, p_ as Q, Sb as R, $C as S, dt as St, uS as T, Lv as U, Bv as V, Fv as W, C_ as X, X_ as Y, y_ as Z, iI as _, fi as _t, e4 as a, U as at, BP as b, _t as bt, WR as c, Xu as ct, MR as d, al as dt, f_ as et, DL as f, yc as ft, lI as g, _i as gt, nL as h, Mo as ht, i4 as i, sd as it, kx as j, Bx as k, BR as l, Ul as lt, mL as m, V as mt, f4 as n, Kp as nt, VH as o, ed as ot, vL as p, vc as pt, dv as q, d4 as r, G as rt, QV as s, Qu as st, z3 as t, e_ as tt, LR as u, Bl as ut, QF as v, wt as vt, fS as w, aw as x, Qe as xt, FF as y, Ct as yt, _b as z };
|
|
40733
40734
|
|
|
40734
|
-
//# sourceMappingURL=container-
|
|
40735
|
+
//# sourceMappingURL=container-CihLn8rt.js.map
|