|
@@ -279,7 +279,6 @@ export default {
|
|
let canvasBox = document.getElementById('forestWarmSuperMap')
|
|
let canvasBox = document.getElementById('forestWarmSuperMap')
|
|
let toolbar=document.getElementById('toolbar');
|
|
let toolbar=document.getElementById('toolbar');
|
|
canvasBox.removeChild(toolbar);
|
|
canvasBox.removeChild(toolbar);
|
|
- console.log(canvasBox)
|
|
|
|
// 获取父级的宽高
|
|
// 获取父级的宽高
|
|
const width = parseInt(window.getComputedStyle(canvasBox).width)
|
|
const width = parseInt(window.getComputedStyle(canvasBox).width)
|
|
const height = parseInt(window.getComputedStyle(canvasBox).height)
|
|
const height = parseInt(window.getComputedStyle(canvasBox).height)
|