@flashport/flashport
Version:
FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library
30 lines (29 loc) • 1.16 kB
TypeScript
import { IGraphicsStroke } from "./IGraphicsStroke";
import { IGraphicsData } from "./IGraphicsData";
import { IGraphicsFill } from "./IGraphicsFill";
import { ColorTransform } from "../geom/ColorTransform";
import { Canvas, Paint, Path } from "canvaskit-wasm";
import { Matrix } from "../geom";
export declare class GraphicsStroke extends Object implements IGraphicsStroke, IGraphicsData {
graphicType: string;
paint: Paint;
path: Path;
thickness: number;
pixelHinting: boolean;
miterLimit: number;
private _caps;
private _joints;
private _scaleMode;
private _fill;
constructor(thickness?: number, pixelHinting?: boolean, scaleMode?: string, caps?: string, joints?: string, miterLimit?: number, fill?: IGraphicsFill);
get fill(): IGraphicsFill;
set fill(value: IGraphicsFill);
get caps(): string;
set caps(value: string);
get joints(): string;
set joints(value: string);
get scaleMode(): string;
set scaleMode(value: string);
draw(ctx: CanvasRenderingContext2D, colorTransform: ColorTransform): void;
skiaDraw(ctx: Canvas, colorTransform: ColorTransform, mat?: Matrix): void;
}