debug: 旋转检查日志

This commit is contained in:
李进
2026-07-27 17:59:16 +08:00
parent 531bc91821
commit 32dec8b9e0
+1
View File
@@ -466,6 +466,7 @@ async function convertToPptx(input, onProgress) {
// 旋转
if (n.styles.transform && n.styles.transform !== 'none') {
console.log('[WebToPPT] ROTATE CHECK:', (n.name||'').slice(0,20), 'transform=', n.styles.transform.slice(0,40));
var rotateMatch = n.styles.transform.match(/rotate\(([-\d.]+)deg\)/);
if (rotateMatch) {
shapeOpts.rotate = parseFloat(rotateMatch[1]);