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

Nodes snap to canvas grid #11

Open
orchetect opened this issue Sep 3, 2022 · 1 comment
Open

Nodes snap to canvas grid #11

orchetect opened this issue Sep 3, 2022 · 1 comment

Comments

@orchetect
Copy link
Member

  • Add a grid size property to Patch, which defaults to disabled (free positioning of nodes)
  • When grid is enabled:
    • Visually render grid as lines or points (optional)
    • Snap node positions to canvas grid when calling layout
    • Snap node positions to canvas when user drags node(s)
@wtholliday
Copy link
Member

If the canvas is zoomable then zooming out on a big patch could result in too many grid lines to maintain a good frame rate.

could reduce the grid resolution in steps when zooming out.

@orchetect orchetect changed the title Canvas snap to grid Nodes snap to canvas grid Sep 14, 2022
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

2 participants