Fix demos

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

View File

@ -178,15 +178,17 @@ doc.addSection({
}), }),
}, },
children: [ children: [
new Paragraph( new Paragraph({
new ImageRun({ children: [
data: fs.readFileSync("./demo/images/pizza.gif"), new ImageRun({
transformation: { data: fs.readFileSync("./demo/images/pizza.gif"),
width: 100, transformation: {
height: 100, width: 100,
}, height: 100,
}), },
), }),
],
}),
new Paragraph({ new Paragraph({
text: "HEADING", text: "HEADING",
heading: HeadingLevel.HEADING_1, heading: HeadingLevel.HEADING_1,
@ -225,28 +227,32 @@ doc.addSection({
style: "normalPara", style: "normalPara",
}), }),
table, table,
new Paragraph( new Paragraph({
new ImageRun({ children: [
data: fs.readFileSync("./demo/images/pizza.gif"), new ImageRun({
transformation: { data: fs.readFileSync("./demo/images/pizza.gif"),
width: 100, transformation: {
height: 100, width: 100,
}, height: 100,
}), },
), }),
],
}),
new Paragraph({ new Paragraph({
text: "Test", text: "Test",
style: "normalPara2", style: "normalPara2",
}), }),
new Paragraph( new Paragraph({
new ImageRun({ children: [
data: fs.readFileSync("./demo/images/pizza.gif"), new ImageRun({
transformation: { data: fs.readFileSync("./demo/images/pizza.gif"),
width: 100, transformation: {
height: 100, width: 100,
}, height: 100,
}), },
), }),
],
}),
new Paragraph({ new Paragraph({
text: "Test 2", text: "Test 2",
style: "normalPara2", style: "normalPara2",