AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
fix(templates/charts): correct miscomputed arc endpoints in pie / donut / gauge
hugohe33851afd1d202
diff --git a/skills/ppt-master/templates/charts/donut_chart.svg b/skills/ppt-master/templates/charts/donut_chart.svgindex ca3c1457..f307977c 100644--- a/skills/ppt-master/templates/charts/donut_chart.svg+++ b/skills/ppt-master/templates/charts/donut_chart.svg@@ -42,27 +42,27 @@<g id="donut-sectors"><g id="sector-1"><!-- Sector 1: Enterprise Services 35% (From -90° to 36°) -->- <path d="M 0,-180 A 180,180 0 0,1 156.36,88.18 L 86.87,49.04 A 100,100 0 0,0 0,-100 Z"+ <path d="M 0,-180 A 180,180 0 0,1 145.62,105.80 L 80.90,58.78 A 100,100 0 0,0 0,-100 Z"fill="#3B82F6" filter="url(#sectorShadow)"/></g><g id="sector-2"><!-- Sector 2: Consumer Electronics 28% (From 36° to 136.8°) -->- <path d="M 156.36,88.18 A 180,180 0 0,1 -123.43,130.14 L -68.57,72.30 A 100,100 0 0,0 86.87,49.04 Z"+ <path d="M 145.62,105.80 A 180,180 0 0,1 -131.21,123.22 L -72.90,68.45 A 100,100 0 0,0 80.90,58.78 Z"fill="#10B981" filter="url(#sectorShadow)"/></g><g id="sector-3"><!-- Sector 3: Cloud Computing 20% (From 136.8° to 208.8°) -->- <path d="M -123.43,130.14 A 180,180 0 0,1 -175.36,-51.76 L -97.42,-28.76 A 100,100 0 0,0 -68.57,72.30 Z"+ <path d="M -131.21,123.22 A 180,180 0 0,1 -157.74,-86.72 L -87.63,-48.18 A 100,100 0 0,0 -72.90,68.45 Z"fill="#F59E0B" filter="url(#sectorShadow)"/></g><g id="sector-4"><!-- Sector 4: IoT 12% (From 208.8° to 252°) -->- <path d="M -175.36,-51.76 A 180,180 0 0,1 -54.46,-171.54 L -30.26,-95.30 A 100,100 0 0,0 -97.42,-28.76 Z"+ <path d="M -157.74,-86.72 A 180,180 0 0,1 -55.62,-171.19 L -30.90,-95.11 A 100,100 0 0,0 -87.63,-48.18 Z"fill="#8B5CF6" filter="url(#sectorShadow)"/></g><g id="sector-5"><!-- Sector 5: Others 5% (From 252° to 270°/360°-90°) -->- <path d="M -54.46,-171.54 A 180,180 0 0,1 0,-180 L 0,-100 A 100,100 0 0,0 -30.26,-95.30 Z"+ <path d="M -55.62,-171.19 A 180,180 0 0,1 0,-180 L 0,-100 A 100,100 0 0,0 -30.90,-95.11 Z"fill="#CBD5E1" filter="url(#sectorShadow)"/></g></g>diff --git a/skills/ppt-master/templates/charts/gauge_chart.svg b/skills/ppt-master/templates/charts/gauge_chart.svgindex 5eb3c463..445de5f9 100644--- a/skills/ppt-master/templates/charts/gauge_chart.svg+++ b/skills/ppt-master/templates/charts/gauge_chart.svg@@ -60,11 +60,11 @@<!-- Background Arc --><path d="M -150,0 A 150,150 0 0,1 150,0" fill="none" stroke="#E2E8F0" stroke-width="30" stroke-linecap="round"/><!-- Scales (0-60% Red, 60-80% Amber, 80-100% Emerald) -->- <path d="M -150,0 A 150,150 0 0,1 -46.35,-142.65" fill="none" stroke="#FECACA" stroke-width="30" stroke-linecap="round"/>- <path d="M -46.35,-142.65 A 150,150 0 0,1 58.68,-138.05" fill="none" stroke="#FDE68A" stroke-width="30" stroke-linecap="round"/>- <path d="M 58.68,-138.05 A 150,150 0 0,1 150,0" fill="none" stroke="#A7F3D0" stroke-width="30" stroke-linecap="round"/>+ <path d="M -150,0 A 150,150 0 0,1 46.35,-142.66" fill="none" stroke="#FECACA" stroke-width="30" stroke-linecap="round"/>+ <path d="M 46.35,-142.66 A 150,150 0 0,1 121.35,-88.17" fill="none" stroke="#FDE68A" stroke-width="30" stroke-linecap="round"/>+ <path d="M 121.35,-88.17 A 150,150 0 0,1 150,0" fill="none" stroke="#A7F3D0" stroke-width="30" stroke-linecap="round"/><!-- Value Arc 85% -->- <path d="M -150,0 A 150,150 0 0,1 103.95,-108.45" fill="none" stroke="url(#excellentGrad)" stroke-width="30" stroke-linecap="round"/>+ <path d="M -150,0 A 150,150 0 0,1 133.65,-68.10" fill="none" stroke="url(#excellentGrad)" stroke-width="30" stroke-linecap="round"/><!-- Tick Marks --><line x1="-135" y1="0" x2="-120" y2="0" stroke="#64748B" stroke-width="2"/><line x1="-95.5" y1="-95.5" x2="-84.85" y2="-84.85" stroke="#64748B" stroke-width="2"/>@@ -100,11 +100,11 @@<!-- Background Arc --><path d="M -150,0 A 150,150 0 0,1 150,0" fill="none" stroke="#E2E8F0" stroke-width="30" stroke-linecap="round"/><!-- Scales -->- <path d="M -150,0 A 150,150 0 0,1 -46.35,-142.65" fill="none" stroke="#FECACA" stroke-width="30" stroke-linecap="round"/>- <path d="M -46.35,-142.65 A 150,150 0 0,1 58.68,-138.05" fill="none" stroke="#FDE68A" stroke-width="30" stroke-linecap="round"/>- <path d="M 58.68,-138.05 A 150,150 0 0,1 150,0" fill="none" stroke="#A7F3D0" stroke-width="30" stroke-linecap="round"/>+ <path d="M -150,0 A 150,150 0 0,1 46.35,-142.66" fill="none" stroke="#FECACA" stroke-width="30" stroke-linecap="round"/>+ <path d="M 46.35,-142.66 A 150,150 0 0,1 121.35,-88.17" fill="none" stroke="#FDE68A" stroke-width="30" stroke-linecap="round"/>+ <path d="M 121.35,-88.17 A 150,150 0 0,1 150,0" fill="none" stroke="#A7F3D0" stroke-width="30" stroke-linecap="round"/><!-- Value Arc 72% -->- <path d="M -150,0 A 150,150 0 0,1 24.93,-147.91" fill="none" stroke="url(#goodGrad)" stroke-width="30" stroke-linecap="round"/>+ <path d="M -150,0 A 150,150 0 0,1 95.61,-115.58" fill="none" stroke="url(#goodGrad)" stroke-width="30" stroke-linecap="round"/><!-- Tick Marks --><line x1="-135" y1="0" x2="-120" y2="0" stroke="#64748B" stroke-width="2"/><line x1="-95.5" y1="-95.5" x2="-84.85" y2="-84.85" stroke="#64748B" stroke-width="2"/>@@ -140,11 +140,11 @@<!-- Background Arc --><path d="M -150,0 A 150,150 0 0,1 150,0" fill="none" stroke="#E2E8F0" stroke-width="30" stroke-linecap="round"/><!-- Scales -->- <path d="M -150,0 A 150,150 0 0,1 -46.35,-142.65" fill="none" stroke="#FECACA" stroke-width="30" stroke-linecap="round"/>- <path d="M -46.35,-142.65 A 150,150 0 0,1 58.68,-138.05" fill="none" stroke="#FDE68A" stroke-width="30" stroke-linecap="round"/>- <path d="M 58.68,-138.05 A 150,150 0 0,1 150,0" fill="none" stroke="#A7F3D0" stroke-width="30" stroke-linecap="round"/>+ <path d="M -150,0 A 150,150 0 0,1 46.35,-142.66" fill="none" stroke="#FECACA" stroke-width="30" stroke-linecap="round"/>+ <path d="M 46.35,-142.66 A 150,150 0 0,1 121.35,-88.17" fill="none" stroke="#FDE68A" stroke-width="30" stroke-linecap="round"/>+ <path d="M 121.35,-88.17 A 150,150 0 0,1 150,0" fill="none" stroke="#A7F3D0" stroke-width="30" stroke-linecap="round"/><!-- Value Arc 58% -->- <path d="M -150,0 A 150,150 0 0,1 -58.36,-138.17" fill="none" stroke="url(#warningGrad)" stroke-width="30" stroke-linecap="round"/>+ <path d="M -150,0 A 150,150 0 0,1 37.30,-145.29" fill="none" stroke="url(#warningGrad)" stroke-width="30" stroke-linecap="round"/><!-- Tick Marks --><line x1="-135" y1="0" x2="-120" y2="0" stroke="#64748B" stroke-width="2"/><line x1="-95.5" y1="-95.5" x2="-84.85" y2="-84.85" stroke="#64748B" stroke-width="2"/>diff --git a/skills/ppt-master/templates/charts/pie_chart.svg b/skills/ppt-master/templates/charts/pie_chart.svgindex 0bba6bd3..c10b4196 100644--- a/skills/ppt-master/templates/charts/pie_chart.svg+++ b/skills/ppt-master/templates/charts/pie_chart.svg@@ -34,19 +34,19 @@White stroke creates a modern separated-slice look--><!-- Segment 1: Competitor A 35% (-90° to 36°) -->- <path d="M 0,0 L 0,-200 A 200,200 0 0,1 173.2,100 Z"+ <path d="M 0,0 L 0,-200 A 200,200 0 0,1 161.80,117.56 Z"fill="#3B82F6" stroke="#FFFFFF" stroke-width="4" stroke-linejoin="round"/><!-- Segment 2: Competitor B 25% (36° to 126°) -->- <path d="M 0,0 L 173.2,100 A 200,200 0 0,1 -117.56,162.34 Z"+ <path d="M 0,0 L 161.80,117.56 A 200,200 0 0,1 -117.56,161.80 Z"fill="#10B981" stroke="#FFFFFF" stroke-width="4" stroke-linejoin="round"/><!-- Segment 3: Competitor C 20% (126° to 198°) -->- <path d="M 0,0 L -117.56,162.34 A 200,200 0 0,1 -195.63,-62.93 Z"+ <path d="M 0,0 L -117.56,161.80 A 200,200 0 0,1 -190.21,-61.80 Z"fill="#F59E0B" stroke="#FFFFFF" stroke-width="4" stroke-linejoin="round"/><!-- Segment 4: Competitor D 12% (198° to 241.2°) -->- <path d="M 0,0 L -195.63,-62.93 A 200,200 0 0,1 -62.93,-189.87 Z"+ <path d="M 0,0 L -190.21,-61.80 A 200,200 0 0,1 -96.35,-175.26 Z"fill="#8B5CF6" stroke="#FFFFFF" stroke-width="4" stroke-linejoin="round"/><!-- Segment 5: Others 8% (241.2° to 270°) -->- <path d="M 0,0 L -62.93,-189.87 A 200,200 0 0,1 0,-200 Z"+ <path d="M 0,0 L -96.35,-175.26 A 200,200 0 0,1 0,-200 Z"fill="#94A3B8" stroke="#FFFFFF" stroke-width="4" stroke-linejoin="round"/></g><!-- ==================== Pie Chart Labels ==================== -->