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 => {
|
.onNodeClick(node => {
|
||||||
window.location = node.url;
|
window.location = node.url;
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
if (delay != null) {
|
||||||
Graph.zoomToFit(5, 75);
|
setTimeout(() => {
|
||||||
}, delay);
|
Graph.zoomToFit(5, 75);
|
||||||
|
}, delay);
|
||||||
|
}
|
||||||
return Graph;
|
return Graph;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,7 +119,7 @@
|
|||||||
Graph._destructor();
|
Graph._destructor();
|
||||||
Graph = null;
|
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;
|
window.fullGraph = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user