Skip to content

feat: add llm-overlay render strategy#110

Merged
nicpottier merged 1 commit intomainfrom
elasticsounds/llm-overlay-liquid
Feb 24, 2026
Merged

feat: add llm-overlay render strategy#110
nicpottier merged 1 commit intomainfrom
elasticsounds/llm-overlay-liquid

Conversation

@elasticsounds
Copy link
Contributor

Summary

Introduces llm-overlay, a new render strategy that positions text overlays precisely on background images for enhanced visual layouts.

Changes

  • New web_generation_html_overlay.liquid prompt template with sophisticated positioning rules
  • Registers llm-overlay strategy across all config and preset files with proper model/retry settings
  • Enhanced render-llm.ts with structured context: groups (for group-level positioning) and ordered_parts (for document flow preservation)
  • Updated BookPreviewFrame with CSS variable injection (--page-height) for responsive viewport sizing without viewport units
  • Added UI display names and descriptions for the new strategy in StoryboardSettings

Test Plan

  • Strategy loads from all preset configs (textbook, storybook, reference)
  • Books using llm-overlay render correctly with background images and overlaid text
  • Text groups align properly when in the same column
  • Storyboard preview displays with correct height matching viewport
  • UI dropdown shows "AI Overlay" with helpful description

Introduces a new render strategy that positions text overlays on background images with precise spatial alignment. Includes:
- New web_generation_html_overlay.liquid prompt template
- llm-overlay strategy registered in all config and preset files
- Enhanced render-llm.ts with structured context (groups, ordered_parts) for better positioning
- BookPreviewFrame CSS variable injection for responsive viewport sizing
- UI display names and descriptions for strategy selector
@nicpottier nicpottier merged commit 7281067 into main Feb 24, 2026
1 check passed
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.

2 participants