Skip to content

Added exporting to svg#176

Open
breadddevv wants to merge 1 commit into
sallar:masterfrom
breadddevv:export-svg
Open

Added exporting to svg#176
breadddevv wants to merge 1 commit into
sallar:masterfrom
breadddevv:export-svg

Conversation

@breadddevv
Copy link
Copy Markdown

Changes

  • Added downloadSVG function to utils/export.js. Which basically wraps the canvas pixel output in an <svg> <image> element and triggers a .svg download
  • Replaced the single Download button with a split button: left side downloads PNG directly, chevron opens a dropdown to choose PNG or SVG
  • Dropdown closes on outside click via a useEffect listener
  • Fixed split button margin issue — moved spacing to the .App-download-split wrapper and zeroed it on child buttons so the two halves sit flush
  • Fixed malformed --loading-text: #rgb(...) value in dark mode CSS

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

@breadddevv is attempting to deploy a commit to the Github Contributions Chart Team on Vercel.

A member of the Team first needs to authorize it.

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