@tscircuit/happy-autorouter
v0.0.5
Published
A four-layer via-in-pad autorouter for top-component SimpleRouteJson boards
Readme
Happy Autorouter
A via-in-pad autorouter for four-layer boards with components on top. Routing
uses inner1, inner2, and bottom.
npm install @tscircuit/happy-autorouterimport { happyAlgorithmFn } from "@tscircuit/happy-autorouter"
export default () => (
<board
width="20mm"
height="10mm"
layers={4}
isViaInPadAllowed
autorouter={{ algorithmFn: happyAlgorithmFn }}
>
<resistor name="R1" resistance="1k" footprint="0603" pcbX={-4} />
<resistor name="R2" resistance="1k" footprint="0603" pcbX={4} />
<trace from=".R1 > .pin2" to=".R2 > .pin1" />
</board>
)happyAlgorithmFn throws if the SRJ's layerCount is not 4. Bottom components
are unsupported.
