mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 20:55:21 +00:00
local graph zoom fix
This commit is contained in:
parent
ce494682cf
commit
24d7bdce5b
@ -93,9 +93,11 @@
|
||||
.onNodeClick(node => {
|
||||
window.location = node.url;
|
||||
});
|
||||
if (delay != null) {
|
||||
setTimeout(() => {
|
||||
Graph.zoomToFit(5, 75);
|
||||
}, delay);
|
||||
}
|
||||
return Graph;
|
||||
}
|
||||
|
||||
@ -117,7 +119,7 @@
|
||||
Graph._destructor();
|
||||
Graph = null;
|
||||
}
|
||||
renderGraph(filterToDepth(JSON.parse(JSON.stringify(window.graphData))), "link-graph", 330, 330, 1);
|
||||
renderGraph(filterToDepth(JSON.parse(JSON.stringify(window.graphData))), "link-graph", 330, 330, null);
|
||||
})
|
||||
|
||||
window.fullGraph = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user