From 22e4652528626e28182ef018a43ea2de5c72a3fb Mon Sep 17 00:00:00 2001 From: zh <972939975@qq.com> Date: Sat, 23 Aug 2025 03:30:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B4=E5=9C=B0svg=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Obj/Base/GroundSvg/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Obj/Base/GroundSvg/index.js b/src/Obj/Base/GroundSvg/index.js index 629a86a..c3fc0f0 100644 --- a/src/Obj/Base/GroundSvg/index.js +++ b/src/Obj/Base/GroundSvg/index.js @@ -2486,8 +2486,8 @@ class GroundSvg extends Base { w = (Math.cos(radiansW) * distance) * 2 h = (Math.cos(radiansH) * distance) * 2 // scaleY值 - this.scale.x = w / 3.5 - this.scale.y = h / 3.5 + this.scale.x = Math.abs(w) / 3.5 + this.scale.y = Math.abs(h) / 3.5 break case 'svg-control-points_2': case 'svg-control-points_8': @@ -2578,8 +2578,8 @@ class GroundSvg extends Base { w = (Math.cos(radiansW) * distance) * 2 h = (Math.cos(radiansH) * distance) * 2 // scaleY值 - this.scale.x = w / 3.5 - this.scale.y = h / 3.5 + this.scale.x = Math.abs(w) / 3.5 + this.scale.y = Math.abs(h) / 3.5 break case 'svg-control-points_4': bearingW = (((turf.rhumbBearing(pointC, turf.point(controlPoints[4])) + 360) - this.angle) % 360)