Hello!
i’m newbie in Gojs. Is there any way to show images in Genogram node?
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 })
});