Browse Source

爆炸三角形修改-更新

lxh 4 days ago
parent
commit
a7ab652f0d

+ 0 - 4
src/views/vent/monitorManager/deviceMonitor/components/device/modal/blastDelta.vue

@@ -100,14 +100,10 @@ function getAreas() {
 //根据A,B,E,G等点坐标绘制爆炸三角形
 function getBlast() {
   maxY.value = getCoordABY(0);
-  // maxX.value = getCoordABX(0);
-  maxX.value = 50;
   // 获取canvas元素
   let canvas = document.getElementById('myCanvas');
   let ctx = canvas.getContext('2d');
   let scalcY, scalcX
-  scalcY = canvas.height / maxY.value;
-  scalcX = canvas.width / maxX.value;
   if (coordinateB.x < 50) {
     maxX.value = 50
     scalcY = canvas.height / maxY.value;