> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Types: editor

Types that the editor packages name, A to Z.

## `AlignEdge`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type AlignEdge = "left" | "center" | "right" | "top" | "middle" | "bottom"
```

## `AltTextPatch`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `decorative?` | `boolean` | |
| `description?` | `string` | |

## `AltTextView`

The one selected object's alt text.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `decorative` | `boolean` | |
| `description` | `string` | |
| `key` | `string` | |

## `AnimationBuild`

Effect Options > Sequence, for a shape with text.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type AnimationBuild = "object" | "allAtOnce" | "paragraph"
```

## `AnimationClass`

The Animations gallery as PowerPoint for Windows writes it: preset ids, subtypes and the
behaviours of each effect at its default length. Lengths are milliseconds.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type AnimationClass = "entrance" | "emphasis" | "exit"
```

## `AnimationEffect`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type AnimationEffect = "appear" | "fade" | "flyIn" | "floatIn" | "split" | "wipe" | "zoom" | "pulse" | "spin" | "growShrink" | "transparency" | "disappear" | "fadeOut" | "flyOut" | "floatOut" | "splitOut" | "wipeOut" | "zoomOut"
```

## `AnimationItem`

One effect of the main sequence, as the Animation Pane lists it.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `click` | `number` | The click that starts it; 0 when it runs as the slide comes up. |
| `cls` | `AnimationClass \| "path" \| "media" \| "other"` | |
| `delay` | `number` | |
| `duration` | `number` | Seconds. |
| `effect` | `AnimationEffect \| "other"` | `other` is an effect the gallery does not offer. |
| `index` | `number` | |
| `label` | `string` | |
| `option?` | `string` | |
| `paragraph?` | `number` | |
| `shape` | `string` | |
| `start` | `AnimationStart` | |

## `AnimationStart`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type AnimationStart = "click" | "with" | "after"
```

## `AnimationState`

The Animations tab for the selected shapes: their first effect, and how many there are.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `build?` | `AnimationBuild` | |
| `cls?` | `AnimationItem["cls"]` | |
| `count` | `number` | |
| `delay` | `number` | |
| `duration` | `number` | |
| `effect` | `AnimationEffect \| "other" \| "none"` | |
| `option?` | `string` | |
| `start` | `AnimationStart` | |

## `AnimationTiming`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `delay?` | `number` | |
| `duration?` | `number` | |
| `start?` | `AnimationStart` | |

## `ArrangeScope`

"selection" measures the shapes against each other; "slide" against the page.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type ArrangeScope = "slide" | "selection"
```

## `BackgroundFill`

One Format Background choice; `style` is a Background Styles cell, 1 to 12.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type BackgroundFill = { color: ShapeColor; kind: "solid"; transparency?: number } | { kind: "gradient"; type?: Exclude<SlideBackgroundGradientFillType, "Unsupported"> } | { background?: string; foreground?: string; kind: "pattern"; pattern: SlideBackgroundPatternFillType } | { bytes: Uint8Array; kind: "picture"; transparency?: number } | { kind: "style"; style: number } | { kind: "reset" }
```

## `BackgroundStylePreview`

A Background Styles cell, drawn from the theme: CSS for the fill and the text colour on it.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `fill` | `string` | |
| `style` | `number` | |
| `text` | `string` | |

## `BackgroundView`

What Format Background shows for a page.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `color?` | `string` | `#RRGGBB` of a solid fill. |
| `hideGraphics` | `boolean` | Hide background graphics: the layout's and master's shapes are not drawn. |
| `own` | `boolean` | The page states its own background rather than following its layout or master. |
| `style?` | `number` | The Background Styles cell, 1 to 12, when the page uses one. |
| `transparency?` | `number` | |
| `type` | `SlideBackgroundFillType` | |

## `CellMargins`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `bottom` | `number` | |
| `left` | `number` | |
| `right` | `number` | |
| `top` | `number` | |

## `CellRange`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `col` | `number` | |
| `cols` | `number` | |
| `row` | `number` | |
| `rows` | `number` | |

## `ChartLegend`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type ChartLegend = "right" | "left" | "top" | "bottom" | "topRight" | "none"
```

## `ChartRef`

A chart reference (`c:f`) and whether it reads numbers (`c:numRef`) or text (`c:strRef`).

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `f` | `string` | |
| `multiLevel?` | `{ across: boolean }` | |
| `numeric` | `boolean` | |

## `ChartRefCache`

`levels` (multi-level only) runs from the leaf out; `points` is the leaf.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type ChartRefCache = ChartRef & { levels?: (string | null)[][]; points: (string | null)[] }
```

## `ChartSeriesData`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `name` | `string` | |
| `values` | `(number \| null)[]` | |

## `ChartSeriesEdit`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type ChartSeriesEdit = { from: number; op: "move"; to: number } | { index: number; op: "remove" } | { hidden: boolean; index: number; op: "hide" }
```

## `ChartSeriesRefs`

Where one series reads its name, categories (or x values), values and bubble sizes.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `categories?` | `string` | |
| `name?` | `string` | |
| `size?` | `string` | |
| `values` | `string` | |
| `x?` | `string` | |

## `ChartSource`

Every series' references; `numericCategories`: the categories are numbers or dates.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `family` | `"category" \| "scatter" \| "bubble"` | |
| `numericCategories` | `boolean` | |
| `series` | `ChartSeriesRefs[]` | |

## `ChartView`

The selected chart.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `categories` | `string[]` | |
| `cells` | `ChartHiddenEmpty` | Select Data > Hidden and Empty Cells. |
| `dataLabels` | `boolean` | Whether every series shows data labels. |
| `design` | `ChartDesign` | What the Chart Design tab shows: each element's state, the colour scheme, how many layouts and styles. |
| `editable` | `boolean` | False for scatter and bubble charts, whose sheet has x values: they are read only here. |
| `elements` | `{ label: string; part: string }[]` | Every element the chart has, in the order of PowerPoint's element list. |
| `key` | `string` | |
| `legend` | `ChartLegend` | |
| `legendEntries` | `SeriesEntry[]` | Select Data's Legend Entries (Series): every series in plot order, hidden ones too. |
| `part` | `string` | The element the Format pane edits; a click on the selected chart picks the one under it. |
| `series` | `ChartSeriesData[]` | |
| `title` | `string \| null` | |
| `type` | `string` | The Excel chart type of the first series ("ColumnClustered", "Pie", …). |
| `workbook` | `boolean` | The chart reads cells of a workbook it embeds: Edit Data opens that workbook. |

## `ChartWorkbook`

What Edit Data opens: the chart's workbook and the references it reads from it. A chart with
no workbook gets one laid out from its own data (`made`); a chart linked to a file outside
the deck shows its last values, read-only (`linked` names the file).

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `bytes` | `Uint8Array` | |
| `linked?` | `string` | |
| `made?` | `boolean` | |
| `refs` | `ChartRef[]` | |
| `source?` | `ChartSource` | Present when the series form one block Edit Data can grow. |
| `visibleOnly` | `boolean` | |

## `ClipPicture`

The copied shapes laid out alone, and the box their ink covers in hmm.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `bounds` | `LayoutBBox` | |
| `doc` | `LayoutDocument` | |

## `CommentSpan`

Selected characters of shape `key`'s text, or of its table cell `cell`.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type CommentSpan = CommentSpanRange & { cell?: GridCell; key: string }
```

## `CommentSpanRange`

Characters a comment points at, as PowerPoint counts them: a paragraph break is one.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `length` | `number` | |
| `start` | `number` | |

## `CommentStop`

Review > Previous and Next: a step through every comment thread in the deck.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `id` | `string` | |
| `slide` | `number` | |

## `ConnectionSite`

A connection site on the slide, in page hmm: `site` is its index in the shape's preset.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `key` | `string` | |
| `site` | `number` | |
| `x` | `number` | |
| `y` | `number` | |

## `ConnectorEnd`

Which end of a connector: `a:stCxn` or `a:endCxn`.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type ConnectorEnd = "start" | "end"
```

## `DesignView`

One master in the Themes gallery's "This Presentation" row.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `id` | `string` | The master's id, what `applyDesign` takes. |
| `layout` | `string` | The layout its thumbnail paints: the title layout, else the first. |
| `name` | `string` | The theme's name, as PowerPoint labels the design. |
| `slides` | `number` | How many slides follow it. |

## `DistributeAxis`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type DistributeAxis = "horizontal" | "vertical"
```

## `DrawTool`

Not exported by name. You get it from the API.

```ts theme={null}
type DrawTool = "curve" | "freeform" | "scribble"
```

## `EditorMode`

Normal view edits slides; Slide Master view edits each master and its layouts.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type EditorMode = "slides" | "masters"
```

## `EditorSelection`

What the editor has selected on its current slide.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type EditorSelection = { kind: "none" } | { keys: string[]; kind: "objects" } | { anchor: Position; focus: Position; key: string; kind: "text"; story: string } | { anchor: GridCell; focus: GridCell; key: string; kind: "cells" }
```

## `EditorView`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `align?` | `ParagraphAlign` | The alignment the selected paragraphs share. |
| `altText?` | `AltTextView` | The one selected object's alt text. |
| `animation?` | `AnimationState` | The selected shapes' animation, as the Animations tab shows it. |
| `animations?` | `AnimationItem[]` | The current slide's main sequence in play order, as the Animation Pane lists it. |
| `background?` | `BackgroundView` | The current page's background, as Format Background shows it. |
| `canGroup` | `boolean` | |
| `canPaste` | `boolean` | Whether `paste` has shapes to add. |
| `canRedo` | `boolean` | |
| `canUndo` | `boolean` | |
| `canUngroup` | `boolean` | |
| `caret?` | `Rect` | Text mode: the caret, in its line's upright frame (`rot` turns it). |
| `chart?` | `ChartView` | The selected chart. |
| `columns?` | `TextColumns` | The text columns and their spacing the selected shapes share. |
| `comments` | `SlideComment[]` | The current slide's comment threads, oldest first. |
| `design?` | `string` | The id of the master the current slide follows. |
| `designs` | `DesignView[]` | Design > Themes, This Presentation: each master with its theme's name. |
| `direction?` | `TextDirection` | The Text Direction the selected shapes share. |
| `gridSpacing` | `number` | The grid's spacing in points, from the view properties. |
| `guides` | `GuideView[]` | The page's drawing guides, in points from the top or left edge; its layout's and master's are `locked`. |
| `ir` | `LayoutDocument` | Every slide, one page each; a page is replaced when its slide changes. |
| `layouts` | `LayoutChoice[]` | Every slide layout, master by master. |
| `list?` | `ListState` | The bullet or number the selected paragraphs show, and whether their level can move. |
| `markers` | `LayoutLine[]` | Bullets of the edited story's empty paragraphs; PowerPoint shows them only in edit mode. Painted like prompts. |
| `masterPages?` | `MasterPage[]` | Slide Master view: what each page is. |
| `mode` | `EditorMode` | |
| `notes` | `string` | The current slide's speaker notes; "" in Slide Master view. |
| `objects` | `SlideObject[]` | The current slide's shapes, back to front. |
| `painter?` | `PainterState` | Format Painter holds a format; the host paints it on the next selection. Esc drops it. |
| `picture?` | `PictureView` | The one selected picture's crop and transparency. |
| `presenting` | `boolean` | A slide show is running (`present`). |
| `prompts` | `LayoutLine[]` | The prompts of the slide's empty placeholders ("Click to add title"), laid out like their text. A host paints them over the slide; they are not part of it, so thumbnails leave them out. |
| `revision` | `number` | Bumped on every change to the document. |
| `sections` | `SectionView[]` | The deck's sections in order; empty when it has none or in Slide Master view. |
| `selection` | `EditorSelection` | |
| `selectionRects` | `Rect[]` | |
| `shapeStyle?` | `ShapeStyleState` | The fill and outline the selected shapes share, resolved through their style and theme. |
| `slide` | `number` | |
| `slides` | `SlideMeta[]` | Per slide, in deck order; empty in Slide Master view. |
| `slideSize` | `{ height: number; width: number }` | The slide size in points. |
| `snapToGrid` | `boolean` | Grid and Guides > Snap objects to grid. |
| `spacing?` | `ParagraphSpacing` | The line spacing and space before and after the selected paragraphs share. |
| `table?` | `TableView` | The table the selection is in. |
| `textBox?` | `Partial<TextBoxOptions>` | The Format Shape > Text Box options the selected shapes share; one they differ on is absent. |
| `theme` | `ThemeView` | The colour and font schemes of the current page's master theme, as Design > Colors and Fonts mark them. |
| `themeColors` | `string[]` | The current slide's theme as `#RRGGBB`, one per `THEME_PALETTE` column: what a `ShapeColor` theme colour paints. |
| `transition?` | `TransitionState` | The current slide's transition, as the Transitions tab shows it; absent in Slide Master view. |
| `verticalAlign?` | `TextAnchor` | Where the text sits in the selected shapes or cells, when they share it. |

## `EffectKind`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type EffectKind = "glow" | "reflection" | "softEdge"
```

## `FindHit`

One match of `find`: frame offsets in one story of one slide.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `end` | `number` | |
| `slide` | `number` | |
| `start` | `number` | |
| `story` | `string` | |

## `FontBytes`

Import from `@reductoai/pptx-editor`.

```ts theme={null}
type FontBytes = (id: string) => Uint8Array | null | undefined
```

## `Frame`

`flipH`/`flipV` as the page shows them, group flips included; absent keeps the shape's own.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type Frame = LayoutBBox & { flipH?: boolean; flipV?: boolean; rotDeg?: number }
```

## `FreeformPoint`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `x` | `number` | |
| `y` | `number` | |

## `FreeformSpec`

Nodes in page hmm; `curve` runs a smooth curve through them, else straight lines join them.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `closed?` | `boolean` | |
| `curve?` | `boolean` | |
| `points` | `FreeformPoint[]` | |

## `GradientEdit`

One change in the pane; a stop is named by its index in `GradientState.stops`.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type GradientEdit = { kind: GradientFillType } | { angle: number } | { color?: string; position?: number; stop: number; transparency?: number } | { addStop: number } | { removeStop: number }
```

## `GradientState`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `angle` | `number` | Clockwise degrees of a linear gradient. |
| `kind` | `GradientFillType` | |
| `stops` | `GradientStopState[]` | In the order the file keeps them, which the pane's stop numbers follow. |

## `GradientStopState`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `color` | `string` | `#RRGGBB`, resolved through the theme. |
| `position` | `number` | 0–1. |
| `transparency` | `number` | 0–1. |

## `GridCell`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `col` | `number` | |
| `row` | `number` | |

## `GuideView`

One guide in points from the top or left edge, colour `#RRGGBB`. A `locked` guide belongs to the
page's layout or master: it shows and snaps but moves only in Slide Master view.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `color` | `string` | |
| `id` | `number` | |
| `locked?` | `true` | |
| `orientation` | `GuideOrientation` | |
| `position` | `number` | |

## `HeaderFooterSettings`

The dialog's Slide tab. A fixed date shows `dateText`; otherwise it is a field in `dateFormat`.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `date` | `boolean` | |
| `dateFixed` | `boolean` | |
| `dateFormat` | `DateTimeFormat` | |
| `dateText` | `string` | |
| `footer` | `boolean` | |
| `footerText` | `string` | |
| `notOnTitleSlide` | `boolean` | |
| `slideNumber` | `boolean` | |

## `Keybinding`

Import from `@reductoai/pptx-editor`.

| Name | Type | Description |
| - | - | - |
| `args?` | `unknown` | |
| `command` | `string` | "-format.bold" removes the earlier bindings of that command (of `key` only, when given). |
| `hidden?` | `boolean` | Works, but is not shown or offered as the command's key. |
| `key?` | `string` | "mod+shift+k"; a chord is two presses: "mod+k mod+c". |
| `platform?` | `Platform` | |
| `when?` | `string` | |

## `KeybindingStore`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `load()` | `() => UserKeybindings \| Promise<UserKeybindings \| null> \| null` | |
| `save()` | `(value: UserKeybindings) => void \| Promise<void>` | |
| `subscribe()?` | `(listener: (value: UserKeybindings \| null) => void) => () => void` | Changes made elsewhere: another tab, another device. |

## `LayoutChoice`

A slide layout the Layout gallery offers; `part` names it in commands.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `master` | `string` | |
| `name` | `string` | |
| `part` | `string` | |

## `LayoutEvent`

What a browser layout host reports: the pipeline phases plus its font fetches.

Not exported by name. You get it from the API.

```ts theme={null}
type LayoutEvent = ConvertProgress | { bytes: number; done: number; kind: "fetch"; phase: "fonts"; total: number } | { bytes: number; kind: "reflow"; phase: "fonts" }
```

## `LayoutProgress`

Not exported by name. You get it from the API.

```ts theme={null}
type LayoutProgress = (event: LayoutEvent) => void
```

## `LineSpacing`

A multiple of single spacing (1.5), or an exact height in points.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type LineSpacing = { multiple: number } | { points: number }
```

## `LineSpec`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `beginArrow?` | `ArrowheadStyle` | |
| `connector` | `ConnectorType` | |
| `endArrow?` | `ArrowheadStyle` | |

## `LinkSettings`

What the Insert Hyperlink dialog sends.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `address` | `string` | |
| `screenTip?` | `string` | |
| `text?` | `string` | Text to display; text only. Left out, the linked text stays as it is. |

## `LinkState`

What the dialog shows on open.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `address` | `string` | |
| `linked` | `boolean` | The selection carries a link: Edit Link and Remove Link apply. |
| `screenTip` | `string` | |
| `text` | `string \| null` | Text to display; null on shapes, which have none. |

## `ListFormat`

`size` in percent of the text (25 to 400); `color` null takes the text colour; `startAt` numbers only.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `color?` | `ShapeColor \| null` | |
| `size?` | `number` | |
| `startAt?` | `number` | |

## `ListKind`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type ListKind = ListMarker["kind"]
```

## `ListMarker`

A bullet character in its font, or one of PowerPoint's numbering schemes.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type ListMarker = { char: string; font?: string; kind: "bullet" } | { kind: "number"; style: NumberStyle }
```

## `ListState`

What the selected paragraphs show; `marker` only when they all show the same one.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `canDemote` | `boolean` | |
| `canPromote` | `boolean` | |
| `format?` | `ListFormat` | The size, colour and start number the listed paragraphs share; absent when none shows a marker. |
| `kind` | `ListKind \| "none" \| "mixed"` | |
| `marker?` | `ListMarker` | |
| `picture?` | `true` | Every paragraph shows a picture bullet. |

## `MasterPage`

A page of Slide Master view.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `kind` | `"master" \| "layout"` | |
| `master` | `string` | |
| `name` | `string` | |
| `part` | `string` | |

## `MediaCall`

A media command of an animation: `playFrom(s)`, `togglePause`, `pause`, `resume` or `stop`.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `cmd` | `"play" \| "toggle" \| "pause" \| "resume" \| "stop"` | |
| `from?` | `number` | Seconds a `playFrom` starts at. |
| `shape` | `string` | |

## `MediaPlayback`

How one video or sound plays, from its `p:cMediaNode`. Shapes are named by `p:cNvPr@id`.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `hideWhenStopped` | `boolean` | Hide While Not Playing. |
| `mute` | `boolean` | |
| `repeat` | `number` | Plays in a row; Infinity for Loop until Stopped. |
| `rewind` | `boolean` | Rewind after Playing: the poster comes back at the end. |
| `shape` | `string` | |
| `volume` | `number` | 0 to 1; ECMA's default is half. |

## `MediaSource`

Where a store reads a media part from; `PptxEditor` is one.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `mediaBlob()` | `(part: string, type?: string) => Blob \| null` | |

## `MediaTiming`

The media side of a slide's timing; animations that move no media are not listed.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `clicks` | `MediaCall[][]` | Calls each click of the main sequence makes, in order (On Click). |
| `media` | `MediaPlayback[]` | |
| `start` | `MediaCall[]` | Calls when the slide comes up (Automatically). |
| `triggers` | `{ calls: MediaCall[]; shape: string }[]` | Calls a click on a shape makes (a trigger; PowerPoint toggles each video on its own click). |

## `NumberStyle`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type NumberStyle = Exclude<BulletStyle, "Unsupported">
```

## `OutlineParagraph`

One outline line under a slide's title: a paragraph of a body placeholder.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `level` | `number` | 0 for the title; 1 for a first-level body paragraph, as PowerPoint's outline indents it. |
| `paragraph` | `number` | Paragraph index in the story. |
| `start` | `number` | Frame offset of the paragraph's first character, for `selectText`. |
| `story` | `string` | |
| `text` | `string` | |

## `OutlinePatch`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `beginArrow?` | `ArrowheadStyle` | Arrowheads; a closed shape has none, so only lines and connectors take them. |
| `color?` | `ShapeColor \| null` | null is No Outline; the weight and dashes stay for the next colour. |
| `dash?` | `ShapeLineDashStyle` | |
| `endArrow?` | `ArrowheadStyle` | |
| `weight?` | `number` | Points. |

## `OutlineSlide`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `body` | `OutlineParagraph[]` | The paragraphs of the body, subtitle and content placeholders that hold text, in shape order. |
| `slide` | `number` | |
| `title` | `OutlineParagraph[]` | The title placeholder's paragraphs; empty when the slide has no title placeholder. |

## `PaintedMedia`

A picture whose ink comes from a media player.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `id` | `string` | The id the picture paints under on the media page. |
| `windows` | `PaintWindow[]` | |
| `image()` | `() => unknown` | The image to paint now; undefined keeps the poster. |
| `stamp()` | `() => string` | Changes when `image` paints something else. |

## `PainterState`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `brush` | `boolean` | The pointer paints the next selection; false after Ctrl+Shift+C, which keeps the copy for Ctrl+Shift+V. |
| `from` | `"shape" \| "text"` | |
| `sticky` | `boolean` | A double click locks the brush on until Esc or another click on the button. |

## `PaneItem`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `children?` | `PaneItem[]` | A group's shapes, front-most first. |
| `hidden` | `boolean` | |
| `key` | `string` | |
| `kind` | `SlideObjectKind` | |
| `name` | `string` | |

## `PaneName`

Not exported by name. You get it from the API.

```ts theme={null}
type PaneName = "rail" | "notes" | "comments" | "format" | "data" | "selection" | "altText"
```

## `ParagraphAlign`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type ParagraphAlign = "Left" | "Center" | "Right" | "Justify"
```

## `ParagraphSpacing`

`before` and `after` in points. Indentation, also in points: `leftIndent` is Before text
(`marL`); `firstLineIndent` is First line, or negative for Hanging (`indent`).

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `after?` | `number` | |
| `before?` | `number` | |
| `firstLineIndent?` | `number` | |
| `leftIndent?` | `number` | |
| `line?` | `LineSpacing` | |

## `PastedRun`

One run of pasted text; a paragraph break is `\r` inside `text`.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `format?` | `TextFormat` | |
| `href?` | `string` | |
| `text` | `string` | |

## `PeerInfo`

Another writer in a shared deck.

Import from `@reductoai/pptx-editor`.

| Name | Type | Description |
| - | - | - |
| `color` | `string` | |
| `id` | `string` | |
| `name` | `string` | |

## `PeerMark`

Another writer as this editor shows it.

Import from `@reductoai/pptx/collab`.

| Name | Type | Description |
| - | - | - |
| `peer` | `Peer` | |
| `view` | `PeerView` | |

## `PeerView`

Another writer's presence as this editor lays it out.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `boxes` | `Frame[]` | On the current page: the frames of the writer's selected shapes. |
| `caret?` | `Rect` | |
| `presenting?` | `true` | The writer is giving a slide show; `slide` is the one on screen. |
| `selectionRects` | `Rect[]` | |
| `slide` | `number` | The page the writer is on. |

## `Phase`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `detail` | `string` | |
| `elapsedMs` | `number` | Frozen at the moment the phase finished; live phases time themselves. |
| `id` | `PhaseId` | |
| `ratio` | `number \| null` | null when no total is known: the track runs indeterminate. |
| `startedAt` | `number` | |
| `status` | `PhaseStatus` | |

## `PhaseId`

Not exported by name. You get it from the API.

```ts theme={null}
type PhaseId = "parse" | "layout" | "paint"
```

## `PhaseStatus`

Not exported by name. You get it from the API.

```ts theme={null}
type PhaseStatus = "pending" | "active" | "done"
```

## `PictureAspect`

Crop > Aspect Ratio: width over height, or the picture's own.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type PictureAspect = { height: number; width: number } | "original"
```

## `PictureView`

The one selected picture: its crop and transparency, as Picture Format shows them.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `crop` | `CropInsets` | |
| `key` | `string` | |
| `recolor?` | `PictureRecolor` | The Recolor tile it shows; undefined for a recolor no tile writes. |
| `transparency` | `number` | |

## `Platform`

Key names for bindings: parse, read from an event, and label per platform.

Not exported by name. You get it from the API.

```ts theme={null}
type Platform = "mac" | "win"
```

## `PptxCommand`

Every edit is one of these, so a test, a script and the UI drive the editor the same way.
Points are page hmm on the current slide.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type PptxCommand = { slide: number; type: "goToSlide" } | { keys: string[]; type: "select" } | { extend?: boolean; type: "click"; x: number; y: number } | { type: "doubleClick"; x: number; y: number } | { at?: "start" | "end" | { x: number; y: number }; key: string; story?: string; type: "editText" } | { type: "escape" } | { frames: ({ key: string } & Frame)[]; type: "setFrames" } | { dx: number; dy: number; type: "nudge" } | { type: "deleteObjects" } | { frame: Frame; shape: GeometricShapeType; type: "addShape" } | { frame: Frame; type: "addLine" } & LineSpec | { type: "addFreeform" } & FreeformSpec | { frame: Frame; text?: string; type: "addTextBox" } | { at?: { x: number; y: number }; bytes: Uint8Array; size?: { height: number; width: number }; svg?: Uint8Array; type: "addPicture" } | { at?: { x: number; y: number }; bytes: Uint8Array; file?: Blob; poster: Uint8Array; size?: { height: number; width: number }; type: "addMedia" } | { type: "group" } | { type: "ungroup" } | { position: "BringToFront" | "SendToBack" | "BringForward" | "SendBackward"; type: "zOrder" } | { edge: AlignEdge; to?: ArrangeScope; type: "alignObjects" } | { by: number; type: "rotateObjects" } | { axis: DistributeAxis; type: "flipObjects" } | { color: ShapeColor | null; type: "shapeFill" } | { direction: GradientDirection; type: "shapeGradient"; variation: GradientVariation } | { type: "shapeGradient"; variation: null } | { edit?: GradientEdit; type: "shapeGradientFill" } | { bytes: Uint8Array; type: "shapePictureFill" } | { set: OutlinePatch; type: "shapeOutline" } | { axis: DistributeAxis; to?: ArrangeScope; type: "distributeObjects" } | { text: string; type: "insertText" } | { runs: PastedRun[]; type: "insertRuns" } | { code: number; font: string; type: "insertSymbol" } | { by?: DeleteUnit; type: "deleteBackward" } | { by?: DeleteUnit; type: "deleteForward" } | { extend?: boolean; move: CaretMove; type: "moveCaret" } | { extend?: boolean; type: "setCaret"; x: number; y: number } | { type: "selectAll" } | { end: number; start: number; story: string; type: "selectText" } | { format: TextFormat; type: "format" } | { type: "clearFormatting" } | { case: TextCase; type: "changeCase" } | { align: ParagraphAlign; type: "align" } | { kind: ListKind; type: "toggleList" } | { marker: ListMarker | null; type: "setList" } | { crop: CropInsets; type: "cropPicture" } | { aspect: PictureAspect; type: "pictureAspect" } | { mode: "fill" | "fit"; type: "pictureFit" } | { shape: GeometricShapeType; type: "changeShape" } | { type: "pictureTransparency"; value: number } | { recolor: PictureRecolor; type: "pictureRecolor" } | { bytes: Uint8Array; type: "changePicture" } | { set: ListFormat; type: "listFormat" } | { image: Uint8Array; type: "listPicture" } | { by: 1 | -1; type: "listLevel" } | { spacing: ParagraphSpacing; type: "paragraphSpacing" } | { anchor: TextAnchor; type: "verticalAlign" } | { direction: TextDirection; type: "textDirection" } | { count: number; spacing?: number; type: "textColumns" } | { options: Partial<TextBoxOptions>; type: "textBox" } | { type: "copy" } | { type: "cut" } | { type: "paste" } | { type: "duplicate" } | { after?: number; layout?: string; type: "addSlide" } | { layout: string; slides?: number[]; type: "setLayout" } | { slides?: number[]; type: "resetSlide" } | { slide?: number; type: "duplicateSlide" } | { slide?: number; type: "deleteSlide" } | { from: number; to: number; type: "moveSlide" } | { anchor: GridCell; focus: GridCell; key: string; type: "selectCells" } | { back?: boolean; type: "tab" } | { cols: number; frame?: Frame; rows: number; type: "addTable" } | { type: "tableInsert"; where: "above" | "below" | "left" | "right" } | { type: "tableDelete"; what: "rows" | "columns" | "table" } | { type: "mergeCells" } | { cols: number; rows: number; type: "splitCell" } | { color: string | null; type: "cellFill" } | { preset: BorderPreset; type: "cellBorders" } | { options: Partial<TableOptions>; type: "tableOptions" } | { id: string | null; type: "tableStyle" } | { margins: Partial<CellMargins>; type: "cellMargins" } | { settings: LinkSettings; type: "link" } | { type: "removeLink" } | { hidden: boolean; keys?: string[]; type: "hideObjects" } | { key: string; name: string; type: "renameObject" } | { end: ConnectorEnd; key: string; to: { key: string; site: number }; type: "glueConnector" } | { all?: boolean; settings: HeaderFooterSettings; slides?: number[]; type: "headerFooter" } | { height: number; scale?: SlideSizeScale; type: "slideSize"; width: number } | { scheme: ThemeColorSet; type: "themeColors" } | { scheme: ThemeFontSet; type: "themeFonts" } | { from: string; to: string; type: "replaceFont" } | { name?: string; slides?: number[]; template: Uint8Array | typeof OFFICE_THEME; type: "applyTemplate" } | { design: string; slides?: number[]; type: "applyDesign" } | { all?: boolean; fill: BackgroundFill; slides?: number[]; type: "slideBackground" } | { hidden: boolean; slides?: number[]; type: "backgroundGraphics" } | { preset: number | null; type: "shapeShadow" } | { orientation: GuideOrientation; position?: number; type: "addGuide" } | { id: number; position: number; type: "moveGuide" } | { id: number; type: "deleteGuide" } | { type: "centerGuides" } | { color: string; id: number; type: "guideColor" } | { snapToGrid?: boolean; spacing?: number; type: "gridSettings" } | { kind: EffectKind; preset: number | null; type: "shapeEffect" } | { type: "altText" } & AltTextPatch | { pen: Partial<TablePen>; type: "tablePen" } | { brush?: boolean; sticky?: boolean; type: "formatPainter" } | { type: "paintFormat" } | { type: "cancelFormatPainter" } | { axis: "col" | "row"; delta: number; edge: number; key: string; type: "resizeTrack" } | { axis: "col" | "row"; type: "distributeTracks" } | { axis: "col" | "row"; size: number; type: "trackSize" } | { mode: EditorMode; type: "setMode" } | { group?: string; slide?: number; text: string; type: "setNotes" } | { on: boolean; slide?: number; type: "present" } | { hidden: boolean; slide?: number; type: "hideSlide" } | { effect: TransitionEffect | "none"; option?: string; slides?: number[]; type: "transition" } | { slides?: number[]; type: "transitionTiming" } & TransitionTiming | { type: "applyTransitionToAll" } | { add?: boolean; effect: AnimationEffect | "none"; type: "animation" } | { option: string; type: "animationOption" } | { build: AnimationBuild; type: "animationBuild" } | { type: "animationTiming" } & AnimationTiming | { by: -1 | 1; type: "moveAnimation" } | { before?: number; name: string; type: "addSection" } | { index: number; name: string; type: "renameSection" } | { index: number; type: "removeSection"; withSlides?: boolean } | { from: number; to: number; type: "moveSection" } | { author: CommentAuthor; cell?: GridCell; key?: string; range?: CommentSpanRange; slide?: number; text: string; type: "addComment" } | { author: CommentAuthor; id: string; slide?: number; text: string; type: "replyComment" } | { id: string; slide?: number; text: string; type: "editComment" } | { id: string; slide?: number; type: "deleteComment" } | { id: string; resolved: boolean; slide?: number; type: "resolveComment" } | { scope: "slide" | "deck"; slide?: number; type: "deleteComments" } | { chartType: string; frame?: Frame; type: "addChart" } | { categories: string[]; group?: string; series: ChartSeriesData[]; type: "chartData" } | { chartType: string; type: "chartType" } | { group?: string; title: string | null; type: "chartTitle" } | { caches: ChartRefCache[]; group?: string; source?: ChartSource; type: "chartWorkbook"; visibleOnly?: boolean; workbook: Uint8Array } | { empty: ChartEmptyCells; type: "chartEmptyCells" } | { position: ChartLegend; type: "chartLegend" } | { on: boolean; type: "chartLabels" } | { group?: string; set: ChartDesignPatch; type: "chartDesign" } | { edit: ChartSeriesEdit; type: "chartSeries" } | { part: string; type: "chartPart" } | { group?: string; part?: string; set: ChartFormatPatch; type: "chartFormat" } | { type: "undo" } | { type: "redo" }
```

## `PptxHookOptions`

Not exported by name. You get it from the API.

```ts theme={null}
type PptxHookOptions = unknown
```

## `PptxPresence`

Where a writer is, in terms that hold across other writers' edits: the slide (or master or
layout) part, the selected shapes' ids and, in text, frame offsets in the first shape's story.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `part` | `string` | |
| `presenting?` | `true` | The writer is giving a slide show of `part`. |
| `shapes` | `string[]` | |
| `text?` | `{ anchor: number; focus: number; story: string }` | The story under the first shape: "" for its own text, `@r,c` for a table cell. |

## `ProgressView`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `blocks` | `number` | Body blocks seen while parsing; names the parse row once it closes. |
| `inline` | `boolean` | A document already on screen, or its first pages, keeps the block small. |
| `name` | `string` | |
| `pages` | `number` | Page count from the last finished layout pass; 0 while unknown. |
| `phases` | `Phase[]` | |

## `Screen`

Not exported by name. You get it from the API.

```ts theme={null}
type Screen = { kind: "slide"; media?: ShowMediaPaint; page: LayoutPage } | { kind: "black" } | { kind: "white" } | { kind: "end"; text: string }
```

## `SectionView`

A section of the slide list: `count` slides from slide `start`.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `count` | `number` | |
| `id` | `string` | |
| `name` | `string` | |
| `start` | `number` | |

## `ShapeColor`

`#RRGGBB`, or a colour of the deck's theme; `brightness` is Lighter (0 to 1) or Darker (-1 to 0).

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type ShapeColor = string | { brightness?: number; theme: ShapeThemeColor }
```

## `ShapeStyleState`

What Shape Fill and Shape Outline show as current; a field is absent when the shapes differ.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `beginArrow?` | `ArrowheadStyle` | |
| `dash?` | `ShapeLineDashStyle` | |
| `endArrow?` | `ArrowheadStyle` | |
| `fill?` | `string \| null` | `#RRGGBB`, or null for No Fill; absent on a gradient or picture fill. |
| `glow?` | `number \| null` | The Glow, Reflection and Soft Edges preset ids (`EFFECT_PRESETS`), or null for none. |
| `gradient?` | `GradientState` | Format Shape > Gradient fill: the type, angle and stops of a gradient fill. |
| `line?` | `string \| null` | `#RRGGBB`, or null for No Outline. |
| `reflection?` | `number \| null` | |
| `shadow?` | `number \| null` | The Shadow gallery's preset id (`SHADOW_PRESETS`), or null for No Shadow. |
| `softEdge?` | `number \| null` | |
| `weight?` | `number` | Points. |

## `ShowMediaPaint`

The slide's page with its media pictures under ids of their own, the page it came from and what paints them.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `page` | `LayoutPage` | |
| `source` | `LayoutPage` | |
| `videos` | `PaintedMedia[]` | |

## `ShowMediaSource`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `images` | `ReadonlyMap<string, unknown>` | |
| `objects` | `(slide: number) => readonly SlideObject[]` | |
| `urls` | `MediaUrls` | |

## `ShowMode`

Not exported by name. You get it from the API.

```ts theme={null}
type ShowMode = "show" | "presenter" | "follow"
```

## `ShowOptions`

`start`: a slide index (shown even when hidden, as PowerPoint does) or the first shown slide.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `mode` | `ShowMode` | |
| `peer?` | `string` | |
| `start` | `number \| "first"` | |

## `ShowSlide`

One slide as a slide show plays it.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `advanceAfterMs?` | `number` | Moves on by itself after this long on screen (`advTm`). |
| `advanceOnClick` | `boolean` | False when a click does not move past the slide (`advClick="0"`). |
| `hidden` | `boolean` | |
| `media` | `MediaTiming` | When the slide's videos and sounds play, and how. |
| `notes` | `string` | |
| `part` | `string` | The slide part. |
| `transition?` | `ShowTransition` | |

## `ShowTransition`

How a slide comes on screen in a show; `effect` is the DrawingML element's local name.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `dir?` | `string` | `dir`: a side (`l`, `u`, `r`, `d`), a corner (`lu`, …), `in`/`out` or `horz`/`vert`. |
| `durationMs` | `number` | |
| `effect` | `string` | |
| `orient?` | `string` | `orient` of a split, blinds, checker or bar transition. |
| `spokes?` | `number` | Spokes of a wheel. |
| `thruBlk?` | `boolean` | Fade and cut through black. |

## `SlideComment`

A comment thread on a slide.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type SlideComment = CommentReply & { at?: { x: number; y: number }; key?: string; legacy?: true; replies: CommentReply[]; resolved: boolean; target?: Rect[] }
```

## `SlideMeta`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `animated` | `boolean` | It has a transition or animations. |
| `comments` | `number` | Open comment threads. |
| `hidden` | `boolean` | |
| `layout` | `string` | The part of the slide's layout. |

## `TableOptions`

The table style options of PowerPoint's Table Design tab.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `bandedColumns` | `boolean` | |
| `bandedRows` | `boolean` | |
| `firstColumn` | `boolean` | |
| `headerRow` | `boolean` | |
| `lastColumn` | `boolean` | |
| `totalRow` | `boolean` | |

## `TablePen`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `color` | `ShapeColor` | |
| `dash` | `PresetLineDash \| null` | null is Pen Style's No Border: Borders then clears the sides it names. |
| `weight` | `number` | Points. |

## `TableStyleChoice`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `group` | `TableStyleGroup` | |
| `id` | `string` | |
| `name` | `string` | |
| `preview` | `TableStylePreviewCell[][]` | A 5 by 5 grid under the table's own style options, in the slide's theme. |

## `TableStyleGroup`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type TableStyleGroup = "custom" | "best" | "light" | "medium" | "dark"
```

## `TableStylePreviewCell`

One cell of a preview: fill, text colour and the rule on each edge, as `#rrggbb`.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `bottom?` | `string` | |
| `fill?` | `string` | |
| `left?` | `string` | |
| `right?` | `string` | |
| `text?` | `string` | |
| `top?` | `string` | |

## `TableView`

The table the selection is in, for a host's table tools.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `canMerge` | `boolean` | |
| `canSplit` | `boolean` | |
| `cols` | `number` | |
| `height?` | `number` | The selected rows' laid height in points, when they share one. |
| `key` | `string` | |
| `margins` | `Partial<CellMargins>` | The selected cells' text insets in points; a side they differ on is absent. |
| `options` | `TableOptions` | |
| `pen` | `TablePen` | What Borders draws with: Pen Style, Pen Weight and Pen Color. |
| `range` | `CellRange` | The selected cells, grown to whole merged areas; the caret's cell in text mode. |
| `rows` | `number` | |
| `style?` | `string` | The table's `a:tableStyleId`; absent after Clear Table. |
| `width?` | `number` | The selected columns' width in points, when they share one. |

## `TextAnchor`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type TextAnchor = "top" | "middle" | "bottom"
```

## `TextAutofit`

Format Shape > Text Box > Autofit: Do not Autofit, Shrink text on overflow, Resize shape to fit text.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type TextAutofit = "none" | "shrink" | "resize"
```

## `TextBoxOptions`

Format Shape > Text Box: autofit, the four margins in points and Wrap text in shape.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `autofit` | `TextAutofit` | |
| `bottom` | `number` | |
| `left` | `number` | |
| `right` | `number` | |
| `top` | `number` | |
| `wrap` | `boolean` | |

## `TextCase`

Change Case: a word in capitals stays, as an acronym.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type TextCase = "sentence" | "lower" | "upper" | "capitalize" | "toggle"
```

## `TextColumns`

Columns in a text frame; `spacing` is the gap between them in points.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `count` | `number` | |
| `spacing` | `number` | |

## `TextDirection`

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type TextDirection = "horizontal" | "rotate90" | "rotate270" | "stacked"
```

## `TextFormat`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `bold?` | `boolean` | |
| `color?` | `string` | `#RRGGBB`. |
| `font?` | `string` | |
| `fontFarEast?` | `string` | East Asian face (`a:ea`). |
| `highlight?` | `string \| null` | `#RRGGBB`; null clears it. |
| `italic?` | `boolean` | |
| `size?` | `number` | Points. |
| `spacing?` | `number \| null` | Character spacing in points; null is Normal (`CHARACTER_SPACINGS`). |
| `strikethrough?` | `boolean` | |
| `subscript?` | `boolean` | Lowered 25% (`baseline="-25000"`); true clears a superscript. |
| `superscript?` | `boolean` | Raised 30% (`baseline="30000"`); true clears a subscript. |
| `symbol?` | `string` | Face of the run's private-use characters (`a:sym`), as a symbol font is written. |
| `underline?` | `boolean` | |

## `ThemeView`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `colors?` | `ThemeColorSet` | |
| `fonts?` | `ThemeFontSet` | |

## `TransitionEffect`

The Transitions gallery and its Effect Options, as PowerPoint for Windows writes each pick: the
effect element, its speed, and `p14:dur` where the default length is not a speed's length.

Import from `@reductoai/pptx/editor`.

```ts theme={null}
type TransitionEffect = "fade" | "push" | "wipe" | "split" | "reveal" | "cut" | "randomBars" | "shape" | "uncover" | "cover" | "flash"
```

## `TransitionState`

The slide's transition as the Transitions tab shows it.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `advanceAfter` | `number \| null` | Seconds on screen before the slide moves on by itself; null when it waits. |
| `advanceOnClick` | `boolean` | |
| `duration` | `number` | Seconds. |
| `effect` | `TransitionEffect \| "none" \| "other"` | `other` is an effect the gallery does not offer. |
| `option?` | `string` | |

## `TransitionTiming`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| - | - | - |
| `advanceAfter?` | `number \| null` | |
| `advanceOnClick?` | `boolean` | |
| `duration?` | `number` | |

## `UserKeybindings`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `bindings` | `Keybinding[]` | |
| `version` | `1` | |

## `ZoomMode`

Zoom as PowerPoint offers it: Fit, or a percentage where 100% shows an inch as 96 CSS pixels.

Not exported by name. You get it from the API.

```ts theme={null}
type ZoomMode = number | "fit"
```
