Per-screen panorama text: full independent styling per panel#73
Merged
Conversation
…copy renderPerScreenTextUI captured screenshot.text once, but getText() reassigns screenshot.text to a fresh object on every render, so the toggle/field handlers were mutating an orphaned object the renderer no longer read — typed panel text never appeared and the toggle reverted. Each handler now re-fetches the live object via getTextSettings(). Also store/read per-screen subheadlines under the subheadline language key (matching makePanelTxt) instead of the headline language, so they survive when the two languages differ. https://claude.ai/code/session_01MdKQ535A9VpJfHff3Yv5xk
When "Text per screen" is on, each panorama panel now owns a complete text object (panelTexts[]) — headline, subheadline AND all styling (font, size, color, weight, position, offset, line height, text background). The Text tab gains a Screen 1/2/… selector at the top; the whole tab edits the selected panel. - getText()/setTextSetting redirect to the active panel when per-screen mode is active; the renderer reads the container via getContainerText() and draws each panel from its own object (makePanelTxt). - Panels follow the current language selection (edit + render). - Enabling seeds panelTexts from current settings and migrates legacy panelHeadlines/panelSubheadlines content; old projects still render via a fallback path. - panelTexts round-trips through the MCP server unchanged; tool docs updated. https://claude.ai/code/session_01MdKQ535A9VpJfHff3Yv5xk
…h3ztq # Conflicts: # appstore-features.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
When "Text per screen" is enabled on a panoramic screenshot, each panel now has its own complete, independent text settings — not just distinct text content, but full styling: headline + subheadline content, font, size, color, weight, italic, underline/strikethrough, text background, position, vertical offset, and line height.
The Text tab gains a Screen 1 / Screen 2 / … selector at the top. Pick a screen, then every control in the tab edits that screen.
How
panelTexts[]— one full text object per panel — created on enable by cloning current settings and migrating any legacy per-panel content (panelHeadlines/panelSubheadlines).getText()/setTextSetting()redirect to the active panel when per-screen mode is on, so the existing Text-tab controls "just work". The renderer instead reads the container via the newgetContainerText()and draws each panel from its own object (makePanelTxt).panelTextsis plain JSON and round-trips through the MCP server unchanged; theupdate_screenshottool description was updated.Test
Serve locally, set a screenshot's Span screens to 2, enable "Text per screen", then give Screen 1 and Screen 2 different headlines, colors, sizes and positions — each panel renders independently, and export slices them correctly.
https://claude.ai/code/session_01MdKQ535A9VpJfHff3Yv5xk
Generated by Claude Code