Spec authors hand the renderer a polyline like ``points: [[210,280],[400,280],[700,130]]``. The previous code emitted one ``prst="line"`` shape per segment, so the elbow was two separate straight lines that PowerPoint cannot recognise as a connected path. The OCI template (kb/diagram/assets/OCI_Icons.pptx) uses native PowerPoint bent connectors instead — 98 ``straightConnector1`` plus 22 ``bentConnector2/3/5`` plus 15 ``line`` across 48 slides. Match that convention: • 2 points → straightConnector1 (one segment, unchanged) • 3 points → bentConnector2 (one elbow) • 4 points → bentConnector3 (S-shape, two elbows) • 5+ points → bentConnector5 (four elbows) The rasterizer (oci_pptx_render.py) now also understands bentConnectorN so the local PNG preview matches what real PowerPoint draws — without this it rendered every connector as one straight diagonal regardless of the prst. Persistent: applies to every absolute_layout connector for every spec, not a per-case patch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
59 KiB
59 KiB