@ajosojan wrote:
Hi,
I'm using the genogram,
var $ = go.GraphObject.make;
myDiagram = $(go.Diagram, "myDiagramDiv", { initialAutoScale: go.Diagram.Uniform, initialContentAlignment: go.Spot.Center, "undoManager.isEnabled": true, // when a node is selected, draw a big yellow circle behind it nodeSelectionAdornmentTemplate: $(go.Adornment, "Auto", { layerName: "Grid" }, // the predefined layer that is behind everything else $(go.Shape, "Circle", { fill: "yellow", stroke: null }), $(go.Placeholder) ), layout: // use a custom layout, defined below $(GenogramLayout, { direction: 90, layerSpacing: 30, columnSpacing: 10 }) });and my GenogramLayout function is :
function GenogramLayout() {
go.LayeredDigraphLayout.call(this); this.initializeOption = go.LayeredDigraphLayout.InitDepthFirstIn; this.spouseSpacing = 30; // minimum space between spouses } go.Diagram.inherit(GenogramLayout, go.LayeredDigraphLayout);and i'm getting an error Uncaught Error. Trying to set undefined property "diredtion" on object: [object object]
Posts: 1
Participants: 1
