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

feat(removeHiddenElems): remove shapes that aren't rendered in any way #1894

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

KTibow
Copy link
Contributor

@KTibow KTibow commented Dec 20, 2023

Some shapes have no fill or stroke. These are effectively useless and should be removed. This PR does that.
* This is currently on by default. Maybe it should be off? Apparently some SVGs do this to draw a frame because some editors don't know what a viewBox is.

Results

This mainly applies to icon sets like Tabler and MingCute, which do this to draw a frame. When these are embedded in websites the frame is completely useless.

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