@pie-lib/plot 5.0.5 → 5.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/root.d.ts +1 -0
- package/dist/root.js +25 -24
- package/package.json +5 -5
package/dist/root.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare class Root extends React.Component {
|
|
|
47
47
|
labelsCharactersLimit: PropTypes.Requireable<number>;
|
|
48
48
|
ariaLabel: PropTypes.Requireable<string>;
|
|
49
49
|
ariaDescription: PropTypes.Requireable<string>;
|
|
50
|
+
leftAxisOverhang: PropTypes.Requireable<number>;
|
|
50
51
|
};
|
|
51
52
|
mouseMove: any;
|
|
52
53
|
componentDidMount(): void;
|
package/dist/root.js
CHANGED
|
@@ -106,7 +106,8 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
106
106
|
mathMlOptions: c.object,
|
|
107
107
|
labelsCharactersLimit: c.number,
|
|
108
108
|
ariaLabel: c.string,
|
|
109
|
-
ariaDescription: c.string
|
|
109
|
+
ariaDescription: c.string,
|
|
110
|
+
leftAxisOverhang: c.number
|
|
110
111
|
};
|
|
111
112
|
mouseMove = (e, t) => {
|
|
112
113
|
let { graphProps: n, onMouseMove: r } = this.props;
|
|
@@ -172,7 +173,7 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
172
173
|
this.resizeObserver &&= (this.resizeObserver.disconnect(), null);
|
|
173
174
|
};
|
|
174
175
|
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: b, title: x, rootRef: S, mathMlOptions: w = {}, labelsCharactersLimit: I, ariaLabel: L, ariaDescription: R } = this.props, { size: { width:
|
|
176
|
+
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, leftAxisOverhang: z = 0 } = this.props, { size: { width: B = 500, height: V = 500 }, domain: H, range: U } = l, W = (i(n(o?.left)) && r(s) ? 48 : 70) + z, G = i(n(o?.right)) && r(s) ? 48 : 70, K = B + W + G + (H.padding || 0) * 2, q = V + 80 + (U.padding || 0) * 2, J = [
|
|
176
177
|
"bold",
|
|
177
178
|
"italic",
|
|
178
179
|
"underline",
|
|
@@ -180,20 +181,20 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
180
181
|
"subscript",
|
|
181
182
|
"strikethrough",
|
|
182
183
|
"math"
|
|
183
|
-
],
|
|
184
|
+
], Y = d && y ? V - 160 : V, X = parseInt(B / 100), Z = parseInt(Y / 100), Q = parseInt(Y % 100), { titleHeight: $ } = this.state, ee = {
|
|
184
185
|
...L && {
|
|
185
186
|
role: "group",
|
|
186
187
|
"aria-label": L
|
|
187
188
|
},
|
|
188
189
|
...R && { "aria-describedby": this.descriptionId }
|
|
189
|
-
},
|
|
190
|
+
}, te = R ? /* @__PURE__ */ m("desc", {
|
|
190
191
|
id: this.descriptionId,
|
|
191
192
|
children: R
|
|
192
193
|
}) : null;
|
|
193
194
|
return /* @__PURE__ */ h(T, { children: [
|
|
194
195
|
y && /* @__PURE__ */ m(M, {
|
|
195
196
|
style: { marginLeft: p ? 80 : v ? 30 : 10 },
|
|
196
|
-
children: [...Array(
|
|
197
|
+
children: [...Array(X + 1).keys()].map((e) => /* @__PURE__ */ m(C, {
|
|
197
198
|
false: !0,
|
|
198
199
|
children: /* @__PURE__ */ h(N, { children: [/* @__PURE__ */ h("div", { children: [e * 100, "px"] }), /* @__PURE__ */ m("div", { children: "|" })] })
|
|
199
200
|
}, `top-guide-${e}`))
|
|
@@ -201,7 +202,7 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
201
202
|
b && (e ? /* @__PURE__ */ m("div", {
|
|
202
203
|
ref: (e) => this.titleRef = e,
|
|
203
204
|
style: {
|
|
204
|
-
...p && { width:
|
|
205
|
+
...p && { width: K },
|
|
205
206
|
...i(n(x)) && { display: "none" }
|
|
206
207
|
},
|
|
207
208
|
children: m(p ? j : A, {
|
|
@@ -213,7 +214,7 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
213
214
|
children: m(p ? j : A, {
|
|
214
215
|
className: y ? "rightMargin" : "",
|
|
215
216
|
children: /* @__PURE__ */ m(g, {
|
|
216
|
-
...p && { width:
|
|
217
|
+
...p && { width: K },
|
|
217
218
|
markup: x || "",
|
|
218
219
|
onChange: f,
|
|
219
220
|
placeholder: d && c || !e && "Click here to add a title for this graph",
|
|
@@ -221,7 +222,7 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
221
222
|
noPadding: !0,
|
|
222
223
|
noBorder: !0
|
|
223
224
|
},
|
|
224
|
-
activePlugins:
|
|
225
|
+
activePlugins: J,
|
|
225
226
|
disableScrollbar: !0,
|
|
226
227
|
onKeyDown: this.handleKeyDown
|
|
227
228
|
})
|
|
@@ -232,8 +233,8 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
232
233
|
text: o.top,
|
|
233
234
|
disabledLabel: t,
|
|
234
235
|
placeholder: s?.top,
|
|
235
|
-
graphHeight:
|
|
236
|
-
graphWidth:
|
|
236
|
+
graphHeight: q,
|
|
237
|
+
graphWidth: K,
|
|
237
238
|
onChange: (e) => this.onChangeLabel(e, "top"),
|
|
238
239
|
mathMlOptions: w,
|
|
239
240
|
preventNewLines: !0,
|
|
@@ -245,8 +246,8 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
245
246
|
text: o.left,
|
|
246
247
|
disabledLabel: t,
|
|
247
248
|
placeholder: s?.left,
|
|
248
|
-
graphHeight:
|
|
249
|
-
graphWidth:
|
|
249
|
+
graphHeight: q,
|
|
250
|
+
graphWidth: K,
|
|
250
251
|
isChartLeftLabel: p && !d,
|
|
251
252
|
isDefineChartLeftLabel: p && d,
|
|
252
253
|
onChange: (e) => this.onChangeLabel(e, "left"),
|
|
@@ -255,14 +256,14 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
255
256
|
charactersLimit: I
|
|
256
257
|
}),
|
|
257
258
|
h(d ? D : O, {
|
|
258
|
-
width:
|
|
259
|
-
height:
|
|
260
|
-
|
|
261
|
-
children: [
|
|
259
|
+
width: K,
|
|
260
|
+
height: q,
|
|
261
|
+
...ee,
|
|
262
|
+
children: [te, /* @__PURE__ */ m(k, {
|
|
262
263
|
ref: (e) => {
|
|
263
264
|
this.g = e, S && S(e);
|
|
264
265
|
},
|
|
265
|
-
transform: `translate(${
|
|
266
|
+
transform: `translate(${W + (H.padding || 0)}, ${40 + (U.padding || 0)})`,
|
|
266
267
|
children: u
|
|
267
268
|
})]
|
|
268
269
|
}),
|
|
@@ -271,8 +272,8 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
271
272
|
text: o.right,
|
|
272
273
|
disabledLabel: t,
|
|
273
274
|
placeholder: s?.right,
|
|
274
|
-
graphHeight:
|
|
275
|
-
graphWidth:
|
|
275
|
+
graphHeight: q,
|
|
276
|
+
graphWidth: K,
|
|
276
277
|
onChange: (e) => this.onChangeLabel(e, "right"),
|
|
277
278
|
mathMlOptions: w,
|
|
278
279
|
preventNewLines: !0,
|
|
@@ -280,10 +281,10 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
280
281
|
}),
|
|
281
282
|
y && /* @__PURE__ */ m(P, {
|
|
282
283
|
style: {
|
|
283
|
-
paddingTop:
|
|
284
|
+
paddingTop: Q,
|
|
284
285
|
marginTop: 31
|
|
285
286
|
},
|
|
286
|
-
children: [...Array(
|
|
287
|
+
children: [...Array(Z + 1).keys()].reverse().map((e) => /* @__PURE__ */ m(C, {
|
|
287
288
|
false: !0,
|
|
288
289
|
children: /* @__PURE__ */ h(F, { children: [
|
|
289
290
|
"━ ",
|
|
@@ -298,9 +299,9 @@ var b = d, x = b.default, S = x && typeof x == "object" ? x : b, C = y(f, "Reada
|
|
|
298
299
|
text: o.bottom,
|
|
299
300
|
disabledLabel: t,
|
|
300
301
|
placeholder: s?.bottom,
|
|
301
|
-
graphHeight:
|
|
302
|
-
graphWidth:
|
|
303
|
-
titleHeight:
|
|
302
|
+
graphHeight: q,
|
|
303
|
+
graphWidth: K,
|
|
304
|
+
titleHeight: $,
|
|
304
305
|
isChartBottomLabel: p && !d,
|
|
305
306
|
isDefineChartBottomLabel: p && d,
|
|
306
307
|
onChange: (e) => this.onChangeLabel(e, "bottom"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/plot",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6-next.20261016071127",
|
|
4
4
|
"description": "Some underlying components for building charts/graphs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,9 +13,9 @@
|
|
|
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.
|
|
17
|
-
"@pie-lib/editable-html-tip-tap": "3.1.
|
|
18
|
-
"@pie-lib/render-ui": "8.0.
|
|
16
|
+
"@pie-element/shared-utils": "0.1.5-next.20261012213240",
|
|
17
|
+
"@pie-lib/editable-html-tip-tap": "3.1.1-next.20261015154938",
|
|
18
|
+
"@pie-lib/render-ui": "8.0.6-next.20261015154938",
|
|
19
19
|
"assert": "^2.1.0",
|
|
20
20
|
"d3-scale": "^4.0.2",
|
|
21
21
|
"d3-selection": "^3.0.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"react-draggable": "^4.7.1",
|
|
26
26
|
"react-redux": "^9.3.0",
|
|
27
27
|
"redux": "^5.0.1",
|
|
28
|
-
"@pie-element/shared-lodash": "0.1.
|
|
28
|
+
"@pie-element/shared-lodash": "0.1.3-next.20261012213240"
|
|
29
29
|
},
|
|
30
30
|
"type": "module",
|
|
31
31
|
"main": "./dist/index.js",
|