@pie-lib/graphing-solution-set 4.0.4-next.32 → 4.0.4-next.33

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.
Files changed (105) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +2 -5
  2. package/dist/axis/arrow.js +5 -5
  3. package/dist/axis/axes.js +30 -30
  4. package/dist/container/index.js +33 -33
  5. package/dist/coordinates-label.js +6 -6
  6. package/dist/graph-with-controls.js +20 -20
  7. package/dist/grid-setup.js +63 -63
  8. package/dist/grid.js +3 -3
  9. package/dist/labels.js +15 -15
  10. package/dist/mark-label.js +6 -6
  11. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js +67 -0
  12. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +66 -0
  13. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Ticks.js +39 -0
  14. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
  15. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
  16. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +13 -0
  17. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
  18. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
  19. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickPosition.js +14 -0
  20. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/Grid.js +43 -0
  21. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js +46 -0
  22. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js +46 -0
  23. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
  24. package/dist/node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js +17 -0
  25. package/dist/node_modules/.bun/@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js +20 -0
  26. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/utils/coerceNumber.js +2 -2
  27. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js +7 -0
  28. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
  29. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js +27 -0
  30. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js +27 -0
  31. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/hooks/useText.js +68 -0
  32. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/getStringWidth.js +19 -0
  33. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/memoize.js +13 -0
  34. package/dist/tool-menu.js +22 -22
  35. package/dist/tools/line/component.js +8 -8
  36. package/dist/tools/polygon/polygon.js +5 -5
  37. package/dist/tools/shared/point/base-point.js +9 -9
  38. package/dist/tools/shared/point/index.js +5 -5
  39. package/dist/undo-redo.js +7 -7
  40. package/package.json +12 -12
  41. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -101
  42. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -63
  43. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -44
  44. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
  45. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
  46. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
  47. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
  48. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
  49. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
  50. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +0 -79
  51. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
  52. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
  53. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
  54. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -50
  55. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
  56. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +0 -9
  57. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
  58. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -47
  59. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -53
  60. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
  61. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
  62. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
  63. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +0 -21
  64. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +0 -21
  65. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +0 -10
  66. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +0 -21
  67. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
  68. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +0 -14
  69. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
  70. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +0 -16
  71. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +0 -9
  72. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
  73. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +0 -14
  74. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +0 -15
  75. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
  76. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +0 -11
  77. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +0 -13
  78. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +0 -12
  79. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +0 -18
  80. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +0 -14
  81. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +0 -14
  82. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +0 -12
  83. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +0 -16
  84. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +0 -11
  85. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +0 -14
  86. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +0 -14
  87. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +0 -13
  88. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +0 -14
  89. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +0 -19
  90. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +0 -14
  91. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +0 -13
  92. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +0 -13
  93. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +0 -14
  94. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +0 -9
  95. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
  96. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
  97. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +0 -20
  98. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +0 -11
  99. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +0 -16
  100. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
  101. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +0 -20
  102. package/dist/node_modules/.bun/react-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js +0 -471
  103. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -53
  104. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -51
  105. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js +0 -10
@@ -15,9 +15,6 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
15
15
  }, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
16
16
  value: n,
17
17
  enumerable: !0
18
- }) : a, n)), u = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
19
- if (typeof require < "u") return require.apply(this, arguments);
20
- throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
21
- });
18
+ }) : a, n));
22
19
  //#endregion
23
- export { o as __commonJSMin, s as __exportAll, u as __require, l as __toESM };
20
+ export { o as __commonJSMin, s as __exportAll, l as __toESM };
@@ -1,13 +1,13 @@
1
1
  import e from "react";
2
2
  import t from "prop-types";
3
3
  import { types as n } from "@pie-lib/plot";
4
- import { styled as r } from "@mui/material/styles";
5
- import { jsx as i } from "react/jsx-runtime";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { styled as i } from "@mui/material/styles";
6
6
  //#region src/axis/arrow.tsx
7
- var a = r("path")(({ theme: e }) => ({ fill: `var(--arrow-color, ${e.palette.common.black})` })), o = class extends e.Component {
7
+ var a = i("path")(({ theme: e }) => ({ fill: `var(--arrow-color, ${e.palette.common.black})` })), o = class extends e.Component {
8
8
  render() {
9
- let { x: e, y: t, className: n, scale: r } = this.props, o = this.props.direction || "left", s = r.x(e), c = r.y(t), l = "", u = (e, t, n) => `translate(${e}, ${t}) rotate(${n})`;
10
- return o === "left" && (l = u(s - 15, c, 0)), o === "right" && (l = u(s + 15, c, 180)), o === "up" && (l = u(s, c - 15, 90)), o === "down" && (l = u(s, c + 15, 270)), /* @__PURE__ */ i(a, {
9
+ let { x: e, y: t, className: n, scale: i } = this.props, o = this.props.direction || "left", s = i.x(e), c = i.y(t), l = "", u = (e, t, n) => `translate(${e}, ${t}) rotate(${n})`;
10
+ return o === "left" && (l = u(s - 15, c, 0)), o === "right" && (l = u(s + 15, c, 180)), o === "up" && (l = u(s, c - 15, 90)), o === "down" && (l = u(s, c + 15, 270)), /* @__PURE__ */ r(a, {
11
11
  d: "m 0,0 8,-5 0,10 -8,-5",
12
12
  transform: l,
13
13
  className: n
package/dist/axis/axes.js CHANGED
@@ -1,11 +1,11 @@
1
- import e from "../node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js";
1
+ import e from "../node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js";
2
2
  import { Arrow as t } from "./arrow.js";
3
3
  import { amountToIncreaseWidth as n, countWords as r, findLongestWord as i, getTickValues as a } from "../utils.js";
4
4
  import o from "react";
5
5
  import s from "prop-types";
6
6
  import { types as c } from "@pie-lib/plot";
7
- import { styled as l } from "@mui/material/styles";
8
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
7
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
+ import { styled as d } from "@mui/material/styles";
9
9
  import * as f from "@pie-lib/render-ui";
10
10
  import { Readable as p, color as m } from "@pie-lib/render-ui";
11
11
  //#region src/axis/axes.tsx
@@ -23,7 +23,7 @@ var _ = g(p, "Readable") || g(b.Readable, "Readable"), v = f, y = v.default, b =
23
23
  right: !0,
24
24
  up: !0,
25
25
  down: !0
26
- } }, C = l("g")(() => ({
26
+ } }, C = d("g")(() => ({
27
27
  "& .visx-axis-line": {
28
28
  stroke: "#8a92c0",
29
29
  strokeWidth: 4
@@ -32,7 +32,7 @@ var _ = g(p, "Readable") || g(b.Readable, "Readable"), v = f, y = v.default, b =
32
32
  fill: m.defaults.BLACK,
33
33
  "& > line": { stroke: "#8a92c0" }
34
34
  }
35
- })), w = l("div")(({ theme: e, centered: t }) => ({
35
+ })), w = d("div")(({ theme: e, centered: t }) => ({
36
36
  padding: 0,
37
37
  margin: 0,
38
38
  "* > *": {
@@ -42,7 +42,7 @@ var _ = g(p, "Readable") || g(b.Readable, "Readable"), v = f, y = v.default, b =
42
42
  "& p": { margin: 0 },
43
43
  fontSize: e.typography.fontSize,
44
44
  ...t && { textAlign: "center" }
45
- })), T = l(t)({ fill: "#8a92c0" }), E = {
45
+ })), T = d(t)({ fill: "#8a92c0" }), E = {
46
46
  fontFamily: "Roboto",
47
47
  fontSize: "14px",
48
48
  cursor: "inherit"
@@ -56,8 +56,8 @@ var _ = g(p, "Readable") || g(b.Readable, "Readable"), v = f, y = v.default, b =
56
56
  };
57
57
  static defaultProps = S;
58
58
  render() {
59
- let { includeArrows: t, graphProps: a, columnTicksValues: o, skipValues: s, distanceFromOriginToFirstNegativeY: c, dy: l } = this.props, { scale: f, domain: p, size: m, range: h } = a || {}, g = (e) => {
60
- let t = s && s[0] === e ? c + 4 : l;
59
+ let { includeArrows: t, graphProps: a, columnTicksValues: o, skipValues: s, distanceFromOriginToFirstNegativeY: c, dy: d } = this.props, { scale: f, domain: p, size: m, range: h } = a || {}, g = (e) => {
60
+ let t = s && s[0] === e ? c + 4 : d;
61
61
  return {
62
62
  ...E,
63
63
  textAnchor: "middle",
@@ -66,8 +66,8 @@ var _ = g(p, "Readable") || g(b.Readable, "Readable"), v = f, y = v.default, b =
66
66
  dy: e === 0 ? -7 : 0
67
67
  };
68
68
  }, v = r(p.axisLabel), y = n(i(p.axisLabel)) + 2;
69
- return /* @__PURE__ */ d(C, { children: [
70
- /* @__PURE__ */ u(e, {
69
+ return /* @__PURE__ */ u(C, { children: [
70
+ /* @__PURE__ */ l(e, {
71
71
  scale: f.x,
72
72
  top: f.y(0),
73
73
  left: 0,
@@ -78,26 +78,26 @@ var _ = g(p, "Readable") || g(b.Readable, "Readable"), v = f, y = v.default, b =
78
78
  tickValues: o,
79
79
  hideZero: !(p.labelStep || h.labelStep) && p.min <= 0
80
80
  }),
81
- t && t.left && /* @__PURE__ */ u(T, {
81
+ t && t.left && /* @__PURE__ */ l(T, {
82
82
  direction: "left",
83
83
  x: p.min,
84
84
  y: 0,
85
85
  scale: f
86
86
  }),
87
- t && t.right && /* @__PURE__ */ u(T, {
87
+ t && t.right && /* @__PURE__ */ l(T, {
88
88
  direction: "right",
89
89
  x: p.max,
90
90
  y: 0,
91
91
  scale: f
92
92
  }),
93
- p.axisLabel && /* @__PURE__ */ u("foreignObject", {
93
+ p.axisLabel && /* @__PURE__ */ l("foreignObject", {
94
94
  x: m.width + 17,
95
95
  y: f.y(0) - 9,
96
96
  width: y,
97
97
  height: 20 * v,
98
- children: /* @__PURE__ */ u(_, {
98
+ children: /* @__PURE__ */ l(_, {
99
99
  false: !0,
100
- children: /* @__PURE__ */ u(w, { dangerouslySetInnerHTML: { __html: p.axisLabel } })
100
+ children: /* @__PURE__ */ l(w, { dangerouslySetInnerHTML: { __html: p.axisLabel } })
101
101
  })
102
102
  })
103
103
  ] });
@@ -109,9 +109,9 @@ var _ = g(p, "Readable") || g(b.Readable, "Readable"), v = f, y = v.default, b =
109
109
  };
110
110
  static defaultProps = S;
111
111
  render() {
112
- let { includeArrows: t, graphProps: r, skipValues: i, rowTickValues: a } = this.props, { scale: o, range: s, size: c } = r || {}, l = s.axisLabel ? n(s.axisLabel.length) : 0;
113
- return /* @__PURE__ */ d(C, { children: [
114
- /* @__PURE__ */ u(e, {
112
+ let { includeArrows: t, graphProps: r, skipValues: i, rowTickValues: a } = this.props, { scale: o, range: s, size: c } = r || {}, d = s.axisLabel ? n(s.axisLabel.length) : 0;
113
+ return /* @__PURE__ */ u(C, { children: [
114
+ /* @__PURE__ */ l(e, {
115
115
  orientation: "left",
116
116
  scale: o.y,
117
117
  top: 0,
@@ -135,26 +135,26 @@ var _ = g(p, "Readable") || g(b.Readable, "Readable"), v = f, y = v.default, b =
135
135
  tickTextAnchor: "bottom",
136
136
  tickValues: a
137
137
  }),
138
- t && t.down && /* @__PURE__ */ u(T, {
138
+ t && t.down && /* @__PURE__ */ l(T, {
139
139
  direction: "down",
140
140
  x: 0,
141
141
  y: s.min,
142
142
  scale: o
143
143
  }),
144
- t && t.up && /* @__PURE__ */ u(T, {
144
+ t && t.up && /* @__PURE__ */ l(T, {
145
145
  direction: "up",
146
146
  x: 0,
147
147
  y: s.max,
148
148
  scale: o
149
149
  }),
150
- s.axisLabel && /* @__PURE__ */ u("foreignObject", {
151
- x: o.x(0) - l / 2,
150
+ s.axisLabel && /* @__PURE__ */ l("foreignObject", {
151
+ x: o.x(0) - d / 2,
152
152
  y: -33,
153
- width: l,
153
+ width: d,
154
154
  height: "20",
155
- children: /* @__PURE__ */ u(_, {
155
+ children: /* @__PURE__ */ l(_, {
156
156
  false: !0,
157
- children: /* @__PURE__ */ u(w, {
157
+ children: /* @__PURE__ */ l(w, {
158
158
  centered: !0,
159
159
  dangerouslySetInnerHTML: { __html: s.axisLabel }
160
160
  })
@@ -195,16 +195,16 @@ var _ = g(p, "Readable") || g(b.Readable, "Readable"), v = f, y = v.default, b =
195
195
  };
196
196
  };
197
197
  render() {
198
- let { graphProps: e } = this.props, { domain: t, range: n } = e || {}, { columnTicksValues: r, firstNegativeX: i, distanceFromOriginToFirstNegativeX: a } = this.xValues(), { rowTickValues: o, firstNegativeY: s, distanceFromOriginToFirstNegativeY: c } = this.yValues(), l = D(i, s, a, c, 6, 25);
199
- return /* @__PURE__ */ d(C, { children: [n.min <= 0 ? /* @__PURE__ */ u(A, {
198
+ let { graphProps: e } = this.props, { domain: t, range: n } = e || {}, { columnTicksValues: r, firstNegativeX: i, distanceFromOriginToFirstNegativeX: a } = this.xValues(), { rowTickValues: o, firstNegativeY: s, distanceFromOriginToFirstNegativeY: c } = this.yValues(), d = D(i, s, a, c, 6, 25);
199
+ return /* @__PURE__ */ u(C, { children: [n.min <= 0 ? /* @__PURE__ */ l(A, {
200
200
  ...this.props,
201
- skipValues: l,
201
+ skipValues: d,
202
202
  columnTicksValues: r,
203
203
  distanceFromOriginToFirstNegativeY: c,
204
204
  dy: 25
205
- }) : null, t.min <= 0 ? /* @__PURE__ */ u(M, {
205
+ }) : null, t.min <= 0 ? /* @__PURE__ */ l(M, {
206
206
  ...this.props,
207
- skipValues: l,
207
+ skipValues: d,
208
208
  rowTickValues: o,
209
209
  distanceFromOriginToFirstNegativeX: a
210
210
  }) : null] });
@@ -1,46 +1,46 @@
1
- import { Provider as e, connect as t } from "../node_modules/.bun/react-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js";
2
- import { applyMiddleware as n, createStore as r } from "../node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js";
3
- import { ActionCreators as i } from "../node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js";
4
- import a from "./reducer.js";
5
- import { changeMarks as o } from "./actions.js";
6
- import { GraphWithControls as s } from "../graph-with-controls.js";
7
- import { getLastAction as c, lastActionMiddleware as l } from "./middleware.js";
8
- import u from "react";
9
- import d from "prop-types";
10
- import { isEqual as f } from "@pie-element/shared-lodash";
11
- import { jsx as p } from "react/jsx-runtime";
12
- var m = t((e) => ({ marks: e.marks.present }), (e) => ({
13
- onChangeMarks: (t) => e(o(t)),
14
- onUndo: () => e(i.undo()),
15
- onRedo: () => e(i.redo()),
16
- onReset: () => e(o([]))
17
- }))(s), h = class extends u.Component {
1
+ import { applyMiddleware as e, createStore as t } from "../node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js";
2
+ import { ActionCreators as n } from "../node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js";
3
+ import r from "./reducer.js";
4
+ import { changeMarks as i } from "./actions.js";
5
+ import { GraphWithControls as a } from "../graph-with-controls.js";
6
+ import { getLastAction as o, lastActionMiddleware as s } from "./middleware.js";
7
+ import c from "react";
8
+ import l from "prop-types";
9
+ import { isEqual as u } from "@pie-element/shared-lodash";
10
+ import { jsx as d } from "react/jsx-runtime";
11
+ import { Provider as f, connect as p } from "react-redux";
12
+ var m = p((e) => ({ marks: e.marks.present }), (e) => ({
13
+ onChangeMarks: (t) => e(i(t)),
14
+ onUndo: () => e(n.undo()),
15
+ onRedo: () => e(n.redo()),
16
+ onReset: () => e(i([]))
17
+ }))(a), h = class extends c.Component {
18
18
  static propTypes = {
19
- onChangeMarks: d.func,
20
- marks: d.array
19
+ onChangeMarks: l.func,
20
+ marks: l.array
21
21
  };
22
- constructor(e) {
23
- super(e);
24
- let t = a();
25
- this.store = r(t, { marks: e.marks }, n(l)), this.store.subscribe(this.onStoreChange);
22
+ constructor(n) {
23
+ super(n);
24
+ let i = r();
25
+ this.store = t(i, { marks: n.marks }, e(s)), this.store.subscribe(this.onStoreChange);
26
26
  }
27
27
  componentDidUpdate(e) {
28
28
  let { marks: t } = this.props;
29
- f(this.store.getState().marks.present, t) || f(e.marks, t) || t && t.find((e) => e.correctness) || this.store.dispatch(o(t));
29
+ u(this.store.getState().marks.present, t) || u(e.marks, t) || t && t.find((e) => e.correctness) || this.store.dispatch(i(t));
30
30
  }
31
31
  onStoreChange = () => {
32
- let { marks: e, onChangeMarks: t } = this.props, n = this.store.getState(), r = c(), i = r.type.includes("UNDO") || r.type.includes("REDO");
33
- f(n.marks.present, e) || t(n.marks.present, i);
32
+ let { marks: e, onChangeMarks: t } = this.props, n = this.store.getState(), r = o(), i = r.type.includes("UNDO") || r.type.includes("REDO");
33
+ u(n.marks.present, e) || t(n.marks.present, i);
34
34
  };
35
35
  render() {
36
- let { onChangeMarks: t, marks: n, ...r } = this.props, i = n && n.find((e) => e.correctness);
37
- return i ? /* @__PURE__ */ p(s, {
38
- ...r,
39
- marks: n,
40
- disabled: i
41
- }) : /* @__PURE__ */ p(e, {
36
+ let { onChangeMarks: e, marks: t, ...n } = this.props, r = t && t.find((e) => e.correctness);
37
+ return r ? /* @__PURE__ */ d(a, {
38
+ ...n,
39
+ marks: t,
40
+ disabled: r
41
+ }) : /* @__PURE__ */ d(f, {
42
42
  store: this.store,
43
- children: /* @__PURE__ */ p(m, { ...r })
43
+ children: /* @__PURE__ */ d(m, { ...n })
44
44
  });
45
45
  }
46
46
  };
@@ -2,12 +2,12 @@ import { roundNumber as e } from "./utils.js";
2
2
  import "react";
3
3
  import t from "prop-types";
4
4
  import { types as n } from "@pie-lib/plot";
5
- import { styled as r } from "@mui/material/styles";
6
- import { jsx as i } from "react/jsx-runtime";
5
+ import { jsx as r } from "react/jsx-runtime";
6
+ import { styled as i } from "@mui/material/styles";
7
7
  import { color as a } from "@pie-lib/render-ui";
8
8
  import o from "@mui/material/InputBase";
9
9
  //#region src/coordinates-label.tsx
10
- var s = r(o)(({ theme: e }) => ({
10
+ var s = i(o)(({ theme: e }) => ({
11
11
  fontFamily: e.typography.fontFamily,
12
12
  fontSize: e.typography.fontSize,
13
13
  borderRadius: "8px",
@@ -23,15 +23,15 @@ var s = r(o)(({ theme: e }) => ({
23
23
  left: i.x(t) + 10,
24
24
  top: i.y(n) - s
25
25
  };
26
- }, l = ({ x: t, y: n, graphProps: r }) => {
26
+ }, l = ({ x: t, y: n, graphProps: i }) => {
27
27
  let a = `(${e(t)}, ${e(n)})`, o = (a.length || 0) * 6;
28
- return /* @__PURE__ */ i(s, {
28
+ return /* @__PURE__ */ r(s, {
29
29
  style: {
30
30
  position: "absolute",
31
31
  pointerEvents: "auto",
32
32
  width: o,
33
33
  padding: 0,
34
- ...c(r, t, n, o)
34
+ ...c(i, t, n, o)
35
35
  },
36
36
  value: a,
37
37
  inputProps: { ariaLabel: "naked" }
@@ -6,8 +6,8 @@ import { allTools as a, toolsArr as o } from "./tools/index.js";
6
6
  import s from "react";
7
7
  import c from "prop-types";
8
8
  import { isString as l, uniq as u } from "@pie-element/shared-lodash";
9
- import { styled as d } from "@mui/material/styles";
10
- import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
9
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
10
+ import { styled as m } from "@mui/material/styles";
11
11
  import { color as h } from "@pie-lib/render-ui";
12
12
  import { Accordion as g, AccordionDetails as _, AccordionSummary as v, Typography as y } from "@mui/material";
13
13
  import b from "@mui/icons-material/ExpandMore";
@@ -15,11 +15,11 @@ import b from "@mui/icons-material/ExpandMore";
15
15
  var x = (e) => o.map((t) => ({
16
16
  ...t,
17
17
  toolbar: !!e.find((e) => e === t.type)
18
- })) || [], S = (e, t) => t && e && (e.find((e) => e.type === t.type) || {}).toolbar, C = (e) => e.find((e) => e.toolbar), w = (e) => e.filter((e) => !!a.find((t) => t === e.type)), T = (e, t) => t.filter((t) => !!e.find((e) => e === t.type)), E = (e) => o.find((t) => t.type === e) || null, D = d("div")(() => ({
18
+ })) || [], S = (e, t) => t && e && (e.find((e) => e.type === t.type) || {}).toolbar, C = (e) => e.find((e) => e.toolbar), w = (e) => e.filter((e) => !!a.find((t) => t === e.type)), T = (e, t) => t.filter((t) => !!e.find((e) => e === t.type)), E = (e) => o.find((t) => t.type === e) || null, D = m("div")(() => ({
19
19
  display: "flex",
20
20
  flexDirection: "column",
21
21
  width: "min-content"
22
- })), O = d("div")(() => ({
22
+ })), O = m("div")(() => ({
23
23
  display: "flex",
24
24
  justifyContent: "space-between",
25
25
  padding: "calc(1.25rem - 12px) calc(1.25rem - 12px) 1.25rem",
@@ -30,33 +30,33 @@ var x = (e) => o.map((t) => ({
30
30
  padding: "0.25rem .3rem",
31
31
  width: "5rem"
32
32
  }
33
- })), k = d(g)(() => ({
33
+ })), k = m(g)(() => ({
34
34
  backgroundColor: h.primaryLight(),
35
35
  width: "100%",
36
36
  boxShadow: "none"
37
- })), A = d(v)(({ theme: e }) => ({
37
+ })), A = m(v)(({ theme: e }) => ({
38
38
  padding: `0 ${e.spacing(1)}`,
39
39
  minHeight: "32px !important",
40
40
  "& .MuiAccordionSummary-content": { margin: "4px 0 !important" }
41
- })), j = d(_)(({ theme: e }) => ({
41
+ })), j = m(_)(({ theme: e }) => ({
42
42
  padding: 0,
43
43
  marginTop: e.spacing(1),
44
44
  display: "flex",
45
45
  justifyContent: "space-between"
46
- })), M = d("div")(() => ({
46
+ })), M = m("div")(() => ({
47
47
  display: "flex",
48
48
  flexDirection: "column",
49
49
  marginTop: ".5rem"
50
- })), N = ({ children: e, title: t }) => /* @__PURE__ */ m(k, {
50
+ })), N = ({ children: e, title: t }) => /* @__PURE__ */ p(k, {
51
51
  square: !0,
52
52
  disableGutters: !0,
53
- children: [/* @__PURE__ */ p(A, {
54
- expandIcon: /* @__PURE__ */ p(b, {}),
55
- children: /* @__PURE__ */ p(y, {
53
+ children: [/* @__PURE__ */ f(A, {
54
+ expandIcon: /* @__PURE__ */ f(b, {}),
55
+ children: /* @__PURE__ */ f(y, {
56
56
  variant: "subtitle1",
57
57
  children: t
58
58
  })
59
- }), /* @__PURE__ */ p(j, { children: e })]
59
+ }), /* @__PURE__ */ f(j, { children: e })]
60
60
  });
61
61
  N.propTypes = {
62
62
  children: c.node,
@@ -96,31 +96,31 @@ var P = class extends s.Component {
96
96
  changeCurrentTool = (e, t) => this.setState({ currentTool: t.find((t) => t.type === e) });
97
97
  toggleLabelMode = () => this.setState((e) => ({ labelModeEnabled: !e.labelModeEnabled }));
98
98
  render() {
99
- let { currentTool: n, labelModeEnabled: a } = this.state, { axesSettings: o, className: s, coordinatesOnHover: c, collapsibleToolbar: d, collapsibleToolbarTitle: h, disabled: g, disabledLabels: _, disabledTitle: v, domain: y, labels: b, labelsPlaceholders: E, onChangeLabels: k, onChangeMarks: A, onChangeTitle: j, onUndo: P, onRedo: F, range: I, size: L, showLabels: R, showPixelGuides: z, showTitle: B, title: V, titlePlaceholder: H, language: U, disableToolbar: W = !1, gssLineData: G, onChangeGssLineData: K, onSolutionSetSelected: q, onCustomReset: J } = this.props, { backgroundMarks: Y, marks: X, toolbarTools: Z } = this.props;
99
+ let { currentTool: n, labelModeEnabled: a } = this.state, { axesSettings: o, className: s, coordinatesOnHover: c, collapsibleToolbar: m, collapsibleToolbarTitle: h, disabled: g, disabledLabels: _, disabledTitle: v, domain: y, labels: b, labelsPlaceholders: E, onChangeLabels: k, onChangeMarks: A, onChangeTitle: j, onUndo: P, onRedo: F, range: I, size: L, showLabels: R, showPixelGuides: z, showTitle: B, title: V, titlePlaceholder: H, language: U, disableToolbar: W = !1, gssLineData: G, onChangeGssLineData: K, onSolutionSetSelected: q, onCustomReset: J } = this.props, { backgroundMarks: Y, marks: X, toolbarTools: Z } = this.props;
100
100
  Z = u(Z || []).filter((e) => !!l(e)) || [], Y = w(Y || []), X = T(Z, X || []), G && G.lineA && X[0] && X[0].type === "line" && (X[0].fill = G.lineA.lineType), G && G.lineB && X[1] && X[1].type === "line" && (X[1].fill = G.lineB.lineType);
101
101
  let Q = x(Z);
102
102
  (!n || !S(Q, n)) && (n = C(Q));
103
- let $ = G && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(r, {
103
+ let $ = G && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(r, {
104
104
  numberOfLines: G.numberOfLines,
105
105
  gssLineData: G,
106
106
  onChange: K,
107
107
  disabled: !!g,
108
108
  language: U
109
- }), !g && /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(i, {
109
+ }), !g && /* @__PURE__ */ f(M, { children: /* @__PURE__ */ f(i, {
110
110
  onUndo: P,
111
111
  onRedo: F,
112
112
  onReset: J,
113
113
  language: U
114
114
  }) })] });
115
- return /* @__PURE__ */ m(D, {
115
+ return /* @__PURE__ */ p(D, {
116
116
  className: e(s),
117
117
  children: [
118
- !W && /* @__PURE__ */ p(O, { children: d ? /* @__PURE__ */ p(N, {
118
+ !W && /* @__PURE__ */ f(O, { children: m ? /* @__PURE__ */ f(N, {
119
119
  title: h,
120
120
  children: $
121
121
  }) : $ }),
122
- /* @__PURE__ */ p("div", { ref: (e) => this.labelNode = e }),
123
- /* @__PURE__ */ p(t, {
122
+ /* @__PURE__ */ f("div", { ref: (e) => this.labelNode = e }),
123
+ /* @__PURE__ */ f(t, {
124
124
  axesSettings: o,
125
125
  backgroundMarks: Y,
126
126
  coordinatesOnHover: c,