UNPKG

@skillpet/circuit

Version:

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

25 lines (24 loc) 869 B
/** * Two-terminal element — aligned with Python `Element2Term._place` (subset). */ import { Element } from "./element.js"; import { Point, type XY } from "./geometry/point.js"; export declare class Element2Term extends Element { _place(dwgxy: import("./geometry/point.js").XY, dwgtheta: number, dwgparams: Record<string, unknown>): { point: Point; theta: number; }; protected placeAnchors(start: Point, end: Point): void; to(target: XY, dx?: number, dy?: number): this; tox(x: number | XY): this; toy(y: number | XY): this; length(len: number): this; endpoints(start: XY, end: XY): this; dot(open?: boolean): this; idot(open?: boolean): this; shift(shift: number): this; up(length?: number): this; down(length?: number): this; left(length?: number): this; right(length?: number): this; }