iVis-at-Bilkent / cytoscape.js-grid-guide

A Cytsocape.js extension to provide a framework for grid interactions such as grid lines and snapping to grid, and guidelines and snap support for alignment of nodes.
MIT License
58 stars 9 forks source link

Guidelines and tolerance #10

Closed ugurdogrusoz closed 7 years ago

ugurdogrusoz commented 8 years ago
kinimesi commented 7 years ago

It is very hard to align when tolerance is 0, due to the precision of position values. If you turn on "Show grid", "Snap to grid", "Discrete drag" and "Auto resize" properties and set tolerance to 0, guidelines will show up when there is a perfect alignment.

ugurdogrusoz commented 7 years ago

In the old implementation there was a bug and alignment was never detected for tolerance 0. This is no longer an issue. Even without grid and snap to grid disabled I can alignment with 0 tolerance btw (not as easy as when it's 2 but still doable).