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
59 stars 9 forks source link

Not enough room for guidelines #20

Closed ugurdogrusoz closed 7 years ago

ugurdogrusoz commented 7 years ago

When there is not enough room for guidelines, it's probably not worth drawing guidelines. See example below (where there isn't enough room for vertical distribution guidelines): not-enough-room-for-guideline So, below a certain length (not long enough to accommodate a line with arrows), they shouldn't be drawn at all (would be best to let the user define this as an extension option).

ugurdogrusoz commented 7 years ago

Can we increase the minimum a bit? We still have such situations (assuming latest is on daily): image

kinimesi commented 7 years ago

See https://github.com/iVis-at-Bilkent/newt/commit/7575a9637e39fee58d02a9665a8a7ddd938d8d7d