Skip to content

a11ydocs v1.7.0


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

PropertyModifierTypeDescriptionDefined in
height?readonlynumberBox 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?readonlynumberOne-based page to draw on. Defaults to 1; pages are created as needed.src/document-json.ts:102
width?readonlynumberBox width in points. Required for rect and image blocks.src/document-json.ts:98
xreadonlynumberLeft edge, in PDF points.src/document-json.ts:94
yreadonlynumberBaseline/top depending on the block; in PDF points under origin.src/document-json.ts:96

Released under the ISC license.