Skip to content

Make toSvg() export images referenced in CSS stylesheets or inline styles#74

Merged
AlexeyMz merged 1 commit into
masterfrom
export-svg-with-css-images
Jun 26, 2025
Merged

Make toSvg() export images referenced in CSS stylesheets or inline styles#74
AlexeyMz merged 1 commit into
masterfrom
export-svg-with-css-images

Conversation

@AlexeyMz
Copy link
Copy Markdown
Member

@AlexeyMz AlexeyMz commented Jun 20, 2025

Make toSvg() export images referenced in CSS stylesheets or inline styles from mask (mask-image) or background (background-image) properties:

  • Use React v18 in dev dependencies for vitest-browser-react;
  • Add snapshot tests for toSvg() image-exporting behavior;
  • Expose contentPadding option for CanvasApi.exportSvg() and CanvasApi.exportRaster() methods;

@AlexeyMz AlexeyMz force-pushed the export-svg-with-css-images branch 2 times, most recently from 9222f5c to ab66e37 Compare June 20, 2025 19:09
…styles from `mask` (`mask-image`) or `background` (`background-image`) properties:

* Use React v18 in dev dependencies for `vitest-browser-react`;
* Add snapshot tests for `toSvg()` image-exporting behavior;
* Expose `contentPadding` option for `CanvasApi.exportSvg()` and `CanvasApi.exportRaster()` methods;
@AlexeyMz AlexeyMz force-pushed the export-svg-with-css-images branch from ab66e37 to 13f3cff Compare June 26, 2025 17:34
@AlexeyMz AlexeyMz merged commit 1c2d851 into master Jun 26, 2025
4 checks passed
@AlexeyMz AlexeyMz deleted the export-svg-with-css-images branch June 26, 2025 17:35
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