Fix demos

This commit is contained in:
Dolan
2021-03-18 03:28:29 +00:00
parent caf188caae
commit 6e21cdbf17

View File

@ -178,7 +178,8 @@ doc.addSection({
}), }),
}, },
children: [ children: [
new Paragraph( new Paragraph({
children: [
new ImageRun({ new ImageRun({
data: fs.readFileSync("./demo/images/pizza.gif"), data: fs.readFileSync("./demo/images/pizza.gif"),
transformation: { transformation: {
@ -186,7 +187,8 @@ doc.addSection({
height: 100, height: 100,
}, },
}), }),
), ],
}),
new Paragraph({ new Paragraph({
text: "HEADING", text: "HEADING",
heading: HeadingLevel.HEADING_1, heading: HeadingLevel.HEADING_1,
@ -225,7 +227,8 @@ doc.addSection({
style: "normalPara", style: "normalPara",
}), }),
table, table,
new Paragraph( new Paragraph({
children: [
new ImageRun({ new ImageRun({
data: fs.readFileSync("./demo/images/pizza.gif"), data: fs.readFileSync("./demo/images/pizza.gif"),
transformation: { transformation: {
@ -233,12 +236,14 @@ doc.addSection({
height: 100, height: 100,
}, },
}), }),
), ],
}),
new Paragraph({ new Paragraph({
text: "Test", text: "Test",
style: "normalPara2", style: "normalPara2",
}), }),
new Paragraph( new Paragraph({
children: [
new ImageRun({ new ImageRun({
data: fs.readFileSync("./demo/images/pizza.gif"), data: fs.readFileSync("./demo/images/pizza.gif"),
transformation: { transformation: {
@ -246,7 +251,8 @@ doc.addSection({
height: 100, height: 100,
}, },
}), }),
), ],
}),
new Paragraph({ new Paragraph({
text: "Test 2", text: "Test 2",
style: "normalPara2", style: "normalPara2",