auto fit network after load

This commit is contained in:
liamcottle 2024-08-16 19:26:33 +12:00
commit 0313f6ccf4

View file

@ -154,6 +154,13 @@ export default {
// update network
await this.update();
// fit network after initial load
setTimeout(() => {
this.network.fit({
animation: true,
});
}, 2000);
},
async update() {