Skip to main content
LineStyle
Defines the simple properties for an edge style.
NameTypeDescription
color?stringColor to paint the edge's path
dashArray?stringDefinition of dash pattern to use to draw the edge path
fontFamily?stringFont size to use; defaults to whatever the browser decides given the context
fontSize?numberFont size to use; defaults to whatever the browser decides given the context
fontStyle?FontStyleFont style to use; defaults to whatever the browser decides given the context
gradient?Array<[number, string]>An array of color stops to use as a linear gradient for the edge path. When this is set, color is ignored.
label?stringLabel to show on the edge
labelLocation?numberLocation for the label, defaults to 0.5
lineWidth?numberWidth of the edge path
outlineColor?stringColor to paint the edge's outline path
outlineWidth?numberWidth to draw the edge's outline path