diff --git a/HISTORY.md b/HISTORY.md index 55884a46..2f89ed2d 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -13,6 +13,7 @@ http://visjs.org - Fixed #1343: Connected edges are now deselected too when deselecting a node. - Fixed #1398: Support nodes start with the correct positions. +- Fixed #1324: Labels now scale again. ### Timeline diff --git a/dist/vis.js b/dist/vis.js index 0667889e..691cda96 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -28672,6 +28672,8 @@ return /******/ (function(modules) { // webpackBootstrap this.options.size = this.baseSize; this.options.font.size = this.baseFontSize; } + + this.updateLabelModule(); } /** @@ -31410,6 +31412,7 @@ return /******/ (function(modules) { // webpackBootstrap } this._setInteractionWidths(); + this.updateLabelModule(); } }, { key: '_setInteractionWidths', diff --git a/lib/network/modules/components/Edge.js b/lib/network/modules/components/Edge.js index 236e10de..89ac1c76 100644 --- a/lib/network/modules/components/Edge.js +++ b/lib/network/modules/components/Edge.js @@ -344,6 +344,7 @@ class Edge { } this._setInteractionWidths(); + this.updateLabelModule(); } _setInteractionWidths() { diff --git a/lib/network/modules/components/Node.js b/lib/network/modules/components/Node.js index 89152195..44c38993 100644 --- a/lib/network/modules/components/Node.js +++ b/lib/network/modules/components/Node.js @@ -381,6 +381,8 @@ class Node { this.options.size = this.baseSize; this.options.font.size = this.baseFontSize; } + + this.updateLabelModule(); } diff --git a/test/networkTest.html b/test/networkTest.html index 6b424b72..11d09d98 100644 --- a/test/networkTest.html +++ b/test/networkTest.html @@ -5,102 +5,91 @@ - +
+ - - - +