GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
Genogram Layout Problem


https://support.genopro.com/Topic45477.aspx
Print Topic | Close Window

By darrylwright - Wednesday, November 6, 2024
I’m developing a Genogram based on GoJS Genogram 8 with VueJS.
The Genogram can be saved into local storage and loaded anytime. It saves whole diagram data including node and link location coordinates. But there is one issue I found:

layout:  // use a custom layout, defined below
$(GenogramLayout, {direction: 90, layerSpacing: 30, columnSpacing: 10}) 


The layout config above does auto layout but ignores the node location coordinates.
Removing that code means I can save node and link location but no auto layout.
My aim is to make an auto layout for the first time genogram render then save the layout state.
When I load the genogram data, It shows the same layout location from the local storage.
I tried modifying the GenogramLayout class but I couldn’t find specific function that control the layout coordinates.

Which part of code or function I need to modify/override ?

Any solution is appreciated. Thank you very much.
By genome - Friday, November 8, 2024
GoJS has not been a topic on this forum at all.  I suggest you would be better off posting your query on the GoJS forum. 

But hey, just a minute, perhaps you did, six years ago https://forum.nwoods.com/t/genogram-layout-problem/10778/8 Rolleyes