fix demos

This commit is contained in:
Tom Hunkapiller
2021-05-26 10:53:27 +03:00
parent 6603aafa38
commit 730e33b164
2 changed files with 3 additions and 2 deletions

View File

@ -1,13 +1,13 @@
// Example of making content of section vertically aligned
// Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs";
import { Document, Packer, Paragraph, SectionVerticalAlignValue, TextRun } from "../build";
import { Document, Packer, Paragraph, VerticalAlign, TextRun } from "../build";
const doc = new Document({
sections: [
{
properties: {
verticalAlign: SectionVerticalAlignValue.CENTER,
verticalAlign: VerticalAlign.CENTER,
},
children: [
new Paragraph({