-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, when applying an autolayout, the object coordinates were rescaled such that they fit the current viewport taking pan and zoom into account. Unfortunately, this causes (a) numerical instability due to exponentially exploding/imploding coordinates, (b) issues with scale-dependent objects such as the multi-connection arcs from this patch set. This commit resets pan and zoom instead of rescaling the coordinates in a new "feedforward_layout_done" message handler. Since this would also change the coordinates of the non-netgraph components, the transformation inverse to the pan/zoom reset is applied to these components.
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters