carmdevol / oryx-editor

Automatically exported from code.google.com/p/oryx-editor
Other
0 stars 0 forks source link

Better function to remove hidden elements from saved svg #492

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 moha...@gmail.com on 11 Nov 2011 at 5:07

Attachments: