@pie-lib/graphing-solution-set 5.0.8-next.20261109125924 → 5.0.8-next.20261110063142

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 (90) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +1 -2
  2. package/dist/autosize-input.js +1 -2
  3. package/dist/axis/arrow.js +1 -2
  4. package/dist/axis/axes.js +1 -2
  5. package/dist/bg.js +1 -2
  6. package/dist/container/actions.js +1 -2
  7. package/dist/container/index.js +12 -13
  8. package/dist/container/marks.js +1 -2
  9. package/dist/container/middleware.js +1 -2
  10. package/dist/container/reducer.js +1 -2
  11. package/dist/coordinates-label.js +1 -2
  12. package/dist/graph-with-controls.js +9 -10
  13. package/dist/graph.js +28 -29
  14. package/dist/grid-setup.js +1 -2
  15. package/dist/grid.js +1 -2
  16. package/dist/i18n/ar.js +1 -2
  17. package/dist/i18n/cy.js +1 -2
  18. package/dist/i18n/en-AU.js +1 -2
  19. package/dist/i18n/en-GB.js +1 -2
  20. package/dist/i18n/en-US.js +1 -2
  21. package/dist/i18n/es.js +1 -2
  22. package/dist/i18n/fr.js +1 -2
  23. package/dist/i18n/index.js +1 -2
  24. package/dist/i18n/ja.js +1 -2
  25. package/dist/i18n/ko.js +1 -2
  26. package/dist/i18n/nl-NL.js +1 -2
  27. package/dist/i18n/pt.js +1 -2
  28. package/dist/i18n/ro.js +1 -2
  29. package/dist/i18n/sv.js +1 -2
  30. package/dist/i18n/th-TH.js +1 -2
  31. package/dist/i18n/zh.js +1 -2
  32. package/dist/index.js +5 -5
  33. package/dist/labels.js +1 -2
  34. package/dist/mark-label.js +12 -13
  35. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js +16 -17
  36. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +5 -6
  37. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Ticks.js +5 -6
  38. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/constants/orientation.js +1 -2
  39. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/createPoint.js +1 -2
  40. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -1
  41. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +1 -2
  42. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +1 -2
  43. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickPosition.js +1 -2
  44. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/Grid.js +1 -2
  45. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js +15 -16
  46. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js +15 -16
  47. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +1 -2
  48. package/dist/node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js +1 -2
  49. package/dist/node_modules/.bun/@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js +1 -2
  50. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +1 -2
  51. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js +1 -2
  52. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/toString.js +1 -2
  53. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js +1 -2
  54. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js +1 -2
  55. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/hooks/useText.js +1 -2
  56. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/getStringWidth.js +1 -2
  57. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/memoize.js +1 -2
  58. package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +1 -2
  59. package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +1 -2
  60. package/dist/node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js +1 -2
  61. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +1 -2
  62. package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +1 -2
  63. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +1 -2
  64. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +1 -2
  65. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +1 -2
  66. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +1 -2
  67. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +1 -2
  68. package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +1 -2
  69. package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +1 -2
  70. package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +1 -2
  71. package/dist/node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js +1 -2
  72. package/dist/tool-menu.js +1 -2
  73. package/dist/tools/index.js +1 -2
  74. package/dist/tools/line/component.js +25 -26
  75. package/dist/tools/line/index.js +4 -5
  76. package/dist/tools/polygon/component.js +27 -28
  77. package/dist/tools/polygon/index.js +11 -12
  78. package/dist/tools/polygon/polygon.js +1 -2
  79. package/dist/tools/shared/arrow-head.js +1 -2
  80. package/dist/tools/shared/line/index.js +70 -71
  81. package/dist/tools/shared/point/arrow-point.js +7 -8
  82. package/dist/tools/shared/point/arrow.js +7 -8
  83. package/dist/tools/shared/point/base-point.js +23 -24
  84. package/dist/tools/shared/point/index.js +1 -2
  85. package/dist/tools/shared/styles.js +1 -2
  86. package/dist/tools/shared/types.js +1 -2
  87. package/dist/undo-redo.js +1 -2
  88. package/dist/use-debounce.js +1 -2
  89. package/dist/utils.js +0 -1
  90. package/package.json +12 -12
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
3
3
  let r = {};
4
4
  for (var i in e) t(r, i, {
@@ -16,5 +16,4 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
16
16
  value: n,
17
17
  enumerable: !0
18
18
  }) : o, n));
19
- //#endregion
20
19
  export { o as __commonJSMin, s as __exportAll, l as __toESM };
@@ -1,6 +1,6 @@
1
1
  import e, { useCallback as t, useLayoutEffect as n, useRef as r, useState as i } from "react";
2
2
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
3
- //#region src/autosize-input.tsx
3
+ // src/autosize-input.tsx
4
4
  var s = (e) => {
5
5
  let t = Number.parseFloat(e);
6
6
  return Number.isFinite(t) ? t : 0;
@@ -62,5 +62,4 @@ var s = (e) => {
62
62
  });
63
63
  });
64
64
  l.displayName = "AutosizeInput";
65
- //#endregion
66
65
  export { l as AutosizeInput };
@@ -3,7 +3,7 @@ import t from "prop-types";
3
3
  import { types as n } from "@pie-lib/plot";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  import { styled as i } from "@mui/material/styles";
6
- //#region src/axis/arrow.tsx
6
+ // src/axis/arrow.tsx
7
7
  var a = i("path")(({ theme: e }) => ({ fill: `var(--arrow-color, ${e.palette.common.black})` })), o = class extends e.Component {
8
8
  render() {
9
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})`;
@@ -30,5 +30,4 @@ o.propTypes = {
30
30
  x: 0,
31
31
  direction: "left"
32
32
  };
33
- //#endregion
34
33
  export { o as Arrow, o as default };
package/dist/axis/axes.js CHANGED
@@ -9,7 +9,7 @@ import { Readable as u, color as d } from "@pie-lib/render-ui";
9
9
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
10
10
  import { styled as m } from "@mui/material/styles";
11
11
  import { sanitizeModelHtml as h } from "@pie-element/shared-utils";
12
- //#region src/axis/axes.tsx
12
+ // src/axis/axes.tsx
13
13
  function g(e) {
14
14
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
15
15
  }
@@ -211,5 +211,4 @@ var v = l, y = v.default, b = y && typeof y == "object" ? y : v, x = _(u, "Reada
211
211
  }) : null] });
212
212
  }
213
213
  };
214
- //#endregion
215
214
  export { S as AxisPropTypes, A as RawXAxis, M as RawYAxis, P as default, k as firstNegativeValue, O as sharedValues };
package/dist/bg.js CHANGED
@@ -4,7 +4,7 @@ import r from "prop-types";
4
4
  import { types as i, utils as a } from "@pie-lib/plot";
5
5
  import { jsx as o } from "react/jsx-runtime";
6
6
  import { pointer as s, select as c } from "d3-selection";
7
- //#region src/bg.tsx
7
+ // src/bg.tsx
8
8
  var l = class extends n.Component {
9
9
  static propTypes = {
10
10
  width: r.number.isRequired,
@@ -43,5 +43,4 @@ var l = class extends n.Component {
43
43
  });
44
44
  }
45
45
  };
46
- //#endregion
47
46
  export { l as default };
@@ -1,7 +1,6 @@
1
- //#region src/container/actions.ts
1
+ // src/container/actions.ts
2
2
  var e = (e) => ({
3
3
  type: "CHANGE_MARKS",
4
4
  marks: e
5
5
  });
6
- //#endregion
7
6
  export { e as changeMarks };
@@ -1,7 +1,7 @@
1
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";
2
+ import n from "./reducer.js";
3
+ import { changeMarks as r } from "./actions.js";
4
+ import { ActionCreators as i } from "../node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js";
5
5
  import { GraphWithControls as a } from "../graph-with-controls.js";
6
6
  import { getLastAction as o, lastActionMiddleware as s } from "./middleware.js";
7
7
  import c from "react";
@@ -10,23 +10,23 @@ import { isEqual as u } from "@pie-element/shared-lodash";
10
10
  import { jsx as d } from "react/jsx-runtime";
11
11
  import { Provider as f, connect as p } from "react-redux";
12
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([]))
13
+ onChangeMarks: (t) => e(r(t)),
14
+ onUndo: () => e(i.undo()),
15
+ onRedo: () => e(i.redo()),
16
+ onReset: () => e(r([]))
17
17
  }))(a), h = class extends c.Component {
18
18
  static propTypes = {
19
19
  onChangeMarks: l.func,
20
20
  marks: l.array
21
21
  };
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);
22
+ constructor(r) {
23
+ super(r);
24
+ let i = n();
25
+ this.store = t(i, { marks: r.marks }, e(s)), this.store.subscribe(this.onStoreChange);
26
26
  }
27
27
  componentDidUpdate(e) {
28
28
  let { marks: t } = this.props, n = this.store.getState();
29
- u(n.marks.present, t) || u(e.marks, t) || t && t.find((e) => e.correctness) || this.store.dispatch(i(t));
29
+ u(n.marks.present, t) || u(e.marks, t) || t && t.find((e) => e.correctness) || this.store.dispatch(r(t));
30
30
  }
31
31
  onStoreChange = () => {
32
32
  let { marks: e, onChangeMarks: t } = this.props, n = this.store.getState(), r = o(), i = r.type.includes("UNDO") || r.type.includes("REDO");
@@ -44,5 +44,4 @@ var m = p((e) => ({ marks: e.marks.present }), (e) => ({
44
44
  });
45
45
  }
46
46
  };
47
- //#endregion
48
47
  export { m as GraphContainer, h as default };
@@ -1,4 +1,4 @@
1
- //#region src/container/marks.ts
1
+ // src/container/marks.ts
2
2
  var e = (e = [], t) => {
3
3
  switch (t.type) {
4
4
  case "CHANGE_MARKS":
@@ -7,5 +7,4 @@ var e = (e = [], t) => {
7
7
  default: return e;
8
8
  }
9
9
  };
10
- //#endregion
11
10
  export { e as default };
@@ -1,4 +1,3 @@
1
- //#region src/container/middleware.ts
1
+ // src/container/middleware.ts
2
2
  var e = null, t = () => e, n = () => (t) => (n) => (e = n, t(n));
3
- //#endregion
4
3
  export { t as getLastAction, n as lastActionMiddleware };
@@ -1,7 +1,6 @@
1
1
  import { combineReducers as e } from "../node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js";
2
2
  import t from "./marks.js";
3
3
  import n from "../node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js";
4
- //#region src/container/reducer.ts
4
+ // src/container/reducer.ts
5
5
  var r = () => e({ marks: n(t, { debug: !1 }) });
6
- //#endregion
7
6
  export { r as default };
@@ -5,7 +5,7 @@ import { types as n } from "@pie-lib/plot";
5
5
  import { color as r } from "@pie-lib/render-ui";
6
6
  import { jsx as i } from "react/jsx-runtime";
7
7
  import { styled as a } from "@mui/material/styles";
8
- //#region src/coordinates-label.tsx
8
+ // src/coordinates-label.tsx
9
9
  var o = a("div")(({ theme: e }) => ({
10
10
  fontFamily: e.typography.fontFamily,
11
11
  fontSize: e.typography.fontSize,
@@ -41,5 +41,4 @@ c.propTypes = {
41
41
  x: t.number,
42
42
  y: t.number
43
43
  };
44
- //#endregion
45
44
  export { c as CoordinatesLabel, c as default, s as getLabelPosition };
@@ -1,6 +1,6 @@
1
1
  import { clsx as e } from "./node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
2
- import { Graph as t, graphPropTypes as n } from "./graph.js";
3
- import { ToolMenu as r } from "./tool-menu.js";
2
+ import { ToolMenu as t } from "./tool-menu.js";
3
+ import { Graph as n, graphPropTypes as r } from "./graph.js";
4
4
  import { UndoRedo as i } from "./undo-redo.js";
5
5
  import { allTools as a, toolsArr as o } from "./tools/index.js";
6
6
  import s from "react";
@@ -11,7 +11,7 @@ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
11
11
  import { styled as h } from "@mui/material/styles";
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";
14
- //#region src/graph-with-controls.tsx
14
+ // src/graph-with-controls.tsx
15
15
  var x = (e) => o.map((t) => ({
16
16
  ...t,
17
17
  toolbar: !!e.find((e) => e === t.type)
@@ -64,7 +64,7 @@ N.propTypes = {
64
64
  };
65
65
  var P = class extends s.Component {
66
66
  static propTypes = {
67
- ...n,
67
+ ...r,
68
68
  onUndo: c.func,
69
69
  onRedo: c.func,
70
70
  onReset: c.func,
@@ -96,11 +96,11 @@ 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: r, 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;
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
- (!n || !S(Q, n)) && (n = C(Q));
103
- let $ = G && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(r, {
102
+ r && S(Q, r) || (r = C(Q));
103
+ let $ = G && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(t, {
104
104
  numberOfLines: G.numberOfLines,
105
105
  gssLineData: G,
106
106
  onChange: K,
@@ -120,11 +120,11 @@ var P = class extends s.Component {
120
120
  children: $
121
121
  }) : $ }),
122
122
  /* @__PURE__ */ p("div", { ref: (e) => this.labelNode = e }),
123
- /* @__PURE__ */ p(t, {
123
+ /* @__PURE__ */ p(n, {
124
124
  axesSettings: o,
125
125
  backgroundMarks: Y,
126
126
  coordinatesOnHover: c,
127
- currentTool: n,
127
+ currentTool: r,
128
128
  disabledLabels: _,
129
129
  disabledTitle: v,
130
130
  domain: y,
@@ -152,5 +152,4 @@ var P = class extends s.Component {
152
152
  });
153
153
  }
154
154
  };
155
- //#endregion
156
155
  export { P as GraphWithControls, P as default, w as filterByValidToolTypes, T as filterByVisibleToolTypes, C as getAvailableTool, x as setToolbarAvailability, S as toolIsAvailable };
package/dist/graph.js CHANGED
@@ -1,8 +1,8 @@
1
- import { areArraysOfObjectsEqual as e, isDuplicatedMark as t } from "./utils.js";
2
- import n, { AxisPropTypes as r } from "./axis/axes.js";
3
- import { Grid as i } from "./grid.js";
4
- import { LabelType as a } from "./labels.js";
5
- import o from "./bg.js";
1
+ import e, { AxisPropTypes as t } from "./axis/axes.js";
2
+ import { Grid as n } from "./grid.js";
3
+ import { LabelType as r } from "./labels.js";
4
+ import i from "./bg.js";
5
+ import { areArraysOfObjectsEqual as a, isDuplicatedMark as o } from "./utils.js";
6
6
  import { catalogs as s } from "./i18n/index.js";
7
7
  import c from "react";
8
8
  import l from "prop-types";
@@ -12,9 +12,9 @@ import { createUniqueId as g } from "@pie-lib/render-ui";
12
12
  import { dynamicMessageKey as _ } from "@pie-element/shared-i18n";
13
13
  import v from "debug";
14
14
  import { jsx as y, jsxs as b } from "react/jsx-runtime";
15
- //#region src/graph.tsx
15
+ // src/graph.tsx
16
16
  var x = v("pie-lib:graphing-solution-set:graph"), S = {
17
- axesSettings: l.shape(r),
17
+ axesSettings: l.shape(t),
18
18
  backgroundMarks: l.array,
19
19
  className: l.string,
20
20
  collapsibleToolbar: l.bool,
@@ -22,7 +22,7 @@ var x = v("pie-lib:graphing-solution-set:graph"), S = {
22
22
  disabledLabels: l.bool,
23
23
  disabledTitle: l.bool,
24
24
  domain: m.DomainType,
25
- labels: l.shape(a),
25
+ labels: l.shape(r),
26
26
  labelModeEnabled: l.bool,
27
27
  coordinatesOnHover: l.bool,
28
28
  marks: l.array,
@@ -84,11 +84,11 @@ var x = v("pie-lib:graphing-solution-set:graph"), S = {
84
84
  return g("graph");
85
85
  }
86
86
  componentDidMount = () => this.setState({ labelNode: this.labelNode });
87
- changeMark = (e, n) => {
88
- let { onChangeMarks: r, marks: i, gssLineData: a } = this.props;
89
- if (a?.selectedTool === "solutionSet") return;
90
- let o = u(i), s = o.findIndex((t) => d(t, e));
91
- s >= 0 && !t(n, i, e) && (o.splice(s, 1, n), r(o));
87
+ changeMark = (e, t) => {
88
+ let { onChangeMarks: n, marks: r, gssLineData: i } = this.props;
89
+ if (i?.selectedTool === "solutionSet") return;
90
+ let a = u(r), s = a.findIndex((t) => d(t, e));
91
+ s >= 0 && !o(t, r, e) && (a.splice(s, 1, t), n(a));
92
92
  };
93
93
  completeMark = (e) => {
94
94
  let { currentTool: t, marks: n } = this.props, r = n.filter((e) => e.building)[0];
@@ -96,11 +96,11 @@ var x = v("pie-lib:graphing-solution-set:graph"), S = {
96
96
  let i = t.complete(r, e);
97
97
  this.updateMarks(r, i);
98
98
  };
99
- updateMarks = (e, n, r = !1) => {
100
- let { onChangeMarks: i, marks: a } = this.props, o = u(a);
101
- if (!n || !n.building && t(n, a)) return;
102
- let s = o.findIndex((t) => d(t, e));
103
- s >= 0 ? (o.splice(s, 1, n), i(o)) : r && i([...o, n]);
99
+ updateMarks = (e, t, n = !1) => {
100
+ let { onChangeMarks: r, marks: i } = this.props, a = u(i);
101
+ if (!t || !t.building && o(t, i)) return;
102
+ let s = a.findIndex((t) => d(t, e));
103
+ s >= 0 ? (a.splice(s, 1, t), r(a)) : n && r([...a, t]);
104
104
  };
105
105
  getComponent = (e) => {
106
106
  if (!e) return null;
@@ -128,7 +128,7 @@ var x = v("pie-lib:graphing-solution-set:graph"), S = {
128
128
  }, void 0), this.updateMarks(l, u, !0);
129
129
  };
130
130
  render() {
131
- let { axesSettings: t, currentTool: r, coordinatesOnHover: a, size: s, disabledLabels: c, disabledTitle: l, domain: u, backgroundMarks: d, range: m, title: h, labels: g, labelModeEnabled: _, labelsPlaceholders: v, showLabels: x, showPixelGuides: S, showTitle: w, titlePlaceholder: D, onChangeLabels: O, onChangeTitle: k, mathMlOptions: A = {}, gssLineData: j, disabled: M, language: N } = this.props, { marks: P } = this.props, F = p(u, m, s, () => this.rootNode), I = C(s), L = {
131
+ let { axesSettings: t, currentTool: r, coordinatesOnHover: o, size: s, disabledLabels: c, disabledTitle: l, domain: u, backgroundMarks: d, range: m, title: h, labels: g, labelModeEnabled: _, labelsPlaceholders: v, showLabels: x, showPixelGuides: S, showTitle: w, titlePlaceholder: D, onChangeLabels: O, onChangeTitle: k, mathMlOptions: A = {}, gssLineData: j, disabled: M, language: N } = this.props, { marks: P } = this.props, F = p(u, m, s, () => this.rootNode), I = C(s), L = {
132
132
  graphProps: F,
133
133
  labelModeEnabled: _,
134
134
  gssLineData: j,
@@ -139,16 +139,16 @@ var x = v("pie-lib:graphing-solution-set:graph"), S = {
139
139
  currentTool: r
140
140
  });
141
141
  let R = P.filter((e) => e.type === "polygon");
142
- j && j.selectedTool === "solutionSet" && j.sections.forEach((t) => {
143
- if (R.length === 0 || !e(t, R[0].points)) {
144
- let e = {
142
+ j && j.selectedTool === "solutionSet" && j.sections.forEach((e) => {
143
+ if (R.length === 0 || !a(e, R[0].points)) {
144
+ let t = {
145
145
  type: "polygon",
146
146
  building: !1,
147
147
  closed: !0,
148
- points: t,
148
+ points: e,
149
149
  isSolution: !1
150
150
  };
151
- M || P.push(e);
151
+ M || P.push(t);
152
152
  }
153
153
  });
154
154
  let z = [];
@@ -181,12 +181,12 @@ var x = v("pie-lib:graphing-solution-set:graph"), S = {
181
181
  children: /* @__PURE__ */ b("g", {
182
182
  transform: u && u.padding && u.range ? `translate(${u.padding}, ${m.padding})` : void 0,
183
183
  children: [
184
- /* @__PURE__ */ y(i, { ...L }),
185
- /* @__PURE__ */ y(n, {
184
+ /* @__PURE__ */ y(n, { ...L }),
185
+ /* @__PURE__ */ y(e, {
186
186
  ...t,
187
187
  ...L
188
188
  }),
189
- /* @__PURE__ */ y(o, {
189
+ /* @__PURE__ */ y(i, {
190
190
  ...s,
191
191
  onClick: this.onBgClick,
192
192
  ...L
@@ -218,7 +218,7 @@ var x = v("pie-lib:graphing-solution-set:graph"), S = {
218
218
  let n = this.getComponent(e), i = e.type;
219
219
  return /* @__PURE__ */ y(n, {
220
220
  mark: e,
221
- coordinatesOnHover: a,
221
+ coordinatesOnHover: o,
222
222
  onChange: this.changeMark,
223
223
  onComplete: this.completeMark,
224
224
  onClick: this.onBgClick,
@@ -246,5 +246,4 @@ var x = v("pie-lib:graphing-solution-set:graph"), S = {
246
246
  });
247
247
  }
248
248
  };
249
- //#endregion
250
249
  export { D as Graph, D as default, S as graphPropTypes, E as removeBuildingToolIfCurrentToolDiffers };
@@ -8,7 +8,7 @@ import c from "@pie-lib/editable-html-tip-tap";
8
8
  import { Accordion as l, AccordionDetails as u, AccordionSummary as d, Typography as f } from "@mui/material";
9
9
  import p from "@mui/icons-material/ExpandMore";
10
10
  import { NumberTextFieldCustom as m, Toggle as h } from "@pie-lib/config-ui";
11
- //#region src/grid-setup.tsx
11
+ // src/grid-setup.tsx
12
12
  function g(e) {
13
13
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
14
14
  }
@@ -303,5 +303,4 @@ F.propTypes = {
303
303
  sizeConstraints: e.object,
304
304
  standardGrid: e.bool
305
305
  };
306
- //#endregion
307
306
  export { F as default };
package/dist/grid.js CHANGED
@@ -6,7 +6,7 @@ import i from "react";
6
6
  import a from "prop-types";
7
7
  import { types as o } from "@pie-lib/plot";
8
8
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
9
- //#region src/grid.tsx
9
+ // src/grid.tsx
10
10
  var u = class extends i.Component {
11
11
  static propTypes = {
12
12
  disabled: a.bool,
@@ -55,5 +55,4 @@ var u = class extends i.Component {
55
55
  })] })] });
56
56
  }
57
57
  };
58
- //#endregion
59
58
  export { u as Grid, u as default };
package/dist/i18n/ar.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/ar.ts
1
+ // src/i18n/ar.ts
2
2
  var e = {
3
3
  graph: "رسم بياني إحداثي",
4
4
  axisRange: "المحور {axis} من {min} إلى {max}.",
@@ -22,5 +22,4 @@ var e = {
22
22
  solid: "متصل",
23
23
  dashed: "متقطع"
24
24
  };
25
- //#endregion
26
25
  export { e as default };
package/dist/i18n/cy.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/cy.ts
1
+ // src/i18n/cy.ts
2
2
  var e = {
3
3
  graph: "Graff cyfesurynnau",
4
4
  axisRange: "Echelin {axis} o {min} i {max}.",
@@ -22,5 +22,4 @@ var e = {
22
22
  solid: "Di-dor",
23
23
  dashed: "Toredig"
24
24
  };
25
- //#endregion
26
25
  export { e as default };
@@ -1,4 +1,4 @@
1
- //#region src/i18n/en-AU.ts
1
+ // src/i18n/en-AU.ts
2
2
  var e = {
3
3
  graph: "Coordinate graph",
4
4
  axisRange: "{axis} axis from {min} to {max}.",
@@ -18,5 +18,4 @@ var e = {
18
18
  solid: "Solid",
19
19
  dashed: "Dashed"
20
20
  };
21
- //#endregion
22
21
  export { e as default };
@@ -1,4 +1,4 @@
1
- //#region src/i18n/en-GB.ts
1
+ // src/i18n/en-GB.ts
2
2
  var e = {
3
3
  graph: "Coordinate graph",
4
4
  axisRange: "{axis} axis from {min} to {max}.",
@@ -18,5 +18,4 @@ var e = {
18
18
  solid: "Solid",
19
19
  dashed: "Dashed"
20
20
  };
21
- //#endregion
22
21
  export { e as default };
@@ -1,4 +1,4 @@
1
- //#region src/i18n/en-US.ts
1
+ // src/i18n/en-US.ts
2
2
  var e = {
3
3
  graph: "Coordinate graph",
4
4
  axisRange: "{axis} axis from {min} to {max}.",
@@ -18,5 +18,4 @@ var e = {
18
18
  solid: "Solid",
19
19
  dashed: "Dashed"
20
20
  };
21
- //#endregion
22
21
  export { e as default };
package/dist/i18n/es.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/es.ts
1
+ // src/i18n/es.ts
2
2
  var e = {
3
3
  graph: "Gráfica de coordenadas",
4
4
  axisRange: "Eje {axis} de {min} a {max}.",
@@ -18,5 +18,4 @@ var e = {
18
18
  solid: "Continua",
19
19
  dashed: "Discontinua"
20
20
  };
21
- //#endregion
22
21
  export { e as default };
package/dist/i18n/fr.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/fr.ts
1
+ // src/i18n/fr.ts
2
2
  var e = {
3
3
  graph: "Graphique cartésien",
4
4
  axisRange: "Axe {axis} de {min} à {max}.",
@@ -19,5 +19,4 @@ var e = {
19
19
  solid: "Continue",
20
20
  dashed: "Pointillée"
21
21
  };
22
- //#endregion
23
22
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import e from "./en-US.js";
2
2
  import { defineCatalogs as t } from "@pie-element/shared-i18n";
3
- //#region src/i18n/index.ts
3
+ // src/i18n/index.ts
4
4
  var n = t({
5
5
  packageName: "@pie-lib/graphing-solution-set",
6
6
  source: e,
@@ -63,5 +63,4 @@ var n = t({
63
63
  )
64
64
  }
65
65
  });
66
- //#endregion
67
66
  export { n as catalogs };
package/dist/i18n/ja.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/ja.ts
1
+ // src/i18n/ja.ts
2
2
  var e = {
3
3
  graph: "座標平面のグラフ",
4
4
  axisRange: "{axis}軸:{min}から{max}まで。",
@@ -15,5 +15,4 @@ var e = {
15
15
  solid: "実線",
16
16
  dashed: "破線"
17
17
  };
18
- //#endregion
19
18
  export { e as default };
package/dist/i18n/ko.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/ko.ts
1
+ // src/i18n/ko.ts
2
2
  var e = {
3
3
  graph: "좌표평면 그래프",
4
4
  axisRange: "{axis}축은 {min}부터 {max}까지입니다.",
@@ -15,5 +15,4 @@ var e = {
15
15
  solid: "실선",
16
16
  dashed: "점선"
17
17
  };
18
- //#endregion
19
18
  export { e as default };
@@ -1,4 +1,4 @@
1
- //#region src/i18n/nl-NL.ts
1
+ // src/i18n/nl-NL.ts
2
2
  var e = {
3
3
  graph: "Grafiek in een assenstelsel",
4
4
  axisRange: "{axis}-as van {min} tot {max}.",
@@ -18,5 +18,4 @@ var e = {
18
18
  solid: "Doorgetrokken",
19
19
  dashed: "Gestreept"
20
20
  };
21
- //#endregion
22
21
  export { e as default };
package/dist/i18n/pt.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/pt.ts
1
+ // src/i18n/pt.ts
2
2
  var e = {
3
3
  graph: "Gráfico no plano cartesiano",
4
4
  axisRange: "Eixo {axis} de {min} a {max}.",
@@ -19,5 +19,4 @@ var e = {
19
19
  solid: "Contínua",
20
20
  dashed: "Tracejada"
21
21
  };
22
- //#endregion
23
22
  export { e as default };
package/dist/i18n/ro.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/ro.ts
1
+ // src/i18n/ro.ts
2
2
  var e = {
3
3
  graph: "Grafic în planul de coordonate",
4
4
  axisRange: "Axa {axis} de la {min} la {max}.",
@@ -19,5 +19,4 @@ var e = {
19
19
  solid: "Continuă",
20
20
  dashed: "Întreruptă"
21
21
  };
22
- //#endregion
23
22
  export { e as default };
package/dist/i18n/sv.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/sv.ts
1
+ // src/i18n/sv.ts
2
2
  var e = {
3
3
  graph: "Koordinatsystem",
4
4
  axisRange: "{axis}-axeln från {min} till {max}.",
@@ -18,5 +18,4 @@ var e = {
18
18
  solid: "Heldragen",
19
19
  dashed: "Streckad"
20
20
  };
21
- //#endregion
22
21
  export { e as default };
@@ -1,4 +1,4 @@
1
- //#region src/i18n/th-TH.ts
1
+ // src/i18n/th-TH.ts
2
2
  var e = {
3
3
  graph: "กราฟบนระนาบพิกัด",
4
4
  axisRange: "แกน {axis} ตั้งแต่ {min} ถึง {max}",
@@ -15,5 +15,4 @@ var e = {
15
15
  solid: "เส้นทึบ",
16
16
  dashed: "เส้นประ"
17
17
  };
18
- //#endregion
19
18
  export { e as default };
package/dist/i18n/zh.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/zh.ts
1
+ // src/i18n/zh.ts
2
2
  var e = {
3
3
  graph: "坐标图",
4
4
  axisRange: "{axis} 轴范围为 {min} 至 {max}。",
@@ -15,5 +15,4 @@ var e = {
15
15
  solid: "实线",
16
16
  dashed: "虚线"
17
17
  };
18
- //#endregion
19
18
  export { e as default };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Graph as e } from "./graph.js";
2
- import { ToolMenu as t } from "./tool-menu.js";
3
- import { tools_exports as n } from "./tools/index.js";
4
- import r from "./container/index.js";
5
- import i from "./grid-setup.js";
6
- export { e as Graph, r as GraphContainer, i as GridSetup, t as ToolMenu, n as tools };
2
+ import t from "./container/index.js";
3
+ import n from "./grid-setup.js";
4
+ import { tools_exports as r } from "./tools/index.js";
5
+ import { ToolMenu as i } from "./tool-menu.js";
6
+ export { e as Graph, t as GraphContainer, n as GridSetup, i as ToolMenu, r as tools };
package/dist/labels.js CHANGED
@@ -7,7 +7,7 @@ import { Readable as a, color as o } from "@pie-lib/render-ui";
7
7
  import { Fragment as s, jsx as c } from "react/jsx-runtime";
8
8
  import { styled as l } from "@mui/material/styles";
9
9
  import u from "@pie-lib/editable-html-tip-tap";
10
- //#region src/labels.tsx
10
+ // src/labels.tsx
11
11
  function d(e) {
12
12
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
13
13
  }
@@ -130,5 +130,4 @@ var p = i, m = p.default, h = m && typeof m == "object" ? m : p, g = f(a, "Reada
130
130
  }, a)) });
131
131
  }
132
132
  });
133
- //#endregion
134
133
  export { w as LabelType, C as default, v as getTransform };