@genai-fi/base 4.0.4 → 4.1.0
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/SvgLayer-BWQvvvqo.js +50 -0
- package/dist/assets/SvgLayer.css +1 -1
- package/dist/components/Button/Button.d.ts +3 -0
- package/dist/components/Button/Button.js +9 -1
- package/dist/components/WorkflowLayout/Layout.js +1 -1
- package/dist/components/WorkflowLayout/SvgLayer.d.ts +1 -0
- package/dist/components/WorkflowLayout/SvgLayer.js +1 -1
- package/dist/components/WorkflowLayout/index.js +1 -1
- package/dist/components/WorkflowLayout/lines.d.ts +3 -0
- package/dist/components/WorkflowLayout/lines.js +31 -30
- package/dist/main.d.ts +1 -1
- package/dist/main.js +61 -60
- package/package.json +1 -1
- package/dist/SvgLayer-DQQ6Pb5G.js +0 -37
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import './assets/SvgLayer.css';const e = "_svglayer_qfgw7_3", x = "_workspace_qfgw7_10", w = "_container_qfgw7_19", _ = "_annotation_qfgw7_48", h = {
|
|
3
|
+
svglayer: e,
|
|
4
|
+
workspace: x,
|
|
5
|
+
container: w,
|
|
6
|
+
annotation: _
|
|
7
|
+
}, d = 0.4, s = 40;
|
|
8
|
+
function $({ lines: y }) {
|
|
9
|
+
return /* @__PURE__ */ o(
|
|
10
|
+
"svg",
|
|
11
|
+
{
|
|
12
|
+
className: h.svglayer,
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
width: "100%",
|
|
15
|
+
height: "100%",
|
|
16
|
+
"aria-hidden": !0,
|
|
17
|
+
children: y.map((t, r) => {
|
|
18
|
+
const n = t.direction === "horizontal" ? Math.abs(t.x1 - t.x2) * d : 0, c = t.direction === "vertical" ? Math.abs(t.y1 - t.y2) * d : 0, a = Math.max(Math.abs(t.x1 - t.x2), Math.abs(t.y1 - t.y2));
|
|
19
|
+
return /* @__PURE__ */ g("g", { children: [
|
|
20
|
+
/* @__PURE__ */ o(
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
"data-testid": `line-${t.id1}-${t.id2}`,
|
|
24
|
+
d: `M ${t.x1} ${t.y1} C ${t.x1 + n} ${t.y1 + c}, ${t.x2 - n} ${t.y2 - c}, ${t.x2} ${t.y2}`,
|
|
25
|
+
fill: "none",
|
|
26
|
+
stroke: "rgb(174, 37, 174)",
|
|
27
|
+
strokeWidth: "2",
|
|
28
|
+
strokeDasharray: void 0
|
|
29
|
+
},
|
|
30
|
+
r
|
|
31
|
+
),
|
|
32
|
+
t.annotationElement && /* @__PURE__ */ o(
|
|
33
|
+
"foreignObject",
|
|
34
|
+
{
|
|
35
|
+
x: (t.x1 + t.x2) / 2 - (a - s) / 2,
|
|
36
|
+
y: (t.y1 + t.y2) / 2 - (a - s) / 2,
|
|
37
|
+
width: a - s,
|
|
38
|
+
height: a - s,
|
|
39
|
+
children: /* @__PURE__ */ o("div", { className: h.annotation, children: t.annotationElement })
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] }, `annotation-${r}`);
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
$ as S,
|
|
49
|
+
h as s
|
|
50
|
+
};
|
package/dist/assets/SvgLayer.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._svglayer_qfgw7_3{position:absolute;left:0;top:0;pointer-events:none}._workspace_qfgw7_10{overflow:auto;max-width:100%;max-height:100%;height:100%;width:100%;position:relative}._container_qfgw7_19{overflow:auto;min-height:100%;background:#dfe5e8;display:grid;gap:3rem;padding:2rem;box-sizing:border-box;grid-template-columns:repeat(6,max-content);min-width:100%;width:max-content;justify-content:center;position:relative;align-items:center}@media only screen and (max-height: 500px),(max-width: 700px){._svglayer_qfgw7_3{display:none}._container_qfgw7_19{display:flex;flex-direction:column;padding:1rem 0;width:100%}}._annotation_qfgw7_48{display:flex;align-items:center;justify-content:center;width:100%;height:100%;text-align:center}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare const Button: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
2
|
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
3
3
|
}, "disabled" | "className" | "style" | "classes" | "children" | "color" | "sx" | "tabIndex" | "href" | "action" | "loading" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loadingIndicator" | "loadingPosition" | "startIcon" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
|
+
export declare const VerticalButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
6
|
+
}, "disabled" | "className" | "style" | "classes" | "children" | "color" | "sx" | "tabIndex" | "href" | "action" | "loading" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loadingIndicator" | "loadingPosition" | "startIcon" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
7
|
export declare const LargeButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
5
8
|
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
6
9
|
}, "disabled" | "className" | "style" | "classes" | "children" | "color" | "sx" | "tabIndex" | "href" | "action" | "loading" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loadingIndicator" | "loadingPosition" | "startIcon" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -3,6 +3,13 @@ import { B as o } from "../../Button-BeUmwrlS.js";
|
|
|
3
3
|
const e = t(o)({
|
|
4
4
|
textTransform: "none"
|
|
5
5
|
}), s = t(o)({
|
|
6
|
+
flexDirection: "column",
|
|
7
|
+
padding: "5px 8px",
|
|
8
|
+
"& .MuiButton-startIcon": {
|
|
9
|
+
margin: "0"
|
|
10
|
+
},
|
|
11
|
+
textTransform: "none"
|
|
12
|
+
}), a = t(o)({
|
|
6
13
|
textTransform: "none",
|
|
7
14
|
fontWeight: "bold",
|
|
8
15
|
fontSize: "1.2rem",
|
|
@@ -10,5 +17,6 @@ const e = t(o)({
|
|
|
10
17
|
});
|
|
11
18
|
export {
|
|
12
19
|
e as Button,
|
|
13
|
-
|
|
20
|
+
a as LargeButton,
|
|
21
|
+
s as VerticalButton
|
|
14
22
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p, useRef as l, useEffect as v } from "react";
|
|
3
3
|
import { extractNodesFromElements as y, generateLines as g } from "./lines.js";
|
|
4
|
-
import { s as u, S as h } from "../../SvgLayer-
|
|
4
|
+
import { s as u, S as h } from "../../SvgLayer-BWQvvvqo.js";
|
|
5
5
|
function k({ children: n, connections: i }) {
|
|
6
6
|
const [f, m] = p([]), r = l(null), t = l();
|
|
7
7
|
return v(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as r } from "./Layout.js";
|
|
2
2
|
import { extractNodesFromElements as a, generateLines as f } from "./lines.js";
|
|
3
3
|
import { Widget as s } from "./Widget.js";
|
|
4
|
-
import { S as p } from "../../SvgLayer-
|
|
4
|
+
import { S as p } from "../../SvgLayer-BWQvvvqo.js";
|
|
5
5
|
export {
|
|
6
6
|
p as SvgLayer,
|
|
7
7
|
s as Widget,
|
|
@@ -11,7 +11,10 @@ export type ConnectionPoint = 'left' | 'right' | 'top' | 'bottom';
|
|
|
11
11
|
export interface IConnection {
|
|
12
12
|
start: string;
|
|
13
13
|
startPoint: ConnectionPoint;
|
|
14
|
+
startOffset?: number;
|
|
14
15
|
end: string;
|
|
15
16
|
endPoint: ConnectionPoint;
|
|
17
|
+
endOffset?: number;
|
|
18
|
+
annotationElement?: React.ReactNode;
|
|
16
19
|
}
|
|
17
20
|
export declare function generateLines(data: Map<string, INode[]>, connections: IConnection[]): ILine[];
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
var d,
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
for (let
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
else if (
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
(
|
|
1
|
+
var d, c;
|
|
2
|
+
const a = ((c = (d = globalThis == null ? void 0 : globalThis.process) == null ? void 0 : d.env) == null ? void 0 : c.NODE_ENV) === "test";
|
|
3
|
+
function g(s, f) {
|
|
4
|
+
var t;
|
|
5
|
+
const i = f || /* @__PURE__ */ new Map();
|
|
6
|
+
for (let h = 0; h < s.children.length; ++h) {
|
|
7
|
+
const n = s.children[h], e = n.getAttribute("data-widget");
|
|
8
|
+
if (e === "container")
|
|
9
|
+
g(n, i);
|
|
10
|
+
else if (e) {
|
|
11
|
+
i.has(e) || i.set(e, []);
|
|
12
|
+
const o = n.offsetWidth, r = n.offsetHeight;
|
|
13
|
+
(a || o > 0 && r > 0) && ((t = i.get(e)) == null || t.push({ x: n.offsetLeft, y: n.offsetTop, width: o, height: r, id: n.id || "noid" }));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return i;
|
|
17
17
|
}
|
|
18
|
-
function l(s,
|
|
19
|
-
const
|
|
20
|
-
for (const
|
|
21
|
-
const
|
|
22
|
-
for (const
|
|
23
|
-
for (const
|
|
24
|
-
|
|
25
|
-
id1:
|
|
26
|
-
id2:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
18
|
+
function l(s, f) {
|
|
19
|
+
const i = [];
|
|
20
|
+
for (const t of f) {
|
|
21
|
+
const h = s.get(t.start) || [], n = s.get(t.end) || [];
|
|
22
|
+
for (const e of h)
|
|
23
|
+
for (const o of n)
|
|
24
|
+
i.push({
|
|
25
|
+
id1: e.id,
|
|
26
|
+
id2: o.id,
|
|
27
|
+
annotationElement: t.annotationElement,
|
|
28
|
+
x1: t.startPoint === "left" ? e.x : t.startPoint === "right" ? e.x + e.width : e.x + e.width / 2 + (t.startOffset || 0) * (e.width / 2),
|
|
29
|
+
x2: t.endPoint === "left" ? o.x : t.endPoint === "right" ? o.x + o.width : o.x + o.width / 2 + (t.endOffset || 0) * (o.width / 2),
|
|
30
|
+
y1: t.startPoint === "top" ? e.y : t.startPoint === "bottom" ? e.y + e.height : e.y + e.height / 2 + (t.startOffset || 0) * (e.height / 2),
|
|
31
|
+
y2: t.endPoint === "top" ? o.y : t.endPoint === "bottom" ? o.y + o.height : o.y + o.height / 2 + (t.endOffset || 0) * (o.height / 2),
|
|
32
|
+
direction: t.startPoint === "top" || t.startPoint === "bottom" ? "vertical" : "horizontal"
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
|
-
return
|
|
35
|
+
return i;
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
g as extractNodesFromElements,
|
|
38
39
|
l as generateLines
|
|
39
40
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as ConnectionStatus } from './components/ConnectionStatus/ConnectionStatus';
|
|
2
|
-
export { Button, LargeButton } from './components/Button/Button';
|
|
2
|
+
export { Button, LargeButton, VerticalButton } from './components/Button/Button';
|
|
3
3
|
export { default as usePeer } from './hooks/peer';
|
|
4
4
|
export type { SenderType, PeerEvent, PeerErrorType, PeerStatus, BuiltinEvent, Connection, PeerConnectionType, } from './services/peer2peer/types';
|
|
5
5
|
export { default as Peer2Peer } from './services/peer2peer/Peer2Peer';
|
package/dist/main.js
CHANGED
|
@@ -1,74 +1,75 @@
|
|
|
1
1
|
import { default as o } from "./components/ConnectionStatus/ConnectionStatus.js";
|
|
2
|
-
import { Button as t, LargeButton as f } from "./components/Button/Button.js";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { useID as
|
|
6
|
-
import { useOnlyOnce as
|
|
7
|
-
import { default as
|
|
8
|
-
import { theme as
|
|
9
|
-
import { default as
|
|
10
|
-
import { canvasFromDataTransfer as P, canvasFromFile as S, canvasFromImage as
|
|
11
|
-
import { createZipBlob as
|
|
12
|
-
import { useTabActive as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
2
|
+
import { Button as t, LargeButton as f, VerticalButton as m } from "./components/Button/Button.js";
|
|
3
|
+
import { default as p } from "./hooks/peer.js";
|
|
4
|
+
import { default as l } from "./services/peer2peer/Peer2Peer.js";
|
|
5
|
+
import { useID as x } from "./hooks/id.js";
|
|
6
|
+
import { useOnlyOnce as c } from "./hooks/onlyOnce.js";
|
|
7
|
+
import { default as F } from "./hooks/random.js";
|
|
8
|
+
import { theme as I } from "./style/theme.js";
|
|
9
|
+
import { default as B } from "./util/randomId.js";
|
|
10
|
+
import { canvasFromDataTransfer as P, canvasFromFile as S, canvasFromImage as y, canvasFromURL as T, canvasesFromFiles as b, cropTo as A, urlFromDataTransfer as C } from "./util/canvas.js";
|
|
11
|
+
import { createZipBlob as M, loadZipFile as R, saveZipFile as W } from "./util/zip.js";
|
|
12
|
+
import { useTabActive as O } from "./hooks/useTabActive.js";
|
|
13
|
+
import { default as k } from "./components/Spinner/Spinner.js";
|
|
14
|
+
import { default as E } from "./components/Privacy/Privacy.js";
|
|
15
|
+
import { default as Q } from "./components/BusyButton/BusyButton.js";
|
|
16
|
+
import { default as V } from "./components/AlertPara/AlertPara.js";
|
|
17
17
|
import { default as q } from "./components/QRCode/QRCode.js";
|
|
18
18
|
import { default as G } from "./components/Webcam/Webcam.js";
|
|
19
19
|
import { default as J } from "./components/ContentLoader/ContentLoader.js";
|
|
20
|
-
import { default as
|
|
21
|
-
import { extractNodesFromElements as
|
|
22
|
-
import { Widget as
|
|
23
|
-
import { S as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
20
|
+
import { default as X } from "./components/WorkflowLayout/Layout.js";
|
|
21
|
+
import { extractNodesFromElements as _, generateLines as $ } from "./components/WorkflowLayout/lines.js";
|
|
22
|
+
import { Widget as re } from "./components/WorkflowLayout/Widget.js";
|
|
23
|
+
import { S as ae } from "./SvgLayer-BWQvvvqo.js";
|
|
24
|
+
import { default as fe } from "./components/LangSelect/LangSelect.js";
|
|
25
|
+
import { default as se } from "./components/IconMenu/Spacer.js";
|
|
26
|
+
import { default as ue } from "./components/IconMenu/IconMenu.js";
|
|
27
|
+
import { default as ne } from "./components/IconMenu/IconMenuInline.js";
|
|
28
|
+
import { default as de } from "./components/IconMenu/Item.js";
|
|
29
|
+
import { default as ie } from "./components/PercentageBar/PercentageBar.js";
|
|
30
|
+
import { default as ve } from "./components/PieScore/PieScore.js";
|
|
31
|
+
import { default as ge } from "./components/Application/Application.js";
|
|
32
32
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
V as AlertPara,
|
|
34
|
+
ge as Application,
|
|
35
|
+
Q as BusyButton,
|
|
36
36
|
t as Button,
|
|
37
37
|
o as ConnectionStatus,
|
|
38
38
|
J as ContentLoader,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
ue as IconMenu,
|
|
40
|
+
ne as IconMenuInline,
|
|
41
|
+
de as IconMenuItem,
|
|
42
|
+
fe as LangSelect,
|
|
43
43
|
f as LargeButton,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
l as Peer2Peer,
|
|
45
|
+
ie as PercentageBar,
|
|
46
|
+
ve as PieScore,
|
|
47
|
+
E as Privacy,
|
|
48
48
|
q as QRCode,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
se as Spacer,
|
|
50
|
+
k as Spinner,
|
|
51
|
+
ae as SvgLayer,
|
|
52
|
+
m as VerticalButton,
|
|
52
53
|
G as Webcam,
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
re as Widget,
|
|
55
|
+
X as WorkflowLayout,
|
|
55
56
|
P as canvasFromDataTransfer,
|
|
56
57
|
S as canvasFromFile,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
58
|
+
y as canvasFromImage,
|
|
59
|
+
T as canvasFromURL,
|
|
60
|
+
b as canvasesFromFiles,
|
|
61
|
+
M as createZipBlob,
|
|
62
|
+
A as cropTo,
|
|
63
|
+
_ as extractNodesFromElements,
|
|
64
|
+
$ as generateLines,
|
|
65
|
+
R as loadZipFile,
|
|
66
|
+
B as randomId,
|
|
67
|
+
W as saveZipFile,
|
|
68
|
+
I as theme,
|
|
69
|
+
C as urlFromDataTransfer,
|
|
70
|
+
x as useID,
|
|
71
|
+
c as useOnlyOnce,
|
|
72
|
+
p as usePeer,
|
|
73
|
+
F as useRandom,
|
|
74
|
+
O as useTabActive
|
|
74
75
|
};
|
package/package.json
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import './assets/SvgLayer.css';const d = "_svglayer_yu6sc_3", n = "_workspace_yu6sc_10", y = "_container_yu6sc_19", i = {
|
|
3
|
-
svglayer: d,
|
|
4
|
-
workspace: n,
|
|
5
|
-
container: y
|
|
6
|
-
}, a = 20;
|
|
7
|
-
function h({ lines: c }) {
|
|
8
|
-
return /* @__PURE__ */ o(
|
|
9
|
-
"svg",
|
|
10
|
-
{
|
|
11
|
-
className: i.svglayer,
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
width: "100%",
|
|
14
|
-
height: "100%",
|
|
15
|
-
"aria-hidden": !0,
|
|
16
|
-
children: c.map((t, e) => {
|
|
17
|
-
const r = t.direction === "horizontal" ? a : 0, s = t.direction === "vertical" ? a : 0;
|
|
18
|
-
return /* @__PURE__ */ o(
|
|
19
|
-
"path",
|
|
20
|
-
{
|
|
21
|
-
"data-testid": `line-${t.id1}-${t.id2}`,
|
|
22
|
-
d: `M ${t.x1} ${t.y1} C ${t.x1 + r} ${t.y1 + s}, ${t.x2 - r} ${t.y2 - s}, ${t.x2} ${t.y2}`,
|
|
23
|
-
fill: "none",
|
|
24
|
-
stroke: "rgb(174, 37, 174)",
|
|
25
|
-
strokeWidth: "2",
|
|
26
|
-
strokeDasharray: void 0
|
|
27
|
-
},
|
|
28
|
-
e
|
|
29
|
-
);
|
|
30
|
-
})
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
h as S,
|
|
36
|
-
i as s
|
|
37
|
-
};
|