Skip to main content

Interface: LabeledLineOptions

Defined in: mobjects/geometry/LabeledGeometry.ts:58

Options for creating a LabeledLine

Extends

Properties

color?

optional color: string

Defined in: mobjects/geometry/Line.ts:14

Stroke color as CSS color string. Default: WHITE

Inherited from

LineOptions.color


end?

optional end: Vector3Tuple

Defined in: mobjects/geometry/LabeledGeometry.ts:62

End point of the line. Default: [1, 0, 0]


label

label: string

Defined in: mobjects/geometry/LabeledGeometry.ts:64

Text label content


labelColor?

optional labelColor: string

Defined in: mobjects/geometry/LabeledGeometry.ts:74

Color for label text. Default: same as line color


labelFontSize?

optional labelFontSize: number

Defined in: mobjects/geometry/LabeledGeometry.ts:72

Font size for label. Default: 36


labelOffset?

optional labelOffset: number

Defined in: mobjects/geometry/LabeledGeometry.ts:70

Distance of label from line. Default: 0.2


labelOrientation?

optional labelOrientation: LabelOrientation

Defined in: mobjects/geometry/LabeledGeometry.ts:68

Label orientation relative to line. Default: 'parallel'


labelPosition?

optional labelPosition: number

Defined in: mobjects/geometry/LabeledGeometry.ts:66

Position of label along line (0 = start, 0.5 = midpoint, 1 = end). Default: 0.5


start?

optional start: Vector3Tuple

Defined in: mobjects/geometry/LabeledGeometry.ts:60

Start point of the line. Default: [0, 0, 0]


strokeWidth?

optional strokeWidth: number

Defined in: mobjects/geometry/Line.ts:16

Stroke width in pixels. Default: 4 (Manim's default)

Inherited from

LineOptions.strokeWidth