UNPKG

@skillpet/circuit

Version:

Circuit diagram library — render electrical schematics from JSON, with interactive SVG, themes, and Vue/React components

15 lines (14 loc) 448 B
/** * Inline SVG style string — aligned with Python `getstyle` in `backends/svg.py`. */ import type { Capstyle, Joinstyle, Linestyle } from "../types.js"; export type SvgStyleOpts = { color?: string | readonly [number, number, number]; ls?: Linestyle; lw?: number; capstyle?: Capstyle; joinstyle?: Joinstyle; fill?: string | boolean; hatch?: boolean; }; export declare function getSvgStyle(o: SvgStyleOpts): string;