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,