-
Notifications
You must be signed in to change notification settings - Fork 104
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
Style drawNode() with Attributer #194
Comments
No. The attributer is only used when rendering from DOT source. You need to specify the attributes as the fourth argument to
No, they specify that you can specify Graphviz attributes. One such attribute is
I guess you could write a common function for generating the attributes both for the b) be able to use CSS to style drawNode() nodes. I'm not sure what you mean here. You can use the Graphviz It's easy to get confused if the distinction between these concepts are not made:
Node style is a Graphviz specific attribute. CSS style properties are something else. Apologies if you know all this already. Perhaps I'm just not understanding what you want. |
Yeah I'm sorry, not my best-worded question. Everything you've listed here makes sense and I think can be found in the docs. After thinking through my use-case a bit more, I think I can better explain what I'm running into:
I made a Codepen that hopefully demonstrates what I'm dealing with. I think if external CSS styles didn't result in flickering then the rest wouldn't matter, so maybe that's the root of my issue |
Typo? |
Yup, sorry - markdown removed my text that looked like HTML elements. Fixed it |
Thanks so much for the Codepen. It helps a lot to see something in action.
|
Is it possible to style nodes created with
drawNode()
with the specifiedattributer
? For example:I would expect the newly drawn node to have
fill: red
, but that is not the case. The docs specify that you can specify styles using DOT attributes, but it would be nice to to both a) only have to specify node styles once and b) be able to use CSS to style drawNode() nodes.The text was updated successfully, but these errors were encountered: