Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / SlideMasterObject

Type Alias: SlideMasterObject

SlideMasterObject = { chart: SlideMasterChartProps; } | { image: ImageProps; } | { line: ShapeProps; } | { rect: ShapeProps; } | { roundRect: ShapeProps; } | { shape: { options?: ShapeProps; type: SHAPE_NAME; }; } | { text: { options?: TextPropsOptions; text: string | number | TextProps[]; }; } | { placeholder: { options: PlaceholderProps; text?: string; }; }

Defined in: src/types/master.ts:26

Union Members

Type Literal

{ chart: SlideMasterChartProps; }


Type Literal

{ image: ImageProps; }


Type Literal

{ line: ShapeProps; }


Type Literal

{ rect: ShapeProps; }


Type Literal

{ roundRect: ShapeProps; }


Type Literal

{ shape: { options?: ShapeProps; type: SHAPE_NAME; }; }

Any preset shape, addressed by SHAPE_NAME (e.g. ShapeType.ellipse). Generalizes the line/rect/roundRect shortcuts to every preset the addShape() serializer supports (ellipse, triangle, chevron, …).

A union member's comment cannot carry block tags, so this stands in for @example: { shape: { type: 'ellipse', options: { x: 1, y: 1, w: 2, h: 2, fill: { color: 'FF0000' } } } }


Type Literal

{ text: { options?: TextPropsOptions; text: string | number | TextProps[]; }; }


Type Literal

{ placeholder: { options: PlaceholderProps; text?: string; }; }