Skip to main content

Type Alias: FigmaRootDimensionConstraint

type FigmaRootDimensionConstraint = object & 
| {
mode: "FILL" | "FIXED" | "HUG";
source: "layout-sizing";
}
| {
mode: "FIXED" | "HUG";
source: "legacy-axis-sizing";
}
| {
mode: "UNKNOWN";
source: "compatibility-fallback" | "non-auto-layout";
};

Defined in: packages/uimatch-cli/src/types/index.ts:64

Source information retained while Figma root sizing is interpreted.

Type Declaration

axis

axis: "horizontal" | "vertical";

observedPx?

optional observedPx: number;