← Commit history

Add Fusion-style 3-column viewer + embed command

John Lauer ·d06fbb2020 ·4mo ago ·parent 8d7555c
2 files changed +16
README.md+16
@@ -17,6 +17,21 @@ adom-lbr turns a KiCad `.kicad_sym` (and optional `.kicad_mod`) into a true EAGL  The **Send to** bar in the live app pushes the loaded library to whichever of those tools you're running (via the Adom Desktop bridge); the Altium/OrCAD bridges are an open contribution slot. +## The 3-column library viewer — and an interactive embed++![The Fusion-style 3-column viewer: symbol, footprint, 3D, and the pin→pad mapping table](docs/viewer3col.png)++`adom-lbr embed` exports a **Fusion 360-style three-column viewer** as one self-contained `.html` file: **symbol** in column 1, **footprint** in column 2, the **3D chip** in column 3 — each independently pan/zoomable — with the full **pin → pad mapping table** below, carrying each pin's **type and datasheet description**. It's built to drop straight into an `<iframe>` on a **wiki component page**: a single portable file, no server, no external assets.++```bash+adom-lbr embed --dir <chip-dir>                    # → <mpn>-lbr-embed.html+```+```html+<iframe src="…/<mpn>-lbr-embed.html" width="100%" height="640" style="border:0"></iframe>+```++It assembles the three renders, the pin→pad connects, and the datasheet pin descriptions from a chip directory — exactly the part data adom-symbol, adom-footprint, ds2sf and chip-thumbnailer already produce.+ ## The library at a glance  ![The library viewer: stats and a clean lint pass](docs/lintpass.png)@@ -64,5 +79,6 @@ Used by **chip-fetcher** and the Send-to flow across **adom-symbol** and **adom- ```bash adom-lbr generate --sym part.kicad_sym --fp part.kicad_mod --name PART --output part.lbr adom-lbr serve --port 8784          # live linter app (AI-drivable)+adom-lbr embed --dir <chip-dir>     # Fusion-style 3-column viewer as one .html ``` MIT, contributions welcome.
docs/viewer3col.pngadded
⋯ 1 unchanged line ⋯