矢量文字修改---解决屏蔽门子元素字体无法变大问题
This commit is contained in:
parent
1d5221dffb
commit
473225145d
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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>",
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user