mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
Controller Software for the Brother PP-1 SKiTCH embroidery machine.
Renamed and restructured PEN parsing to match encoder pattern: Changes: - Renamed pen/parser.ts → pen/decoder.ts (consistent with encoder.ts) - Created pen/types.ts for PEN-specific type definitions - Moved types out of machine.ts (they're format-specific, not machine-specific) - Unified decoder with encoder test helpers (encoder.test.ts now uses decoder) New structure: - decodePenStitch() - decode single 4-byte stitch - decodeAllPenStitches() - decode all stitches from bytes - decodePenData() - full decode with color blocks and bounds - getStitchColor() - helper to get color for a stitch index Type definitions: - DecodedPenStitch - individual stitch with coordinates and flags - PenColorBlock - color block (stitch range for one thread) - DecodedPenData - complete decoded pattern data Backward compatibility: - Added compatibility aliases (isJump, flags, startStitch, endStitch) - Maintains API compatibility with existing UI code Also added dist-electron to eslint ignore list. All tests passing (27/27), build successful, lint clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| .github | ||
| build | ||
| docs | ||
| electron | ||
| public | ||
| src | ||
| .gitignore | ||
| .node-version | ||
| CLAUDE.md | ||
| eslint.config.mjs | ||
| forge.config.js | ||
| index.html | ||
| LICENSE.md | ||
| package-lock.json | ||
| package.json | ||
| tailwind.config.js | ||
| tsconfig.app.json | ||
| tsconfig.electron.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.electron.mts | ||
| vite.config.mts | ||
| vitest.config.ts | ||