debug: shape transform 日志
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user