Skip to content
pixi-silk
GitHub repository
Type

FitMode

import type { FitMode } from 'pixi-silk/ui/layout';
type FitMode = "none" | "contain" | "cover" | "scale-down" | "fill";

How a child scales into its slot, as CSS object-fit. none keeps its size, contain fits inside, cover fills and overflows, scale-down is contain that never enlarges, fill stretches both axes.