Duder-onomy / svgpan

Automatically exported from code.google.com/p/svgpan
0 stars 0 forks source link

Make root element selection automatic by default #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The script would be even easier to use if the root element was automatically 
selected, as opposed to relying on the hardcoded "viewport" id.

The attached patch changes the script to select the first <g> element in the 
document if a node with the "viewport" id is not found.

Original issue reported on code.google.com by Chris.Os...@gmail.com on 21 Jun 2010 at 11:41

Attachments:

GoogleCodeExporter commented 9 years ago
An alternative is the following patch that only selects the first <g> element, 
but also provides a function to configure the root element used.

Original comment by Chris.Os...@gmail.com on 22 Jun 2010 at 12:03

Attachments:

GoogleCodeExporter commented 9 years ago
Code integrated into 1.2.1

Original comment by andrea.l...@gmail.com on 3 Jul 2011 at 10:43