Skip to contents

Use the jointjs_graph class to define a diagram that can be rendered with jointjs().

See also

Other root-classes: jointjs_cell, jointjs_paper

Methods


jointjs_graph$new()

Initialise a JointJS Graph

Usage

jointjs_graph$new(x, ...)

Arguments

x

A named list of cell objects represented as lists. You can use the graph state object returned by a Shiny widget to initiate a graph class object.

...

Ignored


jointjs_graph$add_elements()

Add elements to the graph. These can be any object that inherit from the jointjs_cell class. So, these can be shapes like jointjs_rectangle and jointjs_image, but also links like jointjs_doubleLink.

Usage

jointjs_graph$add_elements(...)

Arguments

...

Pass any number of items to be added to the graph here.


jointjs_graph$get_widget()

This is just short for jointjs(graph = x), where x is a jointjs_graph class object.

Usage

jointjs_graph$get_widget(...)

Arguments

...

Arguments passed to jointjs()


jointjs_graph$get_list()

Returns the list of cells that define the graph.

Usage

jointjs_graph$get_list()


jointjs_graph$clone()

The objects of this class are cloneable with this method.

Usage

jointjs_graph$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.