{"version":3,"file":"Text2d.mjs","sources":["../../../src/proj2d/sprites/Text2d.ts"],"sourcesContent":["import { Text, TextStyle } from '@pixi/text';\r\nimport { Projection2d } from '../Projection2d';\r\nimport { Sprite2d } from './Sprite2d';\r\nimport { Matrix } from '@pixi/math';\r\n\r\nexport class Text2d extends Text\r\n{\r\n    constructor(text?: string, style?: TextStyle, canvas?: HTMLCanvasElement)\r\n    {\r\n        super(text, style, canvas);\r\n        this.proj = new Projection2d(this.transform);\r\n        this.pluginName = 'batch2d';\r\n    }\r\n\r\n    proj: Projection2d;\r\n    vertexData2d: Float32Array = null;\r\n\r\n    get worldTransform(): Matrix\r\n    {\r\n        return this.proj.affine ? this.transform.worldTransform : this.proj.world as any;\r\n    }\r\n}\r\n\r\nText2d.prototype.calculateVertices = Sprite2d.prototype.calculateVertices;\r\nText2d.prototype.calculateTrimmedVertices = Sprite2d.prototype.calculateTrimmedVertices;\r\n(Text2d.prototype as any)._calculateBounds = Sprite2d.prototype._calculateBounds;\r\n"],"names":[],"mappings":";;;;AAKO,MAAM,eAAe,IAC5B,CAAA;AAAA,EACI,WAAA,CAAY,IAAe,EAAA,KAAA,EAAmB,MAC9C,EAAA;AACI,IAAM,KAAA,CAAA,IAAA,EAAM,OAAO,MAAM,CAAA,CAAA;AAM7B,IAA6B,IAAA,CAAA,YAAA,GAAA,IAAA,CAAA;AALzB,IAAA,IAAA,CAAK,IAAO,GAAA,IAAI,YAAa,CAAA,IAAA,CAAK,SAAS,CAAA,CAAA;AAC3C,IAAA,IAAA,CAAK,UAAa,GAAA,SAAA,CAAA;AAAA,GACtB;AAAA,EAKA,IAAI,cACJ,GAAA;AACI,IAAA,OAAO,KAAK,IAAK,CAAA,MAAA,GAAS,KAAK,SAAU,CAAA,cAAA,GAAiB,KAAK,IAAK,CAAA,KAAA,CAAA;AAAA,GACxE;AACJ,CAAA;AAEA,MAAO,CAAA,SAAA,CAAU,iBAAoB,GAAA,QAAA,CAAS,SAAU,CAAA,iBAAA,CAAA;AACxD,MAAO,CAAA,SAAA,CAAU,wBAA2B,GAAA,QAAA,CAAS,SAAU,CAAA,wBAAA,CAAA;AAC9D,MAAO,CAAA,SAAA,CAAkB,gBAAmB,GAAA,QAAA,CAAS,SAAU,CAAA,gBAAA;;;;"}