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 // Example of making content of section vertically aligned
// Import from 'docx' rather than '../build' if you install from npm // Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs"; 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({ const doc = new Document({
sections: [ sections: [
{ {
properties: { properties: {
verticalAlign: SectionVerticalAlignValue.CENTER, verticalAlign: VerticalAlign.CENTER,
}, },
children: [ children: [
new Paragraph({ new Paragraph({

View File

@ -18,3 +18,4 @@ export * from "./track-revision";
export * from "./shared"; export * from "./shared";
export * from "./border"; export * from "./border";
export * from "./values"; export * from "./values";
export * from "./vertical-align";