fix: camera orientation — stop mutating shared constraint dimensions
getDevice() was mutating outer-scope cWidth/cHeight on every call,
causing dimension swap to toggle unpredictably across camera swaps
and resizes. Also fixed aspectRatio constraint contradicting the
swapped width/height (was computed before the swap).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>