Connections
configurationDefines the connections configuration.
connections
ArrayDefines accessibility options for the connection.
connections.content
ObjectDefines the connection content settings.
connections.cornerRadius
NumberDefines the corner radius of the connection.
Default: 0
connections.dataItem
ObjectDefines the connection dataItem.
connections.editable
Boolean|ObjectDefines the shape editable options.
Default: true
connections.endCap
String|ObjectThe connection end cap configuration or type name.
connections.from
Object|String|NumberDefines the source of the connection. You can set this property to a value matching a shape id or to an object with XY-coordinates.
Specifies the name of the source shape connector that should be used by the connection.
Default: "Auto"
connections.hover
ObjectDefines the hover configuration.
connections.points
ArraySets the intermediate points (in global coordinates) of the connection. These points cannot be manipulated by user action.
connections.selectable
BooleanSpecifies if the connection can be selected.
Default: true
connections.selection
ObjectDefines the connection selection configuration.
connections.startCap
String|ObjectThe start cap (arrow, head or decoration) of the connection.
connections.stroke
ObjectDefines the stroke configuration.
connections.to
Object|String|NumberDefines the target of the connection. You can set this property to a value matching a shape id or to an object with XY-coordinates.
connections.toConnector
StringSpecifies the name of the target shape connector that should be used by the connection.
Default: "Auto"
connections.type
StringSpeifies the connection type, which defines the way it routes.
The routing of a connection is the way intermediate points of a connection define a route. A route is usually defined on the basis of constraints or behaviors. Currently there are two routing mechanisms for Diagram connections:
- polyline route - connects the defined intermediate points, see connections.points.
- cascading route - a simple rectangular route that creates a cascading path between the two ends of a connection, ignoring given connection points. The cascading type is useful when using tree layout and hierarchies. The routed connection will in this case enhance the representation of the hierarchy, reproducing a classic organization diagram.
The available values for the type property are:
- "polyline" - connects the defined intermediate points. See connections.points.
- "cascading" - discards given points and defines a cascading path between the endpoints.
Default: "cascading"