@pie-lib/graphing 4.0.5-next.30 → 4.0.5-next.32

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 (53) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +3 -3
  2. package/dist/axis/arrow.js +1 -1
  3. package/dist/axis/axes.js +6 -6
  4. package/dist/container/index.js +4 -4
  5. package/dist/container/reducer.js +1 -1
  6. package/dist/coordinates-label.js +1 -1
  7. package/dist/graph-with-controls.js +4 -4
  8. package/dist/graph.js +2 -2
  9. package/dist/grid-setup.js +8 -8
  10. package/dist/grid.js +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/labels.js +1 -1
  13. package/dist/mark-label.d.ts +2 -0
  14. package/dist/mark-label.js +99 -69
  15. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +1 -1
  16. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +1 -1
  17. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +1 -1
  18. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +1 -1
  19. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +1 -1
  20. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +1 -1
  21. package/dist/node_modules/.bun/@visx_vendor@4.0.0/node_modules/@visx/vendor/esm/d3-shape.js +8 -0
  22. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +1 -1
  23. package/dist/node_modules/.bun/react-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js +7 -7
  24. package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +1 -1
  25. package/dist/node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js +2 -2
  26. package/dist/toggle-bar.js +1 -1
  27. package/dist/tool-menu.js +3 -3
  28. package/dist/tools/circle/bg-circle.js +2 -2
  29. package/dist/tools/circle/component.d.ts +5 -0
  30. package/dist/tools/circle/component.js +30 -17
  31. package/dist/tools/index.js +1 -1
  32. package/dist/tools/line/component.js +2 -2
  33. package/dist/tools/point/component.d.ts +2 -0
  34. package/dist/tools/point/component.js +16 -10
  35. package/dist/tools/point/index.js +1 -1
  36. package/dist/tools/polygon/component.d.ts +5 -0
  37. package/dist/tools/polygon/component.js +27 -18
  38. package/dist/tools/polygon/index.js +1 -1
  39. package/dist/tools/polygon/line.js +1 -1
  40. package/dist/tools/polygon/polygon.js +3 -3
  41. package/dist/tools/ray/component.js +2 -2
  42. package/dist/tools/segment/component.js +1 -1
  43. package/dist/tools/shared/line/index.d.ts +10 -4
  44. package/dist/tools/shared/line/index.js +27 -14
  45. package/dist/tools/shared/line/line-path.js +2 -2
  46. package/dist/tools/shared/line/with-root-edge.d.ts +10 -4
  47. package/dist/tools/shared/line/with-root-edge.js +3 -3
  48. package/dist/tools/shared/point/base-point.js +1 -1
  49. package/dist/tools/vector/component.js +1 -1
  50. package/dist/undo-redo.js +2 -2
  51. package/dist/utils.js +1 -1
  52. package/package.json +16 -11
  53. package/dist/node_modules/.bun/@visx_curve@3.12.0/node_modules/@visx/curve/esm/index.js +0 -2
@@ -24,6 +24,10 @@ export declare const rootEdgeComponent: (RootEdgeComp: any) => {
24
24
  };
25
25
  export declare const withRootEdge: (getPoints: any) => {
26
26
  new (props: {}): {
27
+ state: {
28
+ editingLabel: null;
29
+ };
30
+ componentDidUpdate(prevProps: any): void;
27
31
  onChangePoint: any;
28
32
  dragComp: ({ from: draggedFrom, to: draggedTo }: {
29
33
  from: any;
@@ -32,6 +36,7 @@ export declare const withRootEdge: (getPoints: any) => {
32
36
  dragFrom: any;
33
37
  dragTo: any;
34
38
  labelChange: any;
39
+ stopEditingLabel: any;
35
40
  clickPoint: any;
36
41
  input: {};
37
42
  render(): React.JSX.Element;
@@ -39,7 +44,6 @@ export declare const withRootEdge: (getPoints: any) => {
39
44
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
40
45
  forceUpdate(callback?: (() => void) | undefined): void;
41
46
  readonly props: Readonly<{}>;
42
- state: Readonly<{}>;
43
47
  refs: {
44
48
  [key: string]: React.ReactInstance;
45
49
  };
@@ -48,7 +52,6 @@ export declare const withRootEdge: (getPoints: any) => {
48
52
  componentWillUnmount?(): void;
49
53
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
50
54
  getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
51
- componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
52
55
  componentWillMount?(): void;
53
56
  UNSAFE_componentWillMount?(): void;
54
57
  componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
@@ -57,6 +60,10 @@ export declare const withRootEdge: (getPoints: any) => {
57
60
  UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
58
61
  };
59
62
  new (props: {}, context: any): {
63
+ state: {
64
+ editingLabel: null;
65
+ };
66
+ componentDidUpdate(prevProps: any): void;
60
67
  onChangePoint: any;
61
68
  dragComp: ({ from: draggedFrom, to: draggedTo }: {
62
69
  from: any;
@@ -65,6 +72,7 @@ export declare const withRootEdge: (getPoints: any) => {
65
72
  dragFrom: any;
66
73
  dragTo: any;
67
74
  labelChange: any;
75
+ stopEditingLabel: any;
68
76
  clickPoint: any;
69
77
  input: {};
70
78
  render(): React.JSX.Element;
@@ -72,7 +80,6 @@ export declare const withRootEdge: (getPoints: any) => {
72
80
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
73
81
  forceUpdate(callback?: (() => void) | undefined): void;
74
82
  readonly props: Readonly<{}>;
75
- state: Readonly<{}>;
76
83
  refs: {
77
84
  [key: string]: React.ReactInstance;
78
85
  };
@@ -81,7 +88,6 @@ export declare const withRootEdge: (getPoints: any) => {
81
88
  componentWillUnmount?(): void;
82
89
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
83
90
  getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
84
- componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
85
91
  componentWillMount?(): void;
86
92
  UNSAFE_componentWillMount?(): void;
87
93
  componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
@@ -1,5 +1,5 @@
1
1
  import { LinePath as e } from "./line-path.js";
2
- import { curveMonotoneX as t } from "../../../node_modules/.bun/@visx_curve@3.12.0/node_modules/@visx/curve/esm/index.js";
2
+ import { d3_shape_exports as t } from "../../../node_modules/.bun/@visx_vendor@4.0.0/node_modules/@visx/vendor/esm/d3-shape.js";
3
3
  import { lineBase as n, lineToolComponent as r } from "./index.js";
4
4
  import "react";
5
5
  import i from "prop-types";
@@ -46,7 +46,7 @@ var s = (e) => {
46
46
  data: _,
47
47
  from: a,
48
48
  to: s,
49
- curve: t,
49
+ curve: t.curveMonotoneX,
50
50
  ...v,
51
51
  ...m
52
52
  }) : /* @__PURE__ */ o(e, {
@@ -70,4 +70,4 @@ var s = (e) => {
70
70
  }, r;
71
71
  }, f = (e) => n(d(e));
72
72
  //#endregion
73
- export { u as rootEdgeComponent, f as withRootEdge };
73
+ export { u as rootEdgeComponent, l as rootEdgeToFromToWrapper, f as withRootEdge };
@@ -1,5 +1,5 @@
1
1
  import { thinnerShapesNeeded as e } from "../../../utils.js";
2
- import t from "../../../coordinates-label.js";
2
+ import { CoordinatesLabel as t } from "../../../coordinates-label.js";
3
3
  import n from "../icons/MissingSVG.js";
4
4
  import r from "../icons/CorrectSVG.js";
5
5
  import i from "../icons/IncorrectSVG.js";
@@ -41,4 +41,4 @@ u.propTypes = {
41
41
  };
42
42
  var d = r(n(u, { to: t }));
43
43
  //#endregion
44
- export { d as default };
44
+ export { u as Line, d as default };
package/dist/undo-redo.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "./node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
2
2
  import t from "react";
3
3
  import n from "prop-types";
4
4
  import { styled as r } from "@mui/material/styles";
@@ -44,4 +44,4 @@ var { translator: l } = c, u = r(s)(({ theme: e }) => ({
44
44
  }
45
45
  };
46
46
  //#endregion
47
- export { d as default };
47
+ export { d as UndoRedo, d as default };
package/dist/utils.js CHANGED
@@ -72,4 +72,4 @@ var d = c.bounds, f = c.point, p = () => 0, m = () => 0, h = (e) => {
72
72
  });
73
73
  };
74
74
  //#endregion
75
- export { v as amountToIncreaseWidth, m as arrowDimensions, d as bounds, g as countWords, E as equalPoints, _ as findLongestWord, k as getAdjustedGraphLimits, p as getAngleDeg, A as getDistanceBetweenTwoPoints, C as getMiddleOfTwoPoints, S as getRightestPoints, h as getTickValues, F as isDuplicatedMark, b as lineToArea, f as point, y as polygonToArea, w as roundNumber, T as sameAxes, u as stripEmptyLabel, O as thinnerShapesNeeded };
75
+ export { v as amountToIncreaseWidth, m as arrowDimensions, d as bounds, g as countWords, E as equalPoints, _ as findLongestWord, k as getAdjustedGraphLimits, p as getAngleDeg, A as getDistanceBetweenTwoPoints, C as getMiddleOfTwoPoints, S as getRightestPoints, h as getTickValues, F as isDuplicatedMark, b as lineToArea, f as point, x as pointsToArea, y as polygonToArea, w as roundNumber, T as sameAxes, u as stripEmptyLabel, O as thinnerShapesNeeded };
package/package.json CHANGED
@@ -1,23 +1,28 @@
1
1
  {
2
2
  "name": "@pie-lib/graphing",
3
- "version": "4.0.5-next.30",
3
+ "version": "4.0.5-next.32",
4
4
  "description": "Graphing components",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/pie-framework/pie-elements-ng.git",
8
+ "directory": "packages/lib-react/graphing"
9
+ },
5
10
  "dependencies": {
6
11
  "@dnd-kit/sortable": "10.0.0",
7
12
  "@emotion/react": "^11.14.0",
8
- "@emotion/style": "^0.8.0",
13
+ "@emotion/styled": "^11.14.1",
9
14
  "@mapbox/point-geometry": "^1.1.0",
10
15
  "@mui/icons-material": "^7.3.4",
11
16
  "@mui/material": "^7.3.4",
12
- "@pie-lib/drag": "4.0.3-next.37",
13
- "@pie-lib/editable-html-tip-tap": "2.1.2-next.30",
14
- "@pie-lib/graphing-utils": "3.0.3-next.0",
15
- "@pie-lib/plot": "4.0.4-next.30",
16
- "@pie-lib/render-ui": "6.1.1-next.37",
17
- "@pie-lib/translator": "4.0.3-next.0",
17
+ "@pie-lib/drag": "4.0.3-next.39",
18
+ "@pie-lib/editable-html-tip-tap": "2.1.2-next.32",
19
+ "@pie-lib/graphing-utils": "3.0.3-next.2",
20
+ "@pie-lib/plot": "4.0.4-next.32",
21
+ "@pie-lib/render-ui": "6.1.1-next.39",
22
+ "@pie-lib/translator": "4.0.3-next.2",
18
23
  "@visx/axis": "^3.0.0",
19
24
  "@visx/clip-path": "^3.0.0",
20
- "@visx/curve": "^3.0.0",
25
+ "@visx/curve": "^4.0.0",
21
26
  "@visx/event": "^3.0.0",
22
27
  "@visx/grid": "^3.0.0",
23
28
  "@visx/group": "^3.0.0",
@@ -32,8 +37,8 @@
32
37
  "react-redux": "^9.3.0",
33
38
  "redux": "^5.0.1",
34
39
  "redux-undo": "^1.1.0",
35
- "@pie-element/shared-lodash": "0.1.1-next.0",
36
- "@pie-lib/config-ui": "13.0.4-next.30",
40
+ "@pie-element/shared-lodash": "0.1.1-next.1",
41
+ "@pie-lib/config-ui": "13.0.4-next.32",
37
42
  "@dnd-kit/core": "^6.3.1",
38
43
  "@dnd-kit/utilities": "^3.2.2",
39
44
  "clsx": "^2.1.1",
@@ -1,2 +0,0 @@
1
- import { curveMonotoneX as e } from "d3-shape";
2
- export { e as curveMonotoneX };