fkling / JSNetworkX

Build, process and analyze graphs in JavaScript (port of NetworkX)
https://felix-kling.de/jsnetworkx/
Other
761 stars 184 forks source link

How to make the zoom action more smoothly? #19

Closed realcarlos closed 9 years ago

realcarlos commented 10 years ago

Now , when click one node , the scale of graphic changed too much ,is there a parameter to set? Thank you very much .

fkling commented 10 years ago

I don't know what you mean. If you could create a http://jsfiddle.net/ demo and explain issue in more detail, maybe I can help. I'd also ask you to not actually github issues for your question about how to use the library. The issues are primarily for bugs or API discussions, but not for general support. I'll see whether I can set up a mailing list.

realcarlos commented 10 years ago

I am sorry , I am using jsnetworkx.js in a new project of iPad , when I use two fingers to change the scale of the webview, the scale of the graphic (including cirle and edge) change too big , but I only want to make it a little larger.

realcarlos commented 10 years ago

And I also want to set the background color to gray or some other color ,how could I do that?

fkling commented 10 years ago

I have never tried to use the library from a touch device. I assume when you do a pinch zoom, the browser is zooming the whole website, this is not handled by JSNetworkX. I will see if I can make it work with touch gestures.

You can change the background of your page with CSS (note that this has nothing to do with JSNetworkX).