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

Prevent improper rendering of SVG graphics #1405

Merged
merged 5 commits into from
Nov 16, 2022

Conversation

stephanr
Copy link
Member

@stephanr stephanr commented Sep 29, 2022

This PR is a part of the larger PR #1207

It contains corrections that avoid misrepresentation when height or width are undefined.

The modification in the ShapeHelper does not change the current references of the the class.
It only converts the soft reference to a compile-time reference, so that if Xerces may be removed in future the dependence becomes recognizable.

It also provides a fix when SVG graphics are not properly transformed to Shape (the viewbox/width/height handling was problematic or has become problematic over time)
A parameter deegree.rendering.svg-to-shape.previous was introduced, so that the previous behavior can be re-enabled (for those case when styles have been wrongly set sizes to compensate for the issue)

@stephanr stephanr added the enhancement enhancement or improvement label Sep 29, 2022
@stephanr stephanr added this to the 3.5 milestone Sep 29, 2022
@tfr42 tfr42 added the WMS deegree Web Map Service label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement or improvement WMS deegree Web Map Service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants