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

how to add CSS class attributes with edge.css.class, vertex.css.class, vertex.label.css.class? #51

Open
tedmoorman opened this issue Jul 6, 2022 · 1 comment

Comments

@tedmoorman
Copy link

In render.d3movie there are options for adding CSS styling to vertices, edges, and vertex labels. What is the intended syntax to produce this? For example, do I need a "styles.css" file that contains all of these class attributes? If so, would I reference each class attribute in a character vector?

For example, suppose my CSS sheet had the following class attributes in it:

.edge {
  stroke: black;
}

.label {
  pointer-events: none;
}

Would I reference the desired attribute in the render.d3movie function as follows?

render.d3movie(
...
edge.css.class = "edge",
...
)
# OR
render.d3movie(
...
edge.css.class = c("edge", "label"),
...
)

Any guidance is appreciated.

@martinamorris
Copy link
Member

@skyebend will need to answer these questions -- thx for your patience.

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