Skip to content

Interface: PlaceholderPositionProps ​

PositionProps for an object that can fill a layout placeholder: text, an image, a table or a chart. Each axis also takes null, which leaves it unstated, as omitting it does. With placeholder, an unstated axis comes from the layout placeholder; without one, it takes the object's default. null is how a computed value says "unset" where exactOptionalPropertyTypes refuses undefined.

Example ​

ts
{ placeholder: 'body', x: indent ?? null } // the placeholder's left edge unless indented

Extended by ​

Properties ​

h? ​

optional h?: Coord | null

Height, as PositionProps.h. null leaves it unstated: the layout placeholder's, with placeholder.


w? ​

optional w?: Coord | null

Width, as PositionProps.w. null leaves it unstated: the layout placeholder's, with placeholder.


x? ​

optional x?: Coord | null

Horizontal position, as PositionProps.x. null leaves it unstated: the layout placeholder's, with placeholder.


y? ​

optional y?: Coord | null

Vertical position, as PositionProps.y. null leaves it unstated: the layout placeholder's, with placeholder.