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

Show only points #54

Open julioisaias opened 2 years ago

julioisaias commented 2 years ago

How could we make it show only one point at each intersection in the grid?

ugurdogrusoz commented 2 years ago

Please describe what you would like to do in more detail.

julioisaias commented 2 years ago

It would be at the intersection of the grid lines: captura1

Final result: captura2

ugurdogrusoz commented 2 years ago

Did you try changing this option 'snapToGridCenter'?

julioisaias commented 2 years ago

Did you try changing this option 'snapToGridCenter'?

That refers to aligning or snapping the nodes on the intersections.

My question is about the grid. Show points instead of lines, as shown in the image.

ugurdogrusoz commented 2 years ago

I am afraid that's not supported by this library. Feel free to make a PR to the unstable branch.

xobjects commented 2 years ago

Hello everyone. I too would like this. What you can do to see what it could look like is to, on the demo page, set the grid spacing to 19 and line width to 65. I know this is not ultimately what you are looking for, but it still works 'for a demo'