Skip to content

API Type UIImageFit

github-actions[bot] edited this page Dec 2, 2026 · 5 revisions

Type Alias: UIImageFit

type UIImageFit = "cover" | "contain" | "fill";

Defined in: src/engine/ui/draw/contract.ts:531

How an image fills its box: stretched, whole, or cropped to fill.

Clone this wiki locally