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/profile-checks.ts

import * as C from '@tscircuit/checks'
import fs from 'node:fs'
const j=JSON.parse(fs.readFileSync('../left-near-clean.circuit.json','utf8')).filter((x:any)=>!x.type.endsWith('_error'))
for(const f of ['checkEachPcbPortConnectedToPcbTraces','checkSourceTracesHavePcbTraces','checkEachPcbTraceNonOverlapping','checkPadTraceClearance','checkViaTraceClearance','checkViaPadClearance','checkSameNetViaSpacing','checkDifferentNetViaSpacing','checkTracesAreContiguous','checkPcbTracesOutOfBoard','checkCopperToBoardEdgeClearance','checkPcbCopperOverKeepout']){let t=Date.now();let e=await (C as any)[f](j);console.log(f,Date.now()-t,e.length)}