Browse Source

- prerelease.2

flowchartTest
Alex de Mulder 9 years ago
parent
commit
5dba668fb8
5 changed files with 7 additions and 5 deletions
  1. +1
    -0
      dist/vis.js
  2. +1
    -1
      dist/vis.map
  3. +1
    -1
      dist/vis.min.js
  4. +1
    -0
      lib/network/modules/CanvasRenderer.js
  5. +3
    -3
      test/network_unittests.html

+ 1
- 0
dist/vis.js View File

@ -34924,6 +34924,7 @@ return /******/ (function(modules) { // webpackBootstrap
}); });
this.body.emitter.on('destroy', function () { this.body.emitter.on('destroy', function () {
_this.renderRequests = 0; _this.renderRequests = 0;
_this.allowRedraw = false;
_this.renderingActive = false; _this.renderingActive = false;
if (_this.requiresTimeout === true) { if (_this.requiresTimeout === true) {
clearTimeout(_this.renderTimer); clearTimeout(_this.renderTimer);

+ 1
- 1
dist/vis.map
File diff suppressed because it is too large
View File


+ 1
- 1
dist/vis.min.js
File diff suppressed because it is too large
View File


+ 1
- 0
lib/network/modules/CanvasRenderer.js View File

@ -57,6 +57,7 @@ class CanvasRenderer {
}); });
this.body.emitter.on('destroy', () => { this.body.emitter.on('destroy', () => {
this.renderRequests = 0; this.renderRequests = 0;
this.allowRedraw = false;
this.renderingActive = false; this.renderingActive = false;
if (this.requiresTimeout === true) { if (this.requiresTimeout === true) {
clearTimeout(this.renderTimer); clearTimeout(this.renderTimer);

+ 3
- 3
test/network_unittests.html View File

@ -46,7 +46,7 @@
}; };
var container = document.getElementById('mynetwork'); var container = document.getElementById('mynetwork');
function drawQuick(testOptions) {
function drawQuick() {
draw({physics:{stabilization:false}}); draw({physics:{stabilization:false}});
} }
@ -192,7 +192,7 @@
console.error("FAILED", JSON.stringify(testOptions, null, 4)) console.error("FAILED", JSON.stringify(testOptions, null, 4))
}, 500); }, 500);
var counter = 0; var counter = 0;
drawQuick(testOptions);
drawQuick();
network.on("afterDrawing", function () { network.on("afterDrawing", function () {
counter++; counter++;
if (counter > 2) { if (counter > 2) {
@ -206,7 +206,7 @@
clearTimeout(failed); clearTimeout(failed);
network.destroy(); network.destroy();
}); });
network.on("destroy", function () {
network.once("destroy", function () {
clearTimeout(failed); clearTimeout(failed);
setTimeout(checkOptions, 100); setTimeout(checkOptions, 100);
}) })

Loading…
Cancel
Save