FitMode
FitMode =
"letterbox"|"expand"|"cover"|"stretch"
Defined in: renderer/src/types.ts:18
Scale mode for the responsive-fit API.
letterbox— preserve aspect, fit inside the host, paint bars with the background color.expand— same scaling asletterbox(virtual rect always fully visible), but the bar region is left to the game to draw into. Pair withRendererPlugin.extendedVirtualRects/visibleCanvasRectto render fog, parallax, or a decorative backdrop into the extra space.cover— preserve aspect, fill the host; content overflows the virtual rect on the long axis.stretch— non-uniform scale; the virtual rect is squashed/pulled to match the host.