@typecad/typecad
Version:
🤖programmatically 💥create 🛰️hardware
71 lines (70 loc) • 1.7 kB
TypeScript
import { IGrLine, IGrCircle, IGrRect, IGrPoly, IOutline } from './pcb_interfaces';
export interface PcbGraphicsInstance {
getCallSite(): {
file: string;
line: number;
column: number;
} | undefined;
get grLines(): IGrLine[];
get grCircles(): IGrCircle[];
get grRects(): IGrRect[];
get grPolys(): IGrPoly[];
get stagedOutlines(): IOutline[];
}
export declare function pcbLine(pcb: PcbGraphicsInstance, options: {
start: {
x: number;
y: number;
};
end: {
x: number;
y: number;
};
layer?: string;
width?: number;
locked?: boolean;
}): void;
export declare function pcbCircle(pcb: PcbGraphicsInstance, options: {
center: {
x: number;
y: number;
};
radius?: number;
end?: {
x: number;
y: number;
};
layer?: string;
width?: number;
fill?: boolean;
locked?: boolean;
}): void;
export declare function pcbRect(pcb: PcbGraphicsInstance, options: {
x?: number;
y?: number;
width?: number;
height?: number;
start?: {
x: number;
y: number;
};
end?: {
x: number;
y: number;
};
layer?: string;
strokeWidth?: number;
fill?: boolean;
locked?: boolean;
}): void;
export declare function pcbPoly(pcb: PcbGraphicsInstance, options: {
points: {
x: number;
y: number;
}[];
layer?: string;
width?: number;
fill?: boolean;
locked?: boolean;
}): void;
export declare function pcbOutline(pcb: PcbGraphicsInstance, x: number, y: number, width: number, height: number, filletRadius?: number, conceptualUuidFromUser?: string): void;