Skip to content

GridLayer.setPlane

Summary

GridLayer.setPlane sets the projected grid plane. Accepted planes are "xy", "xz", and "yz".

Syntax

GridLayer.setPlane(plane: GridPlane): this
layer.setPlane(plane);

Parameters

Name Type Required Description
plane GridPlane Yes Projected plane: "xy", "xz", or "yz".

Returns

this - The same instance for method chaining.

Type Details

type GridPlane = "xy" | "xz" | "yz";

Example

const grid = wgpu.createOverlay.grid();
grid.setPlane("xz");

See Also