Devesh36/clear-mouse
A transparent, right-handed wireless mouse assembly with a 44×58 mm control PCB, LiPo battery, optical sensor, click buttons, scroll encoder, DPI/middle buttons, USB‑C charging, and 3D‑printed housing/mechanical hardware.
- Version
- 0.1.5
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone Devesh36/clear-mouse # download the package files into ./clear-mouse
tsci add Devesh36/clear-mouse # add it to your project as @tsci/Devesh36.clear-mouseIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
scripts/export-schematics.ts
import {
convertCircuitJsonToSchematicSvg,
convertCircuitJsonToStackedSchematicSheetsSvg,
} from "circuit-to-svg";
const data = await Bun.file("dist/index/circuit.json").json();
for (const sheet of data.filter((x: any) => x.type === "schematic_sheet")) {
const safe = String(sheet.name ?? sheet.schematic_sheet_id)
.replace(/[^a-z0-9_-]/gi, "-")
.toLowerCase();
await Bun.write(
`dist/index/schematic-${safe}.svg`,
convertCircuitJsonToSchematicSvg(data, {
schematicSheetId: sheet.schematic_sheet_id,
width: 1600,
height: 1100,
}),
);
}
await Bun.write(
"dist/index/schematic-all.svg",
convertCircuitJsonToStackedSchematicSheetsSvg(data, {
width: 1600,
height: 1100,
}),
);