From 8af2d71795ac49b3a8ec9ac516fd029569463452 Mon Sep 17 00:00:00 2001 From: fan Date: Mon, 14 Aug 2023 13:38:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=A2=E9=87=8F=E6=96=87=E5=AD=97=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlgraphic/graphic/VectorText.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jlgraphic/graphic/VectorText.ts b/src/jlgraphic/graphic/VectorText.ts index e8e912b..925f61d 100644 --- a/src/jlgraphic/graphic/VectorText.ts +++ b/src/jlgraphic/graphic/VectorText.ts @@ -29,8 +29,9 @@ export class VectorText extends Text implements VectorGraphic { * 设置矢量文字的字体大小 */ setVectorFontSize(fontSize: number) { - this.vectorFontSize = fontSize; - // this.style.fontSize = fontSize; - this.updateOnScaled(); + if (this.vectorFontSize !== fontSize) { + this.vectorFontSize = fontSize; + this.updateOnScaled(); + } } }