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

suggestion: allow ids and data-attributes on nodes #7

Open
dirkpuis opened this issue Nov 23, 2015 · 0 comments
Open

suggestion: allow ids and data-attributes on nodes #7

dirkpuis opened this issue Nov 23, 2015 · 0 comments

Comments

@dirkpuis
Copy link

Currently the generated SVG nodes have no IDs. On big drawings that makes debugging harder. Keeping IDs in the shadow DOM and in the generated SVG would also allow a search mechanism in the shadow DOM (a kind of 'get shape by ID').
Would also be nice if we could store some user data on the shadow DOM that gets written to the SVG nodes as attributes (e.g. the user might want something like data-selected-node="true" on a node). Being able to search on this type of data in the shadow DOM would be a very powerful addition.

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

No branches or pull requests

1 participant