Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function runDemo() {
let pptx = new pptxgen();
let slide = pptx.addSlide();
slide.addText("React Demo!", { x: 1, y: 1, w: "80%", h: 1, fontSize: 36, fill: "eeeeee", align: "center" });
pptx.writeFile("react-demo.pptx");
console.log(`pptx.version = ${pptx.version}`);
}
private static newPresentation() {
pptx = new PptxGenJS();
pptx!.setBrowser(true);
pptx!.setLayout('LAYOUT_4x3');
}