From 838f39ba4021767eb47aca2c840c1a1585ce99e4 Mon Sep 17 00:00:00 2001 From: zh <972939975@qq.com> Date: Mon, 25 Aug 2025 23:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B4=E5=9C=B0svg=E6=96=87=E5=AD=97?= =?UTF-8?q?=E5=81=8F=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Obj/Base/GroundSvg/index.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Obj/Base/GroundSvg/index.js b/src/Obj/Base/GroundSvg/index.js index e6916ae..c5e94e2 100644 --- a/src/Obj/Base/GroundSvg/index.js +++ b/src/Obj/Base/GroundSvg/index.js @@ -376,7 +376,10 @@ class GroundSvg extends Base { } set textFontSize(v) { this.options.text.fontSize = v - this.text && (this.text.fontSize = v) + if(this.text) { + this.text.fontSize = v + this.text.pixelOffset = v + } this._elms.textFontSize && this._elms.textFontSize.forEach((item) => { item.value = v }) @@ -909,11 +912,10 @@ class GroundSvg extends Base { text: that.options.text.value, fontSize: that.options.text.fontSize, color: that.options.text.color, - pixelOffset: that.options.text.pixelOffset, + pixelOffset: that.options.text.fontSize, backgroundColor: that.options.text.backgroundColor, - lineColor: that.options.text.lineColor, - lineWidth: that.options.text.lineWidth, - pixelOffset: 0, + lineColor: '#ffffff00', + lineWidth: 0, scaleByDistance: that.options.text.scaleByDistance, backgroundColor: ['#ffffff00', '#ffffff00'], near: that.options.text.near,