Skip to content

Commit

Permalink
fix: fix initial scaling (#70)
Browse files Browse the repository at this point in the history
fixes #60
introduces by #58
  • Loading branch information
mojoaxel authored Aug 13, 2019
1 parent ee6ac8b commit 890f549
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions dist/vis-network.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* A dynamic, browser-based visualization library.
*
* @version 0.0.0-no-version
* @date 2019-08-08T15:18:29Z
* @date 2019-08-13T17:54:48Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2018-2019 visjs contributors, https://github.com/visjs
Expand Down Expand Up @@ -34760,9 +34760,9 @@ function () {

if (!(options.scale > 0)) {
throw new TypeError('The option "scale" has to be a number greater than zero.');
} else {
options.scale = this.body.view.scale;
}
} else {
options.scale = this.body.view.scale;
}

if (options.animation === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion dist/vis-network.esm.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/vis-network.esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vis-network.esm.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/vis-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* A dynamic, browser-based visualization library.
*
* @version 0.0.0-no-version
* @date 2019-08-08T15:18:29Z
* @date 2019-08-13T17:54:48Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2018-2019 visjs contributors, https://github.com/visjs
Expand Down Expand Up @@ -34766,9 +34766,9 @@

if (!(options.scale > 0)) {
throw new TypeError('The option "scale" has to be a number greater than zero.');
} else {
options.scale = this.body.view.scale;
}
} else {
options.scale = this.body.view.scale;
}

if (options.animation === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion dist/vis-network.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/vis-network.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vis-network.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/network/modules/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ class View {
options.scale = +options.scale
if (!(options.scale > 0)) {
throw new TypeError('The option "scale" has to be a number greater than zero.')
} else {
options.scale = this.body.view.scale
}
} else {
options.scale = this.body.view.scale
}

if (options.animation === undefined) {options.animation = {duration:0}; }
Expand Down

0 comments on commit 890f549

Please sign in to comment.