Hi Gabo,
Yes, it is possible to avoid overlapping of annotations with other node or connector annotations by using annotations ‘offset’ property. The offset property of annotation is used to align the annotations based on fractions. 0 represents top/left corner, 1 represents bottom/right corner, and 0.5 represents half of width/height. Please find below code snippet for how to set annotations offset
|
public connectors: ConnectorModel[] = [
{
id: 'connector1', sourceID: 'node1', targetID: 'node2', annotations: [{ content: 'NewPort', offset: 0.2}]
},
{
id: 'connector2', sourceID: 'node1', targetID: 'node3', annotations: [{ content: 'NewPort2', offset: 0.5}]
}
] |
For more information about annotation’s offset property. Please refer to below help documentation link
Regards
Aravind Ravi