From 14cb28d3c0d60e82e0aa1f1d81475d7aa3273900 Mon Sep 17 00:00:00 2001 From: TheBestNom Date: Mon, 8 May 2023 23:42:26 +0300 Subject: [PATCH] Update vis netork options after reinit --- src/neovis.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/neovis.ts b/src/neovis.ts index feb245b..8ccf3f6 100644 --- a/src/neovis.ts +++ b/src/neovis.ts @@ -503,6 +503,9 @@ export class NeoVis { this.#consoleLog(this.#data.edges); this.#network = new vis.Network(container, this.#data, options); + } else { + const options = deepmerge(defaults.visJs, this.#config.visConfig ?? {}); + this.#network.setOptions(options); } this.#consoleLog('completed'); setTimeout(