Merge branch 'master' into deerFix

This commit is contained in:
Yanyan Wang 2018-07-30 16:48:45 +08:00 committed by GitHub
commit b0f0a5fea1
3 changed files with 6 additions and 5 deletions

View File

@ -94,13 +94,16 @@
modes: {
default: ['panCanvas', 'wheelZoom']
},
height: 600,
height: 500,
});
graph.read(data);
const minimap = document.getElementById('minimap');
const legend = document.getElementById('legend');
if (minimap !== undefined) minimap.style.display = 'none';
if (legend !== undefined) legend.style.display = 'none';
setTimeout(()=>{
graph.destroy();
}, 1000)
});
</script>

View File

@ -475,9 +475,7 @@ class Plugin {
}
}
destroy() {
this.legend.destroy();
this.legendCanvas.destroy();
this.scale.destroy();
this.legendCanvas && this.legendCanvas.destroy();
}
}

View File

@ -1 +1 @@
module.exports = '2.0.5-beta.12';
module.exports = '2.0.5-beta.9';