SPF-OST / pytrnsys_gui

Graphical user interface for pytrnsys
https://pytrnsys.readthedocs.io
GNU Lesser General Public License v3.0
3 stars 4 forks source link

Compute port's side based on position and get rid off `PortItemBase.side`. #540

Open zuckerruebe opened 3 weeks ago

zuckerruebe commented 3 weeks ago

When, e.g., laying out a connection we rely on the relevant ports' side property. For this to work, keeping side up to date arcoss rotating, mirroring and loading a block item needs to be doen correctly. It not always is, plus it's annoying to have to do it.

Instead, I propose a port's side should be computed on the fly (based on its original position and the block item's transform).