Skip to content

Variable: VALID_SHAPE_PRESETS ​

const VALID_SHAPE_PRESETS: ReadonlySet<string>

Every shape geometry name ts-pptx can serialize without corrupting the package: the OOXML preset geometries (ST_ShapeType — ShapeType 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.