Skip to content

API Type UIImageFit

github-actions[bot] edited this page Nov 29, 2026 · 5 revisions

Type Alias: UIImageFit

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

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

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

Clone this wiki locally