centerHorizontalOffset
Horizontal offset from center. Present when the horizontal constraint is CENTER.
Type(s)
| Type | Example |
|---|---|
number | 0 (pixels) |
null | null |
Not token-bindable — structural property computed from Figma layout constraints, not a design value.
Supported on
| Element | Figma Layer(s) |
|---|---|
container | Component, Frame, Instance, Slot |
text | Text |
glyph | Glyph |
vectors | Rectangle, Vector, Ellipse, Star, Polygon |
line | Line |
Figma key
Reads from x when the horizontal constraint is CENTER. See ADR 041 — Layout Positioning.
Source
| Format | File |
|---|---|
| TypeScript | packages/schema/types/Styles.ts |
| JSON Schema | packages/schema/schema/styles.schema.json |