@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, so initial macro view stays closer to first particle layers instead of over-distancing
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.0028
2218
- if (nodeCount > largeGraphNodeThreshold) return 0.0014
2219
- if (nodeCount > ecosystemActivationNodeThreshold) return 0.0006
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.052 : 0.046
2293
- const targetPx = Math.max(18, viewportReference * share)
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.068 : 0.058
2332
- const targetPx = Math.max(22, viewportReference * targetShare)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andespindola/brainlink",
3
- "version": "0.1.0-beta.102",
3
+ "version": "0.1.0-beta.103",
4
4
  "description": "Local-first knowledge memory for agents with Markdown, backlinks, indexing and context retrieval.",
5
5
  "type": "module",
6
6
  "license": "MIT",