|
@@ -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;
|