gitbrent / PptxGenJS

Create PowerPoint presentations with a powerful, concise JavaScript API.
https://gitbrent.github.io/PptxGenJS/
MIT License
2.84k stars 625 forks source link

[BUG|FEATURE] #1258

Open ericlaaper opened 1 year ago

ericlaaper commented 1 year ago

Issue Category

Product Versions

Desired Behavior

I always used a placeholder with an image like this. (In the master slide)

{ placeholder: { options: { name: "Photo", type: "image", x: 6.47, y: 0.46, w: 3.53, h: 4.41, }, }, },

And in the code

slideIntroA.addImage({ path: '../img/aScan/introA.png', placeholder: 'Photo',

  }) 

Works like a charm

But suddenly with moving to vue3 it only works if I give the heigth and width like

slideIntroA.addImage({ path: '../img/aScan/introA.png', placeholder: 'Photo', w: 3.53, h: 4.41 })

Is there a way the height and width are working within the masterslide again?

Hoe you can help me out

Cheers,

Eric