Skip to main content

Interface: UnitIntervalOptions

Defined in: src/mobjects/graphing/NumberLine.ts:363

Options for creating a UnitInterval

Properties​

color?​

optional color: string

Defined in: src/mobjects/graphing/NumberLine.ts:367

Stroke color as CSS color string. Default: the active theme's fill color


includeNumbers?​

optional includeNumbers: boolean

Defined in: src/mobjects/graphing/NumberLine.ts:375

Whether to include number labels. Default: false


includeTicks?​

optional includeTicks: boolean

Defined in: src/mobjects/graphing/NumberLine.ts:371

Whether to include tick marks. Default: true


length?​

optional length: number

Defined in: src/mobjects/graphing/NumberLine.ts:365

Visual length of the unit interval. Default: 5


numbersToExclude?​

optional numbersToExclude: number[]

Defined in: src/mobjects/graphing/NumberLine.ts:379

Numbers to exclude from labels. Default: []


numDecimalPlaces?​

optional numDecimalPlaces: number

Defined in: src/mobjects/graphing/NumberLine.ts:377

Number of subdivisions. Default: 10 (ticks at 0, 0.1, 0.2, ..., 1)


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/graphing/NumberLine.ts:369

Stroke width in pixels. Default: 2


tickSize?​

optional tickSize: number

Defined in: src/mobjects/graphing/NumberLine.ts:373

Size of tick marks. Default: 0.2