docx-wasm 0.0.235 → 0.0.236

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.
@@ -18,6 +18,7 @@ export declare type RunFontsJSON = {
18
18
  hiAnsiTheme?: string;
19
19
  eastAsiaTheme?: string;
20
20
  csTheme?: string;
21
+ hint?: string;
21
22
  };
22
23
  export declare type RunPropertyJSON = {
23
24
  sz?: number | null;
@@ -34,8 +35,8 @@ export declare type RunPropertyJSON = {
34
35
  vanish?: boolean | null;
35
36
  spacing?: number | null;
36
37
  textBorder?: TextBorderJSON | null;
37
- ins?: InsertJSON['data'] | null;
38
- del?: DeleteJSON['data'] | null;
38
+ ins?: InsertJSON["data"] | null;
39
+ del?: DeleteJSON["data"] | null;
39
40
  strike?: boolean;
40
41
  };
41
42
  export declare type RunChildJSON = TextJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | CommentRangeStartJSON | CommentRangeEndJSON;
@@ -1,22 +1,29 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @returns {Table}
5
- */
6
- export function createTable(): Table;
7
- /**
8
- * @returns {TableCell}
4
+ * @param {number} id
5
+ * @returns {AbstractNumbering}
9
6
  */
10
- export function createTableCell(): TableCell;
7
+ export function createAbstractNumbering(id: number): AbstractNumbering;
11
8
  /**
12
9
  * @param {number} id
13
10
  * @returns {Comment}
14
11
  */
15
12
  export function createComment(id: number): Comment;
16
13
  /**
17
- * @returns {TableOfContentsItem}
14
+ * @returns {Table}
18
15
  */
19
- export function createTableOfContentsItem(): TableOfContentsItem;
16
+ export function createTable(): Table;
17
+ /**
18
+ * @param {number} id
19
+ * @param {number} abstract_num_id
20
+ * @returns {Numbering}
21
+ */
22
+ export function createNumbering(id: number, abstract_num_id: number): Numbering;
23
+ /**
24
+ * @returns {TableCell}
25
+ */
26
+ export function createTableCell(): TableCell;
20
27
  /**
21
28
  * @returns {TableRow}
22
29
  */
@@ -26,6 +33,10 @@ export function createTableRow(): TableRow;
26
33
  */
27
34
  export function createHyperlink(): Hyperlink;
28
35
  /**
36
+ * @returns {TableOfContentsItem}
37
+ */
38
+ export function createTableOfContentsItem(): TableOfContentsItem;
39
+ /**
29
40
  * @param {Uint8Array} buf
30
41
  * @returns {string}
31
42
  */
@@ -79,24 +90,11 @@ export function createRun(): Run;
79
90
  */
80
91
  export function createStyle(style_id: string, style_type: number): Style;
81
92
  /**
82
- * @param {number} position
83
- * @returns {TableCellBorder}
84
- */
85
- export function createTableCellBorder(position: number): TableCellBorder;
86
- /**
87
93
  * @param {Run} run
88
94
  * @returns {Delete}
89
95
  */
90
96
  export function createDelete(run: Run): Delete;
91
97
  /**
92
- * @returns {Footer}
93
- */
94
- export function createFooter(): Footer;
95
- /**
96
- * @returns {Header}
97
- */
98
- export function createHeader(): Header;
99
- /**
100
98
  * @param {Run} run
101
99
  * @returns {Insert}
102
100
  */
@@ -106,10 +104,18 @@ export function createInsert(run: Run): Insert;
106
104
  */
107
105
  export function createLineSpacing(): LineSpacing;
108
106
  /**
109
- * @param {number} id
110
- * @returns {AbstractNumbering}
107
+ * @param {number} position
108
+ * @returns {TableCellBorder}
111
109
  */
112
- export function createAbstractNumbering(id: number): AbstractNumbering;
110
+ export function createTableCellBorder(position: number): TableCellBorder;
111
+ /**
112
+ * @returns {Footer}
113
+ */
114
+ export function createFooter(): Footer;
115
+ /**
116
+ * @returns {Header}
117
+ */
118
+ export function createHeader(): Header;
113
119
  /**
114
120
  * @param {number} id
115
121
  * @param {number} start
@@ -120,12 +126,6 @@ export function createAbstractNumbering(id: number): AbstractNumbering;
120
126
  */
121
127
  export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
122
128
  /**
123
- * @param {number} id
124
- * @param {number} abstract_num_id
125
- * @returns {Numbering}
126
- */
127
- export function createNumbering(id: number, abstract_num_id: number): Numbering;
128
- /**
129
129
  */
130
130
  export enum StyleType {
131
131
  Paragraph,
@@ -145,6 +145,32 @@ export enum WidthType {
145
145
  }
146
146
  /**
147
147
  */
148
+ export enum AlignmentType {
149
+ Both,
150
+ Center,
151
+ Distribute,
152
+ End,
153
+ Left,
154
+ Right,
155
+ Justified,
156
+ Unsupported,
157
+ }
158
+ /**
159
+ */
160
+ export enum HeightRule {
161
+ Auto,
162
+ AtLeast,
163
+ Exact,
164
+ }
165
+ /**
166
+ */
167
+ export enum LevelSuffixType {
168
+ Nothing,
169
+ Space,
170
+ Tab,
171
+ }
172
+ /**
173
+ */
148
174
  export enum TableBorderPosition {
149
175
  Left,
150
176
  Right,
@@ -167,6 +193,16 @@ export enum TableCellBorderPosition {
167
193
  }
168
194
  /**
169
195
  */
196
+ export enum TabLeaderType {
197
+ Dot,
198
+ Heavy,
199
+ Hyphen,
200
+ MiddleDot,
201
+ None,
202
+ Underscore,
203
+ }
204
+ /**
205
+ */
170
206
  export enum VMergeType {
171
207
  Continue,
172
208
  Restart,
@@ -174,13 +210,6 @@ export enum VMergeType {
174
210
  }
175
211
  /**
176
212
  */
177
- export enum TableAlignmentType {
178
- Center,
179
- Left,
180
- Right,
181
- }
182
- /**
183
- */
184
213
  export enum FontPitchType {
185
214
  Default,
186
215
  Fixed,
@@ -209,6 +238,13 @@ export enum SpecialIndentKind {
209
238
  }
210
239
  /**
211
240
  */
241
+ export enum TableAlignmentType {
242
+ Center,
243
+ Left,
244
+ Right,
245
+ }
246
+ /**
247
+ */
212
248
  export enum DocGridType {
213
249
  Default,
214
250
  Lines,
@@ -243,14 +279,6 @@ export enum TableLayoutType {
243
279
  }
244
280
  /**
245
281
  */
246
- export enum BreakType {
247
- Page,
248
- Column,
249
- TextWrapping,
250
- Unsupported,
251
- }
252
- /**
253
- */
254
282
  export enum FieldCharType {
255
283
  Begin,
256
284
  Separate,
@@ -259,6 +287,28 @@ export enum FieldCharType {
259
287
  }
260
288
  /**
261
289
  */
290
+ export enum TextDirectionType {
291
+ Lr,
292
+ LrV,
293
+ Rl,
294
+ RlV,
295
+ Tb,
296
+ TbV,
297
+ TbRlV,
298
+ TbRl,
299
+ BtLr,
300
+ LrTbV,
301
+ }
302
+ /**
303
+ */
304
+ export enum BreakType {
305
+ Page,
306
+ Column,
307
+ TextWrapping,
308
+ Unsupported,
309
+ }
310
+ /**
311
+ */
262
312
  export enum ShdType {
263
313
  Nil,
264
314
  Clear,
@@ -301,17 +351,11 @@ export enum ShdType {
301
351
  }
302
352
  /**
303
353
  */
304
- export enum TextDirectionType {
305
- Lr,
306
- LrV,
307
- Rl,
308
- RlV,
309
- Tb,
310
- TbV,
311
- TbRlV,
312
- TbRl,
313
- BtLr,
314
- LrTbV,
354
+ export enum VAlignType {
355
+ Top,
356
+ Center,
357
+ Bottom,
358
+ Unsupported,
315
359
  }
316
360
  /**
317
361
  */
@@ -323,14 +367,6 @@ export enum VertAlignType {
323
367
  }
324
368
  /**
325
369
  */
326
- export enum VAlignType {
327
- Top,
328
- Center,
329
- Bottom,
330
- Unsupported,
331
- }
332
- /**
333
- */
334
370
  export enum BorderType {
335
371
  Nil,
336
372
  None,
@@ -366,42 +402,6 @@ export enum BorderType {
366
402
  }
367
403
  /**
368
404
  */
369
- export enum AlignmentType {
370
- Both,
371
- Center,
372
- Distribute,
373
- End,
374
- Left,
375
- Right,
376
- Justified,
377
- Unsupported,
378
- }
379
- /**
380
- */
381
- export enum HeightRule {
382
- Auto,
383
- AtLeast,
384
- Exact,
385
- }
386
- /**
387
- */
388
- export enum LevelSuffixType {
389
- Nothing,
390
- Space,
391
- Tab,
392
- }
393
- /**
394
- */
395
- export enum TabLeaderType {
396
- Dot,
397
- Heavy,
398
- Hyphen,
399
- MiddleDot,
400
- None,
401
- Underscore,
402
- }
403
- /**
404
- */
405
405
  export class AbstractNumbering {
406
406
  free(): void;
407
407
  /**
@@ -1157,6 +1157,31 @@ export class RunFonts {
1157
1157
  * @returns {RunFonts}
1158
1158
  */
1159
1159
  east_asia(f: string): RunFonts;
1160
+ /**
1161
+ * @param {string} f
1162
+ * @returns {RunFonts}
1163
+ */
1164
+ ascii_theme(f: string): RunFonts;
1165
+ /**
1166
+ * @param {string} f
1167
+ * @returns {RunFonts}
1168
+ */
1169
+ hi_ansi_theme(f: string): RunFonts;
1170
+ /**
1171
+ * @param {string} f
1172
+ * @returns {RunFonts}
1173
+ */
1174
+ cs_theme(f: string): RunFonts;
1175
+ /**
1176
+ * @param {string} f
1177
+ * @returns {RunFonts}
1178
+ */
1179
+ east_asia_theme(f: string): RunFonts;
1180
+ /**
1181
+ * @param {string} f
1182
+ * @returns {RunFonts}
1183
+ */
1184
+ hint(f: string): RunFonts;
1160
1185
  }
1161
1186
  /**
1162
1187
  */