debug: card/rotate 节点处理日志
This commit is contained in:
@@ -442,11 +442,12 @@ async function convertToPptx(input, onProgress) {
|
||||
}
|
||||
}
|
||||
|
||||
// Debug: log card nodes
|
||||
if ((n.name||'').includes('card') || (n.name||'').includes('rotate')) {
|
||||
console.log('[WebToPPT] NODE:', (n.name||'').slice(0,25), 'type=', n.type, 'fillColor=', fillColor, 'bg=', (n.styles?.backgroundColor||'none').slice(0,20));
|
||||
}
|
||||
if (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 (n.styles.opacity !== undefined && n.styles.opacity !== '' && parseFloat(n.styles.opacity) < 1) {
|
||||
var opTrans = Math.round((1 - parseFloat(n.styles.opacity)) * 100);
|
||||
|
||||
Reference in New Issue
Block a user