Function getFormFactor

Returns the current form factor. Poll for a one-off read.

Off-host (plain vite dev — no host to report the region's box) this stays at the default forever: { class: 'desktop', orientation: 'landscape', width: 1280, height: 800 }. Don't mistake it for a measurement — locally, size your layout from the DOM if you need the real viewport.