Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / GroupChildProps

Type Alias: GroupChildProps

GroupChildProps = { image: ImageProps; } | { line: ShapeProps; } | { rect: ShapeProps; } | { roundRect: ShapeProps; } | { shape: { options?: ShapeProps; type: SHAPE_NAME; }; } | { text: { options?: TextPropsOptions; text: string | number | TextProps[]; }; } | { group: { children: GroupChildProps[]; options?: GroupProps; }; }

Defined in: src/types/slide.ts:29

A child object that can be placed inside a group via slide.addGroup().

Uses the same key-tagged descriptor shape as SlideMasterObject, but limited to the object types addGroup supports. A group child nests another group (an identity child coordinate space is kept at every depth, so descendants keep their slide-absolute coordinates). Charts, media, tables, and placeholders are intentionally excluded (see addGroup); passing one logs a warning and skips it.