hi ,
I am working on implementing two ports outside at the border of a node. I was able to achieve it using alignment in spot panel and alignmentfocus, but i have few issue,
- The positions of the ports change when the node size changes , is it possible to keep the ports at the same positions even if the node size change.
- Is it possible to change the port position to right/left side of node when the node is moved in order to show connected links in shortest path
3)When i use spot panel, the entire node size also changes, it looks like some margin is getting added. I would require the node size to stay the same . Is there a way to solve this.
eg-
$(
go.Shape,
'Circle',
portStyle(true),
{ portId: '', alignment: new go.Spot(1.0, 0.4), alignmentFocus: go.Spot.BottomLeft },
new go.Binding('portId', 'id', function (id) {
}),
),
$(
go.Shape,
'Circle',
portStyle(true),
{
portId: '',
alignment: new go.Spot(1, 0.8),
alignmentFocus: go.Spot.BottomLeft,
},
new go.Binding('portId', 'id', function (id) {
}),
)