From ff8a37cf195f340ced82f572552d2a796a5441cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Sat, 8 Aug 2026 16:21:04 +0000 Subject: [PATCH] feat(registry): add the gallery-tunnel depth block A square corridor receding to a vanishing point, its faces tiled with colour slabs and images that swell toward camera and pass. Depth is the catalog's largest gap, and this is the only depth move whose panels are content slots, so it carries a shot rather than decorating one. Everything keys off one integer: the absolute segment number in a pool slot at the current distance. Rhythm, visibility, colour and image choice all derive from a hash of that number, so a segment carries identical panels however it is scrubbed to. The reference's sequential colour and image counters are gone, along with its camera-chase lerp, which under a constant rate only contributed a fixed lag. The recycle boundary is derived from the fog distance rather than duplicated, so a segment reappears exactly where fog reaches the backdrop and moving the fog moves the boundary with it. Verified on a zoom crop across several recycle events: slabs emerge from black and brighten monotonically, nothing pops in. Two bugs surfaced while building it. Composition variables are read from the authored attribute rather than the runtime bag, which is undefined when an inline script runs and silently resolved every string variable to empty. And image panels are laid out at natural size inside a clipped well, because a CSS-sized img uploads a 1x1 texture: the browser samples the laid-out size, not the natural one. --- docs/catalog/blocks/gallery-tunnel.mdx | 58 +++ docs/docs.json | 1 + docs/public/catalog-index.json | 16 + .../blocks/gallery-tunnel/gallery-tunnel.html | 454 ++++++++++++++++++ .../blocks/gallery-tunnel/registry-item.json | 101 ++++ registry/registry.json | 4 + 6 files changed, 634 insertions(+) create mode 100644 docs/catalog/blocks/gallery-tunnel.mdx create mode 100644 registry/blocks/gallery-tunnel/gallery-tunnel.html create mode 100644 registry/blocks/gallery-tunnel/registry-item.json diff --git a/docs/catalog/blocks/gallery-tunnel.mdx b/docs/catalog/blocks/gallery-tunnel.mdx new file mode 100644 index 0000000000..f0c1c46735 --- /dev/null +++ b/docs/catalog/blocks/gallery-tunnel.mdx @@ -0,0 +1,58 @@ +--- +title: "Gallery Tunnel" +description: "An infinite corridor of panels: a square tunnel receding to a vanishing point, its floor, ceiling and walls tiled with saturated colour slabs and caller-supplied images that swell toward camera and exit past you, the far end dissolving into fog." +--- + +