Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Genogram Layout Problem

$
0
0

@YosuaSalim wrote:

I’m developing a Genogram based on GoJS Genogram 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.

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles