docx-wasm 0.0.234 → 0.0.235-beta0

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.
@@ -30,12 +30,18 @@ export declare type TableRowPropertyJSON = {
30
30
  widthBefore: number | null;
31
31
  };
32
32
  export declare type TableCellJSON = {
33
- children: TableCellChildJSON[];
34
- property: TableCellPropertyJSON;
33
+ type: "tableCell";
34
+ data: {
35
+ children: TableCellChildJSON[];
36
+ property: TableCellPropertyJSON;
37
+ };
35
38
  };
36
39
  export declare type TableRowJSON = {
37
- cells: TableCellJSON[];
38
- property: TableRowPropertyJSON;
40
+ type: "tableRow";
41
+ data: {
42
+ cells: TableCellJSON[];
43
+ property: TableRowPropertyJSON;
44
+ };
39
45
  };
40
46
  export declare type TableCellMarginJSON = {
41
47
  val: number;
@@ -136,12 +136,6 @@ export enum StyleType {
136
136
  }
137
137
  /**
138
138
  */
139
- export enum TableLayoutType {
140
- Fixed,
141
- Autofit,
142
- }
143
- /**
144
- */
145
139
  export enum WidthType {
146
140
  DXA,
147
141
  Auto,
@@ -223,14 +217,6 @@ export enum DocGridType {
223
217
  }
224
218
  /**
225
219
  */
226
- export enum FieldCharType {
227
- Begin,
228
- Separate,
229
- End,
230
- Unsupported,
231
- }
232
- /**
233
- */
234
220
  export enum LineSpacingType {
235
221
  Auto,
236
222
  AtLeast,
@@ -251,17 +237,9 @@ export enum TabValueType {
251
237
  }
252
238
  /**
253
239
  */
254
- export enum TextDirectionType {
255
- Lr,
256
- LrV,
257
- Rl,
258
- RlV,
259
- Tb,
260
- TbV,
261
- TbRlV,
262
- TbRl,
263
- BtLr,
264
- LrTbV,
240
+ export enum TableLayoutType {
241
+ Fixed,
242
+ Autofit,
265
243
  }
266
244
  /**
267
245
  */
@@ -273,6 +251,14 @@ export enum BreakType {
273
251
  }
274
252
  /**
275
253
  */
254
+ export enum FieldCharType {
255
+ Begin,
256
+ Separate,
257
+ End,
258
+ Unsupported,
259
+ }
260
+ /**
261
+ */
276
262
  export enum ShdType {
277
263
  Nil,
278
264
  Clear,
@@ -315,6 +301,20 @@ export enum ShdType {
315
301
  }
316
302
  /**
317
303
  */
304
+ export enum TextDirectionType {
305
+ Lr,
306
+ LrV,
307
+ Rl,
308
+ RlV,
309
+ Tb,
310
+ TbV,
311
+ TbRlV,
312
+ TbRl,
313
+ BtLr,
314
+ LrTbV,
315
+ }
316
+ /**
317
+ */
318
318
  export enum VertAlignType {
319
319
  Baseline,
320
320
  SuperScript,
@@ -410,9 +410,6 @@ module.exports.createNumbering = function(id, abstract_num_id) {
410
410
  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", });
411
411
  /**
412
412
  */
413
- module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
414
- /**
415
- */
416
413
  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", });
417
414
  /**
418
415
  */
@@ -443,24 +440,27 @@ module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",H
443
440
  module.exports.DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
444
441
  /**
445
442
  */
446
- module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
447
- /**
448
- */
449
443
  module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
450
444
  /**
451
445
  */
452
446
  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", });
453
447
  /**
454
448
  */
455
- 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", });
449
+ module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
456
450
  /**
457
451
  */
458
452
  module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
459
453
  /**
460
454
  */
455
+ module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
456
+ /**
457
+ */
461
458
  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", });
462
459
  /**
463
460
  */
461
+ 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", });
462
+ /**
463
+ */
464
464
  module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
465
465
  /**
466
466
  */
Binary file
@@ -208,6 +208,7 @@ export function __wbg_footer_free(a: number): void;
208
208
  export function createFooter(): number;
209
209
  export function footer_add_paragraph(a: number, b: number): number;
210
210
  export function footer_add_table(a: number, b: number): number;
211
+ export function __wbg_header_free(a: number): void;
211
212
  export function createHeader(): number;
212
213
  export function header_add_paragraph(a: number, b: number): number;
213
214
  export function header_add_table(a: number, b: number): number;
@@ -223,7 +224,6 @@ export function linespacing_before_lines(a: number, b: number): number;
223
224
  export function linespacing_after_lines(a: number, b: number): number;
224
225
  export function linespacing_line(a: number, b: number): number;
225
226
  export function insert_author(a: number, b: number, c: number): number;
226
- export function __wbg_header_free(a: number): void;
227
227
  export function __wbg_abstractnumbering_free(a: number): void;
228
228
  export function createAbstractNumbering(a: number): number;
229
229
  export function abstractnumbering_add_level(a: number, b: number): number;
@@ -30,12 +30,18 @@ export declare type TableRowPropertyJSON = {
30
30
  widthBefore: number | null;
31
31
  };
32
32
  export declare type TableCellJSON = {
33
- children: TableCellChildJSON[];
34
- property: TableCellPropertyJSON;
33
+ type: "tableCell";
34
+ data: {
35
+ children: TableCellChildJSON[];
36
+ property: TableCellPropertyJSON;
37
+ };
35
38
  };
36
39
  export declare type TableRowJSON = {
37
- cells: TableCellJSON[];
38
- property: TableRowPropertyJSON;
40
+ type: "tableRow";
41
+ data: {
42
+ cells: TableCellJSON[];
43
+ property: TableRowPropertyJSON;
44
+ };
39
45
  };
40
46
  export declare type TableCellMarginJSON = {
41
47
  val: number;
@@ -136,12 +136,6 @@ export enum StyleType {
136
136
  }
137
137
  /**
138
138
  */
139
- export enum TableLayoutType {
140
- Fixed,
141
- Autofit,
142
- }
143
- /**
144
- */
145
139
  export enum WidthType {
146
140
  DXA,
147
141
  Auto,
@@ -223,14 +217,6 @@ export enum DocGridType {
223
217
  }
224
218
  /**
225
219
  */
226
- export enum FieldCharType {
227
- Begin,
228
- Separate,
229
- End,
230
- Unsupported,
231
- }
232
- /**
233
- */
234
220
  export enum LineSpacingType {
235
221
  Auto,
236
222
  AtLeast,
@@ -251,17 +237,9 @@ export enum TabValueType {
251
237
  }
252
238
  /**
253
239
  */
254
- export enum TextDirectionType {
255
- Lr,
256
- LrV,
257
- Rl,
258
- RlV,
259
- Tb,
260
- TbV,
261
- TbRlV,
262
- TbRl,
263
- BtLr,
264
- LrTbV,
240
+ export enum TableLayoutType {
241
+ Fixed,
242
+ Autofit,
265
243
  }
266
244
  /**
267
245
  */
@@ -273,6 +251,14 @@ export enum BreakType {
273
251
  }
274
252
  /**
275
253
  */
254
+ export enum FieldCharType {
255
+ Begin,
256
+ Separate,
257
+ End,
258
+ Unsupported,
259
+ }
260
+ /**
261
+ */
276
262
  export enum ShdType {
277
263
  Nil,
278
264
  Clear,
@@ -315,6 +301,20 @@ export enum ShdType {
315
301
  }
316
302
  /**
317
303
  */
304
+ export enum TextDirectionType {
305
+ Lr,
306
+ LrV,
307
+ Rl,
308
+ RlV,
309
+ Tb,
310
+ TbV,
311
+ TbRlV,
312
+ TbRl,
313
+ BtLr,
314
+ LrTbV,
315
+ }
316
+ /**
317
+ */
318
318
  export enum VertAlignType {
319
319
  Baseline,
320
320
  SuperScript,
@@ -411,9 +411,6 @@ export function createNumbering(id, abstract_num_id) {
411
411
  export const StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
412
412
  /**
413
413
  */
414
- export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
415
- /**
416
- */
417
414
  export const WidthType = Object.freeze({ DXA:0,"0":"DXA",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
418
415
  /**
419
416
  */
@@ -444,24 +441,27 @@ export const SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Han
444
441
  export const DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
445
442
  /**
446
443
  */
447
- export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
448
- /**
449
- */
450
444
  export const LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
451
445
  /**
452
446
  */
453
447
  export const 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", });
454
448
  /**
455
449
  */
456
- export const 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", });
450
+ export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
457
451
  /**
458
452
  */
459
453
  export const BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
460
454
  /**
461
455
  */
456
+ export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
457
+ /**
458
+ */
462
459
  export const 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", });
463
460
  /**
464
461
  */
462
+ export const 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", });
463
+ /**
464
+ */
465
465
  export const VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
466
466
  /**
467
467
  */
Binary file
@@ -208,6 +208,7 @@ export function __wbg_footer_free(a: number): void;
208
208
  export function createFooter(): number;
209
209
  export function footer_add_paragraph(a: number, b: number): number;
210
210
  export function footer_add_table(a: number, b: number): number;
211
+ export function __wbg_header_free(a: number): void;
211
212
  export function createHeader(): number;
212
213
  export function header_add_paragraph(a: number, b: number): number;
213
214
  export function header_add_table(a: number, b: number): number;
@@ -223,7 +224,6 @@ export function linespacing_before_lines(a: number, b: number): number;
223
224
  export function linespacing_after_lines(a: number, b: number): number;
224
225
  export function linespacing_line(a: number, b: number): number;
225
226
  export function insert_author(a: number, b: number, c: number): number;
226
- export function __wbg_header_free(a: number): void;
227
227
  export function __wbg_abstractnumbering_free(a: number): void;
228
228
  export function createAbstractNumbering(a: number): number;
229
229
  export function abstractnumbering_add_level(a: number, b: number): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docx-wasm",
3
- "version": "0.0.234",
3
+ "version": "0.0.235-beta0",
4
4
  "main": "dist/node/index.js",
5
5
  "browser": "dist/web/index.js",
6
6
  "author": "bokuweb <bokuweb12@gmail.com>",