Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add align parameter to import_svg #908

Merged
merged 1 commit into from
Feb 22, 2025
Merged

Conversation

snoyer
Copy link
Contributor

@snoyer snoyer commented Feb 21, 2025

ocpsvg >= 0.5 now properly interprets the viewbox when importing SVG documents and PR takes advantage of this change to introduce an align parameter to the import_svg function.

The default is set to align=Align.MIN to keep the current import behavior of positioning the bottom left corner of the document at (0,0). align=None is allowed and can be used to preserve the viewbox origin.

Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.73%. Comparing base (e0e5d0d) to head (8e4aa33).
Report is 7 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #908      +/-   ##
==========================================
- Coverage   96.73%   96.73%   -0.01%     
==========================================
  Files          32       32              
  Lines        9379     9434      +55     
==========================================
+ Hits         9073     9126      +53     
- Misses        306      308       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gumyr gumyr merged commit bc2c06b into gumyr:dev Feb 22, 2025
20 checks passed
@gumyr
Copy link
Owner

gumyr commented Feb 22, 2025

Nice feature, thanks!

@snoyer snoyer deleted the import_svg-align branch February 22, 2025 15:22
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