Interface OrthoAxisOptions

Hierarchy

Properties

axisColor?: Vector4

The color of the primary axis line. Default [0, 0, 0, 1].

axisHigh?: number

The maximum value encompassed by this axis.

axisIntercept?: number

The position on the opposing axis that this axis intercepts.

axisLow?: number

The minimum value encompassed by this axis.

axisWidth?: number

The width of the primary axis line in pixels. Default 1.

labelAnchor?: Vector2

The x/y position of the anchor relative to the text quad, on the range [-1, -1] (bottom left) to [1, 1] (top right). When undefined will automatically anchor the text according to the direction of the axis.

labelAngle?: number

The angle at which the text will be rotated around the anchor. Default 0.

labelColor?: Vector4

The color of the tick labels. Default [0, 0, 0, 1].

labelFormatter?: ((n: number) => string)

Type declaration

    • (n: number): string
    • The function to use to format the ticks. Default (n: number) => n.toString().

      Parameters

      • n: number

      Returns string

labelPad?: number

The padding between the ticks and tick labels in pixels. Default 3.

labelSide?: 1 | -1

Which side of the axis the label will be placed on. Default -1.

labelSize?: number

The size in pixels of the label font. Default 12.

minorTickColor?: Vector4

The color of the minor ticks. Default [0, 0, 0, 1].

minorTickCount?: number

The number of minor ticks between major ticks. None if undefined. Default undefined.

minorTickLength?: number

The length of the minor ticks in pixels. Default 6.

minorTickOffset?: number

How far the minor ticks are shifted from centered on the primary axis line. Zero is centered, can be negative or positive. Default 0.

minorTickWidth?: number

The width of the minor ticks in pixels. Default 1.

minorTicks?: NumberArray

The position of the minor ticks as a distance from start. Default [] (empty).

tickColor?: Vector4

The color of the ticks. Default [0, 0, 0, 1].

tickLength?: number

The length of the ticks in pixels. Default 12.

tickOffset?: number

How far the ticks are shifted from centered on the primary axis line. Zero is centered, can be negative or positive. Default 0.

tickOrigin?: number

Used to anchor ticks to the axis. Using a value of 0.1 and a tickStep of 1.0 will result in ticks at [... -1.9, -0.9, 0.1, 1.1 ... ]. Default 0.

tickStep?: number

The distance between ticks. Default 1.

tickWidth?: number

The width of the ticks in pixels. Default 1.

Generated using TypeDoc