Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapping of widget positions #53

Open
janezd opened this issue Nov 8, 2019 · 0 comments
Open

Snapping of widget positions #53

janezd opened this issue Nov 8, 2019 · 0 comments

Comments

@janezd
Copy link
Contributor

janezd commented Nov 8, 2019

Continued from biolab/orange3#4154.

A button for recomputation of all widget positions is probably not feasible. What may be feasible is snapping when the user moves widgets. We could emulate snapping in drawing tools, like Illustrator. Canvas could do the following.

  • For horizontal snapping, it

    • checks if one of input or output connection lines is almost horizontal (this does not mean that the corresponding widgets are aligned, because there may be multiple connections, so they are not vertically centered with the widget). If so, it snaps the widget position so that line is horizontal.
    • If there are no such lines, it checks whether there is a widget with a similar y coordinate and snaps to it.
  • For vertical snapping, it checks whether there is a widget with a similar x coordinates and snaps.

However, we said that while this would be very nice to have, it is not a priority. Can be implemented when @irgolic has nothing else on his list. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant