UNPKG

svg-engine

Version:
32 lines (31 loc) 1.45 kB
import { SVGInstance } from "../../../node/instance/SVGInstance.js"; export declare class Stroke extends SVGInstance { stroke(): this; stroke(width: string | number): this; stroke(width: string | number, style: "solid" | "dashed"): this; stroke(width: string | number, style: "solid" | "dashed", color: string): this; strokeColor(): string | null; strokeColor(color: string): this; strokeLinearGradient(gradient: Array<{ position: number | string; color: string; }>, rotation?: number): this; dash(): this; dash(dash: string | number): this; dash(dash: string | number, color: string): this; strokeDasharray(): string | number | Array<string | number> | null; strokeDasharray(dash: string | number, gap?: string | number): this; strokeDasharray(dashGapArray: Array<string | number>): this; strokeDashoffset(): string | number | null; strokeDashoffset(offset: string | number): this; strokeLinecap(): string | null; strokeLinecap(cap: "butt" | "round" | "square"): this; strokeLinejoin(): string | null; strokeLinejoin(join: "arcs" | "bevel" | "miter" | "miter-clip" | "round"): this; strokeMiterlimit(): number | null; strokeMiterlimit(limit: number): this; strokeOpacity(): string | number | null; strokeOpacity(opacity: string | number): this; strokeWidth(): string | number | null; strokeWidth(width: string | number): this; }