Skip to content

fix: use scrollHeight for PNG export so legend is never cut - #1675

Open
Flotapponnier wants to merge 5 commits into
devfrom
fix/export-legend-cut
Open

fix: use scrollHeight for PNG export so legend is never cut#1675
Flotapponnier wants to merge 5 commits into
devfrom
fix/export-legend-cut

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

html-to-image defaults to offsetHeight (visible height), which clips the legend when it wraps into many rows (100+ providers). Passing scrollHeight/scrollWidth captures the full content regardless of scroll position.

- Limit inline labels to top 10 non-excluded lines (legend shows all)
- Collision deflection: sort labels by Y, push each down until clear of previous
- Increase padR 96→130 so label text never gets clipped by SVG viewport
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