Andrei Kashcha

Results 132 comments of Andrei Kashcha

The example works here: https://anvaka.github.io/VivaGraphJS/demos/tutorial_svg/01%20-%20Create%20Graph.html Are you sure vivagraph is loaded on your page? Do you see any other errors in the developer console?

Seems like this is pure SVG question, not specific to vivagraph... I'd recommend to try to achieve this in pure SVG first (or ask for help on StackOverflow). You could...

Hello, I'd suggest to use `ngraph.graph` and [`ngraph.forcelayout`](https://github.com/anvaka/ngraph.forcelayout) instead. VivaGraph is built from these blocks, and it might be easier to start with them. In fact, https://www.yasiv.com/ uses webworkers to...

You can explore [`lastMove` property](https://github.com/anvaka/ngraph.forcelayout/blob/0b9bfc190b93002465b43477c5dd49a3ef50fb0b/index.js#L163-L166) of your layout from time to time (e.g. inside `setTimeout()` function). Depending on amount of nodes/edges in the graph this number should be decreasing, and...

I believe this is a miss on my end - I cannot find this documented in the current repository. What you are looking for is `layout.setNodePosition(nodeId, x, y)` - the...

Hi @gappleto97 The layout object created [here](https://github.com/anvaka/VivaGraphJS/blob/ca953396a8f0ed5a007f0f47188b7c5abfa6723b/demos/other/physicsLayout.html#L20-L25) should be exactly the same as `ngraph.forcelayout` ([see here](https://github.com/anvaka/VivaGraphJS/blob/cab1fca26d74713f8b556891f615e08b766c60cb/src/viva.js#L64) how it's created internally). So documentation for `ngraph.forcelayout` applies to vivagraph too. > Still,...

Ah, I see what you mean. Physics simulator will attempt to to put node as close as possible towards its neighbors. This is by design, since in most cases it...

This is impressive work! I think you could encode angles information into a texture, and then pass offsets into shader as a buffer. Each node would get two indices in...

Sure! If someone wants to try wrapping this into react component - I'd be glad to endorse it!

Ah, nevermind - it's already open here: https://github.com/ebidel/try-puppeteer/issues/6