imrishabh18/corne-keyboard

The code defines and renders two surface-mount chip components with SMT pads, silkscreen outlines, and 3D CAD models (OBJ and STEP) for PCB assembly.

Version
2.0.21
License
unset
Stars
1

scripts/render-validated.ts

import fs from 'node:fs'
import { convertCircuitJsonToPcbSvg } from 'circuit-to-svg'
for (const side of ['left','right']) {
 const circuit=JSON.parse(fs.readFileSync(`dist/${side}/circuit.validated.json`,'utf8'))
 fs.writeFileSync(`dist/${side}/pcb.validated.svg`,convertCircuitJsonToPcbSvg(circuit))
}