@typecad/typecad
Version:
🤖programmatically 💥create 🛰️hardware
76 lines (75 loc) • 1.73 kB
TypeScript
import { Pin } from "./pin";
import { IVia } from "./pcb";
export interface IComponent {
symbol?: string;
reference?: string | undefined;
value?: string;
footprint?: string;
prefix?: string;
datasheet?: string;
description?: string;
voltage?: string;
wattage?: string;
uuid?: string;
mpn?: string;
dnp?: boolean;
pcb?: {
x: number;
y: number;
rotation?: number;
side?: 'front' | 'back';
};
pins?: Pin[];
via?: boolean;
simulation?: {
include: boolean;
model?: string;
};
sch?: {
x: number;
y: number;
rotation: number;
};
viaData?: IVia;
}
export declare class Component {
#private;
reference: string;
value: string;
footprint: string;
datasheet: string;
description: string;
voltage: string;
wattage: string;
mpn: string;
pcb: {
x: number;
y: number;
rotation?: number;
side?: 'front' | 'back';
};
dnp: boolean;
pins: Pin[];
via: boolean;
viaData?: IVia;
simulation: {
include: boolean;
model: string;
};
symbol?: string;
sch: {
x: number;
y: number;
rotation?: number;
};
groups: string[];
private _uuid;
private _gettingUuid;
constructor({ reference, value, footprint, prefix, datasheet, description, voltage, wattage, mpn, via, uuid, simulation, symbol, sch, pcb, viaData }?: IComponent);
get uuid(): string;
set uuid(value: string);
pin(number: number | string): Pin;
isInGroup(groupName: string): boolean;
getGroups(): string[];
footprint_lib(footprint: string): string;
}