Skip to main content

Interface: UnitIntervalOptions

Defined in: mobjects/graphing/NumberLine.ts:364

Options for creating a UnitInterval

Properties

color?

optional color: string

Defined in: mobjects/graphing/NumberLine.ts:368

Stroke color as CSS color string. Default: '#ffffff'


includeNumbers?

optional includeNumbers: boolean

Defined in: mobjects/graphing/NumberLine.ts:376

Whether to include number labels. Default: false


includeTicks?

optional includeTicks: boolean

Defined in: mobjects/graphing/NumberLine.ts:372

Whether to include tick marks. Default: true


length?

optional length: number

Defined in: mobjects/graphing/NumberLine.ts:366

Visual length of the unit interval. Default: 5


numbersToExclude?

optional numbersToExclude: number[]

Defined in: mobjects/graphing/NumberLine.ts:380

Numbers to exclude from labels. Default: []


numDecimalPlaces?

optional numDecimalPlaces: number

Defined in: mobjects/graphing/NumberLine.ts:378

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


strokeWidth?

optional strokeWidth: number

Defined in: mobjects/graphing/NumberLine.ts:370

Stroke width in pixels. Default: 2


tickSize?

optional tickSize: number

Defined in: mobjects/graphing/NumberLine.ts:374

Size of tick marks. Default: 0.2