UNPKG

@flashport/flashport

Version:

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

20 lines (19 loc) 815 B
import { IGraphicsFill } from "./IGraphicsFill"; import { IGraphicsData } from "./IGraphicsData"; import { BitmapData } from "./BitmapData"; import { ColorTransform } from "../geom/ColorTransform"; import { Matrix } from "../geom/Matrix"; import { Canvas, Paint, Path } from "canvaskit-wasm"; export declare class GraphicsBitmapFill extends Object implements IGraphicsFill, IGraphicsData { paint: Paint; graphicType: string; path: Path; bitmapData: BitmapData; matrix: Matrix; repeat: boolean; smooth: boolean; private pattern; constructor(bitmapData?: BitmapData, matrix?: Matrix, repeat?: boolean, smooth?: boolean); draw(ctx: CanvasRenderingContext2D, colorTransform: ColorTransform): void; skiaDraw(ctx: Canvas, colorTransform: ColorTransform, mat?: Matrix): void; }