@skillpet/circuit
Version:
Circuit diagram library — render electrical schematics from JSON, with interactive SVG, themes, and Vue/React components
20 lines (19 loc) • 896 B
TypeScript
import type { Backends } from "./types.js";
/** Python `schemdraw.use` — 仅支持 SVG;matplotlib 显式抛错。 */
export declare function use(backend?: Backends): void;
/** Python `schemdraw.debug` — 写入全局样式(bbox 叠加可在后续接入渲染)。 */
export declare function debug(dwgbbox?: boolean, elmbbox?: boolean): void;
/** Python `schemdraw.theme` — jupyter-themes 风格表(与上游键名一致)。 */
export declare function theme(name?: string): void;
/** Python `backends/svg.config` — KaTeX handles math rendering; both `text` and `path` modes accepted. */
export declare class SvgBackendConfig {
private _text;
private _svg2;
precision: number;
useBatik: boolean;
get text(): "text" | "path";
set text(v: "text" | "path");
get svg2(): boolean;
set svg2(v: boolean);
}
export declare const svgconfig: SvgBackendConfig;