Skip to content

ShapeTextBody

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

wps:txbx (w:txbxContent) + wps:bodyPr — text inside a shape.

readonly optional anchor?: "t" | "b" | "ctr"

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


readonly optional autoFit?: boolean

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

§20.1.10.28 a:spAutoFit — the SHAPE follows its text: its height is whatever the text needs, whatever the stated box says.


readonly optional chain?: object

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

wps:txbx @id / wps:linkedTxbx @id @seq — the chain of boxes this one belongs to. Text that overruns a box continues in the next of its chain; seq 0 is the box that holds the words, and the rest carry none of their own.

readonly id: string

readonly seq: number


readonly content: readonly BodyElement[]

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


readonly optional fitToBox?: boolean

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

§14.1.2.22 v:textpath @fitshape — the TEXT follows the shape: legacy WordArt is set at whatever size fills the box it was drawn in.


readonly optional insetBottom?: Pt

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


readonly optional insetLeft?: Pt

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


readonly optional insetRight?: Pt

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


readonly optional insetTop?: Pt

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


readonly optional noWrap?: boolean

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

§20.1.2.1.1 a:bodyPr @wrap="none" — the lines run as far as their words do, whatever the box’s width. A label placed where a page set it is sized to the words it was measured from, and set in a face a little wider it broke inside its one word.


readonly optional shrinkToFit?: boolean

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

§20.1.10.42 a:normAutofit — the text SHRINKS to fit the box, and only shrinks: a size that already fits is left alone. PowerPoint writes the scale it settled on into @fontScale and that is applied at parse; this is for the text that arrives without one, which is every box of a diagram laid out from its layout part rather than from a cached drawing.


readonly optional upright?: boolean

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

§20.1.10.55 a:bodyPr @upright — the words stay level however far the shape is turned. bnc762542.xlsx turns each legend label a quarter and asks for this, and every reader draws those labels lying flat.


readonly optional vertical?: "vert" | "vert270"

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

§20.1.10.83 ST_TextVerticalType (a:bodyPr @vert) — text set along the box’s long axis rather than across it. vert reads top-to-bottom (turned a quarter clockwise), vert270 bottom-to-top.


readonly optional warp?: object

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

§20.1.9.10 a:prstTxWarp — DrawingML WordArt: the preset curve the text is bent through, and the a:avLst adj guide when the file states one. The warped text does not wrap and is stretched to fill the shape’s box, so the size its runs state stops deciding how large it is drawn. textNoShape is not carried: it is the enumeration’s “no warp” member, and a body under it is an ordinary text box.

readonly optional adjust?: number

readonly preset: string