@pie-lib/graphing 5.0.7-next.20261019183544 → 5.0.7-next.20261020021947

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.
@@ -38,6 +38,7 @@ declare class RawCircle extends React.Component {
38
38
  export declare const BgCircle: typeof RawCircle;
39
39
  declare const _default: {
40
40
  new (props: any): {
41
+ nodeRef: React.RefObject<unknown>;
41
42
  grid: any;
42
43
  onStart: any;
43
44
  position: any;
@@ -47,6 +47,7 @@ declare class RawLine extends React.Component {
47
47
  export declare const Line: typeof RawLine;
48
48
  declare const _default: {
49
49
  new (props: any): {
50
+ nodeRef: React.RefObject<unknown>;
50
51
  grid: any;
51
52
  onStart: any;
52
53
  position: any;
@@ -44,6 +44,7 @@ export declare class RawPolygon extends React.Component {
44
44
  export declare const Polygon: typeof RawPolygon;
45
45
  declare const _default: {
46
46
  new (props: any): {
47
+ nodeRef: React.RefObject<unknown>;
47
48
  grid: any;
48
49
  onStart: any;
49
50
  position: any;
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export declare const ArrowHead: {
4
4
  ({ size, transform, points, disabled, correctness }: {
5
- size: any;
6
- transform: any;
7
- points: any;
5
+ size?: number | undefined;
6
+ transform?: string | undefined;
7
+ points?: string | undefined;
8
8
  disabled: any;
9
9
  correctness: any;
10
10
  }): React.JSX.Element;
@@ -15,16 +15,11 @@ export declare const ArrowHead: {
15
15
  disabled: PropTypes.Requireable<boolean>;
16
16
  correctness: PropTypes.Requireable<string>;
17
17
  };
18
- defaultProps: {
19
- points: string;
20
- size: number;
21
- transform: string;
22
- };
23
18
  };
24
19
  export declare const ArrowMarker: {
25
20
  ({ id, size, className, disabled, correctness }: {
26
21
  id: any;
27
- size: any;
22
+ size?: number | undefined;
28
23
  className: any;
29
24
  disabled: any;
30
25
  correctness: any;
@@ -36,7 +31,4 @@ export declare const ArrowMarker: {
36
31
  disabled: PropTypes.Requireable<boolean>;
37
32
  correctness: PropTypes.Requireable<string>;
38
33
  };
39
- defaultProps: {
40
- size: number;
41
- };
42
34
  };
@@ -16,7 +16,7 @@ var i = r("polygon")(({ disabled: e, correctness: n }) => ({
16
16
  ...n === "correct" && { fill: t.correctWithIcon() },
17
17
  ...n === "incorrect" && { fill: t.incorrectWithIcon() },
18
18
  ...n === "missing" && { fill: t.missingWithIcon() }
19
- } })), o = ({ size: e, transform: t, points: r, disabled: a, correctness: o }) => /* @__PURE__ */ n(i, {
19
+ } })), o = ({ size: e = 10, transform: t = "", points: r = "", disabled: a, correctness: o }) => /* @__PURE__ */ n(i, {
20
20
  points: r || `0,0 ${e},${e / 2} 0,${e}`,
21
21
  transform: t,
22
22
  disabled: a,
@@ -28,12 +28,8 @@ o.propTypes = {
28
28
  transform: e.string,
29
29
  disabled: e.bool,
30
30
  correctness: e.string
31
- }, o.defaultProps = {
32
- points: "",
33
- size: 10,
34
- transform: ""
35
31
  };
36
- var s = ({ id: e, size: t, className: r, disabled: i, correctness: s }) => {
32
+ var s = ({ id: e, size: t = 5, className: r, disabled: i, correctness: s }) => {
37
33
  let c = i || r?.includes("disabled"), l = s || (r?.includes("incorrect") ? "incorrect" : r?.includes("correct") ? "correct" : r?.includes("missing") ? "missing" : null);
38
34
  return /* @__PURE__ */ n(a, {
39
35
  id: e,
@@ -58,6 +54,6 @@ s.propTypes = {
58
54
  className: e.string,
59
55
  disabled: e.bool,
60
56
  correctness: e.string
61
- }, s.defaultProps = { size: 5 };
57
+ };
62
58
  //#endregion
63
59
  export { o as ArrowHead, s as ArrowMarker };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  export declare const BasePoint: {
3
3
  new (props: any): {
4
+ nodeRef: React.RefObject<unknown>;
4
5
  grid: any;
5
6
  onStart: any;
6
7
  position: any;
@@ -70,6 +71,7 @@ export declare const BasePoint: {
70
71
  };
71
72
  export declare const ArrowPoint: {
72
73
  new (props: any): {
74
+ nodeRef: React.RefObject<unknown>;
73
75
  grid: any;
74
76
  onStart: any;
75
77
  position: any;
@@ -139,6 +141,7 @@ export declare const ArrowPoint: {
139
141
  };
140
142
  export declare const Arrow: {
141
143
  new (props: any): {
144
+ nodeRef: React.RefObject<unknown>;
142
145
  grid: any;
143
146
  onStart: any;
144
147
  position: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/graphing",
3
- "version": "5.0.7-next.20261019183544",
3
+ "version": "5.0.7-next.20261020021947",
4
4
  "description": "Graphing components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,11 +15,11 @@
15
15
  "@mui/icons-material": "^7.3.4",
16
16
  "@mui/material": "^7.3.4",
17
17
  "@pie-element/shared-utils": "0.1.6-next.20261019151920",
18
- "@pie-lib/drag": "5.0.7-next.20261019183544",
19
- "@pie-lib/editable-html-tip-tap": "3.1.2-next.20261019183544",
18
+ "@pie-lib/drag": "5.0.7-next.20261019223635",
19
+ "@pie-lib/editable-html-tip-tap": "3.1.2-next.20261019223635",
20
20
  "@pie-lib/graphing-utils": "4.0.2-next.20261019151920",
21
- "@pie-lib/plot": "5.0.7-next.20261019183544",
22
- "@pie-lib/render-ui": "8.0.7-next.20261019183544",
21
+ "@pie-lib/plot": "5.0.7-next.20261020021947",
22
+ "@pie-lib/render-ui": "8.0.7-next.20261019223635",
23
23
  "@pie-lib/translator": "5.0.2-next.20261019155156",
24
24
  "@visx/axis": "^4.0.0",
25
25
  "@visx/clip-path": "^4.0.0",
@@ -34,12 +34,12 @@
34
34
  "debug": "^4.1.1",
35
35
  "invariant": "^2.2.4",
36
36
  "prop-types": "^15.7.2",
37
- "react-draggable": "^4.7.1",
37
+ "react-draggable": "^4.7.2",
38
38
  "react-redux": "^9.3.0",
39
39
  "redux": "^5.0.1",
40
40
  "redux-undo": "^1.1.0",
41
41
  "@pie-element/shared-lodash": "0.1.3-next.20261019151920",
42
- "@pie-lib/config-ui": "14.0.7-next.20261019183544",
42
+ "@pie-lib/config-ui": "14.0.7-next.20261019223635",
43
43
  "@dnd-kit/core": "^6.3.1",
44
44
  "@dnd-kit/utilities": "^3.2.2",
45
45
  "clsx": "^2.1.1",