docx-wasm 0.0.264 → 0.0.267
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/node/json/index.d.ts +1 -1
- package/dist/node/pkg/docx_wasm.d.ts +175 -175
- package/dist/node/pkg/docx_wasm.js +44 -44
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +17 -17
- package/dist/web/json/index.d.ts +1 -1
- package/dist/web/pkg/docx_wasm.d.ts +175 -175
- package/dist/web/pkg/docx_wasm_bg.js +44 -44
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +17 -17
- package/js/json/index.ts +2 -2
- package/package.json +2 -2
- package/dist/node/json/DrawingPosition.d.ts +0 -6
- package/dist/node/json/DrawingPosition.js +0 -3
- package/dist/node/json/DrawingPosition.js.map +0 -1
- package/dist/node/json/DrawingPositionType.d.ts +0 -1
- package/dist/node/json/DrawingPositionType.js +0 -3
- package/dist/node/json/DrawingPositionType.js.map +0 -1
- package/dist/node/json/FontGroup.d.ts +0 -7
- package/dist/node/json/FontGroup.js +0 -3
- package/dist/node/json/FontGroup.js.map +0 -1
- package/dist/node/json/FontScheme.d.ts +0 -5
- package/dist/node/json/FontScheme.js +0 -3
- package/dist/node/json/FontScheme.js.map +0 -1
- package/dist/node/json/FontSchemeFont.d.ts +0 -4
- package/dist/node/json/FontSchemeFont.js +0 -3
- package/dist/node/json/FontSchemeFont.js.map +0 -1
- package/dist/node/json/ImageData.d.ts +0 -3
- package/dist/node/json/ImageData.js +0 -3
- package/dist/node/json/ImageData.js.map +0 -1
- package/dist/node/json/Pic.d.ts +0 -24
- package/dist/node/json/Pic.js +0 -3
- package/dist/node/json/Pic.js.map +0 -1
- package/dist/node/json/PicAlign.d.ts +0 -1
- package/dist/node/json/PicAlign.js +0 -3
- package/dist/node/json/PicAlign.js.map +0 -1
- package/dist/node/json/RelativeFromHType.d.ts +0 -1
- package/dist/node/json/RelativeFromHType.js +0 -3
- package/dist/node/json/RelativeFromHType.js.map +0 -1
- package/dist/node/json/RelativeFromVType.d.ts +0 -1
- package/dist/node/json/RelativeFromVType.js +0 -3
- package/dist/node/json/RelativeFromVType.js.map +0 -1
- package/dist/node/json/Theme.d.ts +0 -4
- package/dist/node/json/Theme.js +0 -3
- package/dist/node/json/Theme.js.map +0 -1
- package/dist/web/json/DrawingPosition.d.ts +0 -6
- package/dist/web/json/DrawingPosition.js +0 -2
- package/dist/web/json/DrawingPosition.js.map +0 -1
- package/dist/web/json/DrawingPositionType.d.ts +0 -1
- package/dist/web/json/DrawingPositionType.js +0 -2
- package/dist/web/json/DrawingPositionType.js.map +0 -1
- package/dist/web/json/FontGroup.d.ts +0 -7
- package/dist/web/json/FontGroup.js +0 -2
- package/dist/web/json/FontGroup.js.map +0 -1
- package/dist/web/json/FontScheme.d.ts +0 -5
- package/dist/web/json/FontScheme.js +0 -2
- package/dist/web/json/FontScheme.js.map +0 -1
- package/dist/web/json/FontSchemeFont.d.ts +0 -4
- package/dist/web/json/FontSchemeFont.js +0 -2
- package/dist/web/json/FontSchemeFont.js.map +0 -1
- package/dist/web/json/ImageData.d.ts +0 -3
- package/dist/web/json/ImageData.js +0 -2
- package/dist/web/json/ImageData.js.map +0 -1
- package/dist/web/json/Pic.d.ts +0 -24
- package/dist/web/json/Pic.js +0 -2
- package/dist/web/json/Pic.js.map +0 -1
- package/dist/web/json/PicAlign.d.ts +0 -1
- package/dist/web/json/PicAlign.js +0 -2
- package/dist/web/json/PicAlign.js.map +0 -1
- package/dist/web/json/RelativeFromHType.d.ts +0 -1
- package/dist/web/json/RelativeFromHType.js +0 -2
- package/dist/web/json/RelativeFromHType.js.map +0 -1
- package/dist/web/json/RelativeFromVType.d.ts +0 -1
- package/dist/web/json/RelativeFromVType.js +0 -2
- package/dist/web/json/RelativeFromVType.js.map +0 -1
- package/dist/web/json/Theme.d.ts +0 -4
- package/dist/web/json/Theme.js +0 -2
- package/dist/web/json/Theme.js.map +0 -1
- package/js/json/DrawingPosition.ts +0 -3
- package/js/json/DrawingPositionType.ts +0 -2
- package/js/json/FontGroup.ts +0 -3
- package/js/json/FontScheme.ts +0 -3
- package/js/json/FontSchemeFont.ts +0 -2
- package/js/json/ImageData.ts +0 -2
- package/js/json/Pic.ts +0 -6
- package/js/json/PicAlign.ts +0 -2
- package/js/json/RelativeFromHType.ts +0 -2
- package/js/json/RelativeFromVType.ts +0 -2
- package/js/json/Theme.ts +0 -3
- package/js/json/bindings/bindings/DrawingPosition.ts +0 -3
- package/js/json/bindings/bindings/DrawingPositionType.ts +0 -2
- package/js/json/bindings/bindings/FontGroup.ts +0 -3
- package/js/json/bindings/bindings/FontScheme.ts +0 -3
- package/js/json/bindings/bindings/FontSchemeFont.ts +0 -2
- package/js/json/bindings/bindings/ImageData.ts +0 -2
- package/js/json/bindings/bindings/Pic.ts +0 -6
- package/js/json/bindings/bindings/PicAlign.ts +0 -2
- package/js/json/bindings/bindings/RelativeFromHType.ts +0 -2
- package/js/json/bindings/bindings/RelativeFromVType.ts +0 -2
- package/js/json/bindings/bindings/Shape.ts +0 -3
- package/js/json/bindings/bindings/Theme.ts +0 -3
|
@@ -45,7 +45,7 @@ export declare type DocxJSON = {
|
|
|
45
45
|
webSettings: WebSettingsJSON;
|
|
46
46
|
fontTable: {};
|
|
47
47
|
themes: ThemeJSON[];
|
|
48
|
-
images: [string, string, string][];
|
|
48
|
+
images: [string, string, string, string][];
|
|
49
49
|
};
|
|
50
50
|
export declare type SettingsJSON = {
|
|
51
51
|
docId: string | null;
|
|
@@ -10,17 +10,16 @@ export function readDocx(buf: Uint8Array): string;
|
|
|
10
10
|
*/
|
|
11
11
|
export function createRunFonts(): RunFonts;
|
|
12
12
|
/**
|
|
13
|
+
* @returns {LineSpacing}
|
|
14
|
+
*/
|
|
15
|
+
export function createLineSpacing(): LineSpacing;
|
|
16
|
+
/**
|
|
13
17
|
* @param {string} style_id
|
|
14
18
|
* @param {number} style_type
|
|
15
19
|
* @returns {Style}
|
|
16
20
|
*/
|
|
17
21
|
export function createStyle(style_id: string, style_type: number): Style;
|
|
18
22
|
/**
|
|
19
|
-
* @param {number} position
|
|
20
|
-
* @returns {TableCellBorder}
|
|
21
|
-
*/
|
|
22
|
-
export function createTableCellBorder(position: number): TableCellBorder;
|
|
23
|
-
/**
|
|
24
23
|
* @returns {TableRow}
|
|
25
24
|
*/
|
|
26
25
|
export function createTableRow(): TableRow;
|
|
@@ -43,9 +42,10 @@ export function createHeader(): Header;
|
|
|
43
42
|
*/
|
|
44
43
|
export function createInsert(run: Run): Insert;
|
|
45
44
|
/**
|
|
46
|
-
* @
|
|
45
|
+
* @param {number} position
|
|
46
|
+
* @returns {TableCellBorder}
|
|
47
47
|
*/
|
|
48
|
-
export function
|
|
48
|
+
export function createTableCellBorder(position: number): TableCellBorder;
|
|
49
49
|
/**
|
|
50
50
|
* @param {number} id
|
|
51
51
|
* @param {number} start
|
|
@@ -132,6 +132,42 @@ export function createLevelOverride(level: number): LevelOverride;
|
|
|
132
132
|
export function createPageMargin(): PageMargin;
|
|
133
133
|
/**
|
|
134
134
|
*/
|
|
135
|
+
export enum AlignmentType {
|
|
136
|
+
Both,
|
|
137
|
+
Center,
|
|
138
|
+
Distribute,
|
|
139
|
+
End,
|
|
140
|
+
Left,
|
|
141
|
+
Right,
|
|
142
|
+
Justified,
|
|
143
|
+
Unsupported,
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
*/
|
|
147
|
+
export enum HeightRule {
|
|
148
|
+
Auto,
|
|
149
|
+
AtLeast,
|
|
150
|
+
Exact,
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
*/
|
|
154
|
+
export enum LevelSuffixType {
|
|
155
|
+
Nothing,
|
|
156
|
+
Space,
|
|
157
|
+
Tab,
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
*/
|
|
161
|
+
export enum TabLeaderType {
|
|
162
|
+
Dot,
|
|
163
|
+
Heavy,
|
|
164
|
+
Hyphen,
|
|
165
|
+
MiddleDot,
|
|
166
|
+
None,
|
|
167
|
+
Underscore,
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
*/
|
|
135
171
|
export enum DrawingPositionType {
|
|
136
172
|
Anchor,
|
|
137
173
|
Inline,
|
|
@@ -146,9 +182,97 @@ export enum PicAlign {
|
|
|
146
182
|
}
|
|
147
183
|
/**
|
|
148
184
|
*/
|
|
149
|
-
export enum
|
|
150
|
-
|
|
151
|
-
|
|
185
|
+
export enum VMergeType {
|
|
186
|
+
Continue,
|
|
187
|
+
Restart,
|
|
188
|
+
Unsupported,
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
*/
|
|
192
|
+
export enum BreakType {
|
|
193
|
+
Page,
|
|
194
|
+
Column,
|
|
195
|
+
TextWrapping,
|
|
196
|
+
Unsupported,
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
*/
|
|
200
|
+
export enum LineSpacingType {
|
|
201
|
+
Auto,
|
|
202
|
+
AtLeast,
|
|
203
|
+
Exact,
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
*/
|
|
207
|
+
export enum ShdType {
|
|
208
|
+
Nil,
|
|
209
|
+
Clear,
|
|
210
|
+
Solid,
|
|
211
|
+
HorzStripe,
|
|
212
|
+
VertStripe,
|
|
213
|
+
ReverseDiagStripe,
|
|
214
|
+
DiagStripe,
|
|
215
|
+
HorzCross,
|
|
216
|
+
DiagCross,
|
|
217
|
+
ThinHorzStripe,
|
|
218
|
+
ThinVertStripe,
|
|
219
|
+
ThinReverseDiagStripe,
|
|
220
|
+
ThinDiagStripe,
|
|
221
|
+
ThinHorzCross,
|
|
222
|
+
ThinDiagCross,
|
|
223
|
+
Pct5,
|
|
224
|
+
Pct10,
|
|
225
|
+
Pct12,
|
|
226
|
+
Pct15,
|
|
227
|
+
Pct20,
|
|
228
|
+
Pct25,
|
|
229
|
+
Pct30,
|
|
230
|
+
Pct35,
|
|
231
|
+
Pct37,
|
|
232
|
+
Pct40,
|
|
233
|
+
Pct45,
|
|
234
|
+
Pct50,
|
|
235
|
+
Pct55,
|
|
236
|
+
Pct60,
|
|
237
|
+
Pct62,
|
|
238
|
+
Pct65,
|
|
239
|
+
Pct70,
|
|
240
|
+
Pct75,
|
|
241
|
+
Pct80,
|
|
242
|
+
Pct85,
|
|
243
|
+
Pct87,
|
|
244
|
+
Pct90,
|
|
245
|
+
Pct95,
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
*/
|
|
249
|
+
export enum TextDirectionType {
|
|
250
|
+
Lr,
|
|
251
|
+
LrV,
|
|
252
|
+
Rl,
|
|
253
|
+
RlV,
|
|
254
|
+
Tb,
|
|
255
|
+
TbV,
|
|
256
|
+
TbRlV,
|
|
257
|
+
TbRl,
|
|
258
|
+
BtLr,
|
|
259
|
+
LrTbV,
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
*/
|
|
263
|
+
export enum VertAlignType {
|
|
264
|
+
Baseline,
|
|
265
|
+
SuperScript,
|
|
266
|
+
SubScript,
|
|
267
|
+
Unsupported,
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
*/
|
|
271
|
+
export enum VAlignType {
|
|
272
|
+
Top,
|
|
273
|
+
Center,
|
|
274
|
+
Bottom,
|
|
275
|
+
Unsupported,
|
|
152
276
|
}
|
|
153
277
|
/**
|
|
154
278
|
*/
|
|
@@ -187,49 +311,6 @@ export enum BorderType {
|
|
|
187
311
|
}
|
|
188
312
|
/**
|
|
189
313
|
*/
|
|
190
|
-
export enum HeightRule {
|
|
191
|
-
Auto,
|
|
192
|
-
AtLeast,
|
|
193
|
-
Exact,
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
*/
|
|
197
|
-
export enum LevelSuffixType {
|
|
198
|
-
Nothing,
|
|
199
|
-
Space,
|
|
200
|
-
Tab,
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
*/
|
|
204
|
-
export enum AlignmentType {
|
|
205
|
-
Both,
|
|
206
|
-
Center,
|
|
207
|
-
Distribute,
|
|
208
|
-
End,
|
|
209
|
-
Left,
|
|
210
|
-
Right,
|
|
211
|
-
Justified,
|
|
212
|
-
Unsupported,
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
*/
|
|
216
|
-
export enum TabLeaderType {
|
|
217
|
-
Dot,
|
|
218
|
-
Heavy,
|
|
219
|
-
Hyphen,
|
|
220
|
-
MiddleDot,
|
|
221
|
-
None,
|
|
222
|
-
Underscore,
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
*/
|
|
226
|
-
export enum VMergeType {
|
|
227
|
-
Continue,
|
|
228
|
-
Restart,
|
|
229
|
-
Unsupported,
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
*/
|
|
233
314
|
export enum FontPitchType {
|
|
234
315
|
Default,
|
|
235
316
|
Fixed,
|
|
@@ -252,6 +333,12 @@ export enum SectionType {
|
|
|
252
333
|
}
|
|
253
334
|
/**
|
|
254
335
|
*/
|
|
336
|
+
export enum SpecialIndentKind {
|
|
337
|
+
FirstLine,
|
|
338
|
+
Hanging,
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
*/
|
|
255
342
|
export enum TableAlignmentType {
|
|
256
343
|
Center,
|
|
257
344
|
Left,
|
|
@@ -259,6 +346,21 @@ export enum TableAlignmentType {
|
|
|
259
346
|
}
|
|
260
347
|
/**
|
|
261
348
|
*/
|
|
349
|
+
export enum TableLayoutType {
|
|
350
|
+
Fixed,
|
|
351
|
+
Autofit,
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
*/
|
|
355
|
+
export enum WidthType {
|
|
356
|
+
Dxa,
|
|
357
|
+
Auto,
|
|
358
|
+
Pct,
|
|
359
|
+
Nil,
|
|
360
|
+
Unsupported,
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
*/
|
|
262
364
|
export enum TableBorderPosition {
|
|
263
365
|
Left,
|
|
264
366
|
Right,
|
|
@@ -281,38 +383,6 @@ export enum TableCellBorderPosition {
|
|
|
281
383
|
}
|
|
282
384
|
/**
|
|
283
385
|
*/
|
|
284
|
-
export enum StyleType {
|
|
285
|
-
Paragraph,
|
|
286
|
-
Character,
|
|
287
|
-
Numbering,
|
|
288
|
-
Table,
|
|
289
|
-
Unsupported,
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
*/
|
|
293
|
-
export enum TableLayoutType {
|
|
294
|
-
Fixed,
|
|
295
|
-
Autofit,
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
*/
|
|
299
|
-
export enum WidthType {
|
|
300
|
-
Dxa,
|
|
301
|
-
Auto,
|
|
302
|
-
Pct,
|
|
303
|
-
Nil,
|
|
304
|
-
Unsupported,
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
*/
|
|
308
|
-
export enum DocGridType {
|
|
309
|
-
Default,
|
|
310
|
-
Lines,
|
|
311
|
-
LinesAndChars,
|
|
312
|
-
SnapToChars,
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
*/
|
|
316
386
|
export enum RelativeFromHType {
|
|
317
387
|
/**
|
|
318
388
|
* Specifies that the horizontal positioning shall be
|
|
@@ -373,24 +443,20 @@ export enum RelativeFromVType {
|
|
|
373
443
|
}
|
|
374
444
|
/**
|
|
375
445
|
*/
|
|
376
|
-
export enum
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
Right,
|
|
383
|
-
Num,
|
|
384
|
-
Start,
|
|
385
|
-
Left,
|
|
446
|
+
export enum StyleType {
|
|
447
|
+
Paragraph,
|
|
448
|
+
Character,
|
|
449
|
+
Numbering,
|
|
450
|
+
Table,
|
|
451
|
+
Unsupported,
|
|
386
452
|
}
|
|
387
453
|
/**
|
|
388
454
|
*/
|
|
389
|
-
export enum
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
455
|
+
export enum DocGridType {
|
|
456
|
+
Default,
|
|
457
|
+
Lines,
|
|
458
|
+
LinesAndChars,
|
|
459
|
+
SnapToChars,
|
|
394
460
|
}
|
|
395
461
|
/**
|
|
396
462
|
*/
|
|
@@ -402,82 +468,16 @@ export enum FieldCharType {
|
|
|
402
468
|
}
|
|
403
469
|
/**
|
|
404
470
|
*/
|
|
405
|
-
export enum
|
|
406
|
-
|
|
407
|
-
AtLeast,
|
|
408
|
-
Exact,
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
*/
|
|
412
|
-
export enum TextDirectionType {
|
|
413
|
-
Lr,
|
|
414
|
-
LrV,
|
|
415
|
-
Rl,
|
|
416
|
-
RlV,
|
|
417
|
-
Tb,
|
|
418
|
-
TbV,
|
|
419
|
-
TbRlV,
|
|
420
|
-
TbRl,
|
|
421
|
-
BtLr,
|
|
422
|
-
LrTbV,
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
*/
|
|
426
|
-
export enum ShdType {
|
|
427
|
-
Nil,
|
|
428
|
-
Clear,
|
|
429
|
-
Solid,
|
|
430
|
-
HorzStripe,
|
|
431
|
-
VertStripe,
|
|
432
|
-
ReverseDiagStripe,
|
|
433
|
-
DiagStripe,
|
|
434
|
-
HorzCross,
|
|
435
|
-
DiagCross,
|
|
436
|
-
ThinHorzStripe,
|
|
437
|
-
ThinVertStripe,
|
|
438
|
-
ThinReverseDiagStripe,
|
|
439
|
-
ThinDiagStripe,
|
|
440
|
-
ThinHorzCross,
|
|
441
|
-
ThinDiagCross,
|
|
442
|
-
Pct5,
|
|
443
|
-
Pct10,
|
|
444
|
-
Pct12,
|
|
445
|
-
Pct15,
|
|
446
|
-
Pct20,
|
|
447
|
-
Pct25,
|
|
448
|
-
Pct30,
|
|
449
|
-
Pct35,
|
|
450
|
-
Pct37,
|
|
451
|
-
Pct40,
|
|
452
|
-
Pct45,
|
|
453
|
-
Pct50,
|
|
454
|
-
Pct55,
|
|
455
|
-
Pct60,
|
|
456
|
-
Pct62,
|
|
457
|
-
Pct65,
|
|
458
|
-
Pct70,
|
|
459
|
-
Pct75,
|
|
460
|
-
Pct80,
|
|
461
|
-
Pct85,
|
|
462
|
-
Pct87,
|
|
463
|
-
Pct90,
|
|
464
|
-
Pct95,
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
*/
|
|
468
|
-
export enum VertAlignType {
|
|
469
|
-
Baseline,
|
|
470
|
-
SuperScript,
|
|
471
|
-
SubScript,
|
|
472
|
-
Unsupported,
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
*/
|
|
476
|
-
export enum VAlignType {
|
|
477
|
-
Top,
|
|
471
|
+
export enum TabValueType {
|
|
472
|
+
Bar,
|
|
478
473
|
Center,
|
|
479
|
-
|
|
480
|
-
|
|
474
|
+
Clear,
|
|
475
|
+
Decimal,
|
|
476
|
+
End,
|
|
477
|
+
Right,
|
|
478
|
+
Num,
|
|
479
|
+
Start,
|
|
480
|
+
Left,
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
483
|
*/
|
|
@@ -143,6 +143,14 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
143
143
|
WASM_VECTOR_LEN = offset;
|
|
144
144
|
return ptr;
|
|
145
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* @returns {LineSpacing}
|
|
148
|
+
*/
|
|
149
|
+
module.exports.createLineSpacing = function() {
|
|
150
|
+
var ret = wasm.createLineSpacing();
|
|
151
|
+
return LineSpacing.__wrap(ret);
|
|
152
|
+
};
|
|
153
|
+
|
|
146
154
|
/**
|
|
147
155
|
* @param {string} style_id
|
|
148
156
|
* @param {number} style_type
|
|
@@ -165,15 +173,6 @@ function _assertClass(instance, klass) {
|
|
|
165
173
|
}
|
|
166
174
|
return instance.ptr;
|
|
167
175
|
}
|
|
168
|
-
/**
|
|
169
|
-
* @param {number} position
|
|
170
|
-
* @returns {TableCellBorder}
|
|
171
|
-
*/
|
|
172
|
-
module.exports.createTableCellBorder = function(position) {
|
|
173
|
-
var ret = wasm.createTableCellBorder(position);
|
|
174
|
-
return TableCellBorder.__wrap(ret);
|
|
175
|
-
};
|
|
176
|
-
|
|
177
176
|
/**
|
|
178
177
|
* @returns {TableRow}
|
|
179
178
|
*/
|
|
@@ -223,11 +222,12 @@ module.exports.createInsert = function(run) {
|
|
|
223
222
|
};
|
|
224
223
|
|
|
225
224
|
/**
|
|
226
|
-
* @
|
|
225
|
+
* @param {number} position
|
|
226
|
+
* @returns {TableCellBorder}
|
|
227
227
|
*/
|
|
228
|
-
module.exports.
|
|
229
|
-
var ret = wasm.
|
|
230
|
-
return
|
|
228
|
+
module.exports.createTableCellBorder = function(position) {
|
|
229
|
+
var ret = wasm.createTableCellBorder(position);
|
|
230
|
+
return TableCellBorder.__wrap(ret);
|
|
231
231
|
};
|
|
232
232
|
|
|
233
233
|
/**
|
|
@@ -417,6 +417,18 @@ module.exports.createPageMargin = function() {
|
|
|
417
417
|
return PageMargin.__wrap(ret);
|
|
418
418
|
};
|
|
419
419
|
|
|
420
|
+
/**
|
|
421
|
+
*/
|
|
422
|
+
module.exports.AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",End:3,"3":"End",Left:4,"4":"Left",Right:5,"5":"Right",Justified:6,"6":"Justified",Unsupported:7,"7":"Unsupported", });
|
|
423
|
+
/**
|
|
424
|
+
*/
|
|
425
|
+
module.exports.HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
426
|
+
/**
|
|
427
|
+
*/
|
|
428
|
+
module.exports.LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
|
|
429
|
+
/**
|
|
430
|
+
*/
|
|
431
|
+
module.exports.TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy",Hyphen:2,"2":"Hyphen",MiddleDot:3,"3":"MiddleDot",None:4,"4":"None",Underscore:5,"5":"Underscore", });
|
|
420
432
|
/**
|
|
421
433
|
*/
|
|
422
434
|
module.exports.DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:1,"1":"Inline", });
|
|
@@ -425,25 +437,28 @@ module.exports.DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inlin
|
|
|
425
437
|
module.exports.PicAlign = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Bottom:2,"2":"Bottom",Top:3,"3":"Top", });
|
|
426
438
|
/**
|
|
427
439
|
*/
|
|
428
|
-
module.exports.
|
|
440
|
+
module.exports.VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
|
|
429
441
|
/**
|
|
430
442
|
*/
|
|
431
|
-
module.exports.
|
|
443
|
+
module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
|
|
432
444
|
/**
|
|
433
445
|
*/
|
|
434
|
-
module.exports.
|
|
446
|
+
module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
435
447
|
/**
|
|
436
448
|
*/
|
|
437
|
-
module.exports.
|
|
449
|
+
module.exports.ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
438
450
|
/**
|
|
439
451
|
*/
|
|
440
|
-
module.exports.
|
|
452
|
+
module.exports.TextDirectionType = Object.freeze({ Lr:0,"0":"Lr",LrV:1,"1":"LrV",Rl:2,"2":"Rl",RlV:3,"3":"RlV",Tb:4,"4":"Tb",TbV:5,"5":"TbV",TbRlV:6,"6":"TbRlV",TbRl:7,"7":"TbRl",BtLr:8,"8":"BtLr",LrTbV:9,"9":"LrTbV", });
|
|
441
453
|
/**
|
|
442
454
|
*/
|
|
443
|
-
module.exports.
|
|
455
|
+
module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
444
456
|
/**
|
|
445
457
|
*/
|
|
446
|
-
module.exports.
|
|
458
|
+
module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
459
|
+
/**
|
|
460
|
+
*/
|
|
461
|
+
module.exports.BorderType = Object.freeze({ Nil:0,"0":"Nil",None:1,"1":"None",Single:2,"2":"Single",Thick:3,"3":"Thick",Double:4,"4":"Double",Dotted:5,"5":"Dotted",Dashed:6,"6":"Dashed",DotDash:7,"7":"DotDash",DotDotDash:8,"8":"DotDotDash",Triple:9,"9":"Triple",ThinThickSmallGap:10,"10":"ThinThickSmallGap",ThickThinSmallGap:11,"11":"ThickThinSmallGap",ThinThickThinSmallGap:12,"12":"ThinThickThinSmallGap",ThinThickMediumGap:13,"13":"ThinThickMediumGap",ThickThinMediumGap:14,"14":"ThickThinMediumGap",ThinThickThinMediumGap:15,"15":"ThinThickThinMediumGap",ThinThickLargeGap:16,"16":"ThinThickLargeGap",ThickThinLargeGap:17,"17":"ThickThinLargeGap",ThinThickThinLargeGap:18,"18":"ThinThickThinLargeGap",Wave:19,"19":"Wave",DoubleWave:20,"20":"DoubleWave",DashSmallGap:21,"21":"DashSmallGap",DashDotStroked:22,"22":"DashDotStroked",ThreeDEmboss:23,"23":"ThreeDEmboss",ThreeDEngrave:24,"24":"ThreeDEngrave",Outset:25,"25":"Outset",Inset:26,"26":"Inset",Apples:27,"27":"Apples",ArchedScallops:28,"28":"ArchedScallops",BabyPacifier:29,"29":"BabyPacifier",BabyRattle:30,"30":"BabyRattle", });
|
|
447
462
|
/**
|
|
448
463
|
*/
|
|
449
464
|
module.exports.FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
|
|
@@ -455,16 +470,10 @@ module.exports.PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape"
|
|
|
455
470
|
module.exports.SectionType = Object.freeze({ NextPage:0,"0":"NextPage",NextColumn:1,"1":"NextColumn",Continuous:2,"2":"Continuous",EvenPage:3,"3":"EvenPage",OddPage:4,"4":"OddPage", });
|
|
456
471
|
/**
|
|
457
472
|
*/
|
|
458
|
-
module.exports.
|
|
459
|
-
/**
|
|
460
|
-
*/
|
|
461
|
-
module.exports.TableBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV", });
|
|
462
|
-
/**
|
|
463
|
-
*/
|
|
464
|
-
module.exports.TableCellBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
|
|
473
|
+
module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
|
|
465
474
|
/**
|
|
466
475
|
*/
|
|
467
|
-
module.exports.
|
|
476
|
+
module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
468
477
|
/**
|
|
469
478
|
*/
|
|
470
479
|
module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
|
|
@@ -473,7 +482,10 @@ module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"
|
|
|
473
482
|
module.exports.WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
|
|
474
483
|
/**
|
|
475
484
|
*/
|
|
476
|
-
module.exports.
|
|
485
|
+
module.exports.TableBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV", });
|
|
486
|
+
/**
|
|
487
|
+
*/
|
|
488
|
+
module.exports.TableCellBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
|
|
477
489
|
/**
|
|
478
490
|
*/
|
|
479
491
|
module.exports.RelativeFromHType = Object.freeze({
|
|
@@ -526,28 +538,16 @@ RightMargin:7,"7":"RightMargin", });
|
|
|
526
538
|
module.exports.RelativeFromVType = Object.freeze({ BottomMargin:0,"0":"BottomMargin",InsideMargin:1,"1":"InsideMargin",Line:2,"2":"Line",Margin:3,"3":"Margin",OutsizeMargin:4,"4":"OutsizeMargin",Page:5,"5":"Page",Paragraph:6,"6":"Paragraph",TopMargin:7,"7":"TopMargin", });
|
|
527
539
|
/**
|
|
528
540
|
*/
|
|
529
|
-
module.exports.
|
|
541
|
+
module.exports.StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
|
|
530
542
|
/**
|
|
531
543
|
*/
|
|
532
|
-
module.exports.
|
|
544
|
+
module.exports.DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
|
|
533
545
|
/**
|
|
534
546
|
*/
|
|
535
547
|
module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
536
548
|
/**
|
|
537
549
|
*/
|
|
538
|
-
module.exports.
|
|
539
|
-
/**
|
|
540
|
-
*/
|
|
541
|
-
module.exports.TextDirectionType = Object.freeze({ Lr:0,"0":"Lr",LrV:1,"1":"LrV",Rl:2,"2":"Rl",RlV:3,"3":"RlV",Tb:4,"4":"Tb",TbV:5,"5":"TbV",TbRlV:6,"6":"TbRlV",TbRl:7,"7":"TbRl",BtLr:8,"8":"BtLr",LrTbV:9,"9":"LrTbV", });
|
|
542
|
-
/**
|
|
543
|
-
*/
|
|
544
|
-
module.exports.ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
545
|
-
/**
|
|
546
|
-
*/
|
|
547
|
-
module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
548
|
-
/**
|
|
549
|
-
*/
|
|
550
|
-
module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
550
|
+
module.exports.TabValueType = Object.freeze({ Bar:0,"0":"Bar",Center:1,"1":"Center",Clear:2,"2":"Clear",Decimal:3,"3":"Decimal",End:4,"4":"End",Right:5,"5":"Right",Num:6,"6":"Num",Start:7,"7":"Start",Left:8,"8":"Left", });
|
|
551
551
|
/**
|
|
552
552
|
*/
|
|
553
553
|
class AbstractNumbering {
|
|
Binary file
|
|
@@ -13,6 +13,14 @@ export function runfonts_hi_ansi_theme(a: number, b: number, c: number): number;
|
|
|
13
13
|
export function runfonts_cs_theme(a: number, b: number, c: number): number;
|
|
14
14
|
export function runfonts_east_asia_theme(a: number, b: number, c: number): number;
|
|
15
15
|
export function runfonts_hint(a: number, b: number, c: number): number;
|
|
16
|
+
export function __wbg_linespacing_free(a: number): void;
|
|
17
|
+
export function createLineSpacing(): number;
|
|
18
|
+
export function linespacing_line_rule(a: number, b: number): number;
|
|
19
|
+
export function linespacing_before(a: number, b: number): number;
|
|
20
|
+
export function linespacing_after(a: number, b: number): number;
|
|
21
|
+
export function linespacing_before_lines(a: number, b: number): number;
|
|
22
|
+
export function linespacing_after_lines(a: number, b: number): number;
|
|
23
|
+
export function linespacing_line(a: number, b: number): number;
|
|
16
24
|
export function __wbg_style_free(a: number): void;
|
|
17
25
|
export function createStyle(a: number, b: number, c: number): number;
|
|
18
26
|
export function style_name(a: number, b: number, c: number): number;
|
|
@@ -29,14 +37,6 @@ export function style_indent(a: number, b: number, c: number, d: number, e: numb
|
|
|
29
37
|
export function style_outline_lvl(a: number, b: number): number;
|
|
30
38
|
export function style_table_property(a: number, b: number): number;
|
|
31
39
|
export function style_table_cell_property(a: number, b: number): number;
|
|
32
|
-
export function __wbg_tablecellborder_free(a: number): void;
|
|
33
|
-
export function createTableCellBorder(a: number): number;
|
|
34
|
-
export function tablecellborder_size(a: number, b: number): number;
|
|
35
|
-
export function tablecellborder_color(a: number, b: number, c: number): number;
|
|
36
|
-
export function tablecellborder_border_type(a: number, b: number): number;
|
|
37
|
-
export function tablecellborder_get_size(a: number): number;
|
|
38
|
-
export function tablecellborder_get_color(a: number, b: number): void;
|
|
39
|
-
export function tablecellborder_get_border_type(a: number): number;
|
|
40
40
|
export function __wbg_tablerow_free(a: number): void;
|
|
41
41
|
export function createTableRow(): number;
|
|
42
42
|
export function tablerow_add_cell(a: number, b: number): number;
|
|
@@ -52,21 +52,21 @@ export function __wbg_footer_free(a: number): void;
|
|
|
52
52
|
export function createFooter(): number;
|
|
53
53
|
export function footer_add_paragraph(a: number, b: number): number;
|
|
54
54
|
export function footer_add_table(a: number, b: number): number;
|
|
55
|
+
export function __wbg_header_free(a: number): void;
|
|
55
56
|
export function createHeader(): number;
|
|
56
57
|
export function header_add_paragraph(a: number, b: number): number;
|
|
57
58
|
export function header_add_table(a: number, b: number): number;
|
|
58
59
|
export function __wbg_insert_free(a: number): void;
|
|
59
60
|
export function createInsert(a: number): number;
|
|
60
61
|
export function insert_date(a: number, b: number, c: number): number;
|
|
61
|
-
export function
|
|
62
|
-
export function
|
|
63
|
-
export function
|
|
64
|
-
export function
|
|
65
|
-
export function
|
|
66
|
-
export function
|
|
67
|
-
export function
|
|
68
|
-
export function
|
|
69
|
-
export function __wbg_header_free(a: number): void;
|
|
62
|
+
export function __wbg_tablecellborder_free(a: number): void;
|
|
63
|
+
export function createTableCellBorder(a: number): number;
|
|
64
|
+
export function tablecellborder_size(a: number, b: number): number;
|
|
65
|
+
export function tablecellborder_color(a: number, b: number, c: number): number;
|
|
66
|
+
export function tablecellborder_border_type(a: number, b: number): number;
|
|
67
|
+
export function tablecellborder_get_size(a: number): number;
|
|
68
|
+
export function tablecellborder_get_color(a: number, b: number): void;
|
|
69
|
+
export function tablecellborder_get_border_type(a: number): number;
|
|
70
70
|
export function insert_author(a: number, b: number, c: number): number;
|
|
71
71
|
export function __wbg_level_free(a: number): void;
|
|
72
72
|
export function createLevel(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
package/dist/web/json/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare type DocxJSON = {
|
|
|
45
45
|
webSettings: WebSettingsJSON;
|
|
46
46
|
fontTable: {};
|
|
47
47
|
themes: ThemeJSON[];
|
|
48
|
-
images: [string, string, string][];
|
|
48
|
+
images: [string, string, string, string][];
|
|
49
49
|
};
|
|
50
50
|
export declare type SettingsJSON = {
|
|
51
51
|
docId: string | null;
|