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.
Properties
Section titled “Properties”behind?
Section titled “behind?”
readonlyoptionalbehind?:boolean
Defined in: src/core/document-model/types.ts:1763
inCell?
Section titled “inCell?”
readonlyoptionalinCell?: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.
readonlyoptionalposH?:object
Defined in: src/core/document-model/types.ts:1770
align?
Section titled “align?”
readonlyoptionalalign?:"right"|"left"|"center"
offsetPt?
Section titled “offsetPt?”
readonlyoptionaloffsetPt?:Pt
relativeFrom
Section titled “relativeFrom”
readonlyrelativeFrom:"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.
readonlyoptionalposV?:object
Defined in: src/core/document-model/types.ts:1781
align?
Section titled “align?”
readonlyoptionalalign?:"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.
offsetPt?
Section titled “offsetPt?”
readonlyoptionaloffsetPt?:Pt
relativeFrom
Section titled “relativeFrom”
readonlyrelativeFrom:"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.
readonlywrap:"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.
wrapDist?
Section titled “wrapDist?”
readonlyoptionalwrapDist?: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.
bottomPt
Section titled “bottomPt”
readonlybottomPt:Pt
leftPt
Section titled “leftPt”
readonlyleftPt:Pt
rightPt
Section titled “rightPt”
readonlyrightPt:Pt
readonlytopPt:Pt
wrapSide?
Section titled “wrapSide?”
readonlyoptionalwrapSide?:"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.
zOrder?
Section titled “zOrder?”
readonlyoptionalzOrder?: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.