muse/book-reading-clip-lamp

A tscircuit package created by muse.

Version
0.4.6
License
unset
Stars
0

render-pcb.cjs

const fs=require('node:fs');
const {convertCircuitJsonToPcbSvg}=require('circuit-to-svg');
const circuit=JSON.parse(fs.readFileSync('dist/index/circuit.json'));
for(const layer of ['top','bottom'])fs.writeFileSync(`dist/index/pcb-${layer}.svg`,convertCircuitJsonToPcbSvg(circuit,{layer,width:1600,height:1200,shouldDrawErrors:true,showCourtyards:false,shouldDrawRatsNest:false}));