AxesLayer
A layer that draws the world coordinate axes as colored lines.
Three lines start at the world origin: x in red, y in green, and z in blue, each with the given length and width. The layer is static and ready as soon as it is constructed.
ts
viewport.addLayer(new AxesLayer({ length: 100, width: 2 }));Extends Layer and inherits all public properties and methods.
Constructor
Creates an axes layer with the given dimensions.
ts
new AxesLayer(props): AxesLayer;| Parameter | Description |
|---|---|
props: AxesLayerProps | Initialization properties. |
Types
AxesLayerProps
Initialization properties for constructing an axes layer.
| Property | Description |
|---|---|
length: number | Axis length in world units. |
width: number | Line width in pixels. |
Properties
type overrides
Identifies the layer type as AxesLayer.
ts
readonly type: "AxesLayer" = "AxesLayer";Methods
update() void overrides
Performs no per-frame work. The axes are built at construction.
ts
update(): void;