spytial-core 1.4.22 → 1.4.23
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.
|
@@ -91522,6 +91522,21 @@ VVbdfjptxz|~\x80\x82\x84\xA6\xA8W\b
|
|
|
91522
91522
|
}
|
|
91523
91523
|
});
|
|
91524
91524
|
}
|
|
91525
|
+
/**
|
|
91526
|
+
* Gets the current zoom scale factor
|
|
91527
|
+
* @returns Current zoom scale (k value from transform)
|
|
91528
|
+
*/
|
|
91529
|
+
getCurrentZoomScale() {
|
|
91530
|
+
if (this.svg && this.svg.node()) {
|
|
91531
|
+
try {
|
|
91532
|
+
const transform = d32.zoomTransform(this.svg.node());
|
|
91533
|
+
return transform.k;
|
|
91534
|
+
} catch (e) {
|
|
91535
|
+
return 1;
|
|
91536
|
+
}
|
|
91537
|
+
}
|
|
91538
|
+
return 1;
|
|
91539
|
+
}
|
|
91525
91540
|
isErrorGroup(group) {
|
|
91526
91541
|
const overlappingGroups = this.currentLayout.overlappingGroups;
|
|
91527
91542
|
if (!overlappingGroups) {
|
|
@@ -93005,7 +93020,7 @@ VVbdfjptxz|~\x80\x82\x84\xA6\xA8W\b
|
|
|
93005
93020
|
return `${lineHeight}px`;
|
|
93006
93021
|
});
|
|
93007
93022
|
}).raise();
|
|
93008
|
-
this.svgLinkGroups.select("
|
|
93023
|
+
this.svgLinkGroups.select("path").attr("d", (d) => {
|
|
93009
93024
|
let source = d.source;
|
|
93010
93025
|
let target = d.target;
|
|
93011
93026
|
if (d.id?.startsWith("_g_")) {
|
|
@@ -93041,6 +93056,11 @@ VVbdfjptxz|~\x80\x82\x84\xA6\xA8W\b
|
|
|
93041
93056
|
}).attr("y", (d) => {
|
|
93042
93057
|
const pathElement = this.shadowRoot?.querySelector(`path[data-link-id="${d.id}"]`);
|
|
93043
93058
|
return pathElement ? this.calculateNewPosition(pathElement, "y") : (d.source.y + d.target.y) / 2;
|
|
93059
|
+
}).style("font-size", () => {
|
|
93060
|
+
const zoomScale = this.getCurrentZoomScale();
|
|
93061
|
+
const baseFontSize = 12;
|
|
93062
|
+
const adjustedSize = zoomScale < 1 ? baseFontSize / Math.sqrt(zoomScale) : baseFontSize;
|
|
93063
|
+
return `${Math.min(adjustedSize, 16)}px`;
|
|
93044
93064
|
}).raise();
|
|
93045
93065
|
this.updateEdgeEndpointMarkers();
|
|
93046
93066
|
this.svgGroupLabels.attr("x", (d) => {
|
|
@@ -94295,12 +94315,14 @@ VVbdfjptxz|~\x80\x82\x84\xA6\xA8W\b
|
|
|
94295
94315
|
text-anchor: middle;
|
|
94296
94316
|
dominant-baseline: middle;
|
|
94297
94317
|
font-size: 12px;
|
|
94298
|
-
|
|
94318
|
+
font-weight: 500;
|
|
94319
|
+
fill: #1a1a1a;
|
|
94299
94320
|
pointer-events: none;
|
|
94300
|
-
font-family: system-ui;
|
|
94301
|
-
stroke: white;
|
|
94302
|
-
stroke-width:
|
|
94303
|
-
stroke-
|
|
94321
|
+
font-family: system-ui, -apple-system, sans-serif;
|
|
94322
|
+
stroke: white;
|
|
94323
|
+
stroke-width: 3px;
|
|
94324
|
+
stroke-linejoin: round;
|
|
94325
|
+
paint-order: stroke fill;
|
|
94304
94326
|
}
|
|
94305
94327
|
|
|
94306
94328
|
.mostSpecificTypeLabel {
|