@andespindola/brainlink 0.1.0-beta.102 → 0.1.0-beta.103
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/README.md
CHANGED
|
@@ -595,7 +595,7 @@ The graph UI shows:
|
|
|
595
595
|
- realtime refresh while `--watch` is enabled
|
|
596
596
|
- graph controls for zoom in, zoom out, fit visible nodes and reset-to-fit-all
|
|
597
597
|
- wheel zoom (including `cmd+scroll` and `ctrl+scroll`) anchored to cursor position for faster navigation in large graphs
|
|
598
|
-
- zoom-out floor for large and massive graphs, plus reset macro floor tied to hub-neighbor distance and first-level cluster spacing,
|
|
598
|
+
- zoom-out floor for large and massive graphs, plus reset macro floor tied to hub-neighbor distance and first-level cluster spacing, with a tighter initial camera so the first graph appears as a closer cell instead of a distant mesh
|
|
599
599
|
- keyboard shortcuts: `+` zoom in, `-` zoom out, `0` reset fit
|
|
600
600
|
- double-click on canvas zooms in at cursor position
|
|
601
601
|
- floating graph totals (notes, links, tags) below the Brainlink title
|
|
@@ -2214,9 +2214,9 @@ const currentZoomMax = () => {
|
|
|
2214
2214
|
}
|
|
2215
2215
|
|
|
2216
2216
|
const zoomFloorByNodeCount = (nodeCount) => {
|
|
2217
|
-
if (nodeCount > massiveGraphNodeThreshold) return 0.
|
|
2218
|
-
if (nodeCount > largeGraphNodeThreshold) return 0.
|
|
2219
|
-
if (nodeCount > ecosystemActivationNodeThreshold) return 0.
|
|
2217
|
+
if (nodeCount > massiveGraphNodeThreshold) return 0.0042
|
|
2218
|
+
if (nodeCount > largeGraphNodeThreshold) return 0.0021
|
|
2219
|
+
if (nodeCount > ecosystemActivationNodeThreshold) return 0.001
|
|
2220
2220
|
return zoomRange.min
|
|
2221
2221
|
}
|
|
2222
2222
|
|
|
@@ -2289,8 +2289,8 @@ const macroFaceToFaceScale = (nodeCount, hubDistance) => {
|
|
|
2289
2289
|
|
|
2290
2290
|
const rect = canvas.getBoundingClientRect()
|
|
2291
2291
|
const viewportReference = Math.max(320, Math.min(rect.width, rect.height))
|
|
2292
|
-
const share = nodeCount > massiveGraphNodeThreshold ? 0.
|
|
2293
|
-
const targetPx = Math.max(
|
|
2292
|
+
const share = nodeCount > massiveGraphNodeThreshold ? 0.082 : 0.068
|
|
2293
|
+
const targetPx = Math.max(24, viewportReference * share)
|
|
2294
2294
|
return targetPx / hubDistance
|
|
2295
2295
|
}
|
|
2296
2296
|
|
|
@@ -2328,8 +2328,8 @@ const macroEcosystemFaceScale = (nodeCount) => {
|
|
|
2328
2328
|
|
|
2329
2329
|
const rect = canvas.getBoundingClientRect()
|
|
2330
2330
|
const viewportReference = Math.max(320, Math.min(rect.width, rect.height))
|
|
2331
|
-
const targetShare = nodeCount > massiveGraphNodeThreshold ? 0.
|
|
2332
|
-
const targetPx = Math.max(
|
|
2331
|
+
const targetShare = nodeCount > massiveGraphNodeThreshold ? 0.114 : 0.096
|
|
2332
|
+
const targetPx = Math.max(30, viewportReference * targetShare)
|
|
2333
2333
|
return targetPx / nearestDistance
|
|
2334
2334
|
}
|
|
2335
2335
|
const fitView = (options = { useFiltered: true, macro: false, preferHubCenter: true }) => {
|
package/package.json
CHANGED