Skip to content

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

@tedmoorman

Description

@tedmoorman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions