ndtv icon indicating copy to clipboard operation
ndtv copied to clipboard

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

Open tedmoorman opened this issue 2 years ago • 1 comments

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.

tedmoorman avatar Jul 06 '22 16:07 tedmoorman

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

martinamorris avatar Jul 06 '22 19:07 martinamorris