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 viewBox support to rasterization #22

Merged
merged 6 commits into from
Jan 2, 2017
Merged

Add viewBox support to rasterization #22

merged 6 commits into from
Jan 2, 2017

Conversation

meyfa
Copy link
Owner

@meyfa meyfa commented Jan 2, 2017

This closes #20. preserveAspectRatio is not yet supported, but viewBox itself behaves correctly both with and without accompanying width/height attributes.

Due to the fact that the document size also counts towards the image's
scale, it is possible for the viewBox to end somewhere inside the image
and not at its lower-right corner. The drawing would then overflow and
still be drawn. This behavior is fixed by applying a clip as the final
rasterization step.
@meyfa meyfa added the feature New feature or request label Jan 2, 2017
@meyfa meyfa self-assigned this Jan 2, 2017
@meyfa meyfa merged commit d002cd2 into master Jan 2, 2017
@meyfa meyfa deleted the viewbox branch January 2, 2017 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing support for viewBox
1 participant