Limit port shifting

Hi,
I use the PortShifting tool. In general ports are floating around the node, but i need to limit the flotation to the node’s left & right sides vertically.
See attached pic with blue arrow points to one of the ports.
Do i have to modify the code ?
Regards,
Tany

image

Yes, you’ll want to adapt the code in extensions/PortShiftingTool.js, in the PortShiftingTool.prototype.updateAlignment method. Maybe you want to leave the value of X alone and only modify the Y value.

I did the modification.
Works fine.
Thanks