Appearance
a11ydocs / BlockPosition
Interface: BlockPosition
Defined in: src/document-json.ts:92
Absolute placement for a block. When a block carries a position, it is drawn at these PDF-point coordinates instead of flowing. Geometry and page routing live here; the block's own fields carry its content and style.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
height? | readonly | number | Box height in points. Required for rect and image blocks. | src/document-json.ts:100 |
origin? | readonly | "bottom-left" | "top-left" | Coordinate origin. Defaults to "bottom-left". | src/document-json.ts:104 |
page? | readonly | number | One-based page to draw on. Defaults to 1; pages are created as needed. | src/document-json.ts:102 |
width? | readonly | number | Box width in points. Required for rect and image blocks. | src/document-json.ts:98 |
x | readonly | number | Left edge, in PDF points. | src/document-json.ts:94 |
y | readonly | number | Baseline/top depending on the block; in PDF points under origin. | src/document-json.ts:96 |