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 optional SVG normalizer #17

Merged
merged 1 commit into from
Dec 24, 2024
Merged

Conversation

Dexus
Copy link
Member

@Dexus Dexus commented Dec 23, 2024

This change converts all SVG elements (rect, circle, etc.) to paths and handles them. It will create a flat SVG, any groupings will be lifted. At the moment there is no negative influence on the SVG parser, probably because of the many possibilities. In current tests with the SVG's available to me, there were no errors and the objects were correctly parsed and displayed.

Added a new configuration item ("Use SVG Normalizer?") that can be toggled on and off.

With this change, we can make all svg elements to path, and handle it. It creates a flat SVG, so no grouping or something else will take affect, its the same way currently the parser will also handle the file preperation.

A new Option is added to the config ("Use SVG Normalizer?") it can enabled and disabled.
@Dexus Dexus added the enhancement New feature or request label Dec 23, 2024
@Dexus Dexus requested a review from ShaMan123 December 23, 2024 17:40
@Dexus Dexus self-assigned this Dec 23, 2024
@Dexus Dexus requested review from cmidgley and bosd December 23, 2024 17:40
@Dexus Dexus merged commit b82b22a into main Dec 24, 2024
5 checks passed
@Dexus Dexus deleted the feat/use-optional-svg-preprocessor-module branch December 24, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant