矢量文字缩放调整

This commit is contained in:
fan 2023-08-14 13:38:33 +08:00
parent 495daf7fad
commit 8af2d71795

View File

@ -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();
}
}
}