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

Support for class attribute? #24

Closed
Stwissel opened this issue Aug 1, 2014 · 3 comments
Closed

Support for class attribute? #24

Stwissel opened this issue Aug 1, 2014 · 3 comments

Comments

@Stwissel
Copy link
Contributor

Stwissel commented Aug 1, 2014

In the configuration json can there be a parameter "class" that would be applied to the SVG elements generated. This could allow further styling (I'm mainly thinking about background images - which CSS should be able to handle). Where would that code get added?

@adrai
Copy link
Owner

adrai commented Aug 1, 2014

You mean one class for all elements or a class per each element?

@Stwissel
Copy link
Contributor Author

Stwissel commented Aug 1, 2014

Same process as the other attributes. Have "class" as default property in the configuration, but use symbol.getAttr("class") to check if there is one specific class name to use. Raphael seems not to like attr({"class" : "somevalue"}) (or I had a typo in it).

@adrai
Copy link
Owner

adrai commented Aug 1, 2014

ok... i have an idea...

adrai added a commit that referenced this issue Aug 1, 2014
@adrai adrai closed this as completed Aug 4, 2014
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

2 participants