strathausen / dracula

JavaScript layout and representation of connected graphs.
https://www.graphdracula.net
MIT License
836 stars 132 forks source link

constant layout #10

Open imod opened 12 years ago

imod commented 12 years ago

Are there any plans to support a constant layout of a grpah? e.g. if I give the same edges/nodes the graph looks the same everytime the API anf features are great, but unfortunately this is currently my showstopper...

strathausen commented 12 years ago

Hi, I have once posted a short article about this on the website. Basically you can just fake Math.random (and later revert it to the original) in order to have predictable results. (written from mobile...) greetings!

----- Ursprüngliche Mitteilung -----

Are there any plans to support a constant layout of a grpah? e.g. if I give the same edges/nodes the graph looks the same everytime the API anf features are great, but unfortunately this is currently my showstopper...


Reply to this email directly or view it on GitHub: https://github.com/strathausen/dracula/issues/10

monomon commented 11 years ago

I think this is a good idea, but serialization/snapshots is what we actually need. Then you could pass a graph with the layout described. I am currently working on some improvements, and this would be one of the things I will look at soon. This project will also be a nice demo for Dracula, with ability to connect edges interactively, and using Infobox to contain HTML inside the nodes. (funnily I was going to contribute some code a while ago, and then lost that code... I believe the last time I will ever lose code :))

nicorikken commented 7 years ago

Has any progress been made on this feature. This would be my make or break reason to use this library or write something custom.

strathausen commented 7 years ago

Hey, yeah so actually I think it shouldn't be hard to implement. I'll look at it in the coming days...

MichalLytek commented 7 years ago

Any news about this feature? It's been a 3 months, do you need some help?

visini commented 7 years ago

Also looking for this functionality...

dugajean commented 7 years ago

Is this happening anytime soon?