← All Pull Requests

Register adom-3d #5

Merged opened by John Lauer 2026-10-11

Registers adom-3d (frontend): <adom-3d> from adom/component-widgets widgets/model-3d-widget.js, attrs src, poster, heading, caption. It is a click-to-load view of any GLB in the canonical Adom 3D Viewer. The widget itself, and how it was tested, are in the companion PR on adom/component-widgets; merge that one first so the script exists.

🤖 Generated with Claude Code

Diff Skip to comments

--- a/widgets.json+++ b/widgets.json@@ -1,134 +1,147 @@⋯ 129 unchanged lines ⋯    "state",    "heading"   ]+ },+ {+  "name": "adom-3d",+  "mode": "frontend",+  "script": "https://wiki.adom.inc/adom/component-widgets/render/widgets/model-3d-widget.js",+  "element": "adom-3d",+  "attrs": [+   "src",+   "poster",+   "heading",+   "caption"+  ]  } ]+--- a/README.md+++ b/README.md@@ -1,61 +1,63 @@⋯ 58 unchanged lines ⋯ | `::adom-stock{src="/api/pages/OWNER/SLUG/stock"}` | live stock and price at Mouser, DigiKey and LCSC for a hardware page, from the wiki's cached vendor lookups (adom/wiki#186); component pages show it in their sidebar by themselves; `heading` | | `::adom-verified{src="..."}` | the "verified by" trust mark: big green check, who verified the page and when, per-variant coverage, and the full verification log with evidence; turns amber when a verified file changes; takes the page's `verification.json` — loads from adom/component-widgets | | `::adom-models{src="..."}` | every 3D file on a component page as a card: thumbnail, STEP or GLB, etched or unmarked and where the part number sits, what makes it different from its siblings, what it was derived from, a download, and whether the page still serves the file that was described (checked against the file listing, nothing downloaded); previous versions fold away; takes the page's `models.json` (adom/models@1) — loads from adom/component-widgets |+| `::adom-3d{src="..."}` | any GLB in the canonical Adom 3D Viewer, click to load (nothing loads until the reader asks; it unloads offscreen and releases the WebGL context); `poster` `heading` `caption`; publish the GLB without Draco, the frame cannot reach the decoder CDN; loads from adom/component-widgets |+

Comments

No comments yet.

Log in to comment.