import { Graphics as AwayGraphics } from '@awayjs/graphics'; import { ASObject, Float64Vector, Int32Vector } from '@awayfl/avm2'; import { IAssetAdapter } from '@awayjs/core'; import { ASArray, GenericVector, AXClass } from '@awayfl/avm2'; import { BitmapData } from './BitmapData'; import { LoaderInfo } from './LoaderInfo'; import { Matrix } from '../geom/Matrix'; export declare class Graphics extends ASObject implements IAssetAdapter { static axClass: typeof Graphics & AXClass; static currentAwayGraphics: AwayGraphics; static classInitializer: any; private _adaptee; constructor(adaptee?: AwayGraphics); dispose(): void; get adaptee(): AwayGraphics; static FromData(data: any, loaderInfo: LoaderInfo): Graphics; clear(): void; /** * Sets a solid color and opacity as the fill for subsequent drawing commands. * * @see * http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Graphics.html#beginFill%28%29 * @param color * @param alpha While any Number is a valid input, the value is clamped to [0,1] and then scaled * to an integer in the interval [0,0xff]. */ beginFill(color: number, alpha?: number): void; beginGradientFill(type: string, colors: ASArray, alphas: ASArray, ratios: ASArray, matrix?: Matrix, spreadMethod?: string, interpolationMethod?: string, focalPointRatio?: number): void; beginBitmapFill(bitmap: BitmapData, matrix?: Matrix, repeat?: boolean, smooth?: boolean): void; endFill(): void; lineStyle(thickness: number, color?: number, alpha?: number, pixelHinting?: boolean, scaleMode?: string, caps?: string, joints?: string, miterLimit?: number): void; lineGradientStyle(type: string, colors: ASArray, alphas: ASArray, ratios: ASArray, matrix?: Matrix, spreadMethod?: string, interpolationMethod?: string, focalPointRatio?: number): void; lineBitmapStyle(bitmap: BitmapData, matrix?: Matrix, repeat?: boolean, smooth?: boolean): void; drawRect(x: number, y: number, width: number, height: number): void; drawRoundRect(x: number, y: number, width: number, height: number, ellipseWidth: number, ellipseHeight: number): void; drawRoundRectComplex(x: number, y: number, width: number, height: number, topLeftRadius: number, topRightRadius: number, bottomLeftRadius: number, bottomRightRadius: number): void; drawCircle(x: number, y: number, radius: number): void; /** * Here x and y are the top-left coordinates of the bounding box of the * ellipse not the center as is the case for circles. */ drawEllipse(x: number, y: number, width: number, height: number): void; moveTo(x: number, y: number): void; lineTo(x: number, y: number): void; curveTo(controlX: number, controlY: number, anchorX: number, anchorY: number): void; cubicCurveTo(controlX1: number, controlY1: number, controlX2: number, controlY2: number, anchorX: number, anchorY: number): void; copyFrom(sourceGraphics: Graphics): void; drawPath(commands: Int32Vector, data: Float64Vector, winding?: string): void; drawTriangles(vertices: Float64Vector, indices?: Int32Vector, uvtData?: Int32Vector, culling?: string): void; drawGraphicsData(graphicsData: GenericVector): void; readGraphicsData(graphicsData: GenericVector): any[]; } //# sourceMappingURL=Graphics.d.ts.map