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

Better function to remove hidden elements from saved svg #492

Open
GoogleCodeExporter opened this issue Jun 16, 2015 · 0 comments
Open

Better function to remove hidden elements from saved svg #492

GoogleCodeExporter opened this issue Jun 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

In version 3939 the function to remove hidden svg elements on save is only 
partially working.  It is only removing nodes with visibility == hidden which 
misses nodes with display = none.  

Also, empty groups can also be deleted. 



I've attached a version of ORYX.Core.Canvas.prototype._removeInvisibleElements 
with these changes.  

With this change applied the saved svg is about half the size it was before.

Original issue reported on code.google.com by [email protected] on 11 Nov 2011 at 5:07

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant