import { RGBColor, Vec2 } from 'helpers-lib'; import * as PIXI from 'pixi.js'; import { DisplayObject } from '../display-object'; import { PolygonDefinition } from '../..'; export interface TextureOfGraphics { texture: PIXI.Texture; bounds: Vec2; } export declare class Graphics extends DisplayObject { private static drawnTextureCaches; static drawRectengle(from: Vec2, to: Vec2, borderSize: number, color: RGBColor): Graphics; static drawFromPolygon(size: Vec2, anchor: Vec2, polygon: PolygonDefinition, color: RGBColor, cacheName?: string): Graphics; protected static internalDrawTextureFromPolygon(size: Vec2, anchor: Vec2, polygon: PolygonDefinition, color: RGBColor): TextureOfGraphics; private static convertGraphicsToTexture; readonly pixiGraphics: PIXI.Graphics; private cacheName; protected constructor(pixiGraphics: PIXI.Graphics, cacheName: string); convertToTexture(): TextureOfGraphics; }