debug: 检查扩展转化是否输出 rotation + 移除缺失的 lib-jszip
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
</main>
|
||||
|
||||
<script src="lib-pptxgen.js"></script>
|
||||
<script src="lib-jszip.js"></script>
|
||||
<script src="convert-browser.js"></script>
|
||||
<script src="popup.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -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, '正在打包...');
|
||||
|
||||
Reference in New Issue
Block a user