Java script error occurred


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
          $(go.Adornment, "Auto",
            { layerName: "Grid" },  // the predefined layer that is behind everything else
            $(go.Shape, "Circle", { fill: "yellow", stroke: null }),
layout:  // use a custom layout, defined below
          $(GenogramLayout, { direction: 90, layerSpacing: 30, columnSpacing: 10 })

and my GenogramLayout function is :

function GenogramLayout() {;
  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]

What is the code around line 17 of treedraw.js? What is that [object Object]?

There certainly is a LayeredDigraphLayout.direction property: LayeredDigraphLayout | GoJS API