#717·genoffice

pptx: custGeom arcTo segment explosion

Author: aniruddhaadak80Created Sep 22, 2026Updated Sep 22, 2026

Problem

segs derives from hostile stAng/swAng/wR/hR with no cap (millions of C segments), unlike the scene3d segs cap.

Evidence

  • packages/pptx-engine/src/custgeom.ts:353-368

Suggested fix

Cap segs (e.g. 64) like flattenSvgPath.

Acceptance

  • swAng 21600000000 parses to bounded path fast.