claude-cortex 1.11.0 → 1.11.1
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.
|
@@ -114,7 +114,7 @@ export default function KnowledgeGraph({
|
|
|
114
114
|
ctx.setLineDash([]);
|
|
115
115
|
|
|
116
116
|
// Label when zoomed in enough
|
|
117
|
-
if (globalScale >
|
|
117
|
+
if (globalScale > 3) {
|
|
118
118
|
const maxChars = 40;
|
|
119
119
|
const label = node.name.length > maxChars ? node.name.slice(0, maxChars) + '…' : node.name;
|
|
120
120
|
const fontSize = Math.max(10, 12 / globalScale);
|
|
@@ -174,7 +174,7 @@ export default function KnowledgeGraph({
|
|
|
174
174
|
const charge = fg.d3Force('charge');
|
|
175
175
|
if (!charge) return;
|
|
176
176
|
|
|
177
|
-
if (k >
|
|
177
|
+
if (k > 3) {
|
|
178
178
|
// Zoomed in past label threshold — spread nodes for readability
|
|
179
179
|
charge.strength(-50 * k);
|
|
180
180
|
fg.d3ReheatSimulation();
|