@skillpet/circuit
Version:
Circuit diagram library — render electrical schematics from JSON, with interactive SVG, themes, and Vue/React components
13 lines (12 loc) • 451 B
TypeScript
/**
* SVG linearGradient defs for `Element.userParams.gradient` — aligned with Python gradient fill.
*/
import type { Element } from "./element.js";
/**
* Build `<linearGradient>` defs and assign temporary `elmParams._svgGradientFillId` on elements.
* Call `cleanup()` after rendering so `elmParams` stays clean.
*/
export declare function assignGradientFillIds(elements: readonly Element[]): {
defsXml: string;
cleanup: () => void;
};