Hi Sunil,
We have modified the sample as per your suggestion to create 4 ports and remove the Node’s NodeConstraints.OutConnect and NodeConstraints.InConnect. Please check and let know whether the sample achieve your requirement or not?
Code example:
let nodes = [
{
id: 'node1',
// offsetX: 100,
// offsetY: 100,
style: { fill: '#82E0AA' },
annotations: [{ content: 'Publisher' }],
ports: [{
id: 'port1', height: 10, width: 10, offset: { x: 0, y: 0.5 },
visibility: PortVisibility.Visible
},{
id: 'port2', height: 10, width: 10, offset: { x: 0.5, y: 0 },
visibility: PortVisibility.Visible
},{
id: 'port3', height: 10, width: 10, offset: { x: 1, y: 0.5 },
visibility: PortVisibility.Visible
},{
id: 'port4', height: 10, width: 10, offset: { x: 0.5, y: 1 },
visibility: PortVisibility.Visible
}]
},
}]
Regards,
Naganathan K G