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

Add arrow to genogram to point to 'proband'

$
0
0

@running_randall wrote:

I'm trying to add an arrow to point to the proband in the genorgram example:http://gojs.net/latest/samples/genogram.html.

I'm having a hard time adding the template for the arrow:

myDiagram.nodeTemplate.add("probandArrow",
$(go.Node, "Vertical", {
locationSpot: go.Spot.Center,
locationObjectName: "ICON",
movable:false
}),
$(go.Panel, {
name: "ICON"
},
$(go.Shape, "Arrow", {
width: 25,
height: 15,
strokeWidth: 1,
fill: "black",
portId: "",
angle: 330
})
));

I'm getting the error: "Panel.add:element value is not an instance of GraphObject: probandArrow". Once I get the template in there I still don't understand how to position it slightly below and to the left of the proband.

Any help is appreciated!

Thanks!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles