Skip to content

axisToPresetView

axisToPresetView(axis, positive, upAxis): GizmoPresetView | null

Defined in: src/components/editor/ViewportGizmo/gizmoMath.ts:359

Map an axis tip click to the corresponding preset view.

Parameters

axis

"x" | "y" | "z"

positive

boolean

upAxis

GizmoUpAxis

Returns

GizmoPresetView | null