debug: 检查扩展转化是否输出 rotation + 移除缺失的 lib-jszip

This commit is contained in:
李进
2026-07-27 17:52:15 +08:00
parent f0a19c71d4
commit 531bc91821
2 changed files with 3 additions and 1 deletions
-1
View File
@@ -40,7 +40,6 @@
</main> </main>
<script src="lib-pptxgen.js"></script> <script src="lib-pptxgen.js"></script>
<script src="lib-jszip.js"></script>
<script src="convert-browser.js"></script> <script src="convert-browser.js"></script>
<script src="popup.js"></script> <script src="popup.js"></script>
</body> </body>
+3
View File
@@ -70,6 +70,9 @@ async function exportPptx() {
// 3. 转化 // 3. 转化
setProgress(50, '正在生成 PPTX...'); setProgress(50, '正在生成 PPTX...');
const schema = await WebToPPT.convertToPptx(dataResult.data, (msg) => setProgress(60, msg)); 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 // 4. 生成 PPTX
setProgress(85, '正在打包...'); setProgress(85, '正在打包...');