debug: shape transform 日志

This commit is contained in:
李进
2026-07-27 18:01:01 +08:00
parent 32dec8b9e0
commit 4a18ccb4ab
+3
View File
@@ -444,6 +444,9 @@ async function convertToPptx(input, onProgress) {
if (fillColor) { if (fillColor) {
var shapeOpts = { x: opts.x, y: opts.y, w: opts.w, h: opts.h, fill: { color: fillColor } }; var shapeOpts = { x: opts.x, y: opts.y, w: opts.w, h: opts.h, fill: { color: fillColor } };
if (n.styles.transform && n.styles.transform !== 'none') {
console.log('[WebToPPT] SHAPE WITH TRANSFORM:', (n.name||'').slice(0,20), 'fill=', fillColor, 'transform=', (n.styles.transform||'').slice(0,30));
}
if (fillTransparency) shapeOpts.fill.transparency = fillTransparency; if (fillTransparency) shapeOpts.fill.transparency = fillTransparency;
if (n.styles.opacity !== undefined && n.styles.opacity !== '' && parseFloat(n.styles.opacity) < 1) { if (n.styles.opacity !== undefined && n.styles.opacity !== '' && parseFloat(n.styles.opacity) < 1) {
var opTrans = Math.round((1 - parseFloat(n.styles.opacity)) * 100); var opTrans = Math.round((1 - parseFloat(n.styles.opacity)) * 100);