Skip to content

@shbernal/pptxgenjs


@shbernal/pptxgenjs / index / VALID_SHAPE_PRESETS

Variable: VALID_SHAPE_PRESETS

const VALID_SHAPE_PRESETS: ReadonlySet<string>

Defined in: core-enums.ts:724

Every shape geometry name PptxGenJS can serialize without corrupting the package: the OOXML preset geometries (ST_ShapeTypeSHAPE_TYPE 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.