Connector¶
-
class
visualife.diagrams.Connector(id, *points, **attrs)¶ Bases:
visualife.diagrams.NodeBaseConnector is a line path that connects two nodes of a diagram.
It’s also derived from NodeBase so it’s possible to compute its center and assign a location
Parameters: - viewport – (
visualife.core.HtmlViewportorvisualife.core.SvgViewport) where to draw this node - id – (
string) unique ID of this line - points – (
list[Point]) of points to connect with a line
Methods Summary
draw(viewport, **kwargs)Draw this dot node on a viewport. Methods Documentation
-
draw(viewport, **kwargs)¶ Draw this dot node on a viewport.
Parameters: - viewport – (
visualife.core.HtmlViewportorvisualife.core.SvgViewport) where to draw this node - kwargs – provide style to draw this connecting line, see below (also accepts parameters to style the line: color, width etc.):
Keyword Arguments: mark (
string) – add a UML marker to this connector line; marker name must be one of the following:"inheritance"to mark inheritance"composition"to mark composition"aggregation"to mark aggregation
reverse_connector (
boolean) – draw arrows / markers in an opposite direction
- viewport – (
- viewport – (