@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as e, M as t, O as n, R as r, S as i, j as a, m as o, u as s } from "../dist-BUH2aT6V.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-C1otxSO2.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 };
|
|
@@ -156,7 +156,7 @@ var qe;
|
|
|
156
156
|
function Je() {
|
|
157
157
|
return qe;
|
|
158
158
|
}
|
|
159
|
-
var Ye = import("./mathjax-CptWnMbQ-
|
|
159
|
+
var Ye = import("./mathjax-CptWnMbQ-upOeuH8W.js");
|
|
160
160
|
Ye.catch(() => {});
|
|
161
161
|
async function Xe(e, t) {
|
|
162
162
|
let { createMathJax: n } = await Ye;
|
|
@@ -48057,7 +48057,8 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48057
48057
|
mathMlOptions: V.default.object,
|
|
48058
48058
|
labelsCharactersLimit: V.default.number,
|
|
48059
48059
|
ariaLabel: V.default.string,
|
|
48060
|
-
ariaDescription: V.default.string
|
|
48060
|
+
ariaDescription: V.default.string,
|
|
48061
|
+
leftAxisOverhang: V.default.number
|
|
48061
48062
|
};
|
|
48062
48063
|
mouseMove = (e, t) => {
|
|
48063
48064
|
let { graphProps: n, onMouseMove: r } = this.props;
|
|
@@ -48123,7 +48124,7 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48123
48124
|
this.resizeObserver &&= (this.resizeObserver.disconnect(), null);
|
|
48124
48125
|
};
|
|
48125
48126
|
render() {
|
|
48126
|
-
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:
|
|
48127
|
+
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 = (hu(pu(n?.left)) && mu(r) ? 48 : 70) + y, T = hu(pu(n?.right)) && mu(r) ? 48 : 70, E = b + w + T + (S.padding || 0) * 2, D = x + 80 + (C.padding || 0) * 2, O = [
|
|
48127
48128
|
"bold",
|
|
48128
48129
|
"italic",
|
|
48129
48130
|
"underline",
|
|
@@ -48131,20 +48132,20 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48131
48132
|
"subscript",
|
|
48132
48133
|
"strikethrough",
|
|
48133
48134
|
"math"
|
|
48134
|
-
],
|
|
48135
|
+
], k = s && d ? x - 160 : x, A = parseInt(b / 100), j = parseInt(k / 100), M = parseInt(k % 100), { titleHeight: ee } = this.state, te = {
|
|
48135
48136
|
..._ && {
|
|
48136
48137
|
role: "group",
|
|
48137
48138
|
"aria-label": _
|
|
48138
48139
|
},
|
|
48139
48140
|
...v && { "aria-describedby": this.descriptionId }
|
|
48140
|
-
},
|
|
48141
|
+
}, N = v ? /* @__PURE__ */ L("desc", {
|
|
48141
48142
|
id: this.descriptionId,
|
|
48142
48143
|
children: v
|
|
48143
48144
|
}) : null;
|
|
48144
48145
|
return /* @__PURE__ */ R(fce, { children: [
|
|
48145
48146
|
d && /* @__PURE__ */ L(_ce, {
|
|
48146
48147
|
style: { marginLeft: l ? 80 : u ? 30 : 10 },
|
|
48147
|
-
children: [...Array(
|
|
48148
|
+
children: [...Array(A + 1).keys()].map((e) => /* @__PURE__ */ L(b4, {
|
|
48148
48149
|
false: !0,
|
|
48149
48150
|
children: /* @__PURE__ */ R(vce, { children: [/* @__PURE__ */ R("div", { children: [e * 100, "px"] }), /* @__PURE__ */ L("div", { children: "|" })] })
|
|
48150
48151
|
}, `top-guide-${e}`))
|
|
@@ -48152,7 +48153,7 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48152
48153
|
f && (e ? /* @__PURE__ */ L("div", {
|
|
48153
48154
|
ref: (e) => this.titleRef = e,
|
|
48154
48155
|
style: {
|
|
48155
|
-
...l && { width:
|
|
48156
|
+
...l && { width: E },
|
|
48156
48157
|
...hu(pu(p)) && { display: "none" }
|
|
48157
48158
|
},
|
|
48158
48159
|
children: L(l ? C4 : S4, {
|
|
@@ -48164,7 +48165,7 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48164
48165
|
children: L(l ? C4 : S4, {
|
|
48165
48166
|
className: d ? "rightMargin" : "",
|
|
48166
48167
|
children: /* @__PURE__ */ L(_2, {
|
|
48167
|
-
...l && { width:
|
|
48168
|
+
...l && { width: E },
|
|
48168
48169
|
markup: p || "",
|
|
48169
48170
|
onChange: c,
|
|
48170
48171
|
placeholder: s && i || !e && "Click here to add a title for this graph",
|
|
@@ -48172,7 +48173,7 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48172
48173
|
noPadding: !0,
|
|
48173
48174
|
noBorder: !0
|
|
48174
48175
|
},
|
|
48175
|
-
activePlugins:
|
|
48176
|
+
activePlugins: O,
|
|
48176
48177
|
disableScrollbar: !0,
|
|
48177
48178
|
onKeyDown: this.handleKeyDown
|
|
48178
48179
|
})
|
|
@@ -48183,8 +48184,8 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48183
48184
|
text: n.top,
|
|
48184
48185
|
disabledLabel: t,
|
|
48185
48186
|
placeholder: r?.top,
|
|
48186
|
-
graphHeight:
|
|
48187
|
-
graphWidth:
|
|
48187
|
+
graphHeight: D,
|
|
48188
|
+
graphWidth: E,
|
|
48188
48189
|
onChange: (e) => this.onChangeLabel(e, "top"),
|
|
48189
48190
|
mathMlOptions: h,
|
|
48190
48191
|
preventNewLines: !0,
|
|
@@ -48196,8 +48197,8 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48196
48197
|
text: n.left,
|
|
48197
48198
|
disabledLabel: t,
|
|
48198
48199
|
placeholder: r?.left,
|
|
48199
|
-
graphHeight:
|
|
48200
|
-
graphWidth:
|
|
48200
|
+
graphHeight: D,
|
|
48201
|
+
graphWidth: E,
|
|
48201
48202
|
isChartLeftLabel: l && !s,
|
|
48202
48203
|
isDefineChartLeftLabel: l && s,
|
|
48203
48204
|
onChange: (e) => this.onChangeLabel(e, "left"),
|
|
@@ -48206,14 +48207,14 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48206
48207
|
charactersLimit: g
|
|
48207
48208
|
}),
|
|
48208
48209
|
R(s ? mce : hce, {
|
|
48209
|
-
width:
|
|
48210
|
-
height:
|
|
48211
|
-
...
|
|
48212
|
-
children: [
|
|
48210
|
+
width: E,
|
|
48211
|
+
height: D,
|
|
48212
|
+
...te,
|
|
48213
|
+
children: [N, /* @__PURE__ */ L(gce, {
|
|
48213
48214
|
ref: (e) => {
|
|
48214
48215
|
this.g = e, m && m(e);
|
|
48215
48216
|
},
|
|
48216
|
-
transform: `translate(${
|
|
48217
|
+
transform: `translate(${w + (S.padding || 0)}, ${40 + (C.padding || 0)})`,
|
|
48217
48218
|
children: o
|
|
48218
48219
|
})]
|
|
48219
48220
|
}),
|
|
@@ -48222,8 +48223,8 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48222
48223
|
text: n.right,
|
|
48223
48224
|
disabledLabel: t,
|
|
48224
48225
|
placeholder: r?.right,
|
|
48225
|
-
graphHeight:
|
|
48226
|
-
graphWidth:
|
|
48226
|
+
graphHeight: D,
|
|
48227
|
+
graphWidth: E,
|
|
48227
48228
|
onChange: (e) => this.onChangeLabel(e, "right"),
|
|
48228
48229
|
mathMlOptions: h,
|
|
48229
48230
|
preventNewLines: !0,
|
|
@@ -48231,10 +48232,10 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48231
48232
|
}),
|
|
48232
48233
|
d && /* @__PURE__ */ L(yce, {
|
|
48233
48234
|
style: {
|
|
48234
|
-
paddingTop:
|
|
48235
|
+
paddingTop: M,
|
|
48235
48236
|
marginTop: 31
|
|
48236
48237
|
},
|
|
48237
|
-
children: [...Array(
|
|
48238
|
+
children: [...Array(j + 1).keys()].reverse().map((e) => /* @__PURE__ */ L(b4, {
|
|
48238
48239
|
false: !0,
|
|
48239
48240
|
children: /* @__PURE__ */ R(bce, { children: [
|
|
48240
48241
|
"━ ",
|
|
@@ -48249,9 +48250,9 @@ var v4 = Pv, y4 = v4.default, dce = y4 && typeof y4 == "object" ? y4 : v4, b4 =
|
|
|
48249
48250
|
text: n.bottom,
|
|
48250
48251
|
disabledLabel: t,
|
|
48251
48252
|
placeholder: r?.bottom,
|
|
48252
|
-
graphHeight:
|
|
48253
|
-
graphWidth:
|
|
48254
|
-
titleHeight:
|
|
48253
|
+
graphHeight: D,
|
|
48254
|
+
graphWidth: E,
|
|
48255
|
+
titleHeight: ee,
|
|
48255
48256
|
isChartBottomLabel: l && !s,
|
|
48256
48257
|
isDefineChartBottomLabel: l && s,
|
|
48257
48258
|
onChange: (e) => this.onChangeLabel(e, "bottom"),
|
|
@@ -57319,4 +57320,4 @@ var dhe = uhe, fhe = lhe((e) => ({ marks: e.marks.present }), (e) => ({
|
|
|
57319
57320
|
//#endregion
|
|
57320
57321
|
export { Wm as $, lv as A, zg as B, Pv as C, yv as D, bv as E, J_ as F, dg as G, _g as H, K_ as I, Fh as J, og as K, U_ as L, sv as M, ov as N, hv as O, nv as P, Km as Q, H_ as R, BM as S, Ne as St, Cv as T, gg as U, yg as V, mg as W, nh as X, kh as Y, Qm as Z, dW as _, mr as _t, k9 as a, B as at, qH as b, ze as bt, ZK as c, il as ct, zK as d, Ms as dt, Gm as et, PG as f, Qo as ft, gW as g, yr as gt, lG as h, ka as ht, A9 as i, pl as it, cv as j, dv as k, qK as l, fc as lt, xG as m, Xo as mt, N9 as n, wd as nt, _2 as o, cl as ot, TG as p, Zo as pt, Wh as q, M9 as r, H as rt, fZ as s, ol as st, phe as t, Nm as tt, WK as u, lc as ut, aW as v, Ke as vt, Tv as w, WM as x, be as xt, HU as y, Ge as yt, B_ as z };
|
|
57321
57322
|
|
|
57322
|
-
//# sourceMappingURL=container-
|
|
57323
|
+
//# sourceMappingURL=container-C1otxSO2.js.map
|