Defines the behavior of orthogonal segments
boolean
Defines the segment to be drag or not
Defaults to true
string
Sets the direction of orthogonal segment
Defaults to null
number
Defines the length of orthogonal segment
<div id='diagram'></div>
let connectors: ConnectorModel[] = [{
id: 'link2', sourcePoint: { x: 0, y: 0 }, targetPoint: { x: 40, y: 40 }, type: 'Orthogonal',
shape: {
type: 'Bpmn',
flow: 'Message',
association: 'directional'
}, style: {
strokeDashArray: '2,2'
},
segments: [{ type: 'Orthogonal', length: 30, direction: 'Bottom' },
{ type: 'Orthogonal', length: 80, direction: 'Right' }]
}];
let diagram: Diagram = new Diagram({
...
connectors: connectors
...
});
diagram.appendTo('#diagram');
Defaults to 0
Sets the end point of the connector segment
Defaults to new Point(0,0)
Sets the first control point of the connector
Defaults to {}
Sets the second control point of the connector
Defaults to {}
string
Defines the type of the segment
Defaults to ‘Straight’
Defines the length and angle between the source point and the first control point of the diagram
Defaults to {}
Defines the length and angle between the target point and the second control point of the diagram
Defaults to {}