Skip to content

API reference / Common / Engine types / TextRun

Type Alias: TextRun ​

ts
type TextRun = 
  | {
  regular: TextRegularRun;
}
  | {
  group: TextGroupRun;
}
  | {
  markedContentPoint: TextMarkedContentPoint;
};

One item of a text block: a show op, a marked-content sequence around none or several items, or a marked-content point.

A sequence begun and ended inside the block around exactly one show op is that op's marked_content; around none or several, it's a [TextGroupRun] holding them, as for graphics objects (14.6).