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

How to stop the graph from resizing? #256

Closed
apitts opened this issue Apr 28, 2014 · 5 comments
Closed

How to stop the graph from resizing? #256

apitts opened this issue Apr 28, 2014 · 5 comments
Labels

Comments

@apitts
Copy link
Contributor

apitts commented Apr 28, 2014

I am currently using the recently added dragNodes plugin - which is terrific so thanks very much @jacomyal and @josemazo. One thing I would like to be able to do is stop the graph from resizing when a user drags a node. At the moment dragging a node just a little bit can cause all of the other nodes to shrink together, i.e. it causes some fairly dramatic resizing. I've tried changing a few of the settings but couldn't work out how to turn off this resizing when dragging. The autoRescale setting had some effect but the initial graph in that case was then very small.

Any suggestions would be much appreciated.

@josemazo
Copy link
Contributor

Hi @apitts, and thank you for use the plugin!

I think this happen because Sigma try to show the whole graph and I don't know if there is some opiton to desactivate that behavior.

Sorry for don't know how to answer you, I hope that @jacomyal o somebody know how to do it.

@apitts
Copy link
Contributor Author

apitts commented May 25, 2014

FYI - you can see this issue most clearly in the drag-nodes example. If you open the example and then zoom out a bit and try to move a node to the edge of the screen. All of the other nodes group together and you keep zooming out until you are left with just two points.

@patrickmarabeas
Copy link
Contributor

By defining scale = window.innerWidth; within sigma.middlewares.rescale.js I was able to achieve this effect in the drag-nodes example. So possibly just add an additional setting to scalingMode which keeps a constant scale var?

@ryan-williams
Copy link

+1!

@stale
Copy link

stale bot commented Oct 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 9, 2021
@stale stale bot closed this as completed Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants