Hi,
When we update Line widgets style through web plugin API, it impacts the read-only bounds/endPosition properties. This cause line widget to switch to undesired position when connecting between 2 widgets.
Video for this behavior
https://www.loom.com/share/dbadddf3261a49388a28803725f81fa5
Notice that the line changes position after color change
Before and after comparison of widget properties