From 531bc918212d734178e31fa7d4816bac3d322467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=9B?= Date: Mon, 27 Jul 2026 17:52:15 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E6=A3=80=E6=9F=A5=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E8=BD=AC=E5=8C=96=E6=98=AF=E5=90=A6=E8=BE=93=E5=87=BA=20rotati?= =?UTF-8?q?on=20+=20=E7=A7=BB=E9=99=A4=E7=BC=BA=E5=A4=B1=E7=9A=84=20lib-js?= =?UTF-8?q?zip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-to-ppt/popup.html | 1 - web-to-ppt/popup.js | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web-to-ppt/popup.html b/web-to-ppt/popup.html index 8a9c275..1785f8c 100644 --- a/web-to-ppt/popup.html +++ b/web-to-ppt/popup.html @@ -40,7 +40,6 @@ - diff --git a/web-to-ppt/popup.js b/web-to-ppt/popup.js index 1dbf14c..4276ba8 100644 --- a/web-to-ppt/popup.js +++ b/web-to-ppt/popup.js @@ -70,6 +70,9 @@ async function exportPptx() { // 3. 转化 setProgress(50, '正在生成 PPTX...'); const schema = await WebToPPT.convertToPptx(dataResult.data, (msg) => setProgress(60, msg)); + // Debug: check rotation + const rotateCount = schema.slides.reduce((acc, s) => acc + s.objects.filter(o => o.options?.rotate).length, 0); + console.log('[WebToPPT] schema:', schema.slides.length, 'slides,', rotateCount, 'shapes with rotation'); // 4. 生成 PPTX setProgress(85, '正在打包...');