@multiplatform.one/node-graph 11.10.4 → 11.11.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/cjs/edges/GraphEdge.cjs +9 -2
- package/dist/cjs/edges/GraphEdge.native.cjs +9 -2
- package/dist/cjs/edges/GraphEdge.native.js +9 -2
- package/dist/cjs/edges/GraphEdge.native.js.map +1 -1
- package/dist/cjs/edges/edgePath.cjs +36 -5
- package/dist/cjs/edges/edgePath.native.cjs +39 -6
- package/dist/cjs/edges/edgePath.native.js +39 -6
- package/dist/cjs/edges/edgePath.native.js.map +1 -1
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/index.native.cjs +2 -0
- package/dist/cjs/index.native.js +2 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/native/canvasReport.cjs +37 -0
- package/dist/cjs/native/canvasReport.native.cjs +39 -0
- package/dist/cjs/native/canvasReport.native.js +41 -0
- package/dist/cjs/native/canvasReport.native.js.map +1 -0
- package/dist/esm/edges/GraphEdge.mjs +10 -3
- package/dist/esm/edges/GraphEdge.mjs.map +1 -1
- package/dist/esm/edges/GraphEdge.native.js +10 -3
- package/dist/esm/edges/GraphEdge.native.js.map +1 -1
- package/dist/esm/edges/edgePath.mjs +34 -5
- package/dist/esm/edges/edgePath.mjs.map +1 -1
- package/dist/esm/edges/edgePath.native.js +37 -6
- package/dist/esm/edges/edgePath.native.js.map +1 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/index.native.js +2 -1
- package/dist/esm/native/canvasReport.mjs +14 -0
- package/dist/esm/native/canvasReport.mjs.map +1 -0
- package/dist/esm/native/canvasReport.native.js +14 -0
- package/dist/esm/native/canvasReport.native.js.map +1 -0
- package/dist/jsx/edges/GraphEdge.mjs +10 -3
- package/dist/jsx/edges/GraphEdge.mjs.map +1 -1
- package/dist/jsx/edges/GraphEdge.native.cjs +9 -2
- package/dist/jsx/edges/GraphEdge.native.js +9 -2
- package/dist/jsx/edges/GraphEdge.native.js.map +1 -1
- package/dist/jsx/edges/edgePath.mjs +34 -5
- package/dist/jsx/edges/edgePath.mjs.map +1 -1
- package/dist/jsx/edges/edgePath.native.cjs +39 -6
- package/dist/jsx/edges/edgePath.native.js +39 -6
- package/dist/jsx/edges/edgePath.native.js.map +1 -1
- package/dist/jsx/index.js +2 -1
- package/dist/jsx/index.mjs +2 -1
- package/dist/jsx/index.native.cjs +2 -0
- package/dist/jsx/index.native.js +2 -0
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/native/canvasReport.mjs +14 -0
- package/dist/jsx/native/canvasReport.mjs.map +1 -0
- package/dist/jsx/native/canvasReport.native.cjs +39 -0
- package/dist/jsx/native/canvasReport.native.js +41 -0
- package/dist/jsx/native/canvasReport.native.js.map +1 -0
- package/package.json +7 -7
- package/src/dom/NodeGraphDomInner.tsx +2 -0
- package/src/dom/wire.ts +6 -0
- package/src/edges/GraphEdge.deferredRouting.spec.tsx +67 -0
- package/src/edges/GraphEdge.tsx +17 -3
- package/src/edges/edgePath.spec.ts +51 -0
- package/src/edges/edgePath.ts +47 -4
- package/src/index.native.ts +2 -0
- package/src/index.ts +2 -0
- package/src/native/NodeGraph.native.tsx +28 -7
- package/src/native/canvasReport.spec.tsx +141 -0
- package/src/native/canvasReport.ts +53 -0
- package/types/dom/NodeGraphDomInner.d.ts.map +1 -1
- package/types/dom/wire.d.ts +6 -0
- package/types/dom/wire.d.ts.map +1 -1
- package/types/edges/GraphEdge.d.ts.map +1 -1
- package/types/edges/edgePath.d.ts +16 -0
- package/types/edges/edgePath.d.ts.map +1 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/types/index.native.d.ts +2 -0
- package/types/index.native.d.ts.map +1 -1
- package/types/native/NodeGraph.native.d.ts.map +1 -1
- package/types/native/canvasReport.d.ts +42 -0
- package/types/native/canvasReport.d.ts.map +1 -0
|
@@ -34,6 +34,7 @@ var import_react = require("react");
|
|
|
34
34
|
var import_tamagui = require("tamagui");
|
|
35
35
|
var import_xy = require("../react-flow/xy.cjs");
|
|
36
36
|
var import_edgePath = require("./edgePath.cjs");
|
|
37
|
+
var import_edgeRoute = require("./edgeRoute.cjs");
|
|
37
38
|
var import_edgeStyle = require("./edgeStyle.cjs");
|
|
38
39
|
var import_useEdgeObstacles = require("./useEdgeObstacles.cjs");
|
|
39
40
|
var import_edgePath2 = require("./edgePath.cjs");
|
|
@@ -56,6 +57,11 @@ function useStrokeValue(stroke) {
|
|
|
56
57
|
const value = entry?.get?.();
|
|
57
58
|
return typeof value === "string" ? value : "currentColor";
|
|
58
59
|
}
|
|
60
|
+
const unroutedObstacles = {
|
|
61
|
+
boxes: [],
|
|
62
|
+
clearance: import_edgeRoute.edgeClearance,
|
|
63
|
+
links: []
|
|
64
|
+
};
|
|
59
65
|
function GraphEdgeComponent(props) {
|
|
60
66
|
const data = props.data ?? {};
|
|
61
67
|
const { borderWidth, animation } = useEdgeKnobs();
|
|
@@ -67,6 +73,7 @@ function GraphEdgeComponent(props) {
|
|
|
67
73
|
});
|
|
68
74
|
const strokeValue = useStrokeValue(style.stroke);
|
|
69
75
|
const obstacles = (0, import_useEdgeObstacles.useEdgeObstacles)();
|
|
76
|
+
const routedObstacles = (0, import_react.useDeferredValue)(obstacles, unroutedObstacles);
|
|
70
77
|
const { sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition } = props;
|
|
71
78
|
const [d, labelX, labelY] = (0, import_react.useMemo)(() => (0, import_edgePath.buildEdgePath)(style.path, {
|
|
72
79
|
sourceX,
|
|
@@ -75,7 +82,7 @@ function GraphEdgeComponent(props) {
|
|
|
75
82
|
targetY,
|
|
76
83
|
sourcePosition,
|
|
77
84
|
targetPosition
|
|
78
|
-
},
|
|
85
|
+
}, routedObstacles), [
|
|
79
86
|
style.path,
|
|
80
87
|
sourceX,
|
|
81
88
|
sourceY,
|
|
@@ -83,7 +90,7 @@ function GraphEdgeComponent(props) {
|
|
|
83
90
|
targetY,
|
|
84
91
|
sourcePosition,
|
|
85
92
|
targetPosition,
|
|
86
|
-
|
|
93
|
+
routedObstacles
|
|
87
94
|
]);
|
|
88
95
|
const label = data.label ?? (typeof props.label === "string" ? props.label : void 0);
|
|
89
96
|
const markerId = `mp-graph-arrow-${(0, import_react.useId)().replace(/[^a-zA-Z0-9_-]/g, "")}`;
|
|
@@ -37,6 +37,7 @@ var import_react = require("react");
|
|
|
37
37
|
var import_tamagui = require("tamagui");
|
|
38
38
|
var import_xy = require("../react-flow/xy.native.js");
|
|
39
39
|
var import_edgePath = require("./edgePath.native.js");
|
|
40
|
+
var import_edgeRoute = require("./edgeRoute.native.js");
|
|
40
41
|
var import_edgeStyle = require("./edgeStyle.native.js");
|
|
41
42
|
var import_useEdgeObstacles = require("./useEdgeObstacles.native.js");
|
|
42
43
|
var import_edgePath2 = require("./edgePath.native.js");
|
|
@@ -59,6 +60,11 @@ function useStrokeValue(stroke) {
|
|
|
59
60
|
var value = entry === null || entry === void 0 ? void 0 : (_entry_get = entry.get) === null || _entry_get === void 0 ? void 0 : _entry_get.call(entry);
|
|
60
61
|
return typeof value === "string" ? value : "currentColor";
|
|
61
62
|
}
|
|
63
|
+
var unroutedObstacles = {
|
|
64
|
+
boxes: [],
|
|
65
|
+
clearance: import_edgeRoute.edgeClearance,
|
|
66
|
+
links: []
|
|
67
|
+
};
|
|
62
68
|
function GraphEdgeComponent(props) {
|
|
63
69
|
var _props_data, _data_kind, _data_label;
|
|
64
70
|
var data = (_props_data = props.data) !== null && _props_data !== void 0 ? _props_data : {};
|
|
@@ -71,6 +77,7 @@ function GraphEdgeComponent(props) {
|
|
|
71
77
|
});
|
|
72
78
|
var strokeValue = useStrokeValue(style.stroke);
|
|
73
79
|
var obstacles = (0, import_useEdgeObstacles.useEdgeObstacles)();
|
|
80
|
+
var routedObstacles = (0, import_react.useDeferredValue)(obstacles, unroutedObstacles);
|
|
74
81
|
var { sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition } = props;
|
|
75
82
|
var [d, labelX, labelY] = (0, import_react.useMemo)(function() {
|
|
76
83
|
return (0, import_edgePath.buildEdgePath)(style.path, {
|
|
@@ -80,7 +87,7 @@ function GraphEdgeComponent(props) {
|
|
|
80
87
|
targetY,
|
|
81
88
|
sourcePosition,
|
|
82
89
|
targetPosition
|
|
83
|
-
},
|
|
90
|
+
}, routedObstacles);
|
|
84
91
|
}, [
|
|
85
92
|
style.path,
|
|
86
93
|
sourceX,
|
|
@@ -89,7 +96,7 @@ function GraphEdgeComponent(props) {
|
|
|
89
96
|
targetY,
|
|
90
97
|
sourcePosition,
|
|
91
98
|
targetPosition,
|
|
92
|
-
|
|
99
|
+
routedObstacles
|
|
93
100
|
]);
|
|
94
101
|
var label = (_data_label = data.label) !== null && _data_label !== void 0 ? _data_label : typeof props.label === "string" ? props.label : void 0;
|
|
95
102
|
var markerId = `mp-graph-arrow-${(0, import_react.useId)().replace(/[^a-zA-Z0-9_-]/g, "")}`;
|
|
@@ -37,6 +37,7 @@ var import_react = require("react");
|
|
|
37
37
|
var import_tamagui = require("tamagui");
|
|
38
38
|
var import_xy = require("../react-flow/xy.native.js");
|
|
39
39
|
var import_edgePath = require("./edgePath.native.js");
|
|
40
|
+
var import_edgeRoute = require("./edgeRoute.native.js");
|
|
40
41
|
var import_edgeStyle = require("./edgeStyle.native.js");
|
|
41
42
|
var import_useEdgeObstacles = require("./useEdgeObstacles.native.js");
|
|
42
43
|
var import_edgePath2 = require("./edgePath.native.js");
|
|
@@ -59,6 +60,11 @@ function useStrokeValue(stroke) {
|
|
|
59
60
|
var value = entry === null || entry === void 0 ? void 0 : (_entry_get = entry.get) === null || _entry_get === void 0 ? void 0 : _entry_get.call(entry);
|
|
60
61
|
return typeof value === "string" ? value : "currentColor";
|
|
61
62
|
}
|
|
63
|
+
var unroutedObstacles = {
|
|
64
|
+
boxes: [],
|
|
65
|
+
clearance: import_edgeRoute.edgeClearance,
|
|
66
|
+
links: []
|
|
67
|
+
};
|
|
62
68
|
function GraphEdgeComponent(props) {
|
|
63
69
|
var _props_data, _data_kind, _data_label;
|
|
64
70
|
var data = (_props_data = props.data) !== null && _props_data !== void 0 ? _props_data : {};
|
|
@@ -71,6 +77,7 @@ function GraphEdgeComponent(props) {
|
|
|
71
77
|
});
|
|
72
78
|
var strokeValue = useStrokeValue(style.stroke);
|
|
73
79
|
var obstacles = (0, import_useEdgeObstacles.useEdgeObstacles)();
|
|
80
|
+
var routedObstacles = (0, import_react.useDeferredValue)(obstacles, unroutedObstacles);
|
|
74
81
|
var { sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition } = props;
|
|
75
82
|
var [d, labelX, labelY] = (0, import_react.useMemo)(function() {
|
|
76
83
|
return (0, import_edgePath.buildEdgePath)(style.path, {
|
|
@@ -80,7 +87,7 @@ function GraphEdgeComponent(props) {
|
|
|
80
87
|
targetY,
|
|
81
88
|
sourcePosition,
|
|
82
89
|
targetPosition
|
|
83
|
-
},
|
|
90
|
+
}, routedObstacles);
|
|
84
91
|
}, [
|
|
85
92
|
style.path,
|
|
86
93
|
sourceX,
|
|
@@ -89,7 +96,7 @@ function GraphEdgeComponent(props) {
|
|
|
89
96
|
targetY,
|
|
90
97
|
sourcePosition,
|
|
91
98
|
targetPosition,
|
|
92
|
-
|
|
99
|
+
routedObstacles
|
|
93
100
|
]);
|
|
94
101
|
var label = (_data_label = data.label) !== null && _data_label !== void 0 ? _data_label : typeof props.label === "string" ? props.label : void 0;
|
|
95
102
|
var markerId = `mp-graph-arrow-${(0, import_react.useId)().replace(/[^a-zA-Z0-9_-]/g, "")}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphEdge.native.js","names":[],"sources":["cjs/edges/GraphEdge.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar GraphEdge_exports = {};\n__export(GraphEdge_exports, {\n GraphEdge: () => GraphEdge,\n GraphEdgeComponent: () => GraphEdgeComponent,\n buildEdgePath: () => import_edgePath2.buildEdgePath,\n graphEdgeType: () => graphEdgeType,\n graphEdgeTypes: () => graphEdgeTypes,\n useEdgeKnobs: () => useEdgeKnobs\n});\nmodule.exports = __toCommonJS(GraphEdge_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_theme = require(\"@multiplatform.one/theme\");\nvar import_theme2 = require(\"@multiplatform.one/theme\");\nvar import_react = require(\"react\");\nvar import_tamagui = require(\"tamagui\");\nvar import_xy = require(\"../react-flow/xy\");\nvar import_edgePath = require(\"./edgePath\");\nvar import_edgeStyle = require(\"./edgeStyle\");\nvar import_useEdgeObstacles = require(\"./useEdgeObstacles\");\nvar import_edgePath2 = require(\"./edgePath\");\nvar graphEdgeType = \"mpGraphEdge\";\nfunction useEdgeKnobs() {\n var preset = (0, import_theme.usePresetContext)();\n var knobs = preset ? {\n ...preset.preset.knobs,\n ...preset.overrides\n } : import_theme2.defaultKnobs;\n return {\n borderWidth: knobs.borderWidth,\n animation: knobs.animation\n };\n}\nfunction useStrokeValue(stroke) {\n var _entry_get;\n var theme = (0, import_tamagui.useTheme)();\n var entry = theme[(0, import_edgeStyle.themeTokenName)(stroke)];\n var value = entry === null || entry === void 0 ? void 0 : (_entry_get = entry.get) === null || _entry_get === void 0 ? void 0 : _entry_get.call(entry);\n return typeof value === \"string\" ? value : \"currentColor\";\n}\nfunction GraphEdgeComponent(props) {\n var _props_data, _data_kind, _data_label;\n var data = (_props_data = props.data) !== null && _props_data !== void 0 ? _props_data : {};\n var { borderWidth, animation } = useEdgeKnobs();\n var style = (0, import_edgeStyle.resolveEdgeStyle)({\n kind: (_data_kind = data.kind) !== null && _data_kind !== void 0 ? _data_kind : \"flow\",\n appearance: data.appearance,\n borderWidth,\n animation\n });\n var strokeValue = useStrokeValue(style.stroke);\n var obstacles = (0, import_useEdgeObstacles.useEdgeObstacles)();\n var { sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition } = props;\n var [d, labelX, labelY] = (0, import_react.useMemo)(function() {\n return (0, import_edgePath.buildEdgePath)(style.path, {\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourcePosition,\n targetPosition\n }, obstacles);\n }, [\n style.path,\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourcePosition,\n targetPosition,\n obstacles\n ]);\n var label = (_data_label = data.label) !== null && _data_label !== void 0 ? _data_label : typeof props.label === \"string\" ? props.label : void 0;\n var markerId = `mp-graph-arrow-${(0, import_react.useId)().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n var ownMarker = props.markerEnd === void 0;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {\n children: [\n ownMarker ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"defs\", {\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"marker\", {\n id: markerId,\n className: \"mp-graph-arrowhead\",\n \"data-graph-edge-marker\": style.marker,\n viewBox: import_edgeStyle.edgeArrowhead.viewBox,\n markerWidth: import_edgeStyle.edgeArrowhead.size,\n markerHeight: import_edgeStyle.edgeArrowhead.size,\n markerUnits: \"strokeWidth\",\n orient: \"auto-start-reverse\",\n refX: import_edgeStyle.edgeArrowhead.refX,\n refY: import_edgeStyle.edgeArrowhead.refY,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"polyline\", {\n points: import_edgeStyle.edgeArrowhead.points[style.marker],\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n style: {\n stroke: `var(--mp-graph-edge-stroke, ${strokeValue})`,\n strokeWidth: 1,\n fill: style.marker === \"arrowclosed\" ? `var(--mp-graph-edge-stroke, ${strokeValue})` : \"none\"\n }\n })\n })\n }) : null,\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_xy.BaseEdge, {\n id: props.id,\n path: d,\n // The head is drawn here, in the edge's own stroke, unless the edge\n // object brought its own React Flow marker (`edgeMarkerEnd`).\n markerEnd: ownMarker ? `url(#${markerId})` : props.markerEnd,\n style: {\n stroke: `var(--mp-graph-edge-stroke, ${strokeValue})`,\n strokeWidth: style.strokeWidth,\n strokeDasharray: style.strokeDasharray,\n animation: style.animation,\n ...props.style\n }\n }),\n label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EdgeLabel, {\n label,\n x: labelX,\n y: labelY\n }) : null\n ]\n });\n}\nfunction EdgeLabel(param) {\n var { label, x, y } = param;\n var { knobProps } = (0, import_theme.useResolvedKnobs)({\n component: \"GraphEdge\"\n });\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_xy.EdgeLabelRenderer, {\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.View, {\n className: \"mp-graph-edge-label\",\n position: \"absolute\",\n transform: `translate(-50%, -50%) translate(${x}px, ${y}px)`,\n pointerEvents: \"none\",\n ...knobProps.surface,\n ...knobProps.borderRadiusNested,\n ...knobProps.panelPadding,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, {\n ...knobProps.body,\n children: label\n })\n })\n });\n}\nvar GraphEdge = /* @__PURE__ */ (0, import_react.memo)(GraphEdgeComponent);\nvar graphEdgeTypes = {\n [graphEdgeType]: GraphEdge\n};\n//# sourceMappingURL=GraphEdge.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,O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Ae,GAAG,aAAa,iBAAgB,CAAE,EACrD,WAAW,YACb,CAAC;CACD,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,UAAU,mBAAmB,EAC9E,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,MAAM;EACzE,WAAW;EACX,UAAU;EACV,WAAW,mCAAmC,EAAE,MAAM,EAAE;EACxD,eAAe;EACf,GAAG,UAAU;EACb,GAAG,UAAU;EACb,GAAG,UAAU;EACb,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,aAAa;GAChF,GAAG,UAAU;GACb,UAAU;EACZ,CAAC;CACH,CAAC,EACH,CAAC;AACH;AACA,IAAI,YAA4B,iBAAC,GAAG,aAAa,KAAI,CAAE,kBAAkB;AACzE,IAAI,iBAAiB,GAClB,gBAAgB,UACnB"}
|
|
1
|
+
{"version":3,"file":"GraphEdge.native.js","names":[],"sources":["cjs/edges/GraphEdge.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar GraphEdge_exports = {};\n__export(GraphEdge_exports, {\n GraphEdge: () => GraphEdge,\n GraphEdgeComponent: () => GraphEdgeComponent,\n buildEdgePath: () => import_edgePath2.buildEdgePath,\n graphEdgeType: () => graphEdgeType,\n graphEdgeTypes: () => graphEdgeTypes,\n useEdgeKnobs: () => useEdgeKnobs\n});\nmodule.exports = __toCommonJS(GraphEdge_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_theme = require(\"@multiplatform.one/theme\");\nvar import_theme2 = require(\"@multiplatform.one/theme\");\nvar import_react = require(\"react\");\nvar import_tamagui = require(\"tamagui\");\nvar import_xy = require(\"../react-flow/xy\");\nvar import_edgePath = require(\"./edgePath\");\nvar import_edgeRoute = require(\"./edgeRoute\");\nvar import_edgeStyle = require(\"./edgeStyle\");\nvar import_useEdgeObstacles = require(\"./useEdgeObstacles\");\nvar import_edgePath2 = require(\"./edgePath\");\nvar graphEdgeType = \"mpGraphEdge\";\nfunction useEdgeKnobs() {\n var preset = (0, import_theme.usePresetContext)();\n var knobs = preset ? {\n ...preset.preset.knobs,\n ...preset.overrides\n } : import_theme2.defaultKnobs;\n return {\n borderWidth: knobs.borderWidth,\n animation: knobs.animation\n };\n}\nfunction useStrokeValue(stroke) {\n var _entry_get;\n var theme = (0, import_tamagui.useTheme)();\n var entry = theme[(0, import_edgeStyle.themeTokenName)(stroke)];\n var value = entry === null || entry === void 0 ? void 0 : (_entry_get = entry.get) === null || _entry_get === void 0 ? void 0 : _entry_get.call(entry);\n return typeof value === \"string\" ? value : \"currentColor\";\n}\nvar unroutedObstacles = {\n boxes: [],\n clearance: import_edgeRoute.edgeClearance,\n links: []\n};\nfunction GraphEdgeComponent(props) {\n var _props_data, _data_kind, _data_label;\n var data = (_props_data = props.data) !== null && _props_data !== void 0 ? _props_data : {};\n var { borderWidth, animation } = useEdgeKnobs();\n var style = (0, import_edgeStyle.resolveEdgeStyle)({\n kind: (_data_kind = data.kind) !== null && _data_kind !== void 0 ? _data_kind : \"flow\",\n appearance: data.appearance,\n borderWidth,\n animation\n });\n var strokeValue = useStrokeValue(style.stroke);\n var obstacles = (0, import_useEdgeObstacles.useEdgeObstacles)();\n var routedObstacles = (0, import_react.useDeferredValue)(obstacles, unroutedObstacles);\n var { sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition } = props;\n var [d, labelX, labelY] = (0, import_react.useMemo)(function() {\n return (0, import_edgePath.buildEdgePath)(style.path, {\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourcePosition,\n targetPosition\n }, routedObstacles);\n }, [\n style.path,\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourcePosition,\n targetPosition,\n routedObstacles\n ]);\n var label = (_data_label = data.label) !== null && _data_label !== void 0 ? _data_label : typeof props.label === \"string\" ? props.label : void 0;\n var markerId = `mp-graph-arrow-${(0, import_react.useId)().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n var ownMarker = props.markerEnd === void 0;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {\n children: [\n ownMarker ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"defs\", {\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"marker\", {\n id: markerId,\n className: \"mp-graph-arrowhead\",\n \"data-graph-edge-marker\": style.marker,\n viewBox: import_edgeStyle.edgeArrowhead.viewBox,\n markerWidth: import_edgeStyle.edgeArrowhead.size,\n markerHeight: import_edgeStyle.edgeArrowhead.size,\n markerUnits: \"strokeWidth\",\n orient: \"auto-start-reverse\",\n refX: import_edgeStyle.edgeArrowhead.refX,\n refY: import_edgeStyle.edgeArrowhead.refY,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"polyline\", {\n points: import_edgeStyle.edgeArrowhead.points[style.marker],\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n style: {\n stroke: `var(--mp-graph-edge-stroke, ${strokeValue})`,\n strokeWidth: 1,\n fill: style.marker === \"arrowclosed\" ? `var(--mp-graph-edge-stroke, ${strokeValue})` : \"none\"\n }\n })\n })\n }) : null,\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_xy.BaseEdge, {\n id: props.id,\n path: d,\n // The head is drawn here, in the edge's own stroke, unless the edge\n // object brought its own React Flow marker (`edgeMarkerEnd`).\n markerEnd: ownMarker ? `url(#${markerId})` : props.markerEnd,\n style: {\n stroke: `var(--mp-graph-edge-stroke, ${strokeValue})`,\n strokeWidth: style.strokeWidth,\n strokeDasharray: style.strokeDasharray,\n animation: style.animation,\n ...props.style\n }\n }),\n label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EdgeLabel, {\n label,\n x: labelX,\n y: labelY\n }) : null\n ]\n });\n}\nfunction EdgeLabel(param) {\n var { label, x, y } = param;\n var { knobProps } = (0, import_theme.useResolvedKnobs)({\n component: \"GraphEdge\"\n });\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_xy.EdgeLabelRenderer, {\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.View, {\n className: \"mp-graph-edge-label\",\n position: \"absolute\",\n transform: `translate(-50%, -50%) translate(${x}px, ${y}px)`,\n pointerEvents: \"none\",\n ...knobProps.surface,\n ...knobProps.borderRadiusNested,\n ...knobProps.panelPadding,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, {\n ...knobProps.body,\n children: label\n })\n })\n });\n}\nvar GraphEdge = /* @__PURE__ */ (0, import_react.memo)(GraphEdgeComponent);\nvar graphEdgeTypes = {\n [graphEdgeType]: GraphEdge\n};\n//# sourceMappingURL=GraphEdge.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC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BAAmB,IAAG,CAAE,eAAe,MAAM;EACzE,WAAW;EACX,UAAU;EACV,WAAW,mCAAmC,EAAE,MAAM,EAAE;EACxD,eAAe;EACf,GAAG,UAAU;EACb,GAAG,UAAU;EACb,GAAG,UAAU;EACb,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,aAAa;GAChF,GAAG,UAAU;GACb,UAAU;EACZ,CAAC;CACH,CAAC,EACH,CAAC;AACH;AACA,IAAI,YAA4B,iBAAC,GAAG,aAAa,KAAI,CAAE,kBAAkB;AACzE,IAAI,iBAAiB,GAClB,gBAAgB,UACnB"}
|
|
@@ -21,14 +21,37 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var edgePath_exports = {};
|
|
22
22
|
__export(edgePath_exports, {
|
|
23
23
|
buildEdgePath: () => buildEdgePath,
|
|
24
|
-
buildFlowPath: () => buildFlowPath
|
|
24
|
+
buildFlowPath: () => buildFlowPath,
|
|
25
|
+
edgeRoutingStats: () => edgeRoutingStats,
|
|
26
|
+
resetEdgeRoutingStats: () => resetEdgeRoutingStats
|
|
25
27
|
});
|
|
26
28
|
module.exports = __toCommonJS(edgePath_exports);
|
|
27
29
|
var import_xyPaths = require("../react-flow/xyPaths.cjs");
|
|
28
30
|
var import_edgeRoute = require("./edgeRoute.cjs");
|
|
31
|
+
const routingStats = {
|
|
32
|
+
calls: 0,
|
|
33
|
+
tracked: 0,
|
|
34
|
+
aroundBoxes: 0,
|
|
35
|
+
ms: 0
|
|
36
|
+
};
|
|
37
|
+
function edgeRoutingStats() {
|
|
38
|
+
return {
|
|
39
|
+
...routingStats,
|
|
40
|
+
ms: Math.round(routingStats.ms * 10) / 10
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function resetEdgeRoutingStats() {
|
|
44
|
+
routingStats.calls = 0;
|
|
45
|
+
routingStats.tracked = 0;
|
|
46
|
+
routingStats.aroundBoxes = 0;
|
|
47
|
+
routingStats.ms = 0;
|
|
48
|
+
}
|
|
49
|
+
const now = () => typeof performance !== "undefined" && typeof performance.now === "function" ? performance.now() : Date.now();
|
|
29
50
|
function buildEdgePath(path, geometry, obstacles) {
|
|
30
51
|
const built = buildFlowPath(path, geometry);
|
|
31
52
|
if (!obstacles || obstacles.boxes.length === 0) return built;
|
|
53
|
+
const started = now();
|
|
54
|
+
routingStats.calls += 1;
|
|
32
55
|
const ends = {
|
|
33
56
|
sourceX: geometry.sourceX,
|
|
34
57
|
sourceY: geometry.sourceY,
|
|
@@ -37,10 +60,18 @@ function buildEdgePath(path, geometry, obstacles) {
|
|
|
37
60
|
sourceSide: geometry.sourcePosition,
|
|
38
61
|
targetSide: geometry.targetPosition
|
|
39
62
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
63
|
+
try {
|
|
64
|
+
const tracked = (0, import_edgeRoute.routeOnTrack)(path, ends, obstacles);
|
|
65
|
+
if (tracked) {
|
|
66
|
+
routingStats.tracked += 1;
|
|
67
|
+
return tracked;
|
|
68
|
+
}
|
|
69
|
+
if (!(0, import_edgeRoute.pathIntrudes)(built[0], ends, obstacles)) return built;
|
|
70
|
+
routingStats.aroundBoxes += 1;
|
|
71
|
+
return (0, import_edgeRoute.routeAroundBoxes)(path, ends, obstacles) ?? built;
|
|
72
|
+
} finally {
|
|
73
|
+
routingStats.ms += now() - started;
|
|
74
|
+
}
|
|
44
75
|
}
|
|
45
76
|
function buildFlowPath(path, geometry) {
|
|
46
77
|
const { sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition } = geometry;
|
|
@@ -23,15 +23,39 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
23
23
|
var edgePath_exports = {};
|
|
24
24
|
__export(edgePath_exports, {
|
|
25
25
|
buildEdgePath: () => buildEdgePath,
|
|
26
|
-
buildFlowPath: () => buildFlowPath
|
|
26
|
+
buildFlowPath: () => buildFlowPath,
|
|
27
|
+
edgeRoutingStats: () => edgeRoutingStats,
|
|
28
|
+
resetEdgeRoutingStats: () => resetEdgeRoutingStats
|
|
27
29
|
});
|
|
28
30
|
module.exports = __toCommonJS(edgePath_exports);
|
|
29
31
|
var import_xyPaths = require("../react-flow/xyPaths.native.js");
|
|
30
32
|
var import_edgeRoute = require("./edgeRoute.native.js");
|
|
33
|
+
var routingStats = {
|
|
34
|
+
calls: 0,
|
|
35
|
+
tracked: 0,
|
|
36
|
+
aroundBoxes: 0,
|
|
37
|
+
ms: 0
|
|
38
|
+
};
|
|
39
|
+
function edgeRoutingStats() {
|
|
40
|
+
return {
|
|
41
|
+
...routingStats,
|
|
42
|
+
ms: Math.round(routingStats.ms * 10) / 10
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function resetEdgeRoutingStats() {
|
|
46
|
+
routingStats.calls = 0;
|
|
47
|
+
routingStats.tracked = 0;
|
|
48
|
+
routingStats.aroundBoxes = 0;
|
|
49
|
+
routingStats.ms = 0;
|
|
50
|
+
}
|
|
51
|
+
var now = function now2() {
|
|
52
|
+
return typeof performance !== "undefined" && typeof performance.now === "function" ? performance.now() : Date.now();
|
|
53
|
+
};
|
|
31
54
|
function buildEdgePath(path, geometry, obstacles) {
|
|
32
|
-
var _routeAroundBoxes;
|
|
33
55
|
var built = buildFlowPath(path, geometry);
|
|
34
56
|
if (!obstacles || obstacles.boxes.length === 0) return built;
|
|
57
|
+
var started = now();
|
|
58
|
+
routingStats.calls += 1;
|
|
35
59
|
var ends = {
|
|
36
60
|
sourceX: geometry.sourceX,
|
|
37
61
|
sourceY: geometry.sourceY,
|
|
@@ -40,10 +64,19 @@ function buildEdgePath(path, geometry, obstacles) {
|
|
|
40
64
|
sourceSide: geometry.sourcePosition,
|
|
41
65
|
targetSide: geometry.targetPosition
|
|
42
66
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
67
|
+
try {
|
|
68
|
+
var _routeAroundBoxes;
|
|
69
|
+
var tracked = (0, import_edgeRoute.routeOnTrack)(path, ends, obstacles);
|
|
70
|
+
if (tracked) {
|
|
71
|
+
routingStats.tracked += 1;
|
|
72
|
+
return tracked;
|
|
73
|
+
}
|
|
74
|
+
if (!(0, import_edgeRoute.pathIntrudes)(built[0], ends, obstacles)) return built;
|
|
75
|
+
routingStats.aroundBoxes += 1;
|
|
76
|
+
return (_routeAroundBoxes = (0, import_edgeRoute.routeAroundBoxes)(path, ends, obstacles)) !== null && _routeAroundBoxes !== void 0 ? _routeAroundBoxes : built;
|
|
77
|
+
} finally {
|
|
78
|
+
routingStats.ms += now() - started;
|
|
79
|
+
}
|
|
47
80
|
}
|
|
48
81
|
function buildFlowPath(path, geometry) {
|
|
49
82
|
var { sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition } = geometry;
|
|
@@ -23,15 +23,39 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
23
23
|
var edgePath_exports = {};
|
|
24
24
|
__export(edgePath_exports, {
|
|
25
25
|
buildEdgePath: () => buildEdgePath,
|
|
26
|
-
buildFlowPath: () => buildFlowPath
|
|
26
|
+
buildFlowPath: () => buildFlowPath,
|
|
27
|
+
edgeRoutingStats: () => edgeRoutingStats,
|
|
28
|
+
resetEdgeRoutingStats: () => resetEdgeRoutingStats
|
|
27
29
|
});
|
|
28
30
|
module.exports = __toCommonJS(edgePath_exports);
|
|
29
31
|
var import_xyPaths = require("../react-flow/xyPaths.native.js");
|
|
30
32
|
var import_edgeRoute = require("./edgeRoute.native.js");
|
|
33
|
+
var routingStats = {
|
|
34
|
+
calls: 0,
|
|
35
|
+
tracked: 0,
|
|
36
|
+
aroundBoxes: 0,
|
|
37
|
+
ms: 0
|
|
38
|
+
};
|
|
39
|
+
function edgeRoutingStats() {
|
|
40
|
+
return {
|
|
41
|
+
...routingStats,
|
|
42
|
+
ms: Math.round(routingStats.ms * 10) / 10
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function resetEdgeRoutingStats() {
|
|
46
|
+
routingStats.calls = 0;
|
|
47
|
+
routingStats.tracked = 0;
|
|
48
|
+
routingStats.aroundBoxes = 0;
|
|
49
|
+
routingStats.ms = 0;
|
|
50
|
+
}
|
|
51
|
+
var now = function now2() {
|
|
52
|
+
return typeof performance !== "undefined" && typeof performance.now === "function" ? performance.now() : Date.now();
|
|
53
|
+
};
|
|
31
54
|
function buildEdgePath(path, geometry, obstacles) {
|
|
32
|
-
var _routeAroundBoxes;
|
|
33
55
|
var built = buildFlowPath(path, geometry);
|
|
34
56
|
if (!obstacles || obstacles.boxes.length === 0) return built;
|
|
57
|
+
var started = now();
|
|
58
|
+
routingStats.calls += 1;
|
|
35
59
|
var ends = {
|
|
36
60
|
sourceX: geometry.sourceX,
|
|
37
61
|
sourceY: geometry.sourceY,
|
|
@@ -40,10 +64,19 @@ function buildEdgePath(path, geometry, obstacles) {
|
|
|
40
64
|
sourceSide: geometry.sourcePosition,
|
|
41
65
|
targetSide: geometry.targetPosition
|
|
42
66
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
67
|
+
try {
|
|
68
|
+
var _routeAroundBoxes;
|
|
69
|
+
var tracked = (0, import_edgeRoute.routeOnTrack)(path, ends, obstacles);
|
|
70
|
+
if (tracked) {
|
|
71
|
+
routingStats.tracked += 1;
|
|
72
|
+
return tracked;
|
|
73
|
+
}
|
|
74
|
+
if (!(0, import_edgeRoute.pathIntrudes)(built[0], ends, obstacles)) return built;
|
|
75
|
+
routingStats.aroundBoxes += 1;
|
|
76
|
+
return (_routeAroundBoxes = (0, import_edgeRoute.routeAroundBoxes)(path, ends, obstacles)) !== null && _routeAroundBoxes !== void 0 ? _routeAroundBoxes : built;
|
|
77
|
+
} finally {
|
|
78
|
+
routingStats.ms += now() - started;
|
|
79
|
+
}
|
|
47
80
|
}
|
|
48
81
|
function buildFlowPath(path, geometry) {
|
|
49
82
|
var { sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition } = geometry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edgePath.native.js","names":[],"sources":["cjs/edges/edgePath.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar edgePath_exports = {};\n__export(edgePath_exports, {\n buildEdgePath: () => buildEdgePath,\n buildFlowPath: () => buildFlowPath\n});\nmodule.exports = __toCommonJS(edgePath_exports);\nvar import_xyPaths = require(\"../react-flow/xyPaths\");\nvar import_edgeRoute = require(\"./edgeRoute\");\nfunction buildEdgePath(path, geometry, obstacles) {\n var
|
|
1
|
+
{"version":3,"file":"edgePath.native.js","names":[],"sources":["cjs/edges/edgePath.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar edgePath_exports = {};\n__export(edgePath_exports, {\n buildEdgePath: () => buildEdgePath,\n buildFlowPath: () => buildFlowPath,\n edgeRoutingStats: () => edgeRoutingStats,\n resetEdgeRoutingStats: () => resetEdgeRoutingStats\n});\nmodule.exports = __toCommonJS(edgePath_exports);\nvar import_xyPaths = require(\"../react-flow/xyPaths\");\nvar import_edgeRoute = require(\"./edgeRoute\");\nvar routingStats = {\n calls: 0,\n tracked: 0,\n aroundBoxes: 0,\n ms: 0\n};\nfunction edgeRoutingStats() {\n return {\n ...routingStats,\n ms: Math.round(routingStats.ms * 10) / 10\n };\n}\nfunction resetEdgeRoutingStats() {\n routingStats.calls = 0;\n routingStats.tracked = 0;\n routingStats.aroundBoxes = 0;\n routingStats.ms = 0;\n}\nvar now = function now2() {\n return typeof performance !== \"undefined\" && typeof performance.now === \"function\" ? performance.now() : Date.now();\n};\nfunction buildEdgePath(path, geometry, obstacles) {\n var built = buildFlowPath(path, geometry);\n if (!obstacles || obstacles.boxes.length === 0) return built;\n var started = now();\n routingStats.calls += 1;\n var ends = {\n sourceX: geometry.sourceX,\n sourceY: geometry.sourceY,\n targetX: geometry.targetX,\n targetY: geometry.targetY,\n sourceSide: geometry.sourcePosition,\n targetSide: geometry.targetPosition\n };\n try {\n var _routeAroundBoxes;\n var tracked = (0, import_edgeRoute.routeOnTrack)(path, ends, obstacles);\n if (tracked) {\n routingStats.tracked += 1;\n return tracked;\n }\n if (!(0, import_edgeRoute.pathIntrudes)(built[0], ends, obstacles)) return built;\n routingStats.aroundBoxes += 1;\n return (_routeAroundBoxes = (0, import_edgeRoute.routeAroundBoxes)(path, ends, obstacles)) !== null && _routeAroundBoxes !== void 0 ? _routeAroundBoxes : built;\n } finally {\n routingStats.ms += now() - started;\n }\n}\nfunction buildFlowPath(path, geometry) {\n var { sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition } = geometry;\n switch (path) {\n case \"bezier\": {\n var [d, labelX, labelY] = (0, import_xyPaths.getBezierPath)({\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourcePosition,\n targetPosition\n });\n return [\n d,\n labelX,\n labelY\n ];\n }\n case \"straight\": {\n var [d1, labelX1, labelY1] = (0, import_xyPaths.getStraightPath)({\n sourceX,\n sourceY,\n targetX,\n targetY\n });\n return [\n d1,\n labelX1,\n labelY1\n ];\n }\n case \"step\":\n case \"smoothstep\": {\n var [d2, labelX2, labelY2] = (0, import_xyPaths.getSmoothStepPath)({\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourcePosition,\n targetPosition,\n borderRadius: path === \"step\" ? 0 : void 0\n });\n return [\n d2,\n labelX2,\n labelY2\n ];\n }\n }\n}\n//# sourceMappingURL=edgePath.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,mBAAmB,CAAC;AACxB,SAAS,kBAAkB;CACzB,qBAAqB;CACrB,qBAAqB;C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B;AACF;AACA,SAAS,cAAc,MAAM,UAAU;CACrC,IAAI,EAAE,SAAS,SAAS,SAAS,SAAS,gBAAgB,mBAAmB;CAC7E,QAAQ,MAAR;EACE,KAAK,UAAU;GACb,IAAI,CAAC,GAAG,QAAQ,WAAW,GAAG,eAAe,cAAa,CAAE;IAC1D;IACA;IACA;IACA;IACA;IACA;GACF,CAAC;GACD,OAAO;IACL;IACA;IACA;GACF;EACF;EACA,KAAK,YAAY;GACf,IAAI,CAAC,IAAI,SAAS,YAAY,GAAG,eAAe,gBAAe,CAAE;IAC/D;IACA;IACA;IACA;GACF,CAAC;GACD,OAAO;IACL;IACA;IACA;GACF;EACF;EACA,KAAK;EACL,KAAK,cAAc;GACjB,IAAI,CAAC,IAAI,SAAS,YAAY,GAAG,eAAe,kBAAiB,CAAE;IACjE;IACA;IACA;IACA;IACA;IACA;IACA,cAAc,SAAS,SAAS,IAAI,KAAK;GAC3C,CAAC;GACD,OAAO;IACL;IACA;IACA;GACF;EACF;CACF;AACF"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -128,6 +128,7 @@ __export(index_exports, {
|
|
|
128
128
|
resolveEdgeStyle: () => import_edgeStyle.resolveEdgeStyle,
|
|
129
129
|
resolveEnvelopeThemeName: () => import_KnobEnvelopeProvider2.resolveEnvelopeThemeName,
|
|
130
130
|
resolveRunner: () => import_runner.resolveRunner,
|
|
131
|
+
setNodeGraphCanvasReporter: () => import_canvasReport.setNodeGraphCanvasReporter,
|
|
131
132
|
setNodeGraphDomEntry: () => import_domEntryRegistry.setNodeGraphDomEntry,
|
|
132
133
|
splitFontStack: () => import_faces.splitFontStack,
|
|
133
134
|
subscribeNodeCensus: () => import_nodeCensus.subscribeNodeCensus,
|
|
@@ -188,6 +189,7 @@ var import_nodeMeasure = require("./nodes/nodeMeasure.cjs");
|
|
|
188
189
|
var import_GraphVarsStyle = require("./theme/GraphVarsStyle.cjs");
|
|
189
190
|
var import_graphVars = require("./theme/graphVars.cjs");
|
|
190
191
|
var import_domEntryRegistry = require("./native/domEntryRegistry.cjs");
|
|
192
|
+
var import_canvasReport = require("./native/canvasReport.cjs");
|
|
191
193
|
var import_dagre = require("./layout/dagre.cjs");
|
|
192
194
|
var import_layout = require("./layout/layout.cjs");
|
|
193
195
|
var import_runner = require("./layout/runner.cjs");
|
|
@@ -130,6 +130,7 @@ __export(index_exports, {
|
|
|
130
130
|
resolveEdgeStyle: () => import_edgeStyle.resolveEdgeStyle,
|
|
131
131
|
resolveEnvelopeThemeName: () => import_KnobEnvelopeProvider2.resolveEnvelopeThemeName,
|
|
132
132
|
resolveRunner: () => import_runner.resolveRunner,
|
|
133
|
+
setNodeGraphCanvasReporter: () => import_canvasReport.setNodeGraphCanvasReporter,
|
|
133
134
|
setNodeGraphDomEntry: () => import_domEntryRegistry.setNodeGraphDomEntry,
|
|
134
135
|
splitFontStack: () => import_faces.splitFontStack,
|
|
135
136
|
subscribeNodeCensus: () => import_nodeCensus.subscribeNodeCensus,
|
|
@@ -190,6 +191,7 @@ var import_nodeMeasure = require("./nodes/nodeMeasure.native.js");
|
|
|
190
191
|
var import_GraphVarsStyle = require("./theme/GraphVarsStyle.native.js");
|
|
191
192
|
var import_graphVars = require("./theme/graphVars.native.js");
|
|
192
193
|
var import_domEntryRegistry = require("./native/domEntryRegistry.native.js");
|
|
194
|
+
var import_canvasReport = require("./native/canvasReport.native.js");
|
|
193
195
|
var import_dagre = require("./layout/dagre.native.js");
|
|
194
196
|
var import_layout = require("./layout/layout.native.js");
|
|
195
197
|
var import_runner = require("./layout/runner.native.js");
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -130,6 +130,7 @@ __export(index_exports, {
|
|
|
130
130
|
resolveEdgeStyle: () => import_edgeStyle.resolveEdgeStyle,
|
|
131
131
|
resolveEnvelopeThemeName: () => import_KnobEnvelopeProvider2.resolveEnvelopeThemeName,
|
|
132
132
|
resolveRunner: () => import_runner.resolveRunner,
|
|
133
|
+
setNodeGraphCanvasReporter: () => import_canvasReport.setNodeGraphCanvasReporter,
|
|
133
134
|
setNodeGraphDomEntry: () => import_domEntryRegistry.setNodeGraphDomEntry,
|
|
134
135
|
splitFontStack: () => import_faces.splitFontStack,
|
|
135
136
|
subscribeNodeCensus: () => import_nodeCensus.subscribeNodeCensus,
|
|
@@ -190,6 +191,7 @@ var import_nodeMeasure = require("./nodes/nodeMeasure.native.js");
|
|
|
190
191
|
var import_GraphVarsStyle = require("./theme/GraphVarsStyle.native.js");
|
|
191
192
|
var import_graphVars = require("./theme/graphVars.native.js");
|
|
192
193
|
var import_domEntryRegistry = require("./native/domEntryRegistry.native.js");
|
|
194
|
+
var import_canvasReport = require("./native/canvasReport.native.js");
|
|
193
195
|
var import_dagre = require("./layout/dagre.native.js");
|
|
194
196
|
var import_layout = require("./layout/layout.native.js");
|
|
195
197
|
var import_runner = require("./layout/runner.native.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n ConnectionPuck: () => import_ConnectionPuck.ConnectionPuck,\n DomOnlyStory: () => import_DomOnlyStory.DomOnlyStory,\n FINE_PORT_HIT_MIN: () => import_handleGeometry.FINE_PORT_HIT_MIN,\n FINE_PORT_PITCH: () => import_nodeMeasure.FINE_PORT_PITCH,\n GraphActionsProvider: () => import_GraphActions.GraphActionsProvider,\n GraphBootFailure: () => import_GraphDiagnostics.GraphBootFailure,\n GraphCommandBridge: () => import_GraphCommandBridge.GraphCommandBridge,\n GraphDiagnostics: () => import_GraphDiagnostics.GraphDiagnostics,\n GraphEdge: () => import_GraphEdge.GraphEdge,\n GraphFaces: () => import_GraphFaces.GraphFaces,\n GraphNode: () => import_GraphNode.GraphNode,\n GraphNodeHost: () => import_GraphNodeHost.GraphNodeHost,\n GraphPaintProbe: () => import_GraphPaintProbe.GraphPaintProbe,\n GraphPort: () => import_GraphPort.GraphPort,\n GraphToolbar: () => import_GraphToolbar.GraphToolbar,\n GraphVars: () => import_GraphVarsStyle.GraphVars,\n GraphZoomVar: () => import_GraphZoomVar.GraphZoomVar,\n KnobEnvelopeProvider: () => import_KnobEnvelopeProvider.KnobEnvelopeProvider,\n LassoOverlay: () => import_LassoOverlay.LassoOverlay,\n NodeGraph: () => import_NodeGraph.NodeGraph,\n NodeGraphWeb: () => import_NodeGraphWeb.NodeGraphWeb,\n OverviewNode: () => import_overviewNode.OverviewNode,\n buildLayoutRequest: () => import_layout.buildLayoutRequest,\n builtinEdgeKindNames: () => import_edgeKinds.builtinEdgeKindNames,\n builtinEdgeKinds: () => import_edgeKinds.builtinEdgeKinds,\n clearNodeGraphDomEntry: () => import_domEntryRegistry.clearNodeGraphDomEntry,\n cloneStructured: () => import_structuredCloneShim.cloneStructured,\n connectionPuckLabel: () => import_ConnectionPuck.connectionPuckLabel,\n containerRadiusPx: () => import_nodeMeasure.containerRadiusPx,\n corruptFirstFamily: () => import_faces.corruptFirstFamily,\n createLayoutRunner: () => import_runner.createLayoutRunner,\n dashAnimation: () => import_edgeStyle.dashAnimation,\n defaultGraphNodeType: () => import_useGraphController.defaultGraphNodeType,\n defaultLayoutSpacing: () => import_dagre.defaultLayoutSpacing,\n defaultNodeMeasure: () => import_nodeMeasure.defaultNodeMeasure,\n defaultOverviewZoom: () => import_lod.defaultOverviewZoom,\n defaultProbeTimeoutMs: () => import_runner.defaultProbeTimeoutMs,\n demoControlSchemaId: () => import_fixtures.demoControlSchemaId,\n demoGraphSchemaId: () => import_fixtures.demoGraphSchemaId,\n detailOpacity: () => import_lod.detailOpacity,\n domOnlyStoryDecorator: () => import_DomOnlyStory.domOnlyStoryDecorator,\n edgeAppearances: () => import_edgeStyle.edgeAppearances,\n edgeMarkerEnd: () => import_edgeStyle.edgeMarkerEnd,\n edgeStrokeWidth: () => import_edgeStyle.edgeStrokeWidth,\n edgeStrokeWidths: () => import_edgeStyle.edgeStrokeWidths,\n ensureStructuredClone: () => import_structuredCloneShim.ensureStructuredClone,\n faceBytes: () => import_faces.faceBytes,\n filterLegalCandidates: () => import_legalTargets.filterLegalCandidates,\n generatedGraphFaces: () => import_faces2.generatedGraphFaces,\n getLayoutRunner: () => import_runner.getLayoutRunner,\n getNodeGraphDomEntry: () => import_domEntryRegistry.getNodeGraphDomEntry,\n graphCanvasDefaults: () => import_NodeGraphWeb.graphCanvasDefaults,\n graphCommandNames: () => import_graphHandle.graphCommandNames,\n graphCssVars: () => import_graphVars.graphCssVars,\n graphDiagnosticsFromWire: () => import_fromWire.graphDiagnosticsFromWire,\n graphEdgeType: () => import_GraphEdge.graphEdgeType,\n graphEdgeTypes: () => import_GraphEdge.graphEdgeTypes,\n graphErrorGlobalKey: () => import_lastError.graphErrorGlobalKey,\n graphFaceCeilingBytes: () => import_faces.graphFaceCeilingBytes,\n graphFaceCss: () => import_faces.graphFaceCss,\n graphFaces: () => import_faces.graphFaces,\n graphNodeMeasure: () => import_nodeMeasure.graphNodeMeasure,\n graphNodeMinHeight: () => import_nodeMeasure.graphNodeMinHeight,\n graphNodeRadius: () => import_nodeMeasure.graphNodeRadius,\n graphNodeRadiusPx: () => import_nodeMeasure.graphNodeRadiusPx,\n graphNodeSize: () => import_nodeMeasure.graphNodeSize,\n graphNodeWidth: () => import_nodeMeasure.graphNodeWidth,\n graphRootClassName: () => import_GraphVarsStyle.graphRootClassName,\n graphVarsSheet: () => import_GraphVarsStyle.graphVarsSheet,\n graphZoomVarName: () => import_GraphZoomVar.graphZoomVarName,\n hasDomRealm: () => import_DomOnlyStory.hasDomRealm,\n installLassoIntercept: () => import_lassoIntercept.installLassoIntercept,\n isLegalTarget: () => import_legalTargets.isLegalTarget,\n isOverview: () => import_lod.isOverview,\n knobEnvelopeIdentity: () => import_envelope.knobEnvelopeIdentity,\n knobEnvelopeSchemaVersion: () => import_envelope.knobEnvelopeSchemaVersion,\n knobsForEnvelope: () => import_envelope.knobsForEnvelope,\n lassoFlowProps: () => import_useLassoSelect.lassoFlowProps,\n lassoHoldMs: () => import_useLassoSelect.lassoHoldMs,\n lassoSlopPx: () => import_useLassoSelect.lassoSlopPx,\n layout: () => import_layout.layout,\n layoutWithDagre: () => import_dagre.layoutWithDagre,\n layoutWorkerBytes: () => import_worker.layoutWorkerBytes,\n layoutWorkerSha256: () => import_worker.layoutWorkerSha256,\n legalTargets: () => import_legalTargets.legalTargets,\n lodForZoom: () => import_lod.lodForZoom,\n mountedNodeCount: () => import_nodeCensus.mountedNodeCount,\n nodeRadiusTokenPx: () => import_nodeMeasure.nodeRadiusTokenPx,\n paintedPortSize: () => import_handleGeometry.paintedPortSize,\n paintedPortSizePx: () => import_handleGeometry.paintedPortSizePx,\n portConnectionRadius: () => import_handleGeometry.portConnectionRadius,\n portGeometry: () => import_handleGeometry.portGeometry,\n portHitSize: () => import_handleGeometry.portHitSize,\n portRegionInset: () => import_handleGeometry.portRegionInset,\n portSpacing: () => import_nodeMeasure.portSpacing,\n probeFamily: () => import_faces.probeFamily,\n probeRenderedFamily: () => import_faces.probeRenderedFamily,\n readGraphError: () => import_lastError.readGraphError,\n readLayoutRunnerFallback: () => import_runner.readLayoutRunnerFallback,\n reconcilePositions: () => import_layout.reconcilePositions,\n recordGraphError: () => import_lastError.recordGraphError,\n registerMountedNode: () => import_nodeCensus.registerMountedNode,\n resetGraphError: () => import_lastError.resetGraphError,\n resetLayoutRunner: () => import_runner.resetLayoutRunner,\n resetNodeCensus: () => import_nodeCensus.resetNodeCensus,\n resolveEdgeStyle: () => import_edgeStyle.resolveEdgeStyle,\n resolveEnvelopeThemeName: () => import_KnobEnvelopeProvider2.resolveEnvelopeThemeName,\n resolveRunner: () => import_runner.resolveRunner,\n setNodeGraphDomEntry: () => import_domEntryRegistry.setNodeGraphDomEntry,\n splitFontStack: () => import_faces.splitFontStack,\n subscribeNodeCensus: () => import_nodeCensus.subscribeNodeCensus,\n toFlowEdges: () => import_flowAdapter.toFlowEdges,\n toFlowNodes: () => import_flowAdapter.toFlowNodes,\n useGraphActions: () => import_GraphActions.useGraphActions,\n useGraphController: () => import_useGraphController.useGraphController,\n useGraphCssVars: () => import_GraphVarsStyle.useGraphCssVars,\n useGraphDiagnostics: () => import_useGraphDiagnostics.useGraphDiagnostics,\n useGraphFaces: () => import_GraphFaces.useGraphFaces,\n useGraphHost: () => import_GraphNodeHost.useGraphHost,\n useGraphNodeKnobs: () => import_graphKnobs.useGraphNodeKnobs,\n useKnobEnvelope: () => import_useKnobEnvelope.useKnobEnvelope,\n useLassoSelect: () => import_useLassoSelect.useLassoSelect,\n verticalPortCrowd: () => import_nodeMeasure.verticalPortCrowd\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_NodeGraph = require(\"./NodeGraph\");\nvar import_NodeGraphWeb = require(\"./react-flow/NodeGraphWeb\");\nvar import_useGraphController = require(\"./react-flow/useGraphController\");\nvar import_GraphActions = require(\"./react-flow/GraphActions\");\nvar import_graphHandle = require(\"./react-flow/graphHandle\");\nvar import_GraphCommandBridge = require(\"./react-flow/GraphCommandBridge\");\nvar import_GraphPaintProbe = require(\"./react-flow/GraphPaintProbe\");\nvar import_GraphZoomVar = require(\"./react-flow/GraphZoomVar\");\nvar import_DomOnlyStory = require(\"./native/DomOnlyStory\");\nvar import_flowAdapter = require(\"./react-flow/flowAdapter\");\nvar import_GraphNodeHost = require(\"./react-flow/GraphNodeHost\");\nvar import_ConnectionPuck = require(\"./react-flow/ConnectionPuck\");\nvar import_legalTargets = require(\"./interaction/legalTargets\");\nvar import_nodeCensus = require(\"./react-flow/nodeCensus\");\nvar import_fixtures = require(\"./react-flow/fixtures\");\nvar import_GraphEdge = require(\"./edges/GraphEdge\");\nvar import_edgeKinds = require(\"./edges/edgeKinds\");\nvar import_edgeStyle = require(\"./edges/edgeStyle\");\nvar import_GraphDiagnostics = require(\"./diagnostics/GraphDiagnostics\");\nvar import_fromWire = require(\"./diagnostics/fromWire\");\nvar import_useGraphDiagnostics = require(\"./diagnostics/useGraphDiagnostics\");\nvar import_lastError = require(\"./diagnostics/lastError\");\nvar import_GraphFaces = require(\"./theme/GraphFaces\");\nvar import_faces = require(\"./theme/faces\");\nvar import_faces2 = require(\"./theme/faces.generated\");\nvar import_KnobEnvelopeProvider = require(\"./knobs/KnobEnvelopeProvider\");\nvar import_KnobEnvelopeProvider2 = require(\"./knobs/KnobEnvelopeProvider\");\nvar import_envelope = require(\"./knobs/envelope\");\nvar import_useKnobEnvelope = require(\"./knobs/useKnobEnvelope\");\nvar import_graphKnobs = require(\"./knobs/graphKnobs\");\nvar import_useLassoSelect = require(\"./interaction/useLassoSelect\");\nvar import_lassoIntercept = require(\"./interaction/lassoIntercept\");\nvar import_LassoOverlay = require(\"./react-flow/LassoOverlay\");\nvar import_GraphToolbar = require(\"./native/GraphToolbar\");\nvar import_GraphNode = require(\"./nodes/GraphNode\");\nvar import_GraphPort = require(\"./nodes/GraphPort\");\nvar import_lod = require(\"./nodes/lod\");\nvar import_overviewNode = require(\"./nodes/overviewNode\");\nvar import_handleGeometry = require(\"./nodes/handleGeometry\");\nvar import_nodeMeasure = require(\"./nodes/nodeMeasure\");\nvar import_GraphVarsStyle = require(\"./theme/GraphVarsStyle\");\nvar import_graphVars = require(\"./theme/graphVars\");\nvar import_domEntryRegistry = require(\"./native/domEntryRegistry\");\nvar import_dagre = require(\"./layout/dagre\");\nvar import_layout = require(\"./layout/layout\");\nvar import_runner = require(\"./layout/runner\");\nvar import_structuredCloneShim = require(\"./layout/structuredCloneShim\");\nvar import_worker = require(\"./layout/worker.generated\");\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,sBAAsB,sBAAsB;CAC5C,oBAAoB,oBAAoB;CACxC,yBAAyB,sBAAsB;CAC/C,uBAAuB,mBAAmB;CAC1C,4BAA4B,oBAAoB;CAChD,wBAAwB,wBAAwB;CAChD,0BAA0B,0BAA0B;CACpD,wBAAwB,wBAAwB;CAChD,iBAAiB,iBAAiB;CAClC,kBAAkB,kBAAkB;CACpC,iBAAiB,iBAAiB;CAClC,qBAAqB,qBAAqB;CAC1C,uBAAuB,uBAAuB;CAC9C,iBAAiB,iBAAiB;CAClC,oBAAoB,oBAAoB;CACxC,iBAAiB,sBAAsB;CACvC,oB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;AACzD,IAAI,mBAAmB,QAAQ,6BAAmB;AAClD,IAAI,mBAAmB,QAAQ,6BAAmB;AAClD,IAAI,aAAa,QAAQ,uBAAa;AACtC,IAAI,sBAAsB,QAAQ,gCAAsB;AACxD,IAAI,wBAAwB,QAAQ,kCAAwB;AAC5D,IAAI,qBAAqB,QAAQ,+BAAqB;AACtD,IAAI,wBAAwB,QAAQ,kCAAwB;AAC5D,IAAI,mBAAmB,QAAQ,6BAAmB;AAClD,IAAI,0BAA0B,QAAQ,qCAA2B;AACjE,IAAI,eAAe,QAAQ,0BAAgB;AAC3C,IAAI,gBAAgB,QAAQ,2BAAiB;AAC7C,IAAI,gBAAgB,QAAQ,2BAAiB;AAC7C,IAAI,6BAA6B,QAAQ,wCAA8B;AACvE,IAAI,gBAAgB,QAAQ,qCAA2B"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n ConnectionPuck: () => import_ConnectionPuck.ConnectionPuck,\n DomOnlyStory: () => import_DomOnlyStory.DomOnlyStory,\n FINE_PORT_HIT_MIN: () => import_handleGeometry.FINE_PORT_HIT_MIN,\n FINE_PORT_PITCH: () => import_nodeMeasure.FINE_PORT_PITCH,\n GraphActionsProvider: () => import_GraphActions.GraphActionsProvider,\n GraphBootFailure: () => import_GraphDiagnostics.GraphBootFailure,\n GraphCommandBridge: () => import_GraphCommandBridge.GraphCommandBridge,\n GraphDiagnostics: () => import_GraphDiagnostics.GraphDiagnostics,\n GraphEdge: () => import_GraphEdge.GraphEdge,\n GraphFaces: () => import_GraphFaces.GraphFaces,\n GraphNode: () => import_GraphNode.GraphNode,\n GraphNodeHost: () => import_GraphNodeHost.GraphNodeHost,\n GraphPaintProbe: () => import_GraphPaintProbe.GraphPaintProbe,\n GraphPort: () => import_GraphPort.GraphPort,\n GraphToolbar: () => import_GraphToolbar.GraphToolbar,\n GraphVars: () => import_GraphVarsStyle.GraphVars,\n GraphZoomVar: () => import_GraphZoomVar.GraphZoomVar,\n KnobEnvelopeProvider: () => import_KnobEnvelopeProvider.KnobEnvelopeProvider,\n LassoOverlay: () => import_LassoOverlay.LassoOverlay,\n NodeGraph: () => import_NodeGraph.NodeGraph,\n NodeGraphWeb: () => import_NodeGraphWeb.NodeGraphWeb,\n OverviewNode: () => import_overviewNode.OverviewNode,\n buildLayoutRequest: () => import_layout.buildLayoutRequest,\n builtinEdgeKindNames: () => import_edgeKinds.builtinEdgeKindNames,\n builtinEdgeKinds: () => import_edgeKinds.builtinEdgeKinds,\n clearNodeGraphDomEntry: () => import_domEntryRegistry.clearNodeGraphDomEntry,\n cloneStructured: () => import_structuredCloneShim.cloneStructured,\n connectionPuckLabel: () => import_ConnectionPuck.connectionPuckLabel,\n containerRadiusPx: () => import_nodeMeasure.containerRadiusPx,\n corruptFirstFamily: () => import_faces.corruptFirstFamily,\n createLayoutRunner: () => import_runner.createLayoutRunner,\n dashAnimation: () => import_edgeStyle.dashAnimation,\n defaultGraphNodeType: () => import_useGraphController.defaultGraphNodeType,\n defaultLayoutSpacing: () => import_dagre.defaultLayoutSpacing,\n defaultNodeMeasure: () => import_nodeMeasure.defaultNodeMeasure,\n defaultOverviewZoom: () => import_lod.defaultOverviewZoom,\n defaultProbeTimeoutMs: () => import_runner.defaultProbeTimeoutMs,\n demoControlSchemaId: () => import_fixtures.demoControlSchemaId,\n demoGraphSchemaId: () => import_fixtures.demoGraphSchemaId,\n detailOpacity: () => import_lod.detailOpacity,\n domOnlyStoryDecorator: () => import_DomOnlyStory.domOnlyStoryDecorator,\n edgeAppearances: () => import_edgeStyle.edgeAppearances,\n edgeMarkerEnd: () => import_edgeStyle.edgeMarkerEnd,\n edgeStrokeWidth: () => import_edgeStyle.edgeStrokeWidth,\n edgeStrokeWidths: () => import_edgeStyle.edgeStrokeWidths,\n ensureStructuredClone: () => import_structuredCloneShim.ensureStructuredClone,\n faceBytes: () => import_faces.faceBytes,\n filterLegalCandidates: () => import_legalTargets.filterLegalCandidates,\n generatedGraphFaces: () => import_faces2.generatedGraphFaces,\n getLayoutRunner: () => import_runner.getLayoutRunner,\n getNodeGraphDomEntry: () => import_domEntryRegistry.getNodeGraphDomEntry,\n graphCanvasDefaults: () => import_NodeGraphWeb.graphCanvasDefaults,\n graphCommandNames: () => import_graphHandle.graphCommandNames,\n graphCssVars: () => import_graphVars.graphCssVars,\n graphDiagnosticsFromWire: () => import_fromWire.graphDiagnosticsFromWire,\n graphEdgeType: () => import_GraphEdge.graphEdgeType,\n graphEdgeTypes: () => import_GraphEdge.graphEdgeTypes,\n graphErrorGlobalKey: () => import_lastError.graphErrorGlobalKey,\n graphFaceCeilingBytes: () => import_faces.graphFaceCeilingBytes,\n graphFaceCss: () => import_faces.graphFaceCss,\n graphFaces: () => import_faces.graphFaces,\n graphNodeMeasure: () => import_nodeMeasure.graphNodeMeasure,\n graphNodeMinHeight: () => import_nodeMeasure.graphNodeMinHeight,\n graphNodeRadius: () => import_nodeMeasure.graphNodeRadius,\n graphNodeRadiusPx: () => import_nodeMeasure.graphNodeRadiusPx,\n graphNodeSize: () => import_nodeMeasure.graphNodeSize,\n graphNodeWidth: () => import_nodeMeasure.graphNodeWidth,\n graphRootClassName: () => import_GraphVarsStyle.graphRootClassName,\n graphVarsSheet: () => import_GraphVarsStyle.graphVarsSheet,\n graphZoomVarName: () => import_GraphZoomVar.graphZoomVarName,\n hasDomRealm: () => import_DomOnlyStory.hasDomRealm,\n installLassoIntercept: () => import_lassoIntercept.installLassoIntercept,\n isLegalTarget: () => import_legalTargets.isLegalTarget,\n isOverview: () => import_lod.isOverview,\n knobEnvelopeIdentity: () => import_envelope.knobEnvelopeIdentity,\n knobEnvelopeSchemaVersion: () => import_envelope.knobEnvelopeSchemaVersion,\n knobsForEnvelope: () => import_envelope.knobsForEnvelope,\n lassoFlowProps: () => import_useLassoSelect.lassoFlowProps,\n lassoHoldMs: () => import_useLassoSelect.lassoHoldMs,\n lassoSlopPx: () => import_useLassoSelect.lassoSlopPx,\n layout: () => import_layout.layout,\n layoutWithDagre: () => import_dagre.layoutWithDagre,\n layoutWorkerBytes: () => import_worker.layoutWorkerBytes,\n layoutWorkerSha256: () => import_worker.layoutWorkerSha256,\n legalTargets: () => import_legalTargets.legalTargets,\n lodForZoom: () => import_lod.lodForZoom,\n mountedNodeCount: () => import_nodeCensus.mountedNodeCount,\n nodeRadiusTokenPx: () => import_nodeMeasure.nodeRadiusTokenPx,\n paintedPortSize: () => import_handleGeometry.paintedPortSize,\n paintedPortSizePx: () => import_handleGeometry.paintedPortSizePx,\n portConnectionRadius: () => import_handleGeometry.portConnectionRadius,\n portGeometry: () => import_handleGeometry.portGeometry,\n portHitSize: () => import_handleGeometry.portHitSize,\n portRegionInset: () => import_handleGeometry.portRegionInset,\n portSpacing: () => import_nodeMeasure.portSpacing,\n probeFamily: () => import_faces.probeFamily,\n probeRenderedFamily: () => import_faces.probeRenderedFamily,\n readGraphError: () => import_lastError.readGraphError,\n readLayoutRunnerFallback: () => import_runner.readLayoutRunnerFallback,\n reconcilePositions: () => import_layout.reconcilePositions,\n recordGraphError: () => import_lastError.recordGraphError,\n registerMountedNode: () => import_nodeCensus.registerMountedNode,\n resetGraphError: () => import_lastError.resetGraphError,\n resetLayoutRunner: () => import_runner.resetLayoutRunner,\n resetNodeCensus: () => import_nodeCensus.resetNodeCensus,\n resolveEdgeStyle: () => import_edgeStyle.resolveEdgeStyle,\n resolveEnvelopeThemeName: () => import_KnobEnvelopeProvider2.resolveEnvelopeThemeName,\n resolveRunner: () => import_runner.resolveRunner,\n setNodeGraphCanvasReporter: () => import_canvasReport.setNodeGraphCanvasReporter,\n setNodeGraphDomEntry: () => import_domEntryRegistry.setNodeGraphDomEntry,\n splitFontStack: () => import_faces.splitFontStack,\n subscribeNodeCensus: () => import_nodeCensus.subscribeNodeCensus,\n toFlowEdges: () => import_flowAdapter.toFlowEdges,\n toFlowNodes: () => import_flowAdapter.toFlowNodes,\n useGraphActions: () => import_GraphActions.useGraphActions,\n useGraphController: () => import_useGraphController.useGraphController,\n useGraphCssVars: () => import_GraphVarsStyle.useGraphCssVars,\n useGraphDiagnostics: () => import_useGraphDiagnostics.useGraphDiagnostics,\n useGraphFaces: () => import_GraphFaces.useGraphFaces,\n useGraphHost: () => import_GraphNodeHost.useGraphHost,\n useGraphNodeKnobs: () => import_graphKnobs.useGraphNodeKnobs,\n useKnobEnvelope: () => import_useKnobEnvelope.useKnobEnvelope,\n useLassoSelect: () => import_useLassoSelect.useLassoSelect,\n verticalPortCrowd: () => import_nodeMeasure.verticalPortCrowd\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_NodeGraph = require(\"./NodeGraph\");\nvar import_NodeGraphWeb = require(\"./react-flow/NodeGraphWeb\");\nvar import_useGraphController = require(\"./react-flow/useGraphController\");\nvar import_GraphActions = require(\"./react-flow/GraphActions\");\nvar import_graphHandle = require(\"./react-flow/graphHandle\");\nvar import_GraphCommandBridge = require(\"./react-flow/GraphCommandBridge\");\nvar import_GraphPaintProbe = require(\"./react-flow/GraphPaintProbe\");\nvar import_GraphZoomVar = require(\"./react-flow/GraphZoomVar\");\nvar import_DomOnlyStory = require(\"./native/DomOnlyStory\");\nvar import_flowAdapter = require(\"./react-flow/flowAdapter\");\nvar import_GraphNodeHost = require(\"./react-flow/GraphNodeHost\");\nvar import_ConnectionPuck = require(\"./react-flow/ConnectionPuck\");\nvar import_legalTargets = require(\"./interaction/legalTargets\");\nvar import_nodeCensus = require(\"./react-flow/nodeCensus\");\nvar import_fixtures = require(\"./react-flow/fixtures\");\nvar import_GraphEdge = require(\"./edges/GraphEdge\");\nvar import_edgeKinds = require(\"./edges/edgeKinds\");\nvar import_edgeStyle = require(\"./edges/edgeStyle\");\nvar import_GraphDiagnostics = require(\"./diagnostics/GraphDiagnostics\");\nvar import_fromWire = require(\"./diagnostics/fromWire\");\nvar import_useGraphDiagnostics = require(\"./diagnostics/useGraphDiagnostics\");\nvar import_lastError = require(\"./diagnostics/lastError\");\nvar import_GraphFaces = require(\"./theme/GraphFaces\");\nvar import_faces = require(\"./theme/faces\");\nvar import_faces2 = require(\"./theme/faces.generated\");\nvar import_KnobEnvelopeProvider = require(\"./knobs/KnobEnvelopeProvider\");\nvar import_KnobEnvelopeProvider2 = require(\"./knobs/KnobEnvelopeProvider\");\nvar import_envelope = require(\"./knobs/envelope\");\nvar import_useKnobEnvelope = require(\"./knobs/useKnobEnvelope\");\nvar import_graphKnobs = require(\"./knobs/graphKnobs\");\nvar import_useLassoSelect = require(\"./interaction/useLassoSelect\");\nvar import_lassoIntercept = require(\"./interaction/lassoIntercept\");\nvar import_LassoOverlay = require(\"./react-flow/LassoOverlay\");\nvar import_GraphToolbar = require(\"./native/GraphToolbar\");\nvar import_GraphNode = require(\"./nodes/GraphNode\");\nvar import_GraphPort = require(\"./nodes/GraphPort\");\nvar import_lod = require(\"./nodes/lod\");\nvar import_overviewNode = require(\"./nodes/overviewNode\");\nvar import_handleGeometry = require(\"./nodes/handleGeometry\");\nvar import_nodeMeasure = require(\"./nodes/nodeMeasure\");\nvar import_GraphVarsStyle = require(\"./theme/GraphVarsStyle\");\nvar import_graphVars = require(\"./theme/graphVars\");\nvar import_domEntryRegistry = require(\"./native/domEntryRegistry\");\nvar import_canvasReport = require(\"./native/canvasReport\");\nvar import_dagre = require(\"./layout/dagre\");\nvar import_layout = require(\"./layout/layout\");\nvar import_runner = require(\"./layout/runner\");\nvar import_structuredCloneShim = require(\"./layout/structuredCloneShim\");\nvar import_worker = require(\"./layout/worker.generated\");\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,sBAAsB,sBAAsB;CAC5C,oBAAoB,oBAAoB;CACxC,yBAAyB,sBAAsB;CAC/C,uBAAuB,mBAAmB;CAC1C,4BAA4B,oBAAoB;CAChD,wBAAwB,wBAAwB;CAChD,0BAA0B,0BAA0B;CACpD,wBAAwB,wBAAwB;CAChD,iBAAiB,iBAAiB;CAClC,kBAAkB,kBAAkB;CACpC,iBAAiB,iBAAiB;CAClC,qBAAqB,qBAAqB;CAC1C,uBAAuB,uBAAuB;CAC9C,iBAAiB,iBAAiB;CAClC,oBAAoB,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I,sBAAsB,QAAQ,qCAA2B;AAC7D,IAAI,sBAAsB,QAAQ,iCAAuB;AACzD,IAAI,mBAAmB,QAAQ,6BAAmB;AAClD,IAAI,mBAAmB,QAAQ,6BAAmB;AAClD,IAAI,aAAa,QAAQ,uBAAa;AACtC,IAAI,sBAAsB,QAAQ,gCAAsB;AACxD,IAAI,wBAAwB,QAAQ,kCAAwB;AAC5D,IAAI,qBAAqB,QAAQ,+BAAqB;AACtD,IAAI,wBAAwB,QAAQ,kCAAwB;AAC5D,IAAI,mBAAmB,QAAQ,6BAAmB;AAClD,IAAI,0BAA0B,QAAQ,qCAA2B;AACjE,IAAI,sBAAsB,QAAQ,iCAAuB;AACzD,IAAI,eAAe,QAAQ,0BAAgB;AAC3C,IAAI,gBAAgB,QAAQ,2BAAiB;AAC7C,IAAI,gBAAgB,QAAQ,2BAAiB;AAC7C,IAAI,6BAA6B,QAAQ,wCAA8B;AACvE,IAAI,gBAAgB,QAAQ,qCAA2B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var canvasReport_exports = {};
|
|
22
|
+
__export(canvasReport_exports, {
|
|
23
|
+
reportNodeGraphCanvas: () => reportNodeGraphCanvas,
|
|
24
|
+
setNodeGraphCanvasReporter: () => setNodeGraphCanvasReporter
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(canvasReport_exports);
|
|
27
|
+
let reporter = null;
|
|
28
|
+
function setNodeGraphCanvasReporter(next) {
|
|
29
|
+
reporter = next;
|
|
30
|
+
}
|
|
31
|
+
function reportNodeGraphCanvas(report) {
|
|
32
|
+
const current = reporter;
|
|
33
|
+
if (!current) return;
|
|
34
|
+
try {
|
|
35
|
+
current(report);
|
|
36
|
+
} catch {}
|
|
37
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var canvasReport_exports = {};
|
|
24
|
+
__export(canvasReport_exports, {
|
|
25
|
+
reportNodeGraphCanvas: () => reportNodeGraphCanvas,
|
|
26
|
+
setNodeGraphCanvasReporter: () => setNodeGraphCanvasReporter
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(canvasReport_exports);
|
|
29
|
+
var reporter = null;
|
|
30
|
+
function setNodeGraphCanvasReporter(next) {
|
|
31
|
+
reporter = next;
|
|
32
|
+
}
|
|
33
|
+
function reportNodeGraphCanvas(report) {
|
|
34
|
+
var current = reporter;
|
|
35
|
+
if (!current) return;
|
|
36
|
+
try {
|
|
37
|
+
current(report);
|
|
38
|
+
} catch (unused) {}
|
|
39
|
+
}
|