Skip to content

FloatAnchor

Defined in: src/core/document-model/types.ts:1756

§20.4.2.3 wp:anchor — a floating drawing’s placement. v1 honours out-of-flow placement for wrap 'none' (incl. behindDoc); the side-wrapping modes (square/tight/through) and topAndBottom stay in flow as blocks.

readonly optional behind?: boolean

Defined in: src/core/document-model/types.ts:1763


readonly optional inCell?: boolean

Defined in: src/core/document-model/types.ts:1808

§20.4.2.3 wp:anchor @layoutInCell (VML o:allowincell) — present and false when a drawing anchored inside a TABLE CELL is placed against the page rather than against the cell. Absent means the default: the cell is the frame every relativeFrom is measured in.


readonly optional posH?: object

Defined in: src/core/document-model/types.ts:1770

readonly optional align?: "right" | "left" | "center"

readonly optional offsetPt?: Pt

readonly relativeFrom: "page" | "column" | "margin" | "leftMargin" | "rightMargin"

§20.4.3.3 ST_RelFromH. leftMargin/rightMargin are the margin BANDS beside the text area, which is where a marginal note is placed: tdf103573.docx centres one box in each, and read as plain margin they both landed in the middle of the text and printed over each other.


readonly optional posV?: object

Defined in: src/core/document-model/types.ts:1781

readonly optional align?: "top" | "bottom" | "center"

§20.4.3.1 wp:align (VML: mso-position-vertical) — a KEYWORD rather than an offset, which is how Word centres a watermark in its page.

readonly optional offsetPt?: Pt

readonly relativeFrom: "page" | "line" | "paragraph" | "margin" | "topMargin" | "bottomMargin"

§20.4.3.4 ST_RelFromV. topMargin/bottomMargin measure from the top edge of the margin BAND they name — page-content-bottom.docx hangs a square 312pt above the bottom margin, and read as plain margin it went off the top of the page.


readonly wrap: "none" | "square" | "notBeside" | "tight" | "through" | "topAndBottom"

Defined in: src/core/document-model/types.ts:1762

§20.4.2.3 / §17.18.104 — how body text runs past the drawing. notBeside is the FRAME’s own mode: the drawing keeps the place its anchor names, but no text may stand beside it, so its band spans the whole column.


readonly optional wrapDist?: object

Defined in: src/core/document-model/types.ts:1813

§20.4.2.3 wp:anchor @distT/@distB/@distL/@distR — how far the wrapped text stands off each edge of the drawing. Absent sides are 0.

readonly bottomPt: Pt

readonly leftPt: Pt

readonly rightPt: Pt

readonly topPt: Pt


readonly optional wrapSide?: "right" | "left" | "bothSides" | "largest"

Defined in: src/core/document-model/types.ts:1801

§20.4.2.3 @wrapText on the wrap element — which side(s) of the drawing text may stand on. bothSides is the default and the only value that fills BOTH gaps; left/right name one, largest the wider.


readonly optional zOrder?: number

Defined in: src/core/document-model/types.ts:1769

§20.4.2.3 wp:anchor @relativeHeight — the z-order among the floats on the page: the higher number is drawn over the lower, whatever their order in the document.