Interface for a class Connector
Object
Allows the user to save custom information/data about a node/connector
boolean
Specifies a value indicating whether to overlap the connector over with the source and target node. If the LineRouting is enabled in the diagram, then allowNodeOverlap property will not work.
<div id='diagram'></div>
let connectors: ConnectorModel[] = [{
id: 'connector', type: 'Straight', sourcePoint: { x: 500, y: 100 }, targetPoint: { x: 600, y: 200 },
annotations: [{ content: 'No', offset: 0, alignment: 'After' }]
];
let diagram: Diagram = new Diagram({
...
connectors: connectors
...
});
diagram.appendTo('#diagram');
Sets the bezier settings of editing the segments.
number
Defines the bridgeSpace of connector
number
Sets the connector padding value
number
Sets the distance between source node and connector
Defines the constraints of connector
number
Sets the corner radius of the connector
Defines the size of a drop symbol
boolean
Defines whether the node should be automatically positioned or not. Applicable, if layout option is enabled.
ConnectorFixedUserHandleModel[]
Specifies the collection of the fixed user handle
Flip the element in Horizontal/Vertical directions
Allows you to flip only the node or along with port and label
number
Sets the connector padding value
string
Represents the unique id of nodes/connectors
Defines the space to be left between the node and its immediate parent
number
Sets the maximum segment thumb for the connector
Defines the behavior of connection ports
Defines the size of the symbol preview
Defines the shape for the connector segmentThumb Rhombus - Sets the segmentThumb shape as Rhombus Square - Sets the segmentThumb shape as Square Rectangle - Sets the segmentThumb shape as Rectangle Ellipse - Sets the segmentThumb shape as Ellipse Arrow - Sets the segmentThumb shape as Arrow Diamond - Sets the segmentThumb shape as Diamond OpenArrow - Sets the segmentThumb shape as OpenArrow Circle - Sets the segmentThumb shape as Circle Fletch - Sets the segmentThumb shape as Fletch OpenFetch - Sets the segmentThumb shape as OpenFetch IndentedArrow - Sets the segmentThumb shape as Indented Arrow OutdentedArrow - Sets the segmentThumb shape as Outdented Arrow DoubleArrow - Sets the segmentThumb shape as DoubleArrow
number
Specifies the size of the segment thumb for individual connector. When not set, it defaults to matching the underlying path data
[]
Defines the segments
ConnectorShapeModel
| BpmnFlowModel
| RelationShipModel
| DiagramConnectorShapeModel
Defines the shape of the connector
Defines the source decorator of the connector
string
Sets the source node/connector object of the connector
number
Sets the source padding of the connector
Sets the beginning point of the connector
string
Sets the unique id of the source port of the connector
Defines the appearance of the connection path
Defines the symbol info of a connector
Defines the target decorator of the connector
string
Sets the target node/connector object of the connector
number
Sets the target padding of the connector
Sets the end point of the connector
string
Sets the unique id of the target port of the connector
defines the tooltip for the connector
Defines the type of the connector
boolean
Sets the visibility of the node/connector
Defines the UI of the connector
number
Defines the visual order of the node/connector in DOM