矢量文字修改---解决屏蔽门子元素字体无法变大问题

This commit is contained in:
joylink_zhaoerwei 2024-01-25 09:56:33 +08:00
parent 1d5221dffb
commit 473225145d
3 changed files with 11 additions and 7 deletions

View File

@ -1242,9 +1242,11 @@ class VectorGraphicUtil {
unregisterScaleChange(obj); unregisterScaleChange(obj);
}; };
obj.on('added', (container) => { obj.on('added', (container) => {
setTimeout(() => {
if (container.isInCanvas()) { if (container.isInCanvas()) {
obj.onAddToCanvas(container.getCanvas()); obj.onAddToCanvas(container.getCanvas());
} }
}, 0);
}); });
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "graphic-pixi", "name": "graphic-pixi",
"version": "0.1.9", "version": "0.1.10",
"description": "基于pixijs的图形应用、绘制应用框架", "description": "基于pixijs的图形应用、绘制应用框架",
"productName": "Graphic-pixi", "productName": "Graphic-pixi",
"author": "walker <shengxuqiang@joylink.club>", "author": "walker <shengxuqiang@joylink.club>",

View File

@ -37,9 +37,11 @@ export class VectorGraphicUtil {
}; };
obj.on('added', (container) => { obj.on('added', (container) => {
setTimeout(() => {
if (container.isInCanvas()) { if (container.isInCanvas()) {
obj.onAddToCanvas(container.getCanvas()); obj.onAddToCanvas(container.getCanvas());
} }
}, 0);
}); });
} }
} }