@skillpet/circuit
Version:
Circuit diagram library — render electrical schematics from JSON, with interactive SVG, themes, and Vue/React components
14 lines (13 loc) • 436 B
TypeScript
/**
* Affine transform — aligned with Python `schemdraw/transform.py`.
*/
import { Point, type XY } from "./point.js";
export declare class Transform {
readonly theta: number;
readonly shift: Point;
readonly localshift: Point;
readonly zoom: Point;
constructor(theta: number, globalshift: XY, localshift?: XY, zoom?: XY | number);
transform(pt: XY): Point;
transformArray(pts: readonly XY[]): Point[];
}