@pie-lib/plot 5.0.4-next.20261009061152 → 5.0.4-next.20261011174919

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/label.js CHANGED
@@ -14,7 +14,7 @@ function d(e) {
14
14
  function f(e, t) {
15
15
  return !e || d(e) ? e : d(e.default) ? e.default : t && d(e[t]) ? e[t] : t && d(e[t]?.default) ? e[t].default : e;
16
16
  }
17
- var p = f(o, "Readable") || f(g.Readable, "Readable"), m = a, h = m.default, g = h && typeof h == "object" ? h : m, _ = {
17
+ var p = a, m = p.default, h = m && typeof m == "object" ? m : p, g = f(o, "Readable") || f(h.Readable, "Readable"), _ = {
18
18
  axisLabel: {
19
19
  fontSize: 12,
20
20
  textAlign: "center",
@@ -60,16 +60,16 @@ var p = f(o, "Readable") || f(g.Readable, "Readable"), m = a, h = m.default, g =
60
60
  ..._.disabledLabel,
61
61
  "& p": { margin: 0 }
62
62
  }), b = (r) => {
63
- let { disabledLabel: i, graphHeight: a, graphWidth: o, isChartBottomLabel: s, isDefineChartBottomLabel: d, isChartLeftLabel: f, isDefineChartLeftLabel: m, placeholder: h, text: g, side: b, onChange: x, mathMlOptions: S = {}, charactersLimit: C, titleHeight: w, preventNewLines: T } = r, [E, D] = n(!1), O = [
63
+ let { disabledLabel: i, graphHeight: a, graphWidth: o, isChartBottomLabel: s, isDefineChartBottomLabel: d, isChartLeftLabel: f, isDefineChartLeftLabel: p, placeholder: m, text: h, side: b, onChange: x, mathMlOptions: S = {}, charactersLimit: C, titleHeight: w, preventNewLines: T } = r, [E, D] = n(!1), O = [
64
64
  "bold",
65
65
  "italic",
66
66
  "underline",
67
67
  "strikethrough",
68
68
  "math"
69
- ], k = s || f || d || m, A = b === "left" && m && a - 220, j = {
69
+ ], k = s || f || d || p, A = b === "left" && p && a - 220, j = {
70
70
  width: A || (b === "left" || b === "right" ? a - 8 : o - 8),
71
- top: A || f && `${a - 70}px` || b === "left" && `${a - 8}px` || s && `${a - 60 + w}px` || b === "bottom" && `${a - 106 + w}px` || 0,
72
- left: b === "right" && `${o - 8}px` || (m || d) && "40px" || s && "-10px" || 0
71
+ top: A || f && `${a - 70}px` || b === "left" && `${a - 8}px` || s && `${a - 50 + w}px` || b === "bottom" && `${a - 100 + w}px` || 0,
72
+ left: b === "right" && `${o - 8}px` || (p || d) && "40px" || 0
73
73
  }, M = {
74
74
  width: o - 8,
75
75
  top: b === "right" ? `${a - 22}px` : 0,
@@ -81,7 +81,7 @@ var p = f(o, "Readable") || f(g.Readable, "Readable"), m = a, h = m.default, g =
81
81
  document.activeElement?.blur?.();
82
82
  });
83
83
  }, F = (e) => !!(T && e.key === "Enter");
84
- return /* @__PURE__ */ c(p, {
84
+ return /* @__PURE__ */ c(g, {
85
85
  false: !0,
86
86
  children: /* @__PURE__ */ c(v, {
87
87
  onClick: N,
@@ -92,12 +92,12 @@ var p = f(o, "Readable") || f(g.Readable, "Readable"), m = a, h = m.default, g =
92
92
  ...b === "right" && !E ? _.rotateRightLabel : {},
93
93
  ...E ? _.editLabel : {},
94
94
  ...s || d ? _.customBottom : {},
95
- ...i && !k && t(e(g)) && _.displayNone
95
+ ...i && !k && t(e(h)) && _.displayNone
96
96
  },
97
- children: i ? /* @__PURE__ */ c(y, { dangerouslySetInnerHTML: { __html: u(g) } }) : /* @__PURE__ */ c(l, {
98
- markup: g || "",
97
+ children: i ? /* @__PURE__ */ c(y, { dangerouslySetInnerHTML: { __html: u(h) } }) : /* @__PURE__ */ c(l, {
98
+ markup: h || "",
99
99
  onChange: x,
100
- placeholder: !i && h,
100
+ placeholder: !i && m,
101
101
  toolbarOpts: {
102
102
  position: b === "bottom" ? "top" : "bottom",
103
103
  noPadding: !0,
package/dist/root.js CHANGED
@@ -17,7 +17,7 @@ function v(e) {
17
17
  function y(e, t) {
18
18
  return !e || v(e) ? e : v(e.default) ? e.default : t && v(e[t]) ? e[t] : t && v(e[t]?.default) ? e[t].default : e;
19
19
  }
20
- var b = y(f, "Readable") || y(C.Readable, "Readable"), x = d, S = x.default, C = S && typeof S == "object" ? S : x, w = { "& .ProseMirror p.is-editor-empty::before, & .ProseMirror div.is-editor-empty::before": {
20
+ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Readable") || y(S.Readable, "Readable"), w = { "& .ProseMirror p.is-editor-empty::before, & .ProseMirror div.is-editor-empty::before": {
21
21
  left: 0,
22
22
  right: 0,
23
23
  width: "100%",
@@ -172,7 +172,7 @@ var b = y(f, "Readable") || y(C.Readable, "Readable"), x = d, S = x.default, C =
172
172
  this.resizeObserver &&= (this.resizeObserver.disconnect(), null);
173
173
  };
174
174
  render() {
175
- let { disabledTitle: e, disabledLabels: t, labels: o, labelsPlaceholders: s, titlePlaceholder: c, graphProps: l, children: u, defineChart: d, onChangeTitle: f, isChart: p, showLabels: v, showPixelGuides: y, showTitle: x, title: S, rootRef: C, mathMlOptions: w = {}, labelsCharactersLimit: I, ariaLabel: L, ariaDescription: R } = this.props, { size: { width: z = 500, height: B = 500 }, domain: V, range: H } = l, U = i(n(o?.left)) && r(s) ? 48 : 70, W = i(n(o?.right)) && r(s) ? 48 : 70, G = z + U + W + (V.padding || 0) * 2, K = B + 80 + (H.padding || 0) * 2, q = [
175
+ let { disabledTitle: e, disabledLabels: t, labels: o, labelsPlaceholders: s, titlePlaceholder: c, graphProps: l, children: u, defineChart: d, onChangeTitle: f, isChart: p, showLabels: v, showPixelGuides: y, showTitle: b, title: x, rootRef: S, mathMlOptions: w = {}, labelsCharactersLimit: I, ariaLabel: L, ariaDescription: R } = this.props, { size: { width: z = 500, height: B = 500 }, domain: V, range: H } = l, U = i(n(o?.left)) && r(s) ? 48 : 70, W = i(n(o?.right)) && r(s) ? 48 : 70, G = z + U + W + (V.padding || 0) * 2, K = B + 80 + (H.padding || 0) * 2, q = [
176
176
  "bold",
177
177
  "italic",
178
178
  "underline",
@@ -193,20 +193,20 @@ var b = y(f, "Readable") || y(C.Readable, "Readable"), x = d, S = x.default, C =
193
193
  return /* @__PURE__ */ h(T, { children: [
194
194
  y && /* @__PURE__ */ m(M, {
195
195
  style: { marginLeft: p ? 80 : v ? 30 : 10 },
196
- children: [...Array(Y + 1).keys()].map((e) => /* @__PURE__ */ m(b, {
196
+ children: [...Array(Y + 1).keys()].map((e) => /* @__PURE__ */ m(C, {
197
197
  false: !0,
198
198
  children: /* @__PURE__ */ h(N, { children: [/* @__PURE__ */ h("div", { children: [e * 100, "px"] }), /* @__PURE__ */ m("div", { children: "|" })] })
199
199
  }, `top-guide-${e}`))
200
200
  }),
201
- x && (e ? /* @__PURE__ */ m("div", {
201
+ b && (e ? /* @__PURE__ */ m("div", {
202
202
  ref: (e) => this.titleRef = e,
203
203
  style: {
204
204
  ...p && { width: G },
205
- ...i(n(S)) && { display: "none" }
205
+ ...i(n(x)) && { display: "none" }
206
206
  },
207
207
  children: m(p ? j : A, {
208
208
  className: "disabledTitle",
209
- dangerouslySetInnerHTML: { __html: _(S) }
209
+ dangerouslySetInnerHTML: { __html: _(x) }
210
210
  })
211
211
  }) : /* @__PURE__ */ m("div", {
212
212
  ref: (e) => this.titleRef = e,
@@ -214,7 +214,7 @@ var b = y(f, "Readable") || y(C.Readable, "Readable"), x = d, S = x.default, C =
214
214
  className: y ? "rightMargin" : "",
215
215
  children: /* @__PURE__ */ m(g, {
216
216
  ...p && { width: G },
217
- markup: S || "",
217
+ markup: x || "",
218
218
  onChange: f,
219
219
  placeholder: d && c || !e && "Click here to add a title for this graph",
220
220
  toolbarOpts: {
@@ -260,7 +260,7 @@ var b = y(f, "Readable") || y(C.Readable, "Readable"), x = d, S = x.default, C =
260
260
  ...$,
261
261
  children: [ee, /* @__PURE__ */ m(k, {
262
262
  ref: (e) => {
263
- this.g = e, C && C(e);
263
+ this.g = e, S && S(e);
264
264
  },
265
265
  transform: `translate(${U + (V.padding || 0)}, ${40 + (H.padding || 0)})`,
266
266
  children: u
@@ -283,7 +283,7 @@ var b = y(f, "Readable") || y(C.Readable, "Readable"), x = d, S = x.default, C =
283
283
  paddingTop: Z,
284
284
  marginTop: 31
285
285
  },
286
- children: [...Array(X + 1).keys()].reverse().map((e) => /* @__PURE__ */ m(b, {
286
+ children: [...Array(X + 1).keys()].reverse().map((e) => /* @__PURE__ */ m(C, {
287
287
  false: !0,
288
288
  children: /* @__PURE__ */ h(F, { children: [
289
289
  "━ ",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/plot",
3
- "version": "5.0.4-next.20261009061152",
3
+ "version": "5.0.4-next.20261011174919",
4
4
  "description": "Some underlying components for building charts/graphs",
5
5
  "repository": {
6
6
  "type": "git",