UNPKG

illustrator.js

Version:

JavaScript image processing library

27 lines (26 loc) 902 B
import { Path2D } from "@napi-rs/canvas"; import { ToolBox } from "./ToolBox"; export declare class BaseShapeTool extends ToolBox { setFillColor(color: string | CanvasGradient | CanvasPattern): this; setStrokeColor(color: string | CanvasGradient | CanvasPattern): this; setLineWidth(width: number): this; setLineCap(lineCapStyle: CanvasLineCap): this; setDashOffset(offset: number): this; setLineJoinStyle(style: "round" | "bevel" | "miter"): this; setMiterLimit(limit: number): this; addPoint(): this; removePoint(): this; move(x: number, y: number): this; fill(options?: { fillRule?: "evenodd" | "nonzero"; path: Path2D; }): this; stroke(options?: { path: Path2D; }): this; setLineDash(segments?: number[]): this; clip(options?: { fillRule?: "evenodd" | "nonzero"; path?: Path2D; }): this; }