Skip to content

Type Alias: PptxAutofitMode ​

PptxAutofitMode = "none" | "normAutofit" | "spAutoFit"

Vertical-autofit mode of a text frame, read from the a:bodyPr child element:

  • 'none': no autofit (a:noAutofit, or no autofit child at all). The box has a fixed height the text must fit inside — a genuine overflow candidate.
  • 'normAutofit': shrink text to fit (a:normAutofit, ts-pptx fit: 'shrink'). Text is downscaled rather than overflowing.
  • 'spAutoFit': resize shape to fit text (a:spAutoFit, ts-pptx fit: 'resize'). The authored height is an output, not a constraint, so the box cannot overflow.