documents.js 1.34.0 → 1.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +118 -255
- package/dist/index.d.cts +14 -649
- package/dist/index.d.ts +14 -649
- package/dist/index.js +17 -224
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -1,239 +1,32 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let ooxml_js = require("ooxml.js");
|
|
3
|
+
let document_content_model = require("document-content-model");
|
|
3
4
|
let zod = require("zod");
|
|
4
5
|
let fflate = require("fflate");
|
|
5
|
-
//#region src/model/geometry.ts
|
|
6
|
-
function flipY(box, containerHeightPt) {
|
|
7
|
-
return {
|
|
8
|
-
xPt: box.xPt,
|
|
9
|
-
yPt: containerHeightPt - box.yPt - box.heightPt,
|
|
10
|
-
widthPt: box.widthPt,
|
|
11
|
-
heightPt: box.heightPt
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/model/style.ts
|
|
16
|
-
const LayoutFontSchema = zod.z.object({
|
|
17
|
-
family: zod.z.string(),
|
|
18
|
-
weight: zod.z.enum(["normal", "bold"]),
|
|
19
|
-
style: zod.z.enum(["normal", "italic"])
|
|
20
|
-
});
|
|
21
|
-
const DEFAULT_LAYOUT_FONT = {
|
|
22
|
-
family: "Helvetica",
|
|
23
|
-
weight: "normal",
|
|
24
|
-
style: "normal"
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/model/layout.ts
|
|
28
|
-
const LAYOUT_FORMAT_VERSION = 1;
|
|
29
|
-
const LayoutTextSchema = zod.z.object({
|
|
30
|
-
kind: zod.z.literal("text"),
|
|
31
|
-
text: zod.z.string(),
|
|
32
|
-
xPt: zod.z.number(),
|
|
33
|
-
yPt: zod.z.number(),
|
|
34
|
-
font: LayoutFontSchema,
|
|
35
|
-
sizePt: zod.z.number().positive(),
|
|
36
|
-
color: ooxml_js.ColorSchema,
|
|
37
|
-
widthPt: zod.z.number().nonnegative().optional(),
|
|
38
|
-
rotationDeg: zod.z.number().optional(),
|
|
39
|
-
underline: zod.z.boolean().optional()
|
|
40
|
-
});
|
|
41
|
-
const LayoutImageSchema = zod.z.object({
|
|
42
|
-
kind: zod.z.literal("image"),
|
|
43
|
-
imageId: zod.z.string(),
|
|
44
|
-
xPt: zod.z.number(),
|
|
45
|
-
yPt: zod.z.number(),
|
|
46
|
-
widthPt: zod.z.number().positive(),
|
|
47
|
-
heightPt: zod.z.number().positive(),
|
|
48
|
-
rotationDeg: zod.z.number().optional()
|
|
49
|
-
});
|
|
50
|
-
const LayoutRectSchema = zod.z.object({
|
|
51
|
-
kind: zod.z.literal("rect"),
|
|
52
|
-
xPt: zod.z.number(),
|
|
53
|
-
yPt: zod.z.number(),
|
|
54
|
-
widthPt: zod.z.number().nonnegative(),
|
|
55
|
-
heightPt: zod.z.number().nonnegative(),
|
|
56
|
-
fill: ooxml_js.ColorSchema.optional(),
|
|
57
|
-
stroke: zod.z.object({
|
|
58
|
-
color: ooxml_js.ColorSchema,
|
|
59
|
-
widthPt: zod.z.number().positive()
|
|
60
|
-
}).optional()
|
|
61
|
-
});
|
|
62
|
-
const LayoutLineSchema = zod.z.object({
|
|
63
|
-
kind: zod.z.literal("line"),
|
|
64
|
-
x1Pt: zod.z.number(),
|
|
65
|
-
y1Pt: zod.z.number(),
|
|
66
|
-
x2Pt: zod.z.number(),
|
|
67
|
-
y2Pt: zod.z.number(),
|
|
68
|
-
color: ooxml_js.ColorSchema,
|
|
69
|
-
widthPt: zod.z.number().positive()
|
|
70
|
-
});
|
|
71
|
-
const LayoutEllipseSchema = zod.z.object({
|
|
72
|
-
kind: zod.z.literal("ellipse"),
|
|
73
|
-
xPt: zod.z.number(),
|
|
74
|
-
yPt: zod.z.number(),
|
|
75
|
-
widthPt: zod.z.number().positive(),
|
|
76
|
-
heightPt: zod.z.number().positive(),
|
|
77
|
-
fill: ooxml_js.ColorSchema.optional(),
|
|
78
|
-
stroke: zod.z.object({
|
|
79
|
-
color: ooxml_js.ColorSchema,
|
|
80
|
-
widthPt: zod.z.number().positive()
|
|
81
|
-
}).optional()
|
|
82
|
-
});
|
|
83
|
-
const LayoutLinkSchema = zod.z.object({
|
|
84
|
-
kind: zod.z.literal("link"),
|
|
85
|
-
uri: zod.z.string(),
|
|
86
|
-
xPt: zod.z.number(),
|
|
87
|
-
yPt: zod.z.number(),
|
|
88
|
-
widthPt: zod.z.number().nonnegative(),
|
|
89
|
-
heightPt: zod.z.number().nonnegative()
|
|
90
|
-
});
|
|
91
|
-
const LayoutItemSchema = zod.z.discriminatedUnion("kind", [
|
|
92
|
-
LayoutTextSchema,
|
|
93
|
-
LayoutImageSchema,
|
|
94
|
-
LayoutRectSchema,
|
|
95
|
-
LayoutLineSchema,
|
|
96
|
-
LayoutEllipseSchema,
|
|
97
|
-
LayoutLinkSchema
|
|
98
|
-
]);
|
|
99
|
-
const LayoutPageSchema = zod.z.object({
|
|
100
|
-
widthPt: zod.z.number().positive(),
|
|
101
|
-
heightPt: zod.z.number().positive(),
|
|
102
|
-
items: zod.z.array(LayoutItemSchema),
|
|
103
|
-
notes: zod.z.string().optional()
|
|
104
|
-
});
|
|
105
|
-
const LayoutImageAssetSchema = zod.z.object({
|
|
106
|
-
format: zod.z.enum(["png", "jpeg"]),
|
|
107
|
-
base64: zod.z.string(),
|
|
108
|
-
widthPx: zod.z.number().int().positive(),
|
|
109
|
-
heightPx: zod.z.number().int().positive()
|
|
110
|
-
});
|
|
111
|
-
const LayoutMetadataSchema = zod.z.object({
|
|
112
|
-
title: zod.z.string().optional(),
|
|
113
|
-
author: zod.z.string().optional(),
|
|
114
|
-
subject: zod.z.string().optional(),
|
|
115
|
-
keywords: zod.z.array(zod.z.string()).optional(),
|
|
116
|
-
creator: zod.z.string().optional(),
|
|
117
|
-
producer: zod.z.string().optional(),
|
|
118
|
-
createdIso: zod.z.string().optional(),
|
|
119
|
-
modifiedIso: zod.z.string().optional()
|
|
120
|
-
});
|
|
121
|
-
const LayoutDocumentSchema = zod.z.object({
|
|
122
|
-
formatVersion: zod.z.literal(1),
|
|
123
|
-
metadata: LayoutMetadataSchema,
|
|
124
|
-
pages: zod.z.array(LayoutPageSchema),
|
|
125
|
-
images: zod.z.record(zod.z.string(), LayoutImageAssetSchema)
|
|
126
|
-
});
|
|
127
|
-
//#endregion
|
|
128
6
|
//#region src/model/content.ts
|
|
129
7
|
const CONTENT_FORMAT_VERSION = 1;
|
|
130
|
-
const ContentRunSchema = zod.z.object({
|
|
131
|
-
text: zod.z.string(),
|
|
132
|
-
bold: zod.z.boolean().optional(),
|
|
133
|
-
italic: zod.z.boolean().optional(),
|
|
134
|
-
underline: zod.z.boolean().optional(),
|
|
135
|
-
strike: zod.z.boolean().optional(),
|
|
136
|
-
fontFamily: zod.z.string().optional(),
|
|
137
|
-
sizePt: zod.z.number().positive().optional(),
|
|
138
|
-
color: ooxml_js.ColorSchema.optional(),
|
|
139
|
-
hyperlink: zod.z.string().optional()
|
|
140
|
-
});
|
|
141
|
-
const ContentListMembershipSchema = zod.z.object({
|
|
142
|
-
numId: zod.z.string(),
|
|
143
|
-
level: zod.z.number().int().nonnegative()
|
|
144
|
-
});
|
|
145
|
-
const ContentParagraphSchema = zod.z.object({
|
|
146
|
-
kind: zod.z.literal("paragraph"),
|
|
147
|
-
runs: zod.z.array(ContentRunSchema),
|
|
148
|
-
styleId: zod.z.string().optional(),
|
|
149
|
-
alignment: ooxml_js.AlignmentSchema.optional(),
|
|
150
|
-
list: ContentListMembershipSchema.optional(),
|
|
151
|
-
spacingBeforePt: zod.z.number().optional(),
|
|
152
|
-
spacingAfterPt: zod.z.number().optional(),
|
|
153
|
-
lineSpacing: zod.z.number().positive().optional(),
|
|
154
|
-
indentLeftPt: zod.z.number().optional(),
|
|
155
|
-
indentFirstLinePt: zod.z.number().optional()
|
|
156
|
-
});
|
|
157
|
-
const ContentImageBlockSchema = zod.z.object({
|
|
158
|
-
kind: zod.z.literal("image"),
|
|
159
|
-
format: zod.z.enum(["png", "jpeg"]),
|
|
160
|
-
base64: zod.z.string(),
|
|
161
|
-
widthPt: zod.z.number().positive(),
|
|
162
|
-
heightPt: zod.z.number().positive(),
|
|
163
|
-
altText: zod.z.string().optional()
|
|
164
|
-
});
|
|
165
|
-
const ContentPageBreakSchema = zod.z.object({ kind: zod.z.literal("pageBreak") });
|
|
166
|
-
function isRecord(value) {
|
|
167
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
168
|
-
}
|
|
169
|
-
function isContentRun(value) {
|
|
170
|
-
return isRecord(value) && typeof value.text === "string";
|
|
171
|
-
}
|
|
172
|
-
function isContentTableCell(value) {
|
|
173
|
-
return isRecord(value) && Array.isArray(value.blocks) && value.blocks.every(isContentBlock);
|
|
174
|
-
}
|
|
175
|
-
function isContentTableRow(value) {
|
|
176
|
-
return isRecord(value) && Array.isArray(value.cells) && value.cells.every(isContentTableCell) && (value.heightPt === void 0 || typeof value.heightPt === "number");
|
|
177
|
-
}
|
|
178
|
-
function isContentBlock(value) {
|
|
179
|
-
if (!isRecord(value)) return false;
|
|
180
|
-
const kind = value.kind;
|
|
181
|
-
if (kind === "paragraph") return Array.isArray(value.runs) && value.runs.every(isContentRun);
|
|
182
|
-
if (kind === "image") return (value.format === "png" || value.format === "jpeg") && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
|
|
183
|
-
if (kind === "pageBreak") return true;
|
|
184
|
-
if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.columnWidthsPt) && value.columnWidthsPt.every((w) => typeof w === "number");
|
|
185
|
-
return false;
|
|
186
|
-
}
|
|
187
|
-
const ContentBlockSchema = zod.z.custom(isContentBlock);
|
|
188
|
-
const ContentTableCellSchema = zod.z.object({
|
|
189
|
-
blocks: zod.z.array(ContentBlockSchema),
|
|
190
|
-
colSpan: zod.z.number().int().positive().optional(),
|
|
191
|
-
rowSpan: zod.z.number().int().positive().optional(),
|
|
192
|
-
background: ooxml_js.ColorSchema.optional()
|
|
193
|
-
});
|
|
194
|
-
const ContentTableRowSchema = zod.z.object({
|
|
195
|
-
cells: zod.z.array(ContentTableCellSchema),
|
|
196
|
-
heightPt: zod.z.number().positive().optional()
|
|
197
|
-
});
|
|
198
|
-
const ContentTableSchema = zod.z.object({
|
|
199
|
-
kind: zod.z.literal("table"),
|
|
200
|
-
rows: zod.z.array(ContentTableRowSchema),
|
|
201
|
-
columnWidthsPt: zod.z.array(zod.z.number().positive())
|
|
202
|
-
});
|
|
203
|
-
const ContentSectionSchema = zod.z.object({
|
|
204
|
-
pageSize: ooxml_js.PageSizeSchema,
|
|
205
|
-
margins: ooxml_js.MarginsSchema,
|
|
206
|
-
blocks: zod.z.array(ContentBlockSchema)
|
|
207
|
-
});
|
|
208
|
-
const ContentShapeSchema = zod.z.object({
|
|
209
|
-
name: zod.z.string().optional(),
|
|
210
|
-
frame: ooxml_js.BoxSchema,
|
|
211
|
-
rotationDeg: zod.z.number().optional(),
|
|
212
|
-
insetLeftPt: zod.z.number().nonnegative(),
|
|
213
|
-
insetTopPt: zod.z.number().nonnegative(),
|
|
214
|
-
insetRightPt: zod.z.number().nonnegative(),
|
|
215
|
-
insetBottomPt: zod.z.number().nonnegative(),
|
|
216
|
-
fontScale: zod.z.number().positive().optional(),
|
|
217
|
-
lineSpacingReduction: zod.z.number().nonnegative().optional(),
|
|
218
|
-
blocks: zod.z.array(ContentBlockSchema)
|
|
219
|
-
});
|
|
220
|
-
const ContentSlideSchema = zod.z.object({
|
|
221
|
-
size: ooxml_js.PageSizeSchema,
|
|
222
|
-
shapes: zod.z.array(ContentShapeSchema),
|
|
223
|
-
notes: zod.z.string()
|
|
224
|
-
});
|
|
225
8
|
const ContentDocumentSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
|
|
226
9
|
kind: zod.z.literal("wordprocessing"),
|
|
227
10
|
formatVersion: zod.z.literal(1),
|
|
228
|
-
metadata: LayoutMetadataSchema,
|
|
229
|
-
sections: zod.z.array(ContentSectionSchema)
|
|
11
|
+
metadata: document_content_model.LayoutMetadataSchema,
|
|
12
|
+
sections: zod.z.array(document_content_model.ContentSectionSchema)
|
|
230
13
|
}), zod.z.object({
|
|
231
14
|
kind: zod.z.literal("presentation"),
|
|
232
15
|
formatVersion: zod.z.literal(1),
|
|
233
|
-
metadata: LayoutMetadataSchema,
|
|
234
|
-
slides: zod.z.array(ContentSlideSchema)
|
|
16
|
+
metadata: document_content_model.LayoutMetadataSchema,
|
|
17
|
+
slides: zod.z.array(document_content_model.ContentSlideSchema)
|
|
235
18
|
})]);
|
|
236
19
|
//#endregion
|
|
20
|
+
//#region src/model/geometry.ts
|
|
21
|
+
function flipY(box, containerHeightPt) {
|
|
22
|
+
return {
|
|
23
|
+
xPt: box.xPt,
|
|
24
|
+
yPt: containerHeightPt - box.yPt - box.heightPt,
|
|
25
|
+
widthPt: box.widthPt,
|
|
26
|
+
heightPt: box.heightPt
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
237
30
|
//#region src/model/bytes.ts
|
|
238
31
|
const ZIP_LOCAL_FILE_HEADER = [
|
|
239
32
|
80,
|
|
@@ -653,10 +446,10 @@ function getColor(rPr) {
|
|
|
653
446
|
if (color === void 0) return;
|
|
654
447
|
const val = (0, ooxml_js.attr)(color, "w:val");
|
|
655
448
|
if (val === void 0 || val.toLowerCase() === "auto") return;
|
|
656
|
-
return (0,
|
|
449
|
+
return (0, document_content_model.rgbHexToColor)(val);
|
|
657
450
|
}
|
|
658
451
|
function setColor(rPr, color) {
|
|
659
|
-
setAttr(getOrCreateChildElement(rPr, "w:color", RPR_ORDER, () => el("w:color")), "w:val", (0,
|
|
452
|
+
setAttr(getOrCreateChildElement(rPr, "w:color", RPR_ORDER, () => el("w:color")), "w:val", (0, document_content_model.colorToRgbHex)(color));
|
|
660
453
|
}
|
|
661
454
|
function getStyleId(propsElement, tag) {
|
|
662
455
|
if (propsElement === void 0) return;
|
|
@@ -809,7 +602,7 @@ function buildRun(init = {}) {
|
|
|
809
602
|
const half = String(Math.round(init.sizePt * 2));
|
|
810
603
|
rPrChildren.push(el("w:sz", { "w:val": half }), el("w:szCs", { "w:val": half }));
|
|
811
604
|
}
|
|
812
|
-
if (init.color !== void 0) rPrChildren.push(el("w:color", { "w:val": (0,
|
|
605
|
+
if (init.color !== void 0) rPrChildren.push(el("w:color", { "w:val": (0, document_content_model.colorToRgbHex)(init.color) }));
|
|
813
606
|
const run = el("w:r");
|
|
814
607
|
if (rPrChildren.length > 0 || init.underline === true) {
|
|
815
608
|
const rPr = el("w:rPr");
|
|
@@ -5505,8 +5298,8 @@ function interpretContentStream(bytes, resources, context) {
|
|
|
5505
5298
|
const items = [];
|
|
5506
5299
|
runContentStream(bytes, resources, {
|
|
5507
5300
|
ctm: IDENTITY_MATRIX,
|
|
5508
|
-
fillColor:
|
|
5509
|
-
strokeColor:
|
|
5301
|
+
fillColor: document_content_model.COLOR_BLACK,
|
|
5302
|
+
strokeColor: document_content_model.COLOR_BLACK
|
|
5510
5303
|
}, context, items, 0);
|
|
5511
5304
|
return items;
|
|
5512
5305
|
}
|
|
@@ -6564,7 +6357,7 @@ function readPdf(bytes, options) {
|
|
|
6564
6357
|
return readPage(pageDict, resolver, fontResolver, images, imageIdCache, sink);
|
|
6565
6358
|
});
|
|
6566
6359
|
return {
|
|
6567
|
-
formatVersion:
|
|
6360
|
+
formatVersion: document_content_model.LAYOUT_FORMAT_VERSION,
|
|
6568
6361
|
metadata: readMetadata(doc.trailer, resolver),
|
|
6569
6362
|
pages,
|
|
6570
6363
|
images
|
|
@@ -6877,7 +6670,7 @@ function readMetadata(trailer, resolver) {
|
|
|
6877
6670
|
}
|
|
6878
6671
|
//#endregion
|
|
6879
6672
|
//#region src/pdf/codec.ts
|
|
6880
|
-
const pdfCodec = zod.z.codec(PdfBytesSchema, LayoutDocumentSchema, {
|
|
6673
|
+
const pdfCodec = zod.z.codec(PdfBytesSchema, document_content_model.LayoutDocumentSchema, {
|
|
6881
6674
|
decode: (bytes) => readPdf(bytes),
|
|
6882
6675
|
encode: (doc) => writePdf(doc)
|
|
6883
6676
|
});
|
|
@@ -7118,7 +6911,7 @@ function wrapRunsToWidth(runs, measurer, maxWidthPt, options = {}) {
|
|
|
7118
6911
|
const FALLBACK_ROW_HEIGHT_PT = 20;
|
|
7119
6912
|
function runFont(run) {
|
|
7120
6913
|
return {
|
|
7121
|
-
family: run.fontFamily ?? DEFAULT_LAYOUT_FONT.family,
|
|
6914
|
+
family: run.fontFamily ?? document_content_model.DEFAULT_LAYOUT_FONT.family,
|
|
7122
6915
|
weight: run.bold === true ? "bold" : "normal",
|
|
7123
6916
|
style: run.italic === true ? "italic" : "normal"
|
|
7124
6917
|
};
|
|
@@ -7128,7 +6921,7 @@ function toStyledRuns(runs, fontScale = 1) {
|
|
|
7128
6921
|
text: run.text,
|
|
7129
6922
|
font: runFont(run),
|
|
7130
6923
|
sizePt: (run.sizePt ?? 18) * fontScale,
|
|
7131
|
-
color: run.color ??
|
|
6924
|
+
color: run.color ?? document_content_model.COLOR_BLACK,
|
|
7132
6925
|
underline: run.underline,
|
|
7133
6926
|
hyperlink: run.hyperlink
|
|
7134
6927
|
}));
|
|
@@ -7137,9 +6930,9 @@ function effectiveStyledRuns(runs, fontScale = 1) {
|
|
|
7137
6930
|
const styled = toStyledRuns(runs, fontScale);
|
|
7138
6931
|
return styled.length > 0 ? styled : [{
|
|
7139
6932
|
text: "",
|
|
7140
|
-
font: DEFAULT_LAYOUT_FONT,
|
|
6933
|
+
font: document_content_model.DEFAULT_LAYOUT_FONT,
|
|
7141
6934
|
sizePt: 18 * fontScale,
|
|
7142
|
-
color:
|
|
6935
|
+
color: document_content_model.COLOR_BLACK
|
|
7143
6936
|
}];
|
|
7144
6937
|
}
|
|
7145
6938
|
function lineNaturalHeightPt(line, measurer, fallback) {
|
|
@@ -7362,7 +7155,7 @@ function convertWordprocessingToLayout(doc, options) {
|
|
|
7362
7155
|
const pages = [];
|
|
7363
7156
|
for (const section of doc.sections) paginateSection(section, options.measurer, images, pages);
|
|
7364
7157
|
return {
|
|
7365
|
-
formatVersion:
|
|
7158
|
+
formatVersion: document_content_model.LAYOUT_FORMAT_VERSION,
|
|
7366
7159
|
metadata: doc.metadata,
|
|
7367
7160
|
pages,
|
|
7368
7161
|
images
|
|
@@ -7513,7 +7306,7 @@ function convertPresentationToLayout(doc, options) {
|
|
|
7513
7306
|
const images = {};
|
|
7514
7307
|
const pages = doc.slides.map((slide) => convertSlide(slide, options.measurer, images));
|
|
7515
7308
|
return {
|
|
7516
|
-
formatVersion:
|
|
7309
|
+
formatVersion: document_content_model.LAYOUT_FORMAT_VERSION,
|
|
7517
7310
|
metadata: doc.metadata,
|
|
7518
7311
|
pages,
|
|
7519
7312
|
images
|
|
@@ -8017,7 +7810,7 @@ Object.defineProperty(exports, "BinaryPartSchema", {
|
|
|
8017
7810
|
Object.defineProperty(exports, "COLOR_BLACK", {
|
|
8018
7811
|
enumerable: true,
|
|
8019
7812
|
get: function() {
|
|
8020
|
-
return
|
|
7813
|
+
return document_content_model.COLOR_BLACK;
|
|
8021
7814
|
}
|
|
8022
7815
|
});
|
|
8023
7816
|
exports.CONTENT_FORMAT_VERSION = CONTENT_FORMAT_VERSION;
|
|
@@ -8045,19 +7838,79 @@ Object.defineProperty(exports, "CompactXmlNodeSchema", {
|
|
|
8045
7838
|
return ooxml_js.CompactXmlNodeSchema;
|
|
8046
7839
|
}
|
|
8047
7840
|
});
|
|
8048
|
-
exports
|
|
7841
|
+
Object.defineProperty(exports, "ContentBlockSchema", {
|
|
7842
|
+
enumerable: true,
|
|
7843
|
+
get: function() {
|
|
7844
|
+
return document_content_model.ContentBlockSchema;
|
|
7845
|
+
}
|
|
7846
|
+
});
|
|
8049
7847
|
exports.ContentDocumentSchema = ContentDocumentSchema;
|
|
8050
|
-
exports
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
exports
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
7848
|
+
Object.defineProperty(exports, "ContentImageBlockSchema", {
|
|
7849
|
+
enumerable: true,
|
|
7850
|
+
get: function() {
|
|
7851
|
+
return document_content_model.ContentImageBlockSchema;
|
|
7852
|
+
}
|
|
7853
|
+
});
|
|
7854
|
+
Object.defineProperty(exports, "ContentPageBreakSchema", {
|
|
7855
|
+
enumerable: true,
|
|
7856
|
+
get: function() {
|
|
7857
|
+
return document_content_model.ContentPageBreakSchema;
|
|
7858
|
+
}
|
|
7859
|
+
});
|
|
7860
|
+
Object.defineProperty(exports, "ContentParagraphSchema", {
|
|
7861
|
+
enumerable: true,
|
|
7862
|
+
get: function() {
|
|
7863
|
+
return document_content_model.ContentParagraphSchema;
|
|
7864
|
+
}
|
|
7865
|
+
});
|
|
7866
|
+
Object.defineProperty(exports, "ContentRunSchema", {
|
|
7867
|
+
enumerable: true,
|
|
7868
|
+
get: function() {
|
|
7869
|
+
return document_content_model.ContentRunSchema;
|
|
7870
|
+
}
|
|
7871
|
+
});
|
|
7872
|
+
Object.defineProperty(exports, "ContentSectionSchema", {
|
|
7873
|
+
enumerable: true,
|
|
7874
|
+
get: function() {
|
|
7875
|
+
return document_content_model.ContentSectionSchema;
|
|
7876
|
+
}
|
|
7877
|
+
});
|
|
7878
|
+
Object.defineProperty(exports, "ContentShapeSchema", {
|
|
7879
|
+
enumerable: true,
|
|
7880
|
+
get: function() {
|
|
7881
|
+
return document_content_model.ContentShapeSchema;
|
|
7882
|
+
}
|
|
7883
|
+
});
|
|
7884
|
+
Object.defineProperty(exports, "ContentSlideSchema", {
|
|
7885
|
+
enumerable: true,
|
|
7886
|
+
get: function() {
|
|
7887
|
+
return document_content_model.ContentSlideSchema;
|
|
7888
|
+
}
|
|
7889
|
+
});
|
|
7890
|
+
Object.defineProperty(exports, "ContentTableCellSchema", {
|
|
7891
|
+
enumerable: true,
|
|
7892
|
+
get: function() {
|
|
7893
|
+
return document_content_model.ContentTableCellSchema;
|
|
7894
|
+
}
|
|
7895
|
+
});
|
|
7896
|
+
Object.defineProperty(exports, "ContentTableRowSchema", {
|
|
7897
|
+
enumerable: true,
|
|
7898
|
+
get: function() {
|
|
7899
|
+
return document_content_model.ContentTableRowSchema;
|
|
7900
|
+
}
|
|
7901
|
+
});
|
|
7902
|
+
Object.defineProperty(exports, "ContentTableSchema", {
|
|
7903
|
+
enumerable: true,
|
|
7904
|
+
get: function() {
|
|
7905
|
+
return document_content_model.ContentTableSchema;
|
|
7906
|
+
}
|
|
7907
|
+
});
|
|
7908
|
+
Object.defineProperty(exports, "DEFAULT_LAYOUT_FONT", {
|
|
7909
|
+
enumerable: true,
|
|
7910
|
+
get: function() {
|
|
7911
|
+
return document_content_model.DEFAULT_LAYOUT_FONT;
|
|
7912
|
+
}
|
|
7913
|
+
});
|
|
8061
7914
|
Object.defineProperty(exports, "DefinedNameSchema", {
|
|
8062
7915
|
enumerable: true,
|
|
8063
7916
|
get: function() {
|
|
@@ -8071,18 +7924,23 @@ exports.DocxRun = DocxRun;
|
|
|
8071
7924
|
exports.DocxTable = DocxTable;
|
|
8072
7925
|
exports.DocxTableCell = DocxTableCell;
|
|
8073
7926
|
exports.DocxTableRow = DocxTableRow;
|
|
8074
|
-
exports
|
|
7927
|
+
Object.defineProperty(exports, "LAYOUT_FORMAT_VERSION", {
|
|
7928
|
+
enumerable: true,
|
|
7929
|
+
get: function() {
|
|
7930
|
+
return document_content_model.LAYOUT_FORMAT_VERSION;
|
|
7931
|
+
}
|
|
7932
|
+
});
|
|
8075
7933
|
exports.NOOP_DIAGNOSTIC_SINK = NOOP_DIAGNOSTIC_SINK;
|
|
8076
7934
|
Object.defineProperty(exports, "PAGE_SIZE_A4", {
|
|
8077
7935
|
enumerable: true,
|
|
8078
7936
|
get: function() {
|
|
8079
|
-
return
|
|
7937
|
+
return document_content_model.PAGE_SIZE_A4;
|
|
8080
7938
|
}
|
|
8081
7939
|
});
|
|
8082
7940
|
Object.defineProperty(exports, "PAGE_SIZE_LETTER", {
|
|
8083
7941
|
enumerable: true,
|
|
8084
7942
|
get: function() {
|
|
8085
|
-
return
|
|
7943
|
+
return document_content_model.PAGE_SIZE_LETTER;
|
|
8086
7944
|
}
|
|
8087
7945
|
});
|
|
8088
7946
|
Object.defineProperty(exports, "PackageSchema", {
|
|
@@ -8107,13 +7965,13 @@ exports.PptxSlide = PptxSlide;
|
|
|
8107
7965
|
Object.defineProperty(exports, "SLIDE_SIZE_STANDARD", {
|
|
8108
7966
|
enumerable: true,
|
|
8109
7967
|
get: function() {
|
|
8110
|
-
return
|
|
7968
|
+
return document_content_model.SLIDE_SIZE_STANDARD;
|
|
8111
7969
|
}
|
|
8112
7970
|
});
|
|
8113
7971
|
Object.defineProperty(exports, "SLIDE_SIZE_WIDESCREEN", {
|
|
8114
7972
|
enumerable: true,
|
|
8115
7973
|
get: function() {
|
|
8116
|
-
return
|
|
7974
|
+
return document_content_model.SLIDE_SIZE_WIDESCREEN;
|
|
8117
7975
|
}
|
|
8118
7976
|
});
|
|
8119
7977
|
Object.defineProperty(exports, "XmlCdataSchema", {
|
|
@@ -8265,7 +8123,12 @@ Object.defineProperty(exports, "isCompactXmlNode", {
|
|
|
8265
8123
|
return ooxml_js.isCompactXmlNode;
|
|
8266
8124
|
}
|
|
8267
8125
|
});
|
|
8268
|
-
exports
|
|
8126
|
+
Object.defineProperty(exports, "isContentBlock", {
|
|
8127
|
+
enumerable: true,
|
|
8128
|
+
get: function() {
|
|
8129
|
+
return document_content_model.isContentBlock;
|
|
8130
|
+
}
|
|
8131
|
+
});
|
|
8269
8132
|
Object.defineProperty(exports, "isXmlNode", {
|
|
8270
8133
|
enumerable: true,
|
|
8271
8134
|
get: function() {
|
|
@@ -8311,7 +8174,7 @@ Object.defineProperty(exports, "resolveRelationships", {
|
|
|
8311
8174
|
Object.defineProperty(exports, "rgbHexToColor", {
|
|
8312
8175
|
enumerable: true,
|
|
8313
8176
|
get: function() {
|
|
8314
|
-
return
|
|
8177
|
+
return document_content_model.rgbHexToColor;
|
|
8315
8178
|
}
|
|
8316
8179
|
});
|
|
8317
8180
|
Object.defineProperty(exports, "rootElement", {
|