UNPKG

@skillpet/circuit

Version:

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

16 lines (15 loc) 617 B
import { Element } from "../element.js"; import { Point, type XY } from "../geometry/point.js"; export declare abstract class ElementCompound extends Element { readonly compoundDwgParams: Record<string, unknown>; readonly elements: Element[]; protected _here: Point; protected _theta: number; constructor(userParams?: Record<string, unknown>); abstract setup(): void; protected _initAnchors(): void; move(dx: number, dy: number): void; moveFrom(xy: XY, dx?: number, dy?: number, theta?: number): void; contains(element: Element): boolean; add(element: Element): Element; }