fix: 图谱按分组铺满画布坐标,不再挤左上角

This commit is contained in:
hunter-dev
2026-08-24 20:59:29 +08:00
parent 13a80c7dc5
commit b63df651d2
2 changed files with 19 additions and 26 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export function registerIpc(vault: VaultService) {
ipcMain.handle(IPC.search, async (_e, p: { query: string }) => vault.searchService?.search(p.query) ?? []);
ipcMain.handle(IPC.tagStats, async () => vault.searchService?.tagStats() ?? []);
ipcMain.handle(IPC.graph, async () => {
const fs2 = vault.fileService; console.log('[GRAPH-HANDLER] fs2?', !!fs2);
const fs2 = vault.fileService;
if (!fs2) return { nodes: [], edges: [] };
const tree = await fs2.listTree();
const gd = await buildGraphData(fs2.getRoot(), tree); return gd;