tscircuit/autorouting-dataset-01
This code manages the hardware and electronic components for circuit design and PCB layout, defining components like resistors, capacitors, transistors, connectors, and footprints, and providing tools for component placement, PCB topology, and electrical connections.
- Version
- 1.0.102
- License
- unset
- Stars
- 4
types/ComponentSpecification.ts
import type { ComponentType } from "types/ComponentType"
/**
* Detailed specification for a circuit component.
*/
export type ComponentSpecification = {
type: ComponentType
name: string
footprint: string
pinCount: number
pinNames: string[]
pcbX: number
pcbY: number
pcbRotation: number
layer: "top" | "bottom"
width: number
height: number
connections: Record<string, string>
transistorType?: "npn" | "pnp" | "bjt" | "jfet" | "mosfet"
}