Skip to main content

LineStyle

Defines the simple properties for an edge style.

Properties

color?

optional color: string

Color to paint the edge's path


dashArray?

optional dashArray: string

Definition of dash pattern to use to draw the edge path


fontFamily?

optional fontFamily: string

Font size to use; defaults to whatever the browser decides given the context


fontSize?

optional fontSize: number

Font size to use; defaults to whatever the browser decides given the context


fontStyle?

optional fontStyle: FontStyle

Font style to use; defaults to whatever the browser decides given the context


gradient?

optional gradient: [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?

optional label: string

Label to show on the edge


labelLocation?

optional labelLocation: number

Location for the label, defaults to 0.5


lineWidth?

optional lineWidth: number

Width of the edge path


outlineColor?

optional outlineColor: string

Color to paint the edge's outline path


outlineWidth?

optional outlineWidth: number

Width to draw the edge's outline path