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 to initial mouse location #17

Closed ugurdogrusoz closed 7 years ago

ugurdogrusoz commented 7 years ago

Initial mouse location (the location where we clicked on the node to be dragged) should also be remembered and taken into consideration during drag. So the user knows how the drag is proceeding w.r.t. initial mouse position.

kinimesi commented 7 years ago

Should there be different color option and On/Off option for this guideline?

I deployed current version to ChiSE_daily. Right now in order to see this guidelines, you need to enable "Geometric alignment" from "Grid Properties" menu.

ugurdogrusoz commented 7 years ago

Works like a charm, thanks! Yes there should be options (in this extension) for enabling/disabling it and its style (color, dashed or solid, etc.).