sameeraroshan / visjs

visjs vaadin addon
Apache License 2.0
10 stars 13 forks source link

Saving graph layout for later use #18

Open sempervivo opened 8 years ago

sempervivo commented 8 years ago

Is there a possibility to save all the nodes' positions so that when the same user uses the app again, thew ill be loaded in the same positions he arranged them the last time ?

Thank you.

sameeraroshan commented 8 years ago

Yes. You can use get seed method to save the seed. Provide saved seed for the next diagram and you will get the same positions. Please read the vus js documentation.

Sent from my Samsung Galaxy smartphone.

-------- Original message -------- From: sempervivo notifications@github.com Date:17/03/2016 3:44 PM (GMT+05:30) To: sameeraroshan/visjs visjs@noreply.github.com Cc:
Subject: [visjs] Saving graph layout for later use (#18)

Is there a possibility to save all the nodes' positions so that when the same user uses the app again, thew ill be loaded in the same positions he arranged them the last time ? Thank you. —You are receiving this because you are subscribed to this thread.Reply to this email directly or view it on GitHub

sempervivo commented 8 years ago

Sorry. I posted in the wrong forum. I was referring to your Vaadin visjs addon. I didn't see any options to save the seed of the network diagram class. :(

sameeraroshan commented 8 years ago

ill add that and release a new version.

On Fri, Mar 18, 2016 at 1:15 PM, sempervivo notifications@github.com wrote:

Sorry. I posted in the wrong forum. I was referring to your Vaadin visjs addon. I didn't see any options to save the seed of the network diagram class. :(

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/sameeraroshan/visjs/issues/18#issuecomment-198241638

sempervivo commented 8 years ago

Great. Thank you.

wangzhenux commented 8 years ago

Hi @sameeraroshan , it’s great to hear you’re adding this feature. Have you already added it? If so, is there any documentation? If not, do you have an expected timeframe?

Thank you!