waygraph / applyOrientation
Function: applyOrientation()
applyOrientation(
state,orientation):DeviceState
Defined in: src/demo/narration/device.ts:56
Swap width/height so the viewport matches the requested orientation. Preserves deviceScaleFactor. No-op when already oriented.