pixi7框架渲染异常,在开发者工具正常,在真机上text大小异常
排查定位到时框架对canvs宽高重新设置的时候transform没有重置,在微信小游戏和抖音开发者工具上都是正常的
pixi7源代码
public updateText(respectDirty: boolean): void
{
this.canvas.width = Math.ceil(Math.ceil((Math.max(1, width) + (style.padding * 2))) * this._resolution);
this.canvas.height = Math.ceil(Math.ceil((Math.max(1, height) + (style.padding * 2))) * this._resolution);
context.scale(this._resolution, this._resolution);
}
