Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / VALID_SHAPE_PRESETS

Variable: VALID_SHAPE_PRESETS

const VALID_SHAPE_PRESETS: ReadonlySet<string>

Defined in: src/enums.ts:484

Every shape geometry name ts-pptx can serialize without corrupting the package: the OOXML preset geometries (ST_ShapeTypeShapeType values plus the unexposed connectors above) and custGeom (freeform paths, emitted as <a:custGeom> rather than <a:prstGeom>). Used to reject bogus presets before they become an invalid <a:prstGeom prst="..."> that triggers PowerPoint's "needs repair" dialog and drops the shape.