@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.
- package/dist/tools/circle/bg-circle.d.ts +1 -0
- package/dist/tools/polygon/line.d.ts +1 -0
- package/dist/tools/polygon/polygon.d.ts +1 -0
- package/dist/tools/shared/arrow-head.d.ts +4 -12
- package/dist/tools/shared/arrow-head.js +3 -7
- package/dist/tools/shared/point/index.d.ts +3 -0
- package/package.json +7 -7
|
@@ -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
|
|
6
|
-
transform
|
|
7
|
-
points
|
|
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
|
|
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
|
-
}
|
|
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.
|
|
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.
|
|
19
|
-
"@pie-lib/editable-html-tip-tap": "3.1.2-next.
|
|
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.
|
|
22
|
-
"@pie-lib/render-ui": "8.0.7-next.
|
|
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.
|
|
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.
|
|
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",
|