UNPKG

@skillpet/circuit

Version:

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

26 lines (25 loc) 903 B
/** Global drawing defaults (Python `schemdrawstyle`). */ import type { Linestyle } from "./types.js"; export type SchemdrawStyle = { unit: number; inches_per_unit: number; lblofst: number; fontsize: number; font: string; color: string; lw: number; ls: Linestyle; fill: string | null; bgcolor?: string; margin: number; mathfont?: string; /** Python `schemdraw.debug` — 画布级 bbox 调试(可选实现) */ dwgbbox?: boolean; /** Python `schemdraw.debug` — 元件级 bbox 调试(可选实现) */ elmbbox?: boolean; /** Enable interactive SVG output with element grouping and metadata attributes. */ interactive?: boolean; }; export declare function config(partial: Partial<SchemdrawStyle>): void; export declare function getGlobalStyle(): Readonly<SchemdrawStyle>; export declare function resetConfigForTests(): void;