Merge pull request #401 from antvis/fixMapperDestroyBug

Fix mapper destroy bug
This commit is contained in:
Yanyan Wang 2018-07-30 11:23:56 +08:00 committed by GitHub
commit af359e2ec5
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.8';
module.exports = '2.0.5-beta.9';