@skillpet/circuit
Version:
Circuit diagram library — render electrical schematics from JSON, with interactive SVG, themes, and Vue/React components
7 lines (6 loc) • 376 B
TypeScript
import type { Element } from "../element.js";
export type ElementFactory = (params?: Record<string, unknown>) => Element;
export declare const ELEMENT_REGISTRY: Record<string, ElementFactory>;
export declare function getRegisteredTypes(): string[];
export declare const getAvailableTypes: typeof getRegisteredTypes;
export declare function getAnchors(type: string): string[];