Skip to contents

It is a backbone structure used by jointjs to construct elements for a diagram. Usually you don't initiate cells directly. Rather, it is more efficient to create its children and grandchildren, e.g.: jointjs_circle, jointjs_image, jointjs_rectangle, etc.

See also

Other root-classes: jointjs_graph, jointjs_paper

Methods


jointjs_cell$new()

Initialise a jointjs_cell class object.

Usage

jointjs_cell$new(id, type, z, ...)

Arguments

id

A unique identifier (character) used to identify the cell. It can be used to link cells together, by referring to these ids. By default a 16 character random hexadecimal code is generated as an id.

type

Specifies the type of cell this object represents. Its advised to create cells using its or grand-children (e.g. jointjs_circle, jointjs_rectangle, etc.). They will automatically assign the correct type for you. By default it will be set to "standard.Rectangle" (a rectangle).

z

A depth index. It will determine the plotting order on its parent container.

...

Parameters that will be set as SVG attributes to this object.


jointjs_cell$set_attrs()

Set attributes to the cell

Usage

jointjs_cell$set_attrs(...)

Arguments

...

Any valid attributes to a JointJS cell.


jointjs_cell$get_list()

Coerce the jointjs_cell object to a named list.

Usage

jointjs_cell$get_list()


jointjs_cell$clone()

The objects of this class are cloneable with this method.

Usage

jointjs_cell$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.