Skip to content

waygraph / orientationFromViewport

Function: orientationFromViewport() ​

orientationFromViewport(vp): DeviceOrientation

Defined in: src/demo/narration/device.ts:47

Infer orientation from box (square counts as landscape).

Parameters ​

vp ​

DeviceViewport

Returns ​

DeviceOrientation

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed