Skip to content

FrameProperties

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

§17.3.1.11 w:framePr — the paragraph is a floating TEXT FRAME: it leaves the flow, takes the box this describes, and the body text wraps around it. Consecutive paragraphs carrying the same frame are one frame together.

readonly optional hAnchor?: "text" | "page" | "margin"

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


readonly optional heightPt?: Pt

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

w:h with w:hRuleexact pins the height, anything else fits the text.


readonly optional heightRule?: "auto" | "exact" | "atLeast"

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


readonly optional hSpacePt?: Pt

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


readonly optional vAnchor?: "text" | "page" | "margin"

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


readonly optional vSpacePt?: Pt

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


readonly optional widthPt?: Pt

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

w:w — the frame’s width. Absent ⇒ as wide as the text needs.


readonly optional wrap?: "none" | "auto" | "around" | "notBeside" | "tight" | "through"

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

§17.18.104 ST_Wrap — how the body text runs past the frame.


readonly optional xAlign?: "right" | "left" | "center" | "inside" | "outside"

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

w:xAlign/w:yAlign — an alignment instead of an offset.


readonly optional xPt?: Pt

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

w:x/w:y — the offset from whatever hAnchor/vAnchor names.


readonly optional yAlign?: "top" | "bottom" | "center" | "inside" | "outside"

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


readonly optional yPt?: Pt

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