矢量文字修改---解决屏蔽门子元素字体无法变大问题
This commit is contained in:
parent
1d5221dffb
commit
473225145d
@ -1242,9 +1242,11 @@ class VectorGraphicUtil {
|
||||
unregisterScaleChange(obj);
|
||||
};
|
||||
obj.on('added', (container) => {
|
||||
if (container.isInCanvas()) {
|
||||
obj.onAddToCanvas(container.getCanvas());
|
||||
}
|
||||
setTimeout(() => {
|
||||
if (container.isInCanvas()) {
|
||||
obj.onAddToCanvas(container.getCanvas());
|
||||
}
|
||||
}, 0);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "graphic-pixi",
|
||||
"version": "0.1.9",
|
||||
"version": "0.1.10",
|
||||
"description": "基于pixijs的图形应用、绘制应用框架",
|
||||
"productName": "Graphic-pixi",
|
||||
"author": "walker <shengxuqiang@joylink.club>",
|
||||
|
@ -37,9 +37,11 @@ export class VectorGraphicUtil {
|
||||
};
|
||||
|
||||
obj.on('added', (container) => {
|
||||
if (container.isInCanvas()) {
|
||||
obj.onAddToCanvas(container.getCanvas());
|
||||
}
|
||||
setTimeout(() => {
|
||||
if (container.isInCanvas()) {
|
||||
obj.onAddToCanvas(container.getCanvas());
|
||||
}
|
||||
}, 0);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user