aspectRatio
Locked aspect ratio. Present only when the node has a locked ratio.
Type(s)
| Type | Example |
|---|---|
AspectRatioValue | x: 16y: 9 |
null | null (unconstrained) |
TokenReference is intentionally excluded — aspect ratio is a structural lock of literal numbers in the Figma API, not a token-driven value.
Supported on
| Element | Figma Layer(s) |
|---|---|
container | Component, Frame, Instance, Slot |
text | Text |
glyph | Glyph |
vectors | Rectangle, Vector, Ellipse, Star, Polygon |
Source
| Format | File |
|---|---|
| TypeScript | packages/schema/types/Styles.ts |
| JSON Schema | packages/schema/schema/styles.schema.json |