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

scripts/random-circuits/footprintSizes.ts

/**
 * Defined sizes for various component footprints.
 */
export const footprintSizes: Record<string, { width: number; height: number }> =
  {
    "0402": { width: 1.2, height: 0.7 } as const,
    "0603": { width: 1.6, height: 0.9 } as const,
    "0805": { width: 2.0, height: 1.25 } as const,
    sod123: { width: 2.5, height: 1.25 } as const,
    sod323: { width: 1.6, height: 0.8 } as const,
    "SOT-23": { width: 2.9, height: 1.3 } as const,
    "SOT-223": { width: 6.5, height: 3.7 } as const,
    soic8: { width: 5.0, height: 4.0 } as const,
    soic16: { width: 10.0, height: 4.0 } as const,
    dip8: { width: 7.62, height: 7.62 } as const,
    pinrow8: { width: 12.5, height: 2.5 } as const,
    pinrow2: { width: 5.0, height: 2.5 } as const,
    pinrow4: { width: 10.0, height: 2.5 } as const,
    pinrow6: { width: 15.0, height: 2.5 } as const,
  } as const