docx-wasm 0.0.277-sdt0 → 0.0.277-sdt2
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/pkg/docx_wasm.d.ts +44 -35
- package/dist/node/pkg/docx_wasm.js +72 -50
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +41 -39
- package/dist/node/table-cell.d.ts +3 -1
- package/dist/node/table-cell.js +13 -0
- package/dist/node/table-cell.js.map +1 -1
- package/dist/node/table-of-contents.d.ts +2 -0
- package/dist/node/table-of-contents.js +8 -0
- package/dist/node/table-of-contents.js.map +1 -1
- package/dist/web/pkg/docx_wasm.d.ts +44 -35
- package/dist/web/pkg/docx_wasm_bg.js +72 -50
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +41 -39
- package/dist/web/table-cell.d.ts +3 -1
- package/dist/web/table-cell.js +13 -0
- package/dist/web/table-cell.js.map +1 -1
- package/dist/web/table-of-contents.d.ts +2 -0
- package/dist/web/table-of-contents.js +8 -0
- package/dist/web/table-of-contents.js.map +1 -1
- package/js/table-cell.ts +13 -1
- package/js/table-of-contents.ts +10 -0
- package/package.json +1 -1
|
@@ -5,15 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export function createTableOfContentsItem(): TableOfContentsItem;
|
|
7
7
|
/**
|
|
8
|
-
* @returns {TableOfContents}
|
|
9
|
-
*/
|
|
10
|
-
export function createTableOfContents(): TableOfContents;
|
|
11
|
-
/**
|
|
12
|
-
* @param {string} s
|
|
13
|
-
* @returns {TableOfContents}
|
|
14
|
-
*/
|
|
15
|
-
export function createTableOfContentsWithInstrText(s: string): TableOfContents;
|
|
16
|
-
/**
|
|
17
8
|
* @param {Run} run
|
|
18
9
|
* @returns {Delete}
|
|
19
10
|
*/
|
|
@@ -55,34 +46,34 @@ export function createTable(): Table;
|
|
|
55
46
|
export function createAbstractNumbering(id: number): AbstractNumbering;
|
|
56
47
|
/**
|
|
57
48
|
* @param {number} id
|
|
58
|
-
* @param {number} start
|
|
59
|
-
* @param {string} format
|
|
60
|
-
* @param {string} text
|
|
61
|
-
* @param {string} jc
|
|
62
|
-
* @returns {Level}
|
|
63
|
-
*/
|
|
64
|
-
export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
|
|
65
|
-
/**
|
|
66
|
-
* @param {number} id
|
|
67
49
|
* @param {number} abstract_num_id
|
|
68
50
|
* @returns {Numbering}
|
|
69
51
|
*/
|
|
70
52
|
export function createNumbering(id: number, abstract_num_id: number): Numbering;
|
|
71
53
|
/**
|
|
54
|
+
* @returns {TableCell}
|
|
55
|
+
*/
|
|
56
|
+
export function createTableCell(): TableCell;
|
|
57
|
+
/**
|
|
72
58
|
* @param {number} id
|
|
73
59
|
* @returns {Comment}
|
|
74
60
|
*/
|
|
75
61
|
export function createComment(id: number): Comment;
|
|
76
62
|
/**
|
|
63
|
+
* @param {number} id
|
|
64
|
+
* @param {number} start
|
|
65
|
+
* @param {string} format
|
|
66
|
+
* @param {string} text
|
|
67
|
+
* @param {string} jc
|
|
68
|
+
* @returns {Level}
|
|
69
|
+
*/
|
|
70
|
+
export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
|
|
71
|
+
/**
|
|
77
72
|
* @param {Uint8Array} buf
|
|
78
73
|
* @returns {Pic}
|
|
79
74
|
*/
|
|
80
75
|
export function createPic(buf: Uint8Array): Pic;
|
|
81
76
|
/**
|
|
82
|
-
* @returns {TableCell}
|
|
83
|
-
*/
|
|
84
|
-
export function createTableCell(): TableCell;
|
|
85
|
-
/**
|
|
86
77
|
* @param {string} v
|
|
87
78
|
* @param {number} t
|
|
88
79
|
* @returns {Hyperlink}
|
|
@@ -138,6 +129,15 @@ export function createDocx(): Docx;
|
|
|
138
129
|
*/
|
|
139
130
|
export function createPageMargin(): PageMargin;
|
|
140
131
|
/**
|
|
132
|
+
* @returns {TableOfContents}
|
|
133
|
+
*/
|
|
134
|
+
export function createTableOfContents(): TableOfContents;
|
|
135
|
+
/**
|
|
136
|
+
* @param {string} s
|
|
137
|
+
* @returns {TableOfContents}
|
|
138
|
+
*/
|
|
139
|
+
export function createTableOfContentsWithInstrText(s: string): TableOfContents;
|
|
140
|
+
/**
|
|
141
141
|
*/
|
|
142
142
|
export enum BorderType {
|
|
143
143
|
Nil,
|
|
@@ -196,6 +196,12 @@ export enum HeightRule {
|
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
198
198
|
*/
|
|
199
|
+
export enum HyperlinkType {
|
|
200
|
+
Anchor,
|
|
201
|
+
External,
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
*/
|
|
199
205
|
export enum LevelSuffixType {
|
|
200
206
|
Nothing,
|
|
201
207
|
Space,
|
|
@@ -284,13 +290,6 @@ export enum TabValueType {
|
|
|
284
290
|
}
|
|
285
291
|
/**
|
|
286
292
|
*/
|
|
287
|
-
export enum LineSpacingType {
|
|
288
|
-
Auto,
|
|
289
|
-
AtLeast,
|
|
290
|
-
Exact,
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
*/
|
|
294
293
|
export enum TextDirectionType {
|
|
295
294
|
Lr,
|
|
296
295
|
LrV,
|
|
@@ -313,6 +312,13 @@ export enum BreakType {
|
|
|
313
312
|
}
|
|
314
313
|
/**
|
|
315
314
|
*/
|
|
315
|
+
export enum LineSpacingType {
|
|
316
|
+
Auto,
|
|
317
|
+
AtLeast,
|
|
318
|
+
Exact,
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
*/
|
|
316
322
|
export enum ShdType {
|
|
317
323
|
Nil,
|
|
318
324
|
Clear,
|
|
@@ -384,12 +390,6 @@ export enum AlignmentType {
|
|
|
384
390
|
}
|
|
385
391
|
/**
|
|
386
392
|
*/
|
|
387
|
-
export enum HyperlinkType {
|
|
388
|
-
Anchor,
|
|
389
|
-
External,
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
*/
|
|
393
393
|
export enum TabLeaderType {
|
|
394
394
|
Dot,
|
|
395
395
|
Heavy,
|
|
@@ -1583,6 +1583,11 @@ export class TableCell {
|
|
|
1583
1583
|
*/
|
|
1584
1584
|
add_table(t: Table): TableCell;
|
|
1585
1585
|
/**
|
|
1586
|
+
* @param {TableOfContents} t
|
|
1587
|
+
* @returns {TableCell}
|
|
1588
|
+
*/
|
|
1589
|
+
add_table_of_contents(t: TableOfContents): TableCell;
|
|
1590
|
+
/**
|
|
1586
1591
|
* @param {number} t
|
|
1587
1592
|
* @returns {TableCell}
|
|
1588
1593
|
*/
|
|
@@ -1710,6 +1715,10 @@ export class TableOfContents {
|
|
|
1710
1715
|
*/
|
|
1711
1716
|
dirty(): TableOfContents;
|
|
1712
1717
|
/**
|
|
1718
|
+
* @returns {TableOfContents}
|
|
1719
|
+
*/
|
|
1720
|
+
without_sdt(): TableOfContents;
|
|
1721
|
+
/**
|
|
1713
1722
|
* @param {string} author
|
|
1714
1723
|
* @param {string} date
|
|
1715
1724
|
* @returns {TableOfContents}
|
|
@@ -109,24 +109,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
109
109
|
WASM_VECTOR_LEN = offset;
|
|
110
110
|
return ptr;
|
|
111
111
|
}
|
|
112
|
-
/**
|
|
113
|
-
* @returns {TableOfContents}
|
|
114
|
-
*/
|
|
115
|
-
module.exports.createTableOfContents = function() {
|
|
116
|
-
var ret = wasm.createTableOfContents();
|
|
117
|
-
return TableOfContents.__wrap(ret);
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @param {string} s
|
|
122
|
-
* @returns {TableOfContents}
|
|
123
|
-
*/
|
|
124
|
-
module.exports.createTableOfContentsWithInstrText = function(s) {
|
|
125
|
-
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
126
|
-
var len0 = WASM_VECTOR_LEN;
|
|
127
|
-
var ret = wasm.createTableOfContentsWithInstrText(ptr0, len0);
|
|
128
|
-
return TableOfContents.__wrap(ret);
|
|
129
|
-
};
|
|
130
112
|
|
|
131
113
|
function _assertClass(instance, klass) {
|
|
132
114
|
if (!(instance instanceof klass)) {
|
|
@@ -237,6 +219,33 @@ module.exports.createAbstractNumbering = function(id) {
|
|
|
237
219
|
return AbstractNumbering.__wrap(ret);
|
|
238
220
|
};
|
|
239
221
|
|
|
222
|
+
/**
|
|
223
|
+
* @param {number} id
|
|
224
|
+
* @param {number} abstract_num_id
|
|
225
|
+
* @returns {Numbering}
|
|
226
|
+
*/
|
|
227
|
+
module.exports.createNumbering = function(id, abstract_num_id) {
|
|
228
|
+
var ret = wasm.createNumbering(id, abstract_num_id);
|
|
229
|
+
return Numbering.__wrap(ret);
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @returns {TableCell}
|
|
234
|
+
*/
|
|
235
|
+
module.exports.createTableCell = function() {
|
|
236
|
+
var ret = wasm.createTableCell();
|
|
237
|
+
return TableCell.__wrap(ret);
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @param {number} id
|
|
242
|
+
* @returns {Comment}
|
|
243
|
+
*/
|
|
244
|
+
module.exports.createComment = function(id) {
|
|
245
|
+
var ret = wasm.createComment(id);
|
|
246
|
+
return Comment.__wrap(ret);
|
|
247
|
+
};
|
|
248
|
+
|
|
240
249
|
/**
|
|
241
250
|
* @param {number} id
|
|
242
251
|
* @param {number} start
|
|
@@ -259,24 +268,6 @@ module.exports.createLevel = function(id, start, format, text, jc) {
|
|
|
259
268
|
function isLikeNone(x) {
|
|
260
269
|
return x === undefined || x === null;
|
|
261
270
|
}
|
|
262
|
-
/**
|
|
263
|
-
* @param {number} id
|
|
264
|
-
* @param {number} abstract_num_id
|
|
265
|
-
* @returns {Numbering}
|
|
266
|
-
*/
|
|
267
|
-
module.exports.createNumbering = function(id, abstract_num_id) {
|
|
268
|
-
var ret = wasm.createNumbering(id, abstract_num_id);
|
|
269
|
-
return Numbering.__wrap(ret);
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @param {number} id
|
|
274
|
-
* @returns {Comment}
|
|
275
|
-
*/
|
|
276
|
-
module.exports.createComment = function(id) {
|
|
277
|
-
var ret = wasm.createComment(id);
|
|
278
|
-
return Comment.__wrap(ret);
|
|
279
|
-
};
|
|
280
271
|
|
|
281
272
|
function passArray8ToWasm0(arg, malloc) {
|
|
282
273
|
const ptr = malloc(arg.length * 1);
|
|
@@ -295,14 +286,6 @@ module.exports.createPic = function(buf) {
|
|
|
295
286
|
return Pic.__wrap(ret);
|
|
296
287
|
};
|
|
297
288
|
|
|
298
|
-
/**
|
|
299
|
-
* @returns {TableCell}
|
|
300
|
-
*/
|
|
301
|
-
module.exports.createTableCell = function() {
|
|
302
|
-
var ret = wasm.createTableCell();
|
|
303
|
-
return TableCell.__wrap(ret);
|
|
304
|
-
};
|
|
305
|
-
|
|
306
289
|
/**
|
|
307
290
|
* @param {string} v
|
|
308
291
|
* @param {number} t
|
|
@@ -429,6 +412,25 @@ module.exports.createPageMargin = function() {
|
|
|
429
412
|
return PageMargin.__wrap(ret);
|
|
430
413
|
};
|
|
431
414
|
|
|
415
|
+
/**
|
|
416
|
+
* @returns {TableOfContents}
|
|
417
|
+
*/
|
|
418
|
+
module.exports.createTableOfContents = function() {
|
|
419
|
+
var ret = wasm.createTableOfContents();
|
|
420
|
+
return TableOfContents.__wrap(ret);
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* @param {string} s
|
|
425
|
+
* @returns {TableOfContents}
|
|
426
|
+
*/
|
|
427
|
+
module.exports.createTableOfContentsWithInstrText = function(s) {
|
|
428
|
+
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
429
|
+
var len0 = WASM_VECTOR_LEN;
|
|
430
|
+
var ret = wasm.createTableOfContentsWithInstrText(ptr0, len0);
|
|
431
|
+
return TableOfContents.__wrap(ret);
|
|
432
|
+
};
|
|
433
|
+
|
|
432
434
|
/**
|
|
433
435
|
*/
|
|
434
436
|
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", });
|
|
@@ -443,6 +445,9 @@ module.exports.PicAlign = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",
|
|
|
443
445
|
module.exports.HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
444
446
|
/**
|
|
445
447
|
*/
|
|
448
|
+
module.exports.HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
|
|
449
|
+
/**
|
|
450
|
+
*/
|
|
446
451
|
module.exports.LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
|
|
447
452
|
/**
|
|
448
453
|
*/
|
|
@@ -502,15 +507,15 @@ module.exports.RelativeFromVType = Object.freeze({ BottomMargin:0,"0":"BottomMar
|
|
|
502
507
|
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", });
|
|
503
508
|
/**
|
|
504
509
|
*/
|
|
505
|
-
module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
506
|
-
/**
|
|
507
|
-
*/
|
|
508
510
|
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", });
|
|
509
511
|
/**
|
|
510
512
|
*/
|
|
511
513
|
module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
|
|
512
514
|
/**
|
|
513
515
|
*/
|
|
516
|
+
module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
517
|
+
/**
|
|
518
|
+
*/
|
|
514
519
|
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", });
|
|
515
520
|
/**
|
|
516
521
|
*/
|
|
@@ -523,9 +528,6 @@ module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center
|
|
|
523
528
|
module.exports.AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",Start:3,"3":"Start",End:4,"4":"End",Left:5,"5":"Left",Right:6,"6":"Right",Justified:7,"7":"Justified",Unsupported:8,"8":"Unsupported", });
|
|
524
529
|
/**
|
|
525
530
|
*/
|
|
526
|
-
module.exports.HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
|
|
527
|
-
/**
|
|
528
|
-
*/
|
|
529
531
|
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", });
|
|
530
532
|
/**
|
|
531
533
|
*/
|
|
@@ -3076,6 +3078,18 @@ class TableCell {
|
|
|
3076
3078
|
return TableCell.__wrap(ret);
|
|
3077
3079
|
}
|
|
3078
3080
|
/**
|
|
3081
|
+
* @param {TableOfContents} t
|
|
3082
|
+
* @returns {TableCell}
|
|
3083
|
+
*/
|
|
3084
|
+
add_table_of_contents(t) {
|
|
3085
|
+
const ptr = this.__destroy_into_raw();
|
|
3086
|
+
_assertClass(t, TableOfContents);
|
|
3087
|
+
var ptr0 = t.ptr;
|
|
3088
|
+
t.ptr = 0;
|
|
3089
|
+
var ret = wasm.tablecell_add_table_of_contents(ptr, ptr0);
|
|
3090
|
+
return TableCell.__wrap(ret);
|
|
3091
|
+
}
|
|
3092
|
+
/**
|
|
3079
3093
|
* @param {number} t
|
|
3080
3094
|
* @returns {TableCell}
|
|
3081
3095
|
*/
|
|
@@ -3370,6 +3384,14 @@ class TableOfContents {
|
|
|
3370
3384
|
return TableOfContents.__wrap(ret);
|
|
3371
3385
|
}
|
|
3372
3386
|
/**
|
|
3387
|
+
* @returns {TableOfContents}
|
|
3388
|
+
*/
|
|
3389
|
+
without_sdt() {
|
|
3390
|
+
const ptr = this.__destroy_into_raw();
|
|
3391
|
+
var ret = wasm.tableofcontents_without_sdt(ptr);
|
|
3392
|
+
return TableOfContents.__wrap(ret);
|
|
3393
|
+
}
|
|
3394
|
+
/**
|
|
3373
3395
|
* @param {string} author
|
|
3374
3396
|
* @param {string} date
|
|
3375
3397
|
* @returns {TableOfContents}
|
|
Binary file
|
|
@@ -7,22 +7,6 @@ export function tableofcontentsitem_text(a: number, b: number, c: number): numbe
|
|
|
7
7
|
export function tableofcontentsitem_toc_key(a: number, b: number, c: number): number;
|
|
8
8
|
export function tableofcontentsitem_level(a: number, b: number): number;
|
|
9
9
|
export function tableofcontentsitem_page_ref(a: number, b: number, c: number): number;
|
|
10
|
-
export function __wbg_tableofcontents_free(a: number): void;
|
|
11
|
-
export function createTableOfContents(): number;
|
|
12
|
-
export function createTableOfContentsWithInstrText(a: number, b: number): number;
|
|
13
|
-
export function tableofcontents_heading_styles_range(a: number, b: number, c: number): number;
|
|
14
|
-
export function tableofcontents_add_style_with_level(a: number, b: number, c: number, d: number): number;
|
|
15
|
-
export function tableofcontents_hyperlink(a: number): number;
|
|
16
|
-
export function tableofcontents_alias(a: number, b: number, c: number): number;
|
|
17
|
-
export function tableofcontents_page_ref_placeholder(a: number, b: number, c: number): number;
|
|
18
|
-
export function tableofcontents_add_item(a: number, b: number): number;
|
|
19
|
-
export function tableofcontents_auto(a: number): number;
|
|
20
|
-
export function tableofcontents_dirty(a: number): number;
|
|
21
|
-
export function tableofcontents_delete(a: number, b: number, c: number, d: number, e: number): number;
|
|
22
|
-
export function tableofcontents_add_before_paragraph(a: number, b: number): number;
|
|
23
|
-
export function tableofcontents_add_after_paragraph(a: number, b: number): number;
|
|
24
|
-
export function tableofcontents_add_before_table(a: number, b: number): number;
|
|
25
|
-
export function tableofcontents_add_after_table(a: number, b: number): number;
|
|
26
10
|
export function __wbg_delete_free(a: number): void;
|
|
27
11
|
export function createDelete(a: number): number;
|
|
28
12
|
export function delete_author(a: number, b: number, c: number): number;
|
|
@@ -79,6 +63,30 @@ export function table_cell_margin_left(a: number, b: number, c: number): number;
|
|
|
79
63
|
export function __wbg_abstractnumbering_free(a: number): void;
|
|
80
64
|
export function createAbstractNumbering(a: number): number;
|
|
81
65
|
export function abstractnumbering_add_level(a: number, b: number): number;
|
|
66
|
+
export function __wbg_numbering_free(a: number): void;
|
|
67
|
+
export function createNumbering(a: number, b: number): number;
|
|
68
|
+
export function numbering_add_override(a: number, b: number): number;
|
|
69
|
+
export function __wbg_tablecell_free(a: number): void;
|
|
70
|
+
export function createTableCell(): number;
|
|
71
|
+
export function tablecell_add_paragraph(a: number, b: number): number;
|
|
72
|
+
export function tablecell_add_table(a: number, b: number): number;
|
|
73
|
+
export function tablecell_add_table_of_contents(a: number, b: number): number;
|
|
74
|
+
export function tablecell_vertical_merge(a: number, b: number): number;
|
|
75
|
+
export function tablecell_vertical_align(a: number, b: number): number;
|
|
76
|
+
export function tablecell_grid_span(a: number, b: number): number;
|
|
77
|
+
export function tablecell_width(a: number, b: number): number;
|
|
78
|
+
export function tablecell_shading(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number;
|
|
79
|
+
export function tablecell_text_direction(a: number, b: number): number;
|
|
80
|
+
export function tablecell_set_border(a: number, b: number): number;
|
|
81
|
+
export function tablecell_clear_border(a: number, b: number): number;
|
|
82
|
+
export function tablecell_clear_all_border(a: number): number;
|
|
83
|
+
export function __wbg_comment_free(a: number): void;
|
|
84
|
+
export function createComment(a: number): number;
|
|
85
|
+
export function comment_author(a: number, b: number, c: number): number;
|
|
86
|
+
export function comment_date(a: number, b: number, c: number): number;
|
|
87
|
+
export function comment_add_paragraph(a: number, b: number): number;
|
|
88
|
+
export function comment_parent_comment_id(a: number, b: number): number;
|
|
89
|
+
export function comment_id(a: number): number;
|
|
82
90
|
export function __wbg_level_free(a: number): void;
|
|
83
91
|
export function createLevel(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
84
92
|
export function level_indent(a: number, b: number, c: number, d: number, e: number): number;
|
|
@@ -92,16 +100,6 @@ export function level_underline(a: number, b: number, c: number): number;
|
|
|
92
100
|
export function level_vanish(a: number): number;
|
|
93
101
|
export function level_fonts(a: number, b: number): number;
|
|
94
102
|
export function level_spacing(a: number, b: number): number;
|
|
95
|
-
export function __wbg_numbering_free(a: number): void;
|
|
96
|
-
export function createNumbering(a: number, b: number): number;
|
|
97
|
-
export function numbering_add_override(a: number, b: number): number;
|
|
98
|
-
export function __wbg_comment_free(a: number): void;
|
|
99
|
-
export function createComment(a: number): number;
|
|
100
|
-
export function comment_author(a: number, b: number, c: number): number;
|
|
101
|
-
export function comment_date(a: number, b: number, c: number): number;
|
|
102
|
-
export function comment_add_paragraph(a: number, b: number): number;
|
|
103
|
-
export function comment_parent_comment_id(a: number, b: number): number;
|
|
104
|
-
export function comment_id(a: number): number;
|
|
105
103
|
export function __wbg_pic_free(a: number): void;
|
|
106
104
|
export function createPic(a: number, b: number): number;
|
|
107
105
|
export function pic_size(a: number, b: number, c: number): number;
|
|
@@ -109,19 +107,6 @@ export function pic_rotate(a: number, b: number): number;
|
|
|
109
107
|
export function pic_floating(a: number): number;
|
|
110
108
|
export function pic_offset_x(a: number, b: number): number;
|
|
111
109
|
export function pic_offset_y(a: number, b: number): number;
|
|
112
|
-
export function __wbg_tablecell_free(a: number): void;
|
|
113
|
-
export function createTableCell(): number;
|
|
114
|
-
export function tablecell_add_paragraph(a: number, b: number): number;
|
|
115
|
-
export function tablecell_add_table(a: number, b: number): number;
|
|
116
|
-
export function tablecell_vertical_merge(a: number, b: number): number;
|
|
117
|
-
export function tablecell_vertical_align(a: number, b: number): number;
|
|
118
|
-
export function tablecell_grid_span(a: number, b: number): number;
|
|
119
|
-
export function tablecell_width(a: number, b: number): number;
|
|
120
|
-
export function tablecell_shading(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number;
|
|
121
|
-
export function tablecell_text_direction(a: number, b: number): number;
|
|
122
|
-
export function tablecell_set_border(a: number, b: number): number;
|
|
123
|
-
export function tablecell_clear_border(a: number, b: number): number;
|
|
124
|
-
export function tablecell_clear_all_border(a: number): number;
|
|
125
110
|
export function __wbg_hyperlink_free(a: number): void;
|
|
126
111
|
export function createHyperlink(a: number, b: number, c: number): number;
|
|
127
112
|
export function hyperlink_add_run(a: number, b: number): number;
|
|
@@ -285,6 +270,23 @@ export function pagemargin_right(a: number, b: number): number;
|
|
|
285
270
|
export function pagemargin_header(a: number, b: number): number;
|
|
286
271
|
export function pagemargin_footer(a: number, b: number): number;
|
|
287
272
|
export function pagemargin_gutter(a: number, b: number): number;
|
|
273
|
+
export function __wbg_tableofcontents_free(a: number): void;
|
|
274
|
+
export function createTableOfContents(): number;
|
|
275
|
+
export function createTableOfContentsWithInstrText(a: number, b: number): number;
|
|
276
|
+
export function tableofcontents_heading_styles_range(a: number, b: number, c: number): number;
|
|
277
|
+
export function tableofcontents_add_style_with_level(a: number, b: number, c: number, d: number): number;
|
|
278
|
+
export function tableofcontents_hyperlink(a: number): number;
|
|
279
|
+
export function tableofcontents_alias(a: number, b: number, c: number): number;
|
|
280
|
+
export function tableofcontents_page_ref_placeholder(a: number, b: number, c: number): number;
|
|
281
|
+
export function tableofcontents_add_item(a: number, b: number): number;
|
|
282
|
+
export function tableofcontents_auto(a: number): number;
|
|
283
|
+
export function tableofcontents_dirty(a: number): number;
|
|
284
|
+
export function tableofcontents_without_sdt(a: number): number;
|
|
285
|
+
export function tableofcontents_delete(a: number, b: number, c: number, d: number, e: number): number;
|
|
286
|
+
export function tableofcontents_add_before_paragraph(a: number, b: number): number;
|
|
287
|
+
export function tableofcontents_add_after_paragraph(a: number, b: number): number;
|
|
288
|
+
export function tableofcontents_add_before_table(a: number, b: number): number;
|
|
289
|
+
export function tableofcontents_add_after_table(a: number, b: number): number;
|
|
288
290
|
export function __wbg_tablecellproperty_free(a: number): void;
|
|
289
291
|
export function __wbg_tableproperty_free(a: number): void;
|
|
290
292
|
export function __wbindgen_malloc(a: number): number;
|
|
@@ -4,6 +4,7 @@ import { Shading } from "./shading";
|
|
|
4
4
|
import { TableCellBorders } from "./table-cell-borders";
|
|
5
5
|
import { TableCellBorderPosition, TableCellBorder } from "./table-cell-border";
|
|
6
6
|
import * as wasm from "./pkg";
|
|
7
|
+
import { TableOfContents } from "./table-of-contents";
|
|
7
8
|
export declare type VMergeType = "restart" | "continue";
|
|
8
9
|
export declare type VAlignType = "top" | "center" | "bottom";
|
|
9
10
|
export declare type TextDirectionType = "lr" | "lrV" | "rl" | "rlV" | "tb" | "tbV" | "tbRlV" | "tbRl" | "btLr" | "lrTbV";
|
|
@@ -18,10 +19,11 @@ export declare type CellProperty = {
|
|
|
18
19
|
shading?: Shading;
|
|
19
20
|
};
|
|
20
21
|
export declare class TableCell {
|
|
21
|
-
children: (Paragraph | Table)[];
|
|
22
|
+
children: (Paragraph | Table | TableOfContents)[];
|
|
22
23
|
hasNumberings: boolean;
|
|
23
24
|
property: CellProperty;
|
|
24
25
|
addParagraph(p: Paragraph): this;
|
|
26
|
+
addTableOfContents(t: TableOfContents): this;
|
|
25
27
|
addTable(t: Table): this;
|
|
26
28
|
verticalMerge(t: VMergeType): this;
|
|
27
29
|
verticalAlign(t: VAlignType): this;
|
package/dist/node/table-cell.js
CHANGED
|
@@ -31,6 +31,7 @@ const table_cell_borders_1 = require("./table-cell-borders");
|
|
|
31
31
|
const table_cell_border_1 = require("./table-cell-border");
|
|
32
32
|
const wasm = __importStar(require("./pkg"));
|
|
33
33
|
const run_1 = require("./run");
|
|
34
|
+
const table_of_contents_1 = require("./table-of-contents");
|
|
34
35
|
const toTextDirectionWasmType = (t) => {
|
|
35
36
|
switch (t) {
|
|
36
37
|
case "lr":
|
|
@@ -73,6 +74,10 @@ class TableCell {
|
|
|
73
74
|
this.children.push(p);
|
|
74
75
|
return this;
|
|
75
76
|
}
|
|
77
|
+
addTableOfContents(t) {
|
|
78
|
+
this.children.push(t);
|
|
79
|
+
return this;
|
|
80
|
+
}
|
|
76
81
|
addTable(t) {
|
|
77
82
|
if (t.hasNumberings) {
|
|
78
83
|
this.hasNumberings = true;
|
|
@@ -196,6 +201,14 @@ class TableCell {
|
|
|
196
201
|
const table = c.build();
|
|
197
202
|
cell = cell.add_table(table);
|
|
198
203
|
}
|
|
204
|
+
else if (c instanceof table_of_contents_1.TableOfContents) {
|
|
205
|
+
cell = cell.add_table_of_contents(c.buildWasmObject());
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
// eslint-disable-next-line
|
|
209
|
+
const _ = c;
|
|
210
|
+
console.error(_);
|
|
211
|
+
}
|
|
199
212
|
});
|
|
200
213
|
if (this.property.verticalMerge === "continue") {
|
|
201
214
|
cell = cell.vertical_merge(wasm.VMergeType.Continue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-cell.js","sourceRoot":"","sources":["../../js/table-cell.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAwC;AACxC,mCAAgC;AAChC,uCAAoC;AACpC,6DAAsE;AACtE,2DAA+E;AAC/E,4CAA8B;AAC9B,+BAA0C;
|
|
1
|
+
{"version":3,"file":"table-cell.js","sourceRoot":"","sources":["../../js/table-cell.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAwC;AACxC,mCAAgC;AAChC,uCAAoC;AACpC,6DAAsE;AACtE,2DAA+E;AAC/E,4CAA8B;AAC9B,+BAA0C;AAC1C,2DAAsD;AAkB/C,MAAM,uBAAuB,GAAG,CACrC,CAAoB,EACI,EAAE;IAC1B,QAAQ,CAAC,EAAE;QACT,KAAK,IAAI;YACP,OAAO,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACnC,KAAK,KAAK;YACR,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC;QACpC,KAAK,IAAI;YACP,OAAO,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACnC,KAAK,KAAK;YACR,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC;QACpC,KAAK,IAAI;YACP,OAAO,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACnC,KAAK,KAAK;YACR,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC;QACpC,KAAK,OAAO;YACV,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;QACtC,KAAK,MAAM;YACT,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;QACrC,KAAK,MAAM;YACT,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;QACrC,KAAK,OAAO;YACV,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;QACtC;YACE,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;KAClC;AACH,CAAC,CAA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|
|
16
17
|
_items: TableOfContentsItem[];
|
|
17
18
|
_pageRefPlaceholder: string;
|
|
@@ -33,6 +34,7 @@ export declare class TableOfContents {
|
|
|
33
34
|
pageRefPlaceholder: (placeholder: string) => this;
|
|
34
35
|
auto: () => this;
|
|
35
36
|
dirty: () => this;
|
|
37
|
+
withoutSdt: () => this;
|
|
36
38
|
delete: (author: string, date: string) => this;
|
|
37
39
|
addItem: (item: TableOfContentsItem) => this;
|
|
38
40
|
buildWasmObject: () => wasm.TableOfContents;
|
|
@@ -34,6 +34,7 @@ class TableOfContents {
|
|
|
34
34
|
this._hyperlink = false;
|
|
35
35
|
this._alias = "";
|
|
36
36
|
this._auto = false;
|
|
37
|
+
this._withoutSdt = false;
|
|
37
38
|
this._dirty = false;
|
|
38
39
|
this._items = [];
|
|
39
40
|
this._pageRefPlaceholder = "";
|
|
@@ -68,6 +69,10 @@ class TableOfContents {
|
|
|
68
69
|
this._dirty = true;
|
|
69
70
|
return this;
|
|
70
71
|
};
|
|
72
|
+
this.withoutSdt = () => {
|
|
73
|
+
this._withoutSdt = true;
|
|
74
|
+
return this;
|
|
75
|
+
};
|
|
71
76
|
this.delete = (author, date) => {
|
|
72
77
|
this._delete = { author, date };
|
|
73
78
|
return this;
|
|
@@ -95,6 +100,9 @@ class TableOfContents {
|
|
|
95
100
|
if (this._dirty) {
|
|
96
101
|
toc = toc.dirty();
|
|
97
102
|
}
|
|
103
|
+
if (this._withoutSdt) {
|
|
104
|
+
toc = toc.without_sdt();
|
|
105
|
+
}
|
|
98
106
|
if (this._pageRefPlaceholder) {
|
|
99
107
|
toc = toc.page_ref_placeholder(this._pageRefPlaceholder);
|
|
100
108
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-of-contents.js","sourceRoot":"","sources":["../../js/table-of-contents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAwC;AACxC,4CAA8B;AAC9B,mCAAgC;AAIhC,MAAa,eA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