@abdellatifui/react 3.1.91 → 3.1.92
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/nextgen.d.ts +1 -0
- package/dist/nextgen.js +155 -55
- package/dist/nextgen.js.map +1 -1
- package/dist/style.css +50 -3
- package/dist/types/components/NetworkMap/CustomMarker.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/CustomNavigateButtons.d.ts +4 -0
- package/dist/types/components/NetworkMap/CustomNavigateButtons.d.ts.map +1 -0
- package/dist/types/components/NetworkMap/LinkCountCircule.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/Map.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/SourcePort.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/types.d.ts +1 -0
- package/dist/types/components/NetworkMap/types.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/useCreatePath.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/nextgen.d.ts
CHANGED
package/dist/nextgen.js
CHANGED
|
@@ -14,7 +14,7 @@ import { LayerExtension, _mergeShaders } from "@deck.gl/core";
|
|
|
14
14
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
15
15
|
import { Cross2Icon, MagnifyingGlassIcon, ChevronDownIcon, ArrowLeftIcon, ArrowRightIcon, CheckIcon as CheckIcon$2, InfoCircledIcon, QuestionMarkCircledIcon } from "@radix-ui/react-icons";
|
|
16
16
|
import $ from "jquery";
|
|
17
|
-
import { CheckIcon as CheckIcon$1, Copy, CheckCheck, Info, ChevronUp, ChevronDown, X, Check, ChevronRight, ChevronLeft, EllipsisVertical, Eye, EyeOff, Filter, Search, ArrowUpDown, Rows4, FoldHorizontal, Grid2x2CheckIcon, Download, FilterX, RotateCw, Fullscreen, Brackets, LucideEllipsisVertical, Columns3, AlertTriangle, GripHorizontal, CircleCheckBig, CircleAlert, TriangleAlert, CircleHelp } from "lucide-react";
|
|
17
|
+
import { CheckIcon as CheckIcon$1, MapPin, Copy, CheckCheck, Info, ChevronUp, ChevronDown, X, Check, ChevronRight, ChevronLeft, EllipsisVertical, Eye, EyeOff, Filter, Search, ArrowUpDown, Rows4, FoldHorizontal, Grid2x2CheckIcon, Download, FilterX, RotateCw, Fullscreen, Brackets, LucideEllipsisVertical, Columns3, AlertTriangle, GripHorizontal, CircleCheckBig, CircleAlert, TriangleAlert, CircleHelp } from "lucide-react";
|
|
18
18
|
export * from "lucide-react";
|
|
19
19
|
import copy$1 from "copy-to-clipboard";
|
|
20
20
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
@@ -14148,7 +14148,7 @@ const useCreatePath = ({ connections = [], mapApi, options: options2, selectedCo
|
|
|
14148
14148
|
() => {
|
|
14149
14149
|
var _a;
|
|
14150
14150
|
const seen = /* @__PURE__ */ new Set();
|
|
14151
|
-
const f0 = (_a = connections == null ? void 0 : connections.filter((item) => (item == null ? void 0 : item.layer) === 0)) == null ? void 0 : _a.filter((item) => {
|
|
14151
|
+
const f0 = (_a = connections == null ? void 0 : connections.filter((item) => (item == null ? void 0 : item.layer) === 0 && (item == null ? void 0 : item.destination) && (item == null ? void 0 : item.source))) == null ? void 0 : _a.filter((item) => {
|
|
14152
14152
|
if (seen.has(item.sourcesId)) return false;
|
|
14153
14153
|
seen.add(item.sourcesId);
|
|
14154
14154
|
return true;
|
|
@@ -14212,7 +14212,6 @@ const useCreatePath = ({ connections = [], mapApi, options: options2, selectedCo
|
|
|
14212
14212
|
}
|
|
14213
14213
|
return d.linkColor ? d.linkColor : options2 == null ? void 0 : options2.defaultLinkColorHex;
|
|
14214
14214
|
},
|
|
14215
|
-
// opacity: options?.draggingMode ? 0 : 1 ,
|
|
14216
14215
|
main: true,
|
|
14217
14216
|
capRounded: true,
|
|
14218
14217
|
visible: mapDragging && (options2 == null ? void 0 : options2.hideLinksOnDrag) || (options2 == null ? void 0 : options2.draggingMode) && (options2 == null ? void 0 : options2.hideLinksOnDrag) || (options2 == null ? void 0 : options2.hideLinks) ? false : true,
|
|
@@ -14291,7 +14290,8 @@ const CustomMarker = (props) => {
|
|
|
14291
14290
|
children,
|
|
14292
14291
|
offset = [0, 0],
|
|
14293
14292
|
markerProps = {},
|
|
14294
|
-
style: style2 = {}
|
|
14293
|
+
style: style2 = {},
|
|
14294
|
+
className = {}
|
|
14295
14295
|
} = props;
|
|
14296
14296
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14297
14297
|
Marker,
|
|
@@ -14299,8 +14299,11 @@ const CustomMarker = (props) => {
|
|
|
14299
14299
|
longitude,
|
|
14300
14300
|
latitude,
|
|
14301
14301
|
anchor: "center",
|
|
14302
|
+
className: cn(
|
|
14303
|
+
"group z-30 isolate hover:z-40",
|
|
14304
|
+
className
|
|
14305
|
+
),
|
|
14302
14306
|
style: {
|
|
14303
|
-
zIndex: 30,
|
|
14304
14307
|
...style2
|
|
14305
14308
|
},
|
|
14306
14309
|
offset,
|
|
@@ -14309,7 +14312,7 @@ const CustomMarker = (props) => {
|
|
|
14309
14312
|
);
|
|
14310
14313
|
};
|
|
14311
14314
|
const CustomMarker$1 = memo(CustomMarker);
|
|
14312
|
-
function ConnectionBadge({ data, getCenterBox, points, mapApi, hoveredConnection }) {
|
|
14315
|
+
function ConnectionBadge({ data, getCenterBox, points, mapApi, hoveredConnection, setSupressLinkHover }) {
|
|
14313
14316
|
const element = useMemo(() => {
|
|
14314
14317
|
if (!data) return null;
|
|
14315
14318
|
const visible = (hoveredConnection == null ? void 0 : hoveredConnection.u_id) == (data == null ? void 0 : data.u_id) ? true : false;
|
|
@@ -14320,6 +14323,8 @@ function ConnectionBadge({ data, getCenterBox, points, mapApi, hoveredConnection
|
|
|
14320
14323
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledTooltip, { title: "Number of connections", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14321
14324
|
"div",
|
|
14322
14325
|
{
|
|
14326
|
+
onMouseEnter: () => setSupressLinkHover(true),
|
|
14327
|
+
onMouseLeave: () => setSupressLinkHover(false),
|
|
14323
14328
|
id: "#" + (data == null ? void 0 : data.connCountBoxId),
|
|
14324
14329
|
style: {
|
|
14325
14330
|
backgroundColor: data == null ? void 0 : data.linkColorHex,
|
|
@@ -14345,7 +14350,8 @@ const LinkCountCircule = (props) => {
|
|
|
14345
14350
|
mapZooming,
|
|
14346
14351
|
getCenterBox,
|
|
14347
14352
|
hoveredConnection,
|
|
14348
|
-
draggingMode: draggingMode2
|
|
14353
|
+
draggingMode: draggingMode2,
|
|
14354
|
+
setSupressLinkHover
|
|
14349
14355
|
} = props;
|
|
14350
14356
|
const [midpoint, setMidpoint] = useState(null);
|
|
14351
14357
|
const [isVisible, setIsVisible] = useState(true);
|
|
@@ -14382,7 +14388,8 @@ const LinkCountCircule = (props) => {
|
|
|
14382
14388
|
mapApi,
|
|
14383
14389
|
points: midpoint,
|
|
14384
14390
|
getCenterBox,
|
|
14385
|
-
hoveredConnection
|
|
14391
|
+
hoveredConnection,
|
|
14392
|
+
setSupressLinkHover
|
|
14386
14393
|
}
|
|
14387
14394
|
)
|
|
14388
14395
|
}
|
|
@@ -14445,30 +14452,55 @@ const PortText = (props) => {
|
|
|
14445
14452
|
data,
|
|
14446
14453
|
isFocused,
|
|
14447
14454
|
fontSize,
|
|
14448
|
-
isSource
|
|
14455
|
+
isSource,
|
|
14456
|
+
setSupressLinkHover
|
|
14449
14457
|
} = props;
|
|
14458
|
+
const vsConnectionHander = (data2) => {
|
|
14459
|
+
console.log(data2);
|
|
14460
|
+
};
|
|
14450
14461
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14451
14462
|
"div",
|
|
14452
14463
|
{
|
|
14453
14464
|
ref,
|
|
14465
|
+
onMouseEnter: (e) => {
|
|
14466
|
+
console.log(data);
|
|
14467
|
+
setSupressLinkHover(true);
|
|
14468
|
+
},
|
|
14469
|
+
onMouseLeave: (e) => {
|
|
14470
|
+
setSupressLinkHover(false);
|
|
14471
|
+
},
|
|
14454
14472
|
className: cn(
|
|
14455
|
-
"w-fit h-fit font-geist
|
|
14456
|
-
isFocused && "!scale-[1.5]"
|
|
14473
|
+
"space-y-[2px] hover:space-y-1 w-fit h-fit hover:bg-black/50 font-geist text-xs rounded text-accent p-1 cursor-default pointer-events-all hover:!scale-[1.5] transition-all duration-300",
|
|
14474
|
+
isFocused && "!scale-[1.5]",
|
|
14475
|
+
!isVisible && "opacity-0"
|
|
14457
14476
|
),
|
|
14458
14477
|
style: {
|
|
14459
14478
|
transform: `rotate(${rotation}deg)`,
|
|
14460
14479
|
transformOrigin: "50% 50%",
|
|
14461
|
-
|
|
14480
|
+
position: "relative",
|
|
14462
14481
|
alignItems: "center",
|
|
14463
14482
|
justifyContent: "center",
|
|
14464
|
-
backgroundColor: data == null ? void 0 : data.linkColorHex,
|
|
14465
|
-
opacity: isVisible ? 1 : 0,
|
|
14466
14483
|
fontSize: fontSize + "rem"
|
|
14467
14484
|
},
|
|
14468
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14469
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
14470
|
-
"
|
|
14471
|
-
|
|
14485
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (_a = data == null ? void 0 : data.linksGroup) == null ? void 0 : _a.map((item) => {
|
|
14486
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
14487
|
+
"div",
|
|
14488
|
+
{
|
|
14489
|
+
className: cn(
|
|
14490
|
+
"flex gap-x-2 px-1 group/2 w-fit rounded-full relative hover:ring-[4px] outline-offset-1 outline-blue-600 transition-all duration-300 ease-in-out"
|
|
14491
|
+
),
|
|
14492
|
+
id: `#sub-${item == null ? void 0 : item.u_id}`,
|
|
14493
|
+
onMouseEnter: () => vsConnectionHander(item),
|
|
14494
|
+
style: {
|
|
14495
|
+
backgroundColor: data == null ? void 0 : data.linkColorHex
|
|
14496
|
+
},
|
|
14497
|
+
children: [
|
|
14498
|
+
(item == null ? void 0 : item.isSource) ? item == null ? void 0 : item.sourcePort : item == null ? void 0 : item.destinationPort,
|
|
14499
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[0px] group-hover/2:text-xs text-black/80 -translate-x-full group-hover/2:translate-x-0 transition-all duration-300 ease-in-out relative flex gap-x-2", children: isSource ? item == null ? void 0 : item.destinationPort : item == null ? void 0 : item.sourcePort })
|
|
14500
|
+
]
|
|
14501
|
+
},
|
|
14502
|
+
"txtport-" + (item == null ? void 0 : item.u_id)
|
|
14503
|
+
);
|
|
14472
14504
|
}) })
|
|
14473
14505
|
}
|
|
14474
14506
|
);
|
|
@@ -14484,7 +14516,9 @@ const SourcesPorts = (props) => {
|
|
|
14484
14516
|
getEndpointText,
|
|
14485
14517
|
mapRotating,
|
|
14486
14518
|
fontSize,
|
|
14487
|
-
draggingMode: draggingMode2
|
|
14519
|
+
draggingMode: draggingMode2,
|
|
14520
|
+
supressLinkHover,
|
|
14521
|
+
setSupressLinkHover
|
|
14488
14522
|
} = props;
|
|
14489
14523
|
const [midpoint, setMidpoint] = useState(null);
|
|
14490
14524
|
const [isVisible, setIsVisible] = useState(true);
|
|
@@ -14619,7 +14653,10 @@ const SourcesPorts = (props) => {
|
|
|
14619
14653
|
isFocused,
|
|
14620
14654
|
fontSize,
|
|
14621
14655
|
isSource: true,
|
|
14622
|
-
draggingMode: draggingMode2
|
|
14656
|
+
draggingMode: draggingMode2,
|
|
14657
|
+
supressLinkHover,
|
|
14658
|
+
setSupressLinkHover,
|
|
14659
|
+
vsConn: data == null ? void 0 : data.destinationPort
|
|
14623
14660
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14624
14661
|
PortText,
|
|
14625
14662
|
{
|
|
@@ -14629,7 +14666,10 @@ const SourcesPorts = (props) => {
|
|
|
14629
14666
|
data,
|
|
14630
14667
|
isFocused,
|
|
14631
14668
|
fontSize,
|
|
14632
|
-
isSource: true
|
|
14669
|
+
isSource: true,
|
|
14670
|
+
supressLinkHover,
|
|
14671
|
+
setSupressLinkHover,
|
|
14672
|
+
vsConn: data == null ? void 0 : data.destinationPort
|
|
14633
14673
|
}
|
|
14634
14674
|
)
|
|
14635
14675
|
}
|
|
@@ -14648,7 +14688,10 @@ const SourcesPorts = (props) => {
|
|
|
14648
14688
|
isFocused,
|
|
14649
14689
|
fontSize,
|
|
14650
14690
|
isSource: false,
|
|
14651
|
-
draggingMode: draggingMode2
|
|
14691
|
+
draggingMode: draggingMode2,
|
|
14692
|
+
supressLinkHover,
|
|
14693
|
+
setSupressLinkHover,
|
|
14694
|
+
vsConn: data == null ? void 0 : data.sourcePort
|
|
14652
14695
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14653
14696
|
PortText,
|
|
14654
14697
|
{
|
|
@@ -14659,7 +14702,10 @@ const SourcesPorts = (props) => {
|
|
|
14659
14702
|
getEndpointText,
|
|
14660
14703
|
isFocused,
|
|
14661
14704
|
fontSize,
|
|
14662
|
-
isSource: false
|
|
14705
|
+
isSource: false,
|
|
14706
|
+
supressLinkHover,
|
|
14707
|
+
setSupressLinkHover,
|
|
14708
|
+
vsConn: data == null ? void 0 : data.sourcePort
|
|
14663
14709
|
}
|
|
14664
14710
|
)
|
|
14665
14711
|
}
|
|
@@ -14667,6 +14713,20 @@ const SourcesPorts = (props) => {
|
|
|
14667
14713
|
] });
|
|
14668
14714
|
};
|
|
14669
14715
|
const SourcesPorts$1 = memo(SourcesPorts);
|
|
14716
|
+
const CustomNavigateButtons = (props) => {
|
|
14717
|
+
const {
|
|
14718
|
+
mapApi,
|
|
14719
|
+
showGoNodeControlButton
|
|
14720
|
+
} = props;
|
|
14721
|
+
const onMapPinClick = () => {
|
|
14722
|
+
var _a, _b, _c, _d;
|
|
14723
|
+
(_d = mapApi == null ? void 0 : mapApi.current) == null ? void 0 : _d.FlyToNodeApi(
|
|
14724
|
+
(_c = (_b = (_a = mapApi == null ? void 0 : mapApi.current) == null ? void 0 : _a.nodes) == null ? void 0 : _b[0]) == null ? void 0 : _c.elementId
|
|
14725
|
+
);
|
|
14726
|
+
};
|
|
14727
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute bottom-10 overflow-hidden right-3 z-50 min-h-[60px] w-[25px] gap-2 bg-white border rounded-full flex flex-wrap items-center justify-center py-1", children: showGoNodeControlButton && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledTooltip, { title: "Go to first node", children: /* @__PURE__ */ jsxRuntimeExports.jsx(MapPin, { onClick: onMapPinClick, className: "text-blue-600 hover:bg-accent rounded-full", size: 18 }) }) });
|
|
14728
|
+
};
|
|
14729
|
+
const CustomNavigateButtons$1 = memo(CustomNavigateButtons);
|
|
14670
14730
|
const baseFont = 0.75;
|
|
14671
14731
|
const mapStyles = [
|
|
14672
14732
|
{ "name": "street1", url: "https://api.maptiler.com/maps/streets/style.json?key=4s1cX8zNpChcrWFsQqbP" },
|
|
@@ -14699,6 +14759,7 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
14699
14759
|
MapLogoClassName,
|
|
14700
14760
|
MapLogoStyle,
|
|
14701
14761
|
linkAnimation = true,
|
|
14762
|
+
showGoNodeControlButton = true,
|
|
14702
14763
|
onConnClick = () => {
|
|
14703
14764
|
},
|
|
14704
14765
|
onConnection,
|
|
@@ -14758,6 +14819,7 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
14758
14819
|
const [inViewNodes, setInViewNodes] = useState([]);
|
|
14759
14820
|
const [inViewConnections, setInViewConnections] = useState([]);
|
|
14760
14821
|
const [hasInternet, setHasInternet] = useState(true);
|
|
14822
|
+
const [supressLinkHover, setSupressLinkHover] = useState(false);
|
|
14761
14823
|
useEffect(() => {
|
|
14762
14824
|
if (debug) {
|
|
14763
14825
|
console.log(props);
|
|
@@ -14837,10 +14899,12 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
14837
14899
|
}
|
|
14838
14900
|
const CreateMapObjectsScheme = useCallback((_nodes2, _connections, updateOnly = false) => {
|
|
14839
14901
|
if (!mapApi.current) return;
|
|
14840
|
-
const processedNodes = _nodes2.map((node2) =>
|
|
14841
|
-
|
|
14842
|
-
|
|
14843
|
-
|
|
14902
|
+
const processedNodes = _nodes2.map((node2) => {
|
|
14903
|
+
return {
|
|
14904
|
+
...node2,
|
|
14905
|
+
connections: []
|
|
14906
|
+
};
|
|
14907
|
+
});
|
|
14844
14908
|
const processedConnections = updateOnly ? _connections : _connections == null ? void 0 : _connections.map((conn) => {
|
|
14845
14909
|
return {
|
|
14846
14910
|
...conn,
|
|
@@ -14857,21 +14921,40 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
14857
14921
|
data: conn,
|
|
14858
14922
|
connCountBoxId: useRandomId(),
|
|
14859
14923
|
timestamp: [0, 5, 10, 15],
|
|
14860
|
-
// linkCount : linksGroup?.length,
|
|
14861
|
-
// linksGroup : linksGroup ,
|
|
14862
14924
|
sourcesId: (conn.sourceId + conn.destinationId).toString().split("").sort().join(""),
|
|
14863
14925
|
fullSourcesId: (conn.sourceId + (conn == null ? void 0 : conn.sourcePort) + conn.destinationId + (conn == null ? void 0 : conn.destinationPort)).toString().split("").sort().join("")
|
|
14864
14926
|
};
|
|
14865
14927
|
});
|
|
14928
|
+
processedConnections == null ? void 0 : processedConnections.map((con) => {
|
|
14929
|
+
const sourcesId = con == null ? void 0 : con.sourcesId;
|
|
14930
|
+
const s = processedConnections == null ? void 0 : processedConnections.filter((item) => (item == null ? void 0 : item.sourcesId) == sourcesId);
|
|
14931
|
+
con.linkCount = s == null ? void 0 : s.length;
|
|
14932
|
+
con.linksGroup = s;
|
|
14933
|
+
});
|
|
14934
|
+
if (debug) {
|
|
14935
|
+
console.log("Processed Nodes", processedNodes);
|
|
14936
|
+
console.log("Processed Connections", processedConnections);
|
|
14937
|
+
}
|
|
14938
|
+
const seen = /* @__PURE__ */ new Set();
|
|
14939
|
+
const f0 = [];
|
|
14940
|
+
const ignored = [];
|
|
14941
|
+
for (const conn of processedConnections || []) {
|
|
14942
|
+
if (seen.has(conn.sourcesId)) {
|
|
14943
|
+
ignored.push(conn.sourceId);
|
|
14944
|
+
continue;
|
|
14945
|
+
}
|
|
14946
|
+
f0.push(conn);
|
|
14947
|
+
seen.add(conn.sourcesId);
|
|
14948
|
+
}
|
|
14866
14949
|
processedNodes.forEach((node2, nodeIndex) => {
|
|
14867
|
-
|
|
14950
|
+
f0.forEach((conn, connIndex) => {
|
|
14868
14951
|
const key = (node2 == null ? void 0 : node2.elementId) === (conn == null ? void 0 : conn.sourceId) ? "source" : (node2 == null ? void 0 : node2.elementId) === (conn == null ? void 0 : conn.destinationId) ? "destination" : null;
|
|
14869
14952
|
if (key) {
|
|
14870
|
-
|
|
14871
|
-
...
|
|
14953
|
+
f0[connIndex].nodes = [
|
|
14954
|
+
...f0[connIndex].nodes,
|
|
14872
14955
|
node2
|
|
14873
14956
|
];
|
|
14874
|
-
|
|
14957
|
+
f0[connIndex][key] = node2 == null ? void 0 : node2.location;
|
|
14875
14958
|
processedNodes[nodeIndex].connections = [
|
|
14876
14959
|
...processedNodes[nodeIndex].connections,
|
|
14877
14960
|
conn
|
|
@@ -14879,18 +14962,18 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
14879
14962
|
}
|
|
14880
14963
|
});
|
|
14881
14964
|
});
|
|
14882
|
-
processedConnections == null ? void 0 : processedConnections.map((con) => {
|
|
14883
|
-
const sourcesId = con == null ? void 0 : con.sourcesId;
|
|
14884
|
-
const s = processedConnections == null ? void 0 : processedConnections.filter((item) => (item == null ? void 0 : item.sourcesId) == sourcesId);
|
|
14885
|
-
con.linkCount = s == null ? void 0 : s.length;
|
|
14886
|
-
con.linksGroup = s;
|
|
14887
|
-
});
|
|
14888
|
-
if (debug) {
|
|
14889
|
-
console.log("Processed Nodes", processedNodes);
|
|
14890
|
-
console.log("Processed Connections", processedConnections);
|
|
14891
|
-
}
|
|
14892
14965
|
setNodes(processedNodes);
|
|
14893
|
-
setConns(
|
|
14966
|
+
setConns(f0);
|
|
14967
|
+
console.log(
|
|
14968
|
+
"seen ",
|
|
14969
|
+
seen.length,
|
|
14970
|
+
"f0 ",
|
|
14971
|
+
f0.length,
|
|
14972
|
+
"ignored ",
|
|
14973
|
+
ignored.length,
|
|
14974
|
+
"all",
|
|
14975
|
+
connections.length
|
|
14976
|
+
);
|
|
14894
14977
|
}, [mapApi]);
|
|
14895
14978
|
useEffect(() => {
|
|
14896
14979
|
if (!mapApi.current) return;
|
|
@@ -14979,6 +15062,7 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
14979
15062
|
var _a, _b;
|
|
14980
15063
|
return (_b = (_a = mapApi.current) == null ? void 0 : _a.getCanvas) == null ? void 0 : _b.call(_a);
|
|
14981
15064
|
},
|
|
15065
|
+
props,
|
|
14982
15066
|
createNode,
|
|
14983
15067
|
removeNode,
|
|
14984
15068
|
getNodes,
|
|
@@ -15006,8 +15090,14 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
15006
15090
|
setSelectedConn,
|
|
15007
15091
|
setSelectedNode,
|
|
15008
15092
|
setOnScreenLinksGroup,
|
|
15009
|
-
...mapApi.current
|
|
15010
|
-
|
|
15093
|
+
...mapApi.current,
|
|
15094
|
+
inViewConnections,
|
|
15095
|
+
inViewNodes,
|
|
15096
|
+
connections,
|
|
15097
|
+
nodes,
|
|
15098
|
+
setSupressLinkHover,
|
|
15099
|
+
supressLinkHover
|
|
15100
|
+
}), [debug, showAllLinks, showGoNodeControlButton]);
|
|
15011
15101
|
const _menuItems = useMemo(() => {
|
|
15012
15102
|
return (menuItems == null ? void 0 : menuItems.map((item) => ({
|
|
15013
15103
|
...item,
|
|
@@ -15053,6 +15143,9 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
15053
15143
|
};
|
|
15054
15144
|
const handleHover = (e) => {
|
|
15055
15145
|
var _a, _b, _c;
|
|
15146
|
+
if (supressLinkHover) {
|
|
15147
|
+
return;
|
|
15148
|
+
}
|
|
15056
15149
|
if (!e.layer) {
|
|
15057
15150
|
setHoveredConnection(null);
|
|
15058
15151
|
}
|
|
@@ -15203,10 +15296,11 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
15203
15296
|
selectedNode,
|
|
15204
15297
|
onNodeSelected: _onNodeSelected,
|
|
15205
15298
|
onNodeMouseOver: _onNodeMouseOver,
|
|
15206
|
-
mapApi,
|
|
15299
|
+
mapApi: ref,
|
|
15207
15300
|
nodes: _nodes,
|
|
15208
15301
|
connections: _conns,
|
|
15209
|
-
setNodeContextMenuEvent
|
|
15302
|
+
setNodeContextMenuEvent,
|
|
15303
|
+
setSupressLinkHover
|
|
15210
15304
|
},
|
|
15211
15305
|
"_node_" + (item == null ? void 0 : item.elementId)
|
|
15212
15306
|
);
|
|
@@ -15216,7 +15310,7 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
15216
15310
|
{
|
|
15217
15311
|
conn: hoveredConnection,
|
|
15218
15312
|
coordinates: currentCoordinates,
|
|
15219
|
-
mapApi,
|
|
15313
|
+
mapApi: ref,
|
|
15220
15314
|
getOverLinkElement,
|
|
15221
15315
|
getOverLinkElementDelay,
|
|
15222
15316
|
draggingMode: draggingMode2
|
|
@@ -15227,11 +15321,12 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
15227
15321
|
LinkCountCircule$1,
|
|
15228
15322
|
{
|
|
15229
15323
|
data: con,
|
|
15230
|
-
mapApi,
|
|
15324
|
+
mapApi: ref,
|
|
15231
15325
|
mapDragging,
|
|
15232
15326
|
getCenterBox,
|
|
15233
15327
|
hoveredConnection,
|
|
15234
|
-
draggingMode: draggingMode2
|
|
15328
|
+
draggingMode: draggingMode2,
|
|
15329
|
+
setSupressLinkHover
|
|
15235
15330
|
},
|
|
15236
15331
|
"_lnk_count_circule_" + (con == null ? void 0 : con.u_id)
|
|
15237
15332
|
);
|
|
@@ -15242,20 +15337,25 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
15242
15337
|
{
|
|
15243
15338
|
fontSize: sourcePortsFontSizePercentage,
|
|
15244
15339
|
data: con,
|
|
15245
|
-
mapApi,
|
|
15340
|
+
mapApi: ref,
|
|
15246
15341
|
currentZoomLevel,
|
|
15247
15342
|
hoveredConnection,
|
|
15248
15343
|
mapDragging,
|
|
15249
15344
|
getEndpointText,
|
|
15250
15345
|
mapRotating,
|
|
15251
|
-
draggingMode: draggingMode2
|
|
15346
|
+
draggingMode: draggingMode2,
|
|
15347
|
+
setSupressLinkHover
|
|
15252
15348
|
},
|
|
15253
15349
|
"_source_port_" + (con == null ? void 0 : con.u_id)
|
|
15254
15350
|
);
|
|
15255
15351
|
})),
|
|
15352
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(NavigationControl, {}),
|
|
15256
15353
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15257
|
-
|
|
15258
|
-
{
|
|
15354
|
+
CustomNavigateButtons$1,
|
|
15355
|
+
{
|
|
15356
|
+
mapApi: ref,
|
|
15357
|
+
showGoNodeControlButton
|
|
15358
|
+
}
|
|
15259
15359
|
),
|
|
15260
15360
|
MapLogo && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15261
15361
|
"div",
|