Skip to content

feat(registry): make caption-texture-lava work with any texture#934

Merged
miguel-heygen merged 1 commit into
mainfrom
feat/texture-caption-any-texture
May 18, 2026
Merged

feat(registry): make caption-texture-lava work with any texture#934
miguel-heygen merged 1 commit into
mainfrom
feat/texture-caption-any-texture

Conversation

@miguel-heygen
Copy link
Copy Markdown
Collaborator

Summary

Make the caption-texture-lava component work with any of the 66 textures from the texture-mask-text library, not just lava.

How it works

The texture is now configurable via the texture composition variable:

# Default (lava)
hyperframes render

# Use marble texture
hyperframes render --variables '{"texture":"marble-012"}'

# Use wood texture  
hyperframes render --variables '{"texture":"wood-066"}'

Changes

  • Removed hardcoded .hf-texture-lava CSS class — mask-image set dynamically via JS
  • Added data-composition-variables declaration for the texture param (default: "lava")
  • Added registryDependencies: ["texture-mask-text"] so texture PNGs are available
  • Uses window.__hyperframes.getVariables() to read the texture at runtime

…ulti-texture support

Rename component to caption-texture and bundle 6 popular textures
(lava, marble, metal, wood, concrete, rock). The texture is configurable
via the texture composition variable (default: lava).

Usage: hyperframes render --variables '{"texture":"marble-012"}'

Tested: lava, marble-012, metal-046-b all render correctly with
distinct visual patterns.
@miguel-heygen miguel-heygen force-pushed the feat/texture-caption-any-texture branch from 3e12bb2 to 09af2f9 Compare May 18, 2026 16:40
@miguel-heygen miguel-heygen merged commit 3af7f1c into main May 18, 2026
34 checks passed
@miguel-heygen miguel-heygen deleted the feat/texture-caption-any-texture branch May 18, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant