Although a translation factor was calculated based on position of relationship paths, boundaries of the SVG element itself, alongside positions of specific elements, where not updated accordingly. This PR fixes that.
Steps for Testing
Create two elements, ideally with child elements.
Connect them by the left (top) port.
Drag the mid point of the relationship further to left (top).
Export. On develop, this will yield a buggy export, while with this PR it won't.
Checklist
I documented the TypeScript code using JSDoc style.(NA)I translated all the newly inserted strings into German and English(NA)Motivation and Context
See this issue.
Description
Although a translation factor was calculated based on position of relationship paths, boundaries of the SVG element itself, alongside positions of specific elements, where not updated accordingly. This PR fixes that.
Steps for Testing
Test Coverage
Screenshots
Sample diagram to reproduce the issue:
How it will export on develop:
How it will export after this PR: