#Association Properties

Associations define the relationships between nodes.

Property
example
DescriptionTypeDefault
id
abcd
A unique id for the association
child
{ Node Object }
The child nodestring""
lineColor
#000000
The line color in hex. If not set, it will use the node.options.lineColor property.string#000
lineOpacity
.75
The line opacity (0.0 - 1.0). If not set, it will use the node.options.lineOpacity property.integer1
lineEffect
outlined
The line effect filter. If not set, it will use the node.options.lineEffect property. The available filters are: dropShadow, postItNote, tattered, blur, outline, pixelate, posterize, and pencilstring""
lineWidth
10
The line width in px. If not set, it will use the node.options.lineWidth property.integer2
isStraightLine
false
Set to true for a straight line, otherwise all associations default to bezier curvesbooleanfalse
showParentArrow
true
Show the parent arrowheadbooleantrue
showChildArrow
true
Show the child arrowheadbooleantrue