mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 19:58:46 +08:00
Merge pull request #401 from antvis/fixMapperDestroyBug
Fix mapper destroy bug
This commit is contained in:
commit
af359e2ec5
@ -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>
|
||||
|
@ -475,9 +475,7 @@ class Plugin {
|
||||
}
|
||||
}
|
||||
destroy() {
|
||||
this.legend.destroy();
|
||||
this.legendCanvas.destroy();
|
||||
this.scale.destroy();
|
||||
this.legendCanvas && this.legendCanvas.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
module.exports = '2.0.5-beta.8';
|
||||
module.exports = '2.0.5-beta.9';
|
||||
|
Loading…
Reference in New Issue
Block a user