Fix tests
This commit is contained in:
@ -58,8 +58,10 @@ const table2 = new Table({
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
width: 100,
|
width: {
|
||||||
widthUnitType: WidthType.AUTO,
|
size: 100,
|
||||||
|
type: WidthType.AUTO,
|
||||||
|
},
|
||||||
columnWidths: [1000, 1000, 1000],
|
columnWidths: [1000, 1000, 1000],
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -113,8 +115,10 @@ const table3 = new Table({
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
width: 7000,
|
width: {
|
||||||
widthUnitType: WidthType.DXA,
|
size: 7000,
|
||||||
|
type: WidthType.DXA,
|
||||||
|
},
|
||||||
margins: {
|
margins: {
|
||||||
top: 400,
|
top: 400,
|
||||||
bottom: 400,
|
bottom: 400,
|
||||||
@ -152,8 +156,10 @@ const table4 = new Table({
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
width: 100,
|
width: {
|
||||||
widthUnitType: WidthType.PERCENTAGE,
|
size: 100,
|
||||||
|
type: WidthType.PERCENTAGE,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const table5 = new Table({
|
const table5 = new Table({
|
||||||
@ -194,8 +200,10 @@ const table5 = new Table({
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
width: 100,
|
width: {
|
||||||
widthUnitType: WidthType.PERCENTAGE,
|
size: 100,
|
||||||
|
type: WidthType.PERCENTAGE,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
doc.addSection({
|
doc.addSection({
|
||||||
|
@ -44,8 +44,10 @@ const table = new Table({
|
|||||||
relativeHorizontalPosition: RelativeHorizontalPosition.RIGHT,
|
relativeHorizontalPosition: RelativeHorizontalPosition.RIGHT,
|
||||||
relativeVerticalPosition: RelativeVerticalPosition.BOTTOM,
|
relativeVerticalPosition: RelativeVerticalPosition.BOTTOM,
|
||||||
},
|
},
|
||||||
width: 4535,
|
width: {
|
||||||
widthUnitType: WidthType.DXA,
|
size: 4535,
|
||||||
|
type: WidthType.DXA,
|
||||||
|
},
|
||||||
layout: TableLayoutType.FIXED,
|
layout: TableLayoutType.FIXED,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ const doc = new Document();
|
|||||||
doc.addSection({
|
doc.addSection({
|
||||||
properties: {
|
properties: {
|
||||||
column: {
|
column: {
|
||||||
width: 708,
|
space: 708,
|
||||||
count: 2,
|
count: 2,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -23,7 +23,7 @@ doc.addSection({
|
|||||||
doc.addSection({
|
doc.addSection({
|
||||||
properties: {
|
properties: {
|
||||||
column: {
|
column: {
|
||||||
width: 708,
|
space: 708,
|
||||||
count: 3,
|
count: 3,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user