у меня так получилось
let e1 = instance.addEndpoint("src", {
endpoint: ["Dot", { radius: 5, cssClass:"hasInfluencedEndpointStrong" }],
anchor: "Center",
paintStyle: {
width: 25,
height: 21,
fill:"transparent"
},
scope: "hasInfluencedStrong",
isSource: true,
reattach: true,
maxConnections: -1,
connectorStyle: {
stroke: "#708088",
strokeWidth: 2.6,
outlineStroke: "transparent",
outlineWidth: 4
},
connectorOverlays:[
[ "Arrow", { location: -15.5, id: "arrow", length: 14, width:14, foldback: 1, direction:1 } ]
]
});
let e2 = instance.addEndpoint("target", {
endpoint: ["Dot", { radius: 5, cssClass:"hasInfluencedEndpointStrong" }],
anchor: "Center",
paintStyle: {
width: 25,
height: 21,
fill:"transparent"
},
scope: "hasInfluencedStrong",
isTarget: true,
reattach: true,
maxConnections: -1,
connectorStyle: {
stroke: "#708088",
strokeWidth: 2.6,
outlineStroke: "transparent",
outlineWidth: 4
},
connectorOverlays:[
[ "Arrow", { location: -15.5, id: "arrow", length: 14, width:14, foldback: 1, direction:1 } ]
]
});
и затем подключите эти конечные точки:
instance.connect({
source:e1,
target:e2
});