document-content-model 0.0.0 → 1.0.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/LICENSE +21 -0
- package/README.md +22 -0
- package/dist/index.cjs +341 -0
- package/dist/index.d.cts +751 -0
- package/dist/index.d.ts +751 -0
- package/dist/index.js +300 -0
- package/package.json +85 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Joseph Mearman
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# document-content-model
|
|
2
|
+
|
|
3
|
+
[](https://github.com/ExaDev/document-content-model) [](https://www.npmjs.com/package/document-content-model) [](https://github.com/ExaDev/document-content-model/releases/latest) [](https://github.com/ExaDev/document-content-model/actions)
|
|
4
|
+
|
|
5
|
+
> The canonical, format-agnostic content and layout schema pivot shared by [ooxml.js](https://github.com/ExaDev/ooxml.js), [odf.js](https://github.com/ExaDev/odf.js), and [documents.js](https://github.com/ExaDev/documents.js).
|
|
6
|
+
|
|
7
|
+
Both `ooxml.js` and `documents.js` independently arrived at the same content vocabulary -- paragraphs, runs, tables, images, shapes, slides -- because `documents.js`'s docx/pptx-to-PDF pipeline needed a richer model than `ooxml.js`'s own readers originally produced, and that model was later ported back into `ooxml.js` itself. The result was two field-identical copies maintained in two places. This package is the fix: one schema, imported by every format package instead of redefined by each. It also sidesteps a circular dependency that would otherwise appear once `odf.js` exists, since `documents.js` depends on both `ooxml.js` and `odf.js`.
|
|
8
|
+
|
|
9
|
+
It contains only [Zod](https://zod.dev) schemas, their inferred types, and a handful of trivial schema-attached helpers (hex-colour conversion, a recursive structural type guard for the mutually-recursive table/block types). There is no XML, ZIP, PDF, or other binary handling here, and no `zod` dependency other than `zod` itself.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { ContentDocumentSchema, LayoutDocumentSchema } from 'document-content-model';
|
|
15
|
+
|
|
16
|
+
const content = ContentDocumentSchema.parse(someWordprocessingOrPresentationValue);
|
|
17
|
+
const layout = LayoutDocumentSchema.parse(somePageLayoutValue);
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## License
|
|
21
|
+
|
|
22
|
+
MIT
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/color.ts
|
|
4
|
+
const ColorSchema = zod.z.object({
|
|
5
|
+
r: zod.z.number().min(0).max(1),
|
|
6
|
+
g: zod.z.number().min(0).max(1),
|
|
7
|
+
b: zod.z.number().min(0).max(1)
|
|
8
|
+
});
|
|
9
|
+
const COLOR_BLACK = {
|
|
10
|
+
r: 0,
|
|
11
|
+
g: 0,
|
|
12
|
+
b: 0
|
|
13
|
+
};
|
|
14
|
+
const HEX_COLOR_PATTERN = /^#?([0-9a-fA-F]{6})$/;
|
|
15
|
+
const HEX_BYTE_MAX = 255;
|
|
16
|
+
function rgbHexToColor(hex) {
|
|
17
|
+
const match = HEX_COLOR_PATTERN.exec(hex);
|
|
18
|
+
if (match === null) throw new Error(`not a 6-digit hex colour: ${hex}`);
|
|
19
|
+
const digits = match[1];
|
|
20
|
+
if (digits === void 0) throw new Error(`not a 6-digit hex colour: ${hex}`);
|
|
21
|
+
const r = Number.parseInt(digits.slice(0, 2), 16);
|
|
22
|
+
const g = Number.parseInt(digits.slice(2, 4), 16);
|
|
23
|
+
const b = Number.parseInt(digits.slice(4, 6), 16);
|
|
24
|
+
return {
|
|
25
|
+
r: r / HEX_BYTE_MAX,
|
|
26
|
+
g: g / HEX_BYTE_MAX,
|
|
27
|
+
b: b / HEX_BYTE_MAX
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function toHexByte(component) {
|
|
31
|
+
return Math.round(component * HEX_BYTE_MAX).toString(16).padStart(2, "0");
|
|
32
|
+
}
|
|
33
|
+
function colorToRgbHex(color) {
|
|
34
|
+
return `${toHexByte(color.r)}${toHexByte(color.g)}${toHexByte(color.b)}`;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/geometry.ts
|
|
38
|
+
const BoxSchema = zod.z.object({
|
|
39
|
+
xPt: zod.z.number(),
|
|
40
|
+
yPt: zod.z.number(),
|
|
41
|
+
widthPt: zod.z.number().nonnegative(),
|
|
42
|
+
heightPt: zod.z.number().nonnegative()
|
|
43
|
+
});
|
|
44
|
+
const PageSizeSchema = zod.z.object({
|
|
45
|
+
widthPt: zod.z.number().positive(),
|
|
46
|
+
heightPt: zod.z.number().positive()
|
|
47
|
+
});
|
|
48
|
+
const MarginsSchema = zod.z.object({
|
|
49
|
+
topPt: zod.z.number().nonnegative(),
|
|
50
|
+
rightPt: zod.z.number().nonnegative(),
|
|
51
|
+
bottomPt: zod.z.number().nonnegative(),
|
|
52
|
+
leftPt: zod.z.number().nonnegative()
|
|
53
|
+
});
|
|
54
|
+
const PAGE_SIZE_LETTER = {
|
|
55
|
+
widthPt: 612,
|
|
56
|
+
heightPt: 792
|
|
57
|
+
};
|
|
58
|
+
const PAGE_SIZE_A4 = {
|
|
59
|
+
widthPt: 595.28,
|
|
60
|
+
heightPt: 841.89
|
|
61
|
+
};
|
|
62
|
+
const SLIDE_SIZE_WIDESCREEN = {
|
|
63
|
+
widthPt: 960,
|
|
64
|
+
heightPt: 540
|
|
65
|
+
};
|
|
66
|
+
const SLIDE_SIZE_STANDARD = {
|
|
67
|
+
widthPt: 720,
|
|
68
|
+
heightPt: 540
|
|
69
|
+
};
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/style.ts
|
|
72
|
+
const AlignmentSchema = zod.z.enum([
|
|
73
|
+
"left",
|
|
74
|
+
"center",
|
|
75
|
+
"right",
|
|
76
|
+
"justify"
|
|
77
|
+
]);
|
|
78
|
+
const LayoutFontSchema = zod.z.object({
|
|
79
|
+
family: zod.z.string(),
|
|
80
|
+
weight: zod.z.enum(["normal", "bold"]),
|
|
81
|
+
style: zod.z.enum(["normal", "italic"])
|
|
82
|
+
});
|
|
83
|
+
const DEFAULT_LAYOUT_FONT = {
|
|
84
|
+
family: "Helvetica",
|
|
85
|
+
weight: "normal",
|
|
86
|
+
style: "normal"
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/metadata.ts
|
|
90
|
+
const LayoutMetadataSchema = zod.z.object({
|
|
91
|
+
title: zod.z.string().optional(),
|
|
92
|
+
author: zod.z.string().optional(),
|
|
93
|
+
subject: zod.z.string().optional(),
|
|
94
|
+
keywords: zod.z.array(zod.z.string()).optional(),
|
|
95
|
+
creator: zod.z.string().optional(),
|
|
96
|
+
producer: zod.z.string().optional(),
|
|
97
|
+
createdIso: zod.z.string().optional(),
|
|
98
|
+
modifiedIso: zod.z.string().optional()
|
|
99
|
+
});
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/content.ts
|
|
102
|
+
const ContentRunSchema = zod.z.object({
|
|
103
|
+
text: zod.z.string(),
|
|
104
|
+
bold: zod.z.boolean().optional(),
|
|
105
|
+
italic: zod.z.boolean().optional(),
|
|
106
|
+
underline: zod.z.boolean().optional(),
|
|
107
|
+
strike: zod.z.boolean().optional(),
|
|
108
|
+
fontFamily: zod.z.string().optional(),
|
|
109
|
+
sizePt: zod.z.number().positive().optional(),
|
|
110
|
+
color: ColorSchema.optional(),
|
|
111
|
+
hyperlink: zod.z.string().optional()
|
|
112
|
+
});
|
|
113
|
+
const ContentListMembershipSchema = zod.z.object({
|
|
114
|
+
numId: zod.z.string(),
|
|
115
|
+
level: zod.z.number().int().nonnegative()
|
|
116
|
+
});
|
|
117
|
+
const ContentParagraphSchema = zod.z.object({
|
|
118
|
+
kind: zod.z.literal("paragraph"),
|
|
119
|
+
runs: zod.z.array(ContentRunSchema),
|
|
120
|
+
styleId: zod.z.string().optional(),
|
|
121
|
+
alignment: AlignmentSchema.optional(),
|
|
122
|
+
list: ContentListMembershipSchema.optional(),
|
|
123
|
+
spacingBeforePt: zod.z.number().optional(),
|
|
124
|
+
spacingAfterPt: zod.z.number().optional(),
|
|
125
|
+
lineSpacing: zod.z.number().positive().optional(),
|
|
126
|
+
indentLeftPt: zod.z.number().optional(),
|
|
127
|
+
indentFirstLinePt: zod.z.number().optional()
|
|
128
|
+
});
|
|
129
|
+
const ContentImageBlockSchema = zod.z.object({
|
|
130
|
+
kind: zod.z.literal("image"),
|
|
131
|
+
format: zod.z.enum(["png", "jpeg"]),
|
|
132
|
+
base64: zod.z.string(),
|
|
133
|
+
widthPt: zod.z.number().positive(),
|
|
134
|
+
heightPt: zod.z.number().positive(),
|
|
135
|
+
altText: zod.z.string().optional()
|
|
136
|
+
});
|
|
137
|
+
const ContentPageBreakSchema = zod.z.object({ kind: zod.z.literal("pageBreak") });
|
|
138
|
+
function isRecord(value) {
|
|
139
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
140
|
+
}
|
|
141
|
+
function isContentRun(value) {
|
|
142
|
+
return isRecord(value) && typeof value.text === "string";
|
|
143
|
+
}
|
|
144
|
+
function isContentTableCell(value) {
|
|
145
|
+
return isRecord(value) && Array.isArray(value.blocks) && value.blocks.every(isContentBlock);
|
|
146
|
+
}
|
|
147
|
+
function isContentTableRow(value) {
|
|
148
|
+
return isRecord(value) && Array.isArray(value.cells) && value.cells.every(isContentTableCell) && (value.heightPt === void 0 || typeof value.heightPt === "number");
|
|
149
|
+
}
|
|
150
|
+
function isContentBlock(value) {
|
|
151
|
+
if (!isRecord(value)) return false;
|
|
152
|
+
const kind = value.kind;
|
|
153
|
+
if (kind === "paragraph") return Array.isArray(value.runs) && value.runs.every(isContentRun);
|
|
154
|
+
if (kind === "image") return (value.format === "png" || value.format === "jpeg") && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
|
|
155
|
+
if (kind === "pageBreak") return true;
|
|
156
|
+
if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.columnWidthsPt) && value.columnWidthsPt.every((w) => typeof w === "number");
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
const ContentBlockSchema = zod.z.custom(isContentBlock);
|
|
160
|
+
const ContentTableCellSchema = zod.z.object({
|
|
161
|
+
blocks: zod.z.array(ContentBlockSchema),
|
|
162
|
+
colSpan: zod.z.number().int().positive().optional(),
|
|
163
|
+
rowSpan: zod.z.number().int().positive().optional(),
|
|
164
|
+
background: ColorSchema.optional()
|
|
165
|
+
});
|
|
166
|
+
const ContentTableRowSchema = zod.z.object({
|
|
167
|
+
cells: zod.z.array(ContentTableCellSchema),
|
|
168
|
+
heightPt: zod.z.number().positive().optional()
|
|
169
|
+
});
|
|
170
|
+
const ContentTableSchema = zod.z.object({
|
|
171
|
+
kind: zod.z.literal("table"),
|
|
172
|
+
rows: zod.z.array(ContentTableRowSchema),
|
|
173
|
+
columnWidthsPt: zod.z.array(zod.z.number().positive())
|
|
174
|
+
});
|
|
175
|
+
const ContentSectionSchema = zod.z.object({
|
|
176
|
+
pageSize: PageSizeSchema,
|
|
177
|
+
margins: MarginsSchema,
|
|
178
|
+
blocks: zod.z.array(ContentBlockSchema)
|
|
179
|
+
});
|
|
180
|
+
const ContentShapeSchema = zod.z.object({
|
|
181
|
+
name: zod.z.string().optional(),
|
|
182
|
+
frame: BoxSchema,
|
|
183
|
+
rotationDeg: zod.z.number().optional(),
|
|
184
|
+
insetLeftPt: zod.z.number().nonnegative(),
|
|
185
|
+
insetTopPt: zod.z.number().nonnegative(),
|
|
186
|
+
insetRightPt: zod.z.number().nonnegative(),
|
|
187
|
+
insetBottomPt: zod.z.number().nonnegative(),
|
|
188
|
+
fontScale: zod.z.number().positive().optional(),
|
|
189
|
+
lineSpacingReduction: zod.z.number().nonnegative().optional(),
|
|
190
|
+
blocks: zod.z.array(ContentBlockSchema)
|
|
191
|
+
});
|
|
192
|
+
const ContentSlideSchema = zod.z.object({
|
|
193
|
+
size: PageSizeSchema,
|
|
194
|
+
shapes: zod.z.array(ContentShapeSchema),
|
|
195
|
+
notes: zod.z.string()
|
|
196
|
+
});
|
|
197
|
+
const CONTENT_FORMAT_VERSION = 1;
|
|
198
|
+
const ContentDocumentSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
|
|
199
|
+
kind: zod.z.literal("wordprocessing"),
|
|
200
|
+
formatVersion: zod.z.literal(1),
|
|
201
|
+
metadata: LayoutMetadataSchema,
|
|
202
|
+
sections: zod.z.array(ContentSectionSchema)
|
|
203
|
+
}), zod.z.object({
|
|
204
|
+
kind: zod.z.literal("presentation"),
|
|
205
|
+
formatVersion: zod.z.literal(1),
|
|
206
|
+
metadata: LayoutMetadataSchema,
|
|
207
|
+
slides: zod.z.array(ContentSlideSchema)
|
|
208
|
+
})]);
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region src/layout.ts
|
|
211
|
+
const LAYOUT_FORMAT_VERSION = 1;
|
|
212
|
+
const LayoutTextSchema = zod.z.object({
|
|
213
|
+
kind: zod.z.literal("text"),
|
|
214
|
+
text: zod.z.string(),
|
|
215
|
+
xPt: zod.z.number(),
|
|
216
|
+
yPt: zod.z.number(),
|
|
217
|
+
font: LayoutFontSchema,
|
|
218
|
+
sizePt: zod.z.number().positive(),
|
|
219
|
+
color: ColorSchema,
|
|
220
|
+
widthPt: zod.z.number().nonnegative().optional(),
|
|
221
|
+
rotationDeg: zod.z.number().optional(),
|
|
222
|
+
underline: zod.z.boolean().optional()
|
|
223
|
+
});
|
|
224
|
+
const LayoutImageSchema = zod.z.object({
|
|
225
|
+
kind: zod.z.literal("image"),
|
|
226
|
+
imageId: zod.z.string(),
|
|
227
|
+
xPt: zod.z.number(),
|
|
228
|
+
yPt: zod.z.number(),
|
|
229
|
+
widthPt: zod.z.number().positive(),
|
|
230
|
+
heightPt: zod.z.number().positive(),
|
|
231
|
+
rotationDeg: zod.z.number().optional()
|
|
232
|
+
});
|
|
233
|
+
const LayoutRectSchema = zod.z.object({
|
|
234
|
+
kind: zod.z.literal("rect"),
|
|
235
|
+
xPt: zod.z.number(),
|
|
236
|
+
yPt: zod.z.number(),
|
|
237
|
+
widthPt: zod.z.number().nonnegative(),
|
|
238
|
+
heightPt: zod.z.number().nonnegative(),
|
|
239
|
+
fill: ColorSchema.optional(),
|
|
240
|
+
stroke: zod.z.object({
|
|
241
|
+
color: ColorSchema,
|
|
242
|
+
widthPt: zod.z.number().positive()
|
|
243
|
+
}).optional()
|
|
244
|
+
});
|
|
245
|
+
const LayoutLineSchema = zod.z.object({
|
|
246
|
+
kind: zod.z.literal("line"),
|
|
247
|
+
x1Pt: zod.z.number(),
|
|
248
|
+
y1Pt: zod.z.number(),
|
|
249
|
+
x2Pt: zod.z.number(),
|
|
250
|
+
y2Pt: zod.z.number(),
|
|
251
|
+
color: ColorSchema,
|
|
252
|
+
widthPt: zod.z.number().positive()
|
|
253
|
+
});
|
|
254
|
+
const LayoutEllipseSchema = zod.z.object({
|
|
255
|
+
kind: zod.z.literal("ellipse"),
|
|
256
|
+
xPt: zod.z.number(),
|
|
257
|
+
yPt: zod.z.number(),
|
|
258
|
+
widthPt: zod.z.number().positive(),
|
|
259
|
+
heightPt: zod.z.number().positive(),
|
|
260
|
+
fill: ColorSchema.optional(),
|
|
261
|
+
stroke: zod.z.object({
|
|
262
|
+
color: ColorSchema,
|
|
263
|
+
widthPt: zod.z.number().positive()
|
|
264
|
+
}).optional()
|
|
265
|
+
});
|
|
266
|
+
const LayoutLinkSchema = zod.z.object({
|
|
267
|
+
kind: zod.z.literal("link"),
|
|
268
|
+
uri: zod.z.string(),
|
|
269
|
+
xPt: zod.z.number(),
|
|
270
|
+
yPt: zod.z.number(),
|
|
271
|
+
widthPt: zod.z.number().nonnegative(),
|
|
272
|
+
heightPt: zod.z.number().nonnegative()
|
|
273
|
+
});
|
|
274
|
+
const LayoutItemSchema = zod.z.discriminatedUnion("kind", [
|
|
275
|
+
LayoutTextSchema,
|
|
276
|
+
LayoutImageSchema,
|
|
277
|
+
LayoutRectSchema,
|
|
278
|
+
LayoutLineSchema,
|
|
279
|
+
LayoutEllipseSchema,
|
|
280
|
+
LayoutLinkSchema
|
|
281
|
+
]);
|
|
282
|
+
const LayoutPageSchema = zod.z.object({
|
|
283
|
+
widthPt: zod.z.number().positive(),
|
|
284
|
+
heightPt: zod.z.number().positive(),
|
|
285
|
+
items: zod.z.array(LayoutItemSchema),
|
|
286
|
+
notes: zod.z.string().optional()
|
|
287
|
+
});
|
|
288
|
+
const LayoutImageAssetSchema = zod.z.object({
|
|
289
|
+
format: zod.z.enum(["png", "jpeg"]),
|
|
290
|
+
base64: zod.z.string(),
|
|
291
|
+
widthPx: zod.z.number().int().positive(),
|
|
292
|
+
heightPx: zod.z.number().int().positive()
|
|
293
|
+
});
|
|
294
|
+
const LayoutDocumentSchema = zod.z.object({
|
|
295
|
+
formatVersion: zod.z.literal(1),
|
|
296
|
+
metadata: LayoutMetadataSchema,
|
|
297
|
+
pages: zod.z.array(LayoutPageSchema),
|
|
298
|
+
images: zod.z.record(zod.z.string(), LayoutImageAssetSchema)
|
|
299
|
+
});
|
|
300
|
+
//#endregion
|
|
301
|
+
exports.AlignmentSchema = AlignmentSchema;
|
|
302
|
+
exports.BoxSchema = BoxSchema;
|
|
303
|
+
exports.COLOR_BLACK = COLOR_BLACK;
|
|
304
|
+
exports.CONTENT_FORMAT_VERSION = CONTENT_FORMAT_VERSION;
|
|
305
|
+
exports.ColorSchema = ColorSchema;
|
|
306
|
+
exports.ContentBlockSchema = ContentBlockSchema;
|
|
307
|
+
exports.ContentDocumentSchema = ContentDocumentSchema;
|
|
308
|
+
exports.ContentImageBlockSchema = ContentImageBlockSchema;
|
|
309
|
+
exports.ContentListMembershipSchema = ContentListMembershipSchema;
|
|
310
|
+
exports.ContentPageBreakSchema = ContentPageBreakSchema;
|
|
311
|
+
exports.ContentParagraphSchema = ContentParagraphSchema;
|
|
312
|
+
exports.ContentRunSchema = ContentRunSchema;
|
|
313
|
+
exports.ContentSectionSchema = ContentSectionSchema;
|
|
314
|
+
exports.ContentShapeSchema = ContentShapeSchema;
|
|
315
|
+
exports.ContentSlideSchema = ContentSlideSchema;
|
|
316
|
+
exports.ContentTableCellSchema = ContentTableCellSchema;
|
|
317
|
+
exports.ContentTableRowSchema = ContentTableRowSchema;
|
|
318
|
+
exports.ContentTableSchema = ContentTableSchema;
|
|
319
|
+
exports.DEFAULT_LAYOUT_FONT = DEFAULT_LAYOUT_FONT;
|
|
320
|
+
exports.LAYOUT_FORMAT_VERSION = LAYOUT_FORMAT_VERSION;
|
|
321
|
+
exports.LayoutDocumentSchema = LayoutDocumentSchema;
|
|
322
|
+
exports.LayoutEllipseSchema = LayoutEllipseSchema;
|
|
323
|
+
exports.LayoutFontSchema = LayoutFontSchema;
|
|
324
|
+
exports.LayoutImageAssetSchema = LayoutImageAssetSchema;
|
|
325
|
+
exports.LayoutImageSchema = LayoutImageSchema;
|
|
326
|
+
exports.LayoutItemSchema = LayoutItemSchema;
|
|
327
|
+
exports.LayoutLineSchema = LayoutLineSchema;
|
|
328
|
+
exports.LayoutLinkSchema = LayoutLinkSchema;
|
|
329
|
+
exports.LayoutMetadataSchema = LayoutMetadataSchema;
|
|
330
|
+
exports.LayoutPageSchema = LayoutPageSchema;
|
|
331
|
+
exports.LayoutRectSchema = LayoutRectSchema;
|
|
332
|
+
exports.LayoutTextSchema = LayoutTextSchema;
|
|
333
|
+
exports.MarginsSchema = MarginsSchema;
|
|
334
|
+
exports.PAGE_SIZE_A4 = PAGE_SIZE_A4;
|
|
335
|
+
exports.PAGE_SIZE_LETTER = PAGE_SIZE_LETTER;
|
|
336
|
+
exports.PageSizeSchema = PageSizeSchema;
|
|
337
|
+
exports.SLIDE_SIZE_STANDARD = SLIDE_SIZE_STANDARD;
|
|
338
|
+
exports.SLIDE_SIZE_WIDESCREEN = SLIDE_SIZE_WIDESCREEN;
|
|
339
|
+
exports.colorToRgbHex = colorToRgbHex;
|
|
340
|
+
exports.isContentBlock = isContentBlock;
|
|
341
|
+
exports.rgbHexToColor = rgbHexToColor;
|