@naniteninja/profile-comparison-lib 1.0.23 → 1.0.24
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.
|
@@ -2681,7 +2681,6 @@ class ProfileComparisonLibComponent {
|
|
|
2681
2681
|
const minCenterY = startY + chipHalfH;
|
|
2682
2682
|
const verticalSpan = Math.max(0, maxY - minCenterY);
|
|
2683
2683
|
const centerGuard = Math.max(12, Math.min(26, (zoneP2 - zoneP1) * 0.12));
|
|
2684
|
-
const sharedBand = Math.max(12, Math.min(22, (zoneP2 - zoneP1) * 0.09));
|
|
2685
2684
|
// --- Scan matrix for max similarity to normalize spring distances ---
|
|
2686
2685
|
let matrixMax = 0;
|
|
2687
2686
|
if (this.matrixData?.rows) {
|
|
@@ -2812,13 +2811,10 @@ class ProfileComparisonLibComponent {
|
|
|
2812
2811
|
minX = maxX;
|
|
2813
2812
|
}
|
|
2814
2813
|
else {
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
minX = centerX;
|
|
2820
|
-
maxX = centerX;
|
|
2821
|
-
}
|
|
2814
|
+
// Shared chips should align directly under the centered Shared title.
|
|
2815
|
+
const centerX = Math.max(globalMinX, Math.min(globalMaxX, zoneShared));
|
|
2816
|
+
minX = centerX;
|
|
2817
|
+
maxX = centerX;
|
|
2822
2818
|
}
|
|
2823
2819
|
const baseY = node.targetY ?? (minCenterY + fullVerticalSpan * 0.5);
|
|
2824
2820
|
const groupCount = groupCounts[node.group];
|