Skip to main content

Interface: EdgeStyleOptions

Defined in: src/mobjects/graph/graphTypes.ts:51

Options for edge styling

Properties​

color?​

optional color: string

Defined in: src/mobjects/graph/graphTypes.ts:53

Color of the edge. Default: BLUE


labelBuff?​

optional labelBuff: number

Defined in: src/mobjects/graph/graphTypes.ts:67

Gap between a straight edge and its label. Default: 0.2


labelColor?​

optional labelColor: string

Defined in: src/mobjects/graph/graphTypes.ts:65

Color for a weight or label rendered on the edge. Default: edge color


labelFontSize?​

optional labelFontSize: number

Defined in: src/mobjects/graph/graphTypes.ts:63

Font size for a weight or label rendered on the edge. Default: 24


selfLoopRadius?​

optional selfLoopRadius: number

Defined in: src/mobjects/graph/graphTypes.ts:61

Radius of a self-loop arc (edge from a vertex to itself). Default: 0.3


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/graph/graphTypes.ts:55

Stroke width of the edge. Default: 4


tipLength?​

optional tipLength: number

Defined in: src/mobjects/graph/graphTypes.ts:57

For directed graphs, tip length. Default: 0.2


tipWidth?​

optional tipWidth: number

Defined in: src/mobjects/graph/graphTypes.ts:59

For directed graphs, tip width. Default: 0.12