Skip to main content

Device Orientation

Deprecated

This node is deprecated and kept only so existing projects keep working. It is not offered in the node picker for new use.

Deprecated device-orientation sensor exposing rotation X/Y/Z. No direct successor; use a Function node over the DeviceOrientation API.

The legacy Device Orientation node streams the device's rotation on three number outputs. It is deprecated and hidden from the picker; modern browsers gate the underlying API behind permission prompts the node predates.

When to use it​

Do not use in new graphs — read the DeviceOrientation API from a Function node, handling the permission request explicitly.

At a glance​

CategorySensors
Type nameGyroscope
Available inbrowser
SSR compatibilityclient-only — Device sensors only exist in the browser.
Provided bynoodl-viewer-react
Behaviour specnot written yet

Outputs​

Values​

NameTypeDefaultDescription
rotationXNumber—Front-to-back tilt in degrees; it never updates on iOS, which requires a permission this node does not request
rotationYNumber—Left-to-right tilt in degrees; it never updates on iOS, which requires a permission this node does not request
rotationZNumber—Compass heading in degrees; it never updates on iOS, which requires a permission this node does not request

Function

Code export​

Does not export to React yet. A project that uses it exports with this node named in the export report.

Why: deliberately out of scope — the type is deprecated in the catalog, so nobody building today is offered one. A project that still holds one exports it as a named deferral, which is the right answer for a node its own editor has retired.

How export works shows what an export writes, with a worked example.

Generated

This page is generated from node-catalog-enriched.json, the node's spec in packages/nodegx-node-spec and the export ledger. Do not edit it by hand — run npm run docs:nodes to regenerate, and fix the source instead.