abse/smartwatch-flex-top-only

Three-panel flex smartwatch with two parallel R3.9 bends, all components flat-top, low-profile JST connector harnesses, split heartbeat optical windows and screw-retained PCB mounting. Modeled 39 × 50.5 × 14.5mm prototype; 100% routing, zero native DRC and shorts. Hardware qualification pending.

Version
0.2.22
License
unset
Stars
0

scripts/render-schematic.mjs

import fs from 'node:fs'
import {convertCircuitJsonToSchematicSvg} from 'circuit-to-svg'
const input=process.argv[2]??'dist/index/circuit.json'
const output=process.argv[3]??'reports/schematic/schematic.svg'
const circuit=JSON.parse(fs.readFileSync(input,'utf8'))
const schematicSheetIndex=Number(process.argv[4]??0)
const svg=convertCircuitJsonToSchematicSvg(circuit,{width:2400,height:1800,schematicSheetIndex})
fs.mkdirSync(output.slice(0,output.lastIndexOf('/')),{recursive:true})
fs.writeFileSync(output,svg)
console.log(JSON.stringify({input,output,svgBytes:Buffer.byteLength(svg)}))