Skip to main content

Interface: ThreeDAxesOptions

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

Options for creating ThreeDAxes

Properties​

axisColor?​

optional axisColor: string

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

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


billboardLabels?​

optional billboardLabels: boolean

Defined in: src/mobjects/three-d/ThreeDAxes.ts:58

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: src/mobjects/three-d/ThreeDAxes.ts:53

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


labelFontSize?​

optional labelFontSize: number

Defined in: src/mobjects/three-d/ThreeDAxes.ts:51

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


labels?​

optional labels: object

Defined in: src/mobjects/three-d/ThreeDAxes.ts:45

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: src/mobjects/three-d/ThreeDAxes.ts:68

Shaft radius for arrows. Default: 0.01


showLabels?​

optional showLabels: boolean

Defined in: src/mobjects/three-d/ThreeDAxes.ts:43

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


showTicks?​

optional showTicks: boolean

Defined in: src/mobjects/three-d/ThreeDAxes.ts:60

Whether to show tick marks. Default: true


tickLength?​

optional tickLength: number

Defined in: src/mobjects/three-d/ThreeDAxes.ts:62

Length of tick marks. Default: 0.15


tipLength?​

optional tipLength: number

Defined in: src/mobjects/three-d/ThreeDAxes.ts:64

Tip length for arrows. Default: 0.2


tipRadius?​

optional tipRadius: number

Defined in: src/mobjects/three-d/ThreeDAxes.ts:66

Tip radius for arrows. Default: 0.08


xColor?​

optional xColor: string

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

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


xLength?​

optional xLength: number

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

Visual length of the x-axis in scene units, independent of xRange. When omitted, defaults to the x-range span (xMax - xMin), so the axis keeps a 1:1 range-to-visual mapping (unchanged default behavior).


xRange?​

optional xRange: [number, number, number]

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

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


yColor?​

optional yColor: string

Defined in: src/mobjects/three-d/ThreeDAxes.ts:39

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


yLength?​

optional yLength: number

Defined in: src/mobjects/three-d/ThreeDAxes.ts:28

Visual length of the y-axis in scene units, independent of yRange. When omitted, defaults to the y-range span (yMax - yMin).


yRange?​

optional yRange: [number, number, number]

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

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


zColor?​

optional zColor: string

Defined in: src/mobjects/three-d/ThreeDAxes.ts:41

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


zLength?​

optional zLength: number

Defined in: src/mobjects/three-d/ThreeDAxes.ts:33

Visual length of the z-axis in scene units, independent of zRange. When omitted, defaults to the z-range span (zMax - zMin).


zRange?​

optional zRange: [number, number, number]

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

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