import { Text , TextStyle } from '@pixi/text' ; import { ProjectionSurface } from '../ProjectionSurface' ; import { Matrix } from '@pixi/math' ; import { Sprite2s } from './Sprite2s' ; export class Text2s extends Text { constructor ( text ? , style ? , canvas ? ) { super ( text , style , canvas ) ; this . proj = new ProjectionSurface ( this . transform ) ; this . pluginName = 'batch_bilinear' ; } proj : ProjectionSurface ; aTrans = new Matrix ( ) ; get worldTransform ( ) : Matrix { return this . proj as any ; } } ( Text2s . prototype as any ) . calculateVertices = Sprite2s . prototype . calculateVertices ; ( Text2s . prototype as any ) . calculateTrimmedVertices = Sprite2s . prototype . calculateTrimmedVertices ; ( Text2s . prototype as any ) . _calculateBounds = Sprite2s . prototype . _calculateBounds ;