Skip to main content

Interface: ThreeDAxesOptions

Defined in: mobjects/three-d/ThreeDAxes.ts:11

Options for creating ThreeDAxes

Properties

axisColor?

optional axisColor: string

Defined in: mobjects/three-d/ThreeDAxes.ts:19

Default color for all axes. Default: '#ffffff'


billboardLabels?

optional billboardLabels: boolean

Defined in: mobjects/three-d/ThreeDAxes.ts:42

Whether axis labels rotate to always face the camera (Manim CE's add_fixed_orientation_mobjects behavior). Default: true.


labelBuffer?

optional labelBuffer: number

Defined in: mobjects/three-d/ThreeDAxes.ts:37

Offset in world units from each axis tip to its label. Default: 0.4


labelFontSize?

optional labelFontSize: number

Defined in: mobjects/three-d/ThreeDAxes.ts:35

Font size used when creating labels from strings (MathTexImage pixel size). Default: 32


labels?

optional labels: object

Defined in: mobjects/three-d/ThreeDAxes.ts:29

Custom label text or Mobjects per axis. String entries become Text mobjects. Defaults: 'x', 'y', 'z'

x?

optional x: string | Mobject

y?

optional y: string | Mobject

z?

optional z: string | Mobject


shaftRadius?

optional shaftRadius: number

Defined in: mobjects/three-d/ThreeDAxes.ts:52

Shaft radius for arrows. Default: 0.01


showLabels?

optional showLabels: boolean

Defined in: mobjects/three-d/ThreeDAxes.ts:27

Whether to show axis labels (x, y, z). Default: false


showTicks?

optional showTicks: boolean

Defined in: mobjects/three-d/ThreeDAxes.ts:44

Whether to show tick marks. Default: true


tickLength?

optional tickLength: number

Defined in: mobjects/three-d/ThreeDAxes.ts:46

Length of tick marks. Default: 0.15


tipLength?

optional tipLength: number

Defined in: mobjects/three-d/ThreeDAxes.ts:48

Tip length for arrows. Default: 0.2


tipRadius?

optional tipRadius: number

Defined in: mobjects/three-d/ThreeDAxes.ts:50

Tip radius for arrows. Default: 0.08


xColor?

optional xColor: string

Defined in: mobjects/three-d/ThreeDAxes.ts:21

Color for x-axis (overrides axisColor). Default: same as axisColor


xRange?

optional xRange: [number, number, number]

Defined in: mobjects/three-d/ThreeDAxes.ts:13

X-axis range as [min, max, step]. Default: [-6, 6, 1]


yColor?

optional yColor: string

Defined in: mobjects/three-d/ThreeDAxes.ts:23

Color for y-axis (overrides axisColor). Default: same as axisColor


yRange?

optional yRange: [number, number, number]

Defined in: mobjects/three-d/ThreeDAxes.ts:15

Y-axis range as [min, max, step]. Default: [-5, 5, 1]


zColor?

optional zColor: string

Defined in: mobjects/three-d/ThreeDAxes.ts:25

Color for z-axis (overrides axisColor). Default: same as axisColor


zRange?

optional zRange: [number, number, number]

Defined in: mobjects/three-d/ThreeDAxes.ts:17

Z-axis range as [min, max, step]. Default: [-4, 4, 1]