UNPKG

@flashport/flashport

Version:

FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library

20 lines (19 loc) 808 B
import { IGraphicsPath } from "./IGraphicsPath"; import { IGraphicsData } from "./IGraphicsData"; import { ColorTransform } from "../geom/ColorTransform"; import { Canvas, Paint, Path } from "canvaskit-wasm"; import { Matrix } from "../geom"; export declare class GraphicsTrianglePath extends Object implements IGraphicsPath, IGraphicsData { paint: Paint; graphicType: string; path: Path; indices: number[]; vertices: number[]; uvtData: number[]; private _culling; constructor(vertices?: number[], indices?: number[], uvtData?: number[], culling?: string); get culling(): string; set culling(value: string); draw(ctx: CanvasRenderingContext2D, colorTransform: ColorTransform): void; skiaDraw(ctx: Canvas, colorTransform: ColorTransform, mat?: Matrix): void; }