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

Make root element selection automatic by default #1

Closed
GoogleCodeExporter opened this issue Apr 2, 2015 · 2 comments
Closed

Make root element selection automatic by default #1

GoogleCodeExporter opened this issue Apr 2, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

Attachments:

@GoogleCodeExporter
Copy link
Author

Code integrated into 1.2.1

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

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

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