From acee657f802bd71c2a0cc999c0f1eeaa82c12651 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 12 Jul 2026 21:08:41 -0500 Subject: refactor(gallery): extract the shared engine into widgets.js First componentization batch per the component-generation spec: widgets.js is a classic script exposing the GW namespace (svgEl, polar, drag helpers, seg7, buildBars, VU law, SCREEN_FAMS) plus a css-injection scaffold that grows as builders move in. The gallery loads it via a relative script src and destructures the helpers, so file:// keeps working. Probes green. --- docs/prototypes/panel-widget-gallery.html | 77 ++----------------- docs/prototypes/widgets.js | 122 ++++++++++++++++++++++++++++++ 2 files changed, 128 insertions(+), 71 deletions(-) create mode 100644 docs/prototypes/widgets.js (limited to 'docs') diff --git a/docs/prototypes/panel-widget-gallery.html b/docs/prototypes/panel-widget-gallery.html index 1ffd302..d6e847b 100644 --- a/docs/prototypes/panel-widget-gallery.html +++ b/docs/prototypes/panel-widget-gallery.html @@ -692,8 +692,10 @@ h2::after{content:"";height:1px;background:var(--wash);flex:1}
+