初始化矢量文字大小时计算缩放

This commit is contained in:
fan 2023-08-11 14:40:39 +08:00
parent defae8c01e
commit 495daf7fad

View File

@ -30,6 +30,7 @@ export class VectorText extends Text implements VectorGraphic {
*/
setVectorFontSize(fontSize: number) {
this.vectorFontSize = fontSize;
this.style.fontSize = fontSize;
// this.style.fontSize = fontSize;
this.updateOnScaled();
}
}