Links Between Elements in a JointJS Diagram
jointjs_link.RdCreate a link between a source and target element or location in a JointJS diagram.
See also
Other link:
jointjs_doubleLink,
jointjs_shadowLink
Super class
jointjs_cell -> jointjs_link
Methods
Inherited methods
jointjs_link$new()
The link initialiser.
Usage
jointjs_link$new(source, target, vertices, ...)Arguments
source, targetsourceandtargetindicate the route the link should take. It can be a point (alistwith anxandycoordinate), or alistcontaining anidof the element that should be linked. You can also provide aportvalue to that list if you wish to connect to a specific port on the element.verticesA
listof coordinates where the link should pass through. The list is unnamed and each element should be a list of andxandyvalue....Arguments passed to parent class initialiser.
Examples
jointjs_link$new(vertices = list(
list(x = 50, y = 50),
list(x = 40, y = 60)
))Examples
## ------------------------------------------------
## Method `jointjs_link$new()`
## ------------------------------------------------
jointjs_link$new(vertices = list(
list(x = 50, y = 50),
list(x = 40, y = 60)
))
#> <jointjs_link>
#> Inherits from: <jointjs_cell>
#> Public:
#> clone: function (deep = FALSE)
#> get_list: function ()
#> initialize: function (source, target, vertices, ...)
#> set_attrs: function (...)
#> Private:
#> attrs: NULL
#> id: c6be45eee35844e7
#> source: list
#> target: list
#> type: standard.Link
#> vertices: list
#> z: 1