docx-wasm 0.0.276 → 0.0.277-rc1
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/styles.d.ts +1 -0
- package/dist/node/pkg/docx_wasm.d.ts +45 -40
- package/dist/node/pkg/docx_wasm.js +62 -50
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +62 -61
- package/dist/node/style.d.ts +2 -0
- package/dist/node/style.js +8 -0
- package/dist/node/style.js.map +1 -1
- package/dist/web/json/styles.d.ts +1 -0
- package/dist/web/pkg/docx_wasm.d.ts +45 -40
- package/dist/web/pkg/docx_wasm_bg.js +62 -50
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +62 -61
- package/dist/web/style.d.ts +2 -0
- package/dist/web/style.js +8 -0
- package/dist/web/style.js.map +1 -1
- package/js/json/styles.ts +1 -0
- package/js/style.ts +11 -0
- package/package.json +1 -1
|
@@ -5,20 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export function createTableOfContentsItem(): TableOfContentsItem;
|
|
7
7
|
/**
|
|
8
|
-
* @param {
|
|
9
|
-
* @returns {
|
|
8
|
+
* @param {Run} run
|
|
9
|
+
* @returns {Delete}
|
|
10
10
|
*/
|
|
11
|
-
export function
|
|
11
|
+
export function createDelete(run: Run): Delete;
|
|
12
12
|
/**
|
|
13
13
|
* @returns {TableRow}
|
|
14
14
|
*/
|
|
15
15
|
export function createTableRow(): TableRow;
|
|
16
16
|
/**
|
|
17
|
-
* @param {Run} run
|
|
18
|
-
* @returns {Delete}
|
|
19
|
-
*/
|
|
20
|
-
export function createDelete(run: Run): Delete;
|
|
21
|
-
/**
|
|
22
17
|
* @returns {Footer}
|
|
23
18
|
*/
|
|
24
19
|
export function createFooter(): Footer;
|
|
@@ -36,6 +31,11 @@ export function createInsert(run: Run): Insert;
|
|
|
36
31
|
*/
|
|
37
32
|
export function createLineSpacing(): LineSpacing;
|
|
38
33
|
/**
|
|
34
|
+
* @param {number} position
|
|
35
|
+
* @returns {TableCellBorder}
|
|
36
|
+
*/
|
|
37
|
+
export function createTableCellBorder(position: number): TableCellBorder;
|
|
38
|
+
/**
|
|
39
39
|
* @returns {Table}
|
|
40
40
|
*/
|
|
41
41
|
export function createTable(): Table;
|
|
@@ -115,28 +115,28 @@ export function createParagraphPropertyChange(): ParagraphPropertyChange;
|
|
|
115
115
|
*/
|
|
116
116
|
export function createParagraph(): Paragraph;
|
|
117
117
|
/**
|
|
118
|
+
* @param {string} style_id
|
|
119
|
+
* @param {number} style_type
|
|
120
|
+
* @returns {Style}
|
|
121
|
+
*/
|
|
122
|
+
export function createStyle(style_id: string, style_type: number): Style;
|
|
123
|
+
/**
|
|
118
124
|
* @returns {Docx}
|
|
119
125
|
*/
|
|
120
126
|
export function createDocx(): Docx;
|
|
121
127
|
/**
|
|
122
|
-
* @
|
|
128
|
+
* @param {number} level
|
|
129
|
+
* @returns {LevelOverride}
|
|
123
130
|
*/
|
|
124
|
-
export function
|
|
131
|
+
export function createLevelOverride(level: number): LevelOverride;
|
|
125
132
|
/**
|
|
126
133
|
* @returns {Run}
|
|
127
134
|
*/
|
|
128
135
|
export function createRun(): Run;
|
|
129
136
|
/**
|
|
130
|
-
* @
|
|
131
|
-
* @param {number} style_type
|
|
132
|
-
* @returns {Style}
|
|
133
|
-
*/
|
|
134
|
-
export function createStyle(style_id: string, style_type: number): Style;
|
|
135
|
-
/**
|
|
136
|
-
* @param {number} level
|
|
137
|
-
* @returns {LevelOverride}
|
|
137
|
+
* @returns {PageMargin}
|
|
138
138
|
*/
|
|
139
|
-
export function
|
|
139
|
+
export function createPageMargin(): PageMargin;
|
|
140
140
|
/**
|
|
141
141
|
*/
|
|
142
142
|
export enum BorderType {
|
|
@@ -271,19 +271,6 @@ export enum RelativeFromVType {
|
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
273
|
*/
|
|
274
|
-
export enum TabValueType {
|
|
275
|
-
Bar,
|
|
276
|
-
Center,
|
|
277
|
-
Clear,
|
|
278
|
-
Decimal,
|
|
279
|
-
End,
|
|
280
|
-
Right,
|
|
281
|
-
Num,
|
|
282
|
-
Start,
|
|
283
|
-
Left,
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
*/
|
|
287
274
|
export enum BreakType {
|
|
288
275
|
Page,
|
|
289
276
|
Column,
|
|
@@ -299,6 +286,19 @@ export enum LineSpacingType {
|
|
|
299
286
|
}
|
|
300
287
|
/**
|
|
301
288
|
*/
|
|
289
|
+
export enum TabValueType {
|
|
290
|
+
Bar,
|
|
291
|
+
Center,
|
|
292
|
+
Clear,
|
|
293
|
+
Decimal,
|
|
294
|
+
End,
|
|
295
|
+
Right,
|
|
296
|
+
Num,
|
|
297
|
+
Start,
|
|
298
|
+
Left,
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
*/
|
|
302
302
|
export enum TextDirectionType {
|
|
303
303
|
Lr,
|
|
304
304
|
LrV,
|
|
@@ -355,14 +355,6 @@ export enum ShdType {
|
|
|
355
355
|
}
|
|
356
356
|
/**
|
|
357
357
|
*/
|
|
358
|
-
export enum VAlignType {
|
|
359
|
-
Top,
|
|
360
|
-
Center,
|
|
361
|
-
Bottom,
|
|
362
|
-
Unsupported,
|
|
363
|
-
}
|
|
364
|
-
/**
|
|
365
|
-
*/
|
|
366
358
|
export enum VertAlignType {
|
|
367
359
|
Baseline,
|
|
368
360
|
SuperScript,
|
|
@@ -371,6 +363,14 @@ export enum VertAlignType {
|
|
|
371
363
|
}
|
|
372
364
|
/**
|
|
373
365
|
*/
|
|
366
|
+
export enum VAlignType {
|
|
367
|
+
Top,
|
|
368
|
+
Center,
|
|
369
|
+
Bottom,
|
|
370
|
+
Unsupported,
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
*/
|
|
374
374
|
export enum AlignmentType {
|
|
375
375
|
Both,
|
|
376
376
|
Center,
|
|
@@ -1359,6 +1359,11 @@ export class Style {
|
|
|
1359
1359
|
*/
|
|
1360
1360
|
underline(line_type: string): Style;
|
|
1361
1361
|
/**
|
|
1362
|
+
* @param {string} link
|
|
1363
|
+
* @returns {Style}
|
|
1364
|
+
*/
|
|
1365
|
+
link(link: string): Style;
|
|
1366
|
+
/**
|
|
1362
1367
|
* @returns {Style}
|
|
1363
1368
|
*/
|
|
1364
1369
|
vanish(): Style;
|
|
@@ -109,29 +109,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
109
109
|
WASM_VECTOR_LEN = offset;
|
|
110
110
|
return ptr;
|
|
111
111
|
}
|
|
112
|
-
/**
|
|
113
|
-
* @param {number} position
|
|
114
|
-
* @returns {TableCellBorder}
|
|
115
|
-
*/
|
|
116
|
-
module.exports.createTableCellBorder = function(position) {
|
|
117
|
-
var ret = wasm.createTableCellBorder(position);
|
|
118
|
-
return TableCellBorder.__wrap(ret);
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
let cachegetInt32Memory0 = null;
|
|
122
|
-
function getInt32Memory0() {
|
|
123
|
-
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
|
|
124
|
-
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
125
|
-
}
|
|
126
|
-
return cachegetInt32Memory0;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* @returns {TableRow}
|
|
130
|
-
*/
|
|
131
|
-
module.exports.createTableRow = function() {
|
|
132
|
-
var ret = wasm.createTableRow();
|
|
133
|
-
return TableRow.__wrap(ret);
|
|
134
|
-
};
|
|
135
112
|
|
|
136
113
|
function _assertClass(instance, klass) {
|
|
137
114
|
if (!(instance instanceof klass)) {
|
|
@@ -151,6 +128,14 @@ module.exports.createDelete = function(run) {
|
|
|
151
128
|
return Delete.__wrap(ret);
|
|
152
129
|
};
|
|
153
130
|
|
|
131
|
+
/**
|
|
132
|
+
* @returns {TableRow}
|
|
133
|
+
*/
|
|
134
|
+
module.exports.createTableRow = function() {
|
|
135
|
+
var ret = wasm.createTableRow();
|
|
136
|
+
return TableRow.__wrap(ret);
|
|
137
|
+
};
|
|
138
|
+
|
|
154
139
|
/**
|
|
155
140
|
* @returns {Footer}
|
|
156
141
|
*/
|
|
@@ -187,6 +172,22 @@ module.exports.createLineSpacing = function() {
|
|
|
187
172
|
return LineSpacing.__wrap(ret);
|
|
188
173
|
};
|
|
189
174
|
|
|
175
|
+
/**
|
|
176
|
+
* @param {number} position
|
|
177
|
+
* @returns {TableCellBorder}
|
|
178
|
+
*/
|
|
179
|
+
module.exports.createTableCellBorder = function(position) {
|
|
180
|
+
var ret = wasm.createTableCellBorder(position);
|
|
181
|
+
return TableCellBorder.__wrap(ret);
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
let cachegetInt32Memory0 = null;
|
|
185
|
+
function getInt32Memory0() {
|
|
186
|
+
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
|
|
187
|
+
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
188
|
+
}
|
|
189
|
+
return cachegetInt32Memory0;
|
|
190
|
+
}
|
|
190
191
|
/**
|
|
191
192
|
* @returns {Table}
|
|
192
193
|
*/
|
|
@@ -381,6 +382,18 @@ module.exports.createParagraph = function() {
|
|
|
381
382
|
return Paragraph.__wrap(ret);
|
|
382
383
|
};
|
|
383
384
|
|
|
385
|
+
/**
|
|
386
|
+
* @param {string} style_id
|
|
387
|
+
* @param {number} style_type
|
|
388
|
+
* @returns {Style}
|
|
389
|
+
*/
|
|
390
|
+
module.exports.createStyle = function(style_id, style_type) {
|
|
391
|
+
var ptr0 = passStringToWasm0(style_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
392
|
+
var len0 = WASM_VECTOR_LEN;
|
|
393
|
+
var ret = wasm.createStyle(ptr0, len0, style_type);
|
|
394
|
+
return Style.__wrap(ret);
|
|
395
|
+
};
|
|
396
|
+
|
|
384
397
|
/**
|
|
385
398
|
* @returns {Docx}
|
|
386
399
|
*/
|
|
@@ -393,11 +406,12 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
393
406
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
394
407
|
}
|
|
395
408
|
/**
|
|
396
|
-
* @
|
|
409
|
+
* @param {number} level
|
|
410
|
+
* @returns {LevelOverride}
|
|
397
411
|
*/
|
|
398
|
-
module.exports.
|
|
399
|
-
var ret = wasm.
|
|
400
|
-
return
|
|
412
|
+
module.exports.createLevelOverride = function(level) {
|
|
413
|
+
var ret = wasm.createLevelOverride(level);
|
|
414
|
+
return LevelOverride.__wrap(ret);
|
|
401
415
|
};
|
|
402
416
|
|
|
403
417
|
/**
|
|
@@ -409,24 +423,11 @@ module.exports.createRun = function() {
|
|
|
409
423
|
};
|
|
410
424
|
|
|
411
425
|
/**
|
|
412
|
-
* @
|
|
413
|
-
* @param {number} style_type
|
|
414
|
-
* @returns {Style}
|
|
415
|
-
*/
|
|
416
|
-
module.exports.createStyle = function(style_id, style_type) {
|
|
417
|
-
var ptr0 = passStringToWasm0(style_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
418
|
-
var len0 = WASM_VECTOR_LEN;
|
|
419
|
-
var ret = wasm.createStyle(ptr0, len0, style_type);
|
|
420
|
-
return Style.__wrap(ret);
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* @param {number} level
|
|
425
|
-
* @returns {LevelOverride}
|
|
426
|
+
* @returns {PageMargin}
|
|
426
427
|
*/
|
|
427
|
-
module.exports.
|
|
428
|
-
var ret = wasm.
|
|
429
|
-
return
|
|
428
|
+
module.exports.createPageMargin = function() {
|
|
429
|
+
var ret = wasm.createPageMargin();
|
|
430
|
+
return PageMargin.__wrap(ret);
|
|
430
431
|
};
|
|
431
432
|
|
|
432
433
|
/**
|
|
@@ -499,25 +500,25 @@ RightMargin:7,"7":"RightMargin", });
|
|
|
499
500
|
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", });
|
|
500
501
|
/**
|
|
501
502
|
*/
|
|
502
|
-
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
|
-
/**
|
|
504
|
-
*/
|
|
505
503
|
module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
|
|
506
504
|
/**
|
|
507
505
|
*/
|
|
508
506
|
module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
509
507
|
/**
|
|
510
508
|
*/
|
|
509
|
+
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", });
|
|
510
|
+
/**
|
|
511
|
+
*/
|
|
511
512
|
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", });
|
|
512
513
|
/**
|
|
513
514
|
*/
|
|
514
515
|
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
516
|
/**
|
|
516
517
|
*/
|
|
517
|
-
module.exports.
|
|
518
|
+
module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
518
519
|
/**
|
|
519
520
|
*/
|
|
520
|
-
module.exports.
|
|
521
|
+
module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
521
522
|
/**
|
|
522
523
|
*/
|
|
523
524
|
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", });
|
|
@@ -1353,7 +1354,7 @@ class Insert {
|
|
|
1353
1354
|
const ptr = this.__destroy_into_raw();
|
|
1354
1355
|
var ptr0 = passStringToWasm0(author, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1355
1356
|
var len0 = WASM_VECTOR_LEN;
|
|
1356
|
-
var ret = wasm.
|
|
1357
|
+
var ret = wasm.insert_author(ptr, ptr0, len0);
|
|
1357
1358
|
return Insert.__wrap(ret);
|
|
1358
1359
|
}
|
|
1359
1360
|
/**
|
|
@@ -2629,6 +2630,17 @@ class Style {
|
|
|
2629
2630
|
return Style.__wrap(ret);
|
|
2630
2631
|
}
|
|
2631
2632
|
/**
|
|
2633
|
+
* @param {string} link
|
|
2634
|
+
* @returns {Style}
|
|
2635
|
+
*/
|
|
2636
|
+
link(link) {
|
|
2637
|
+
const ptr = this.__destroy_into_raw();
|
|
2638
|
+
var ptr0 = passStringToWasm0(link, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2639
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2640
|
+
var ret = wasm.style_link(ptr, ptr0, len0);
|
|
2641
|
+
return Style.__wrap(ret);
|
|
2642
|
+
}
|
|
2643
|
+
/**
|
|
2632
2644
|
* @returns {Style}
|
|
2633
2645
|
*/
|
|
2634
2646
|
vanish() {
|
|
Binary file
|
|
@@ -7,14 +7,10 @@ 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
|
|
11
|
-
export function
|
|
12
|
-
export function
|
|
13
|
-
export function
|
|
14
|
-
export function tablecellborder_border_type(a: number, b: number): number;
|
|
15
|
-
export function tablecellborder_get_size(a: number): number;
|
|
16
|
-
export function tablecellborder_get_color(a: number, b: number): void;
|
|
17
|
-
export function tablecellborder_get_border_type(a: number): number;
|
|
10
|
+
export function __wbg_delete_free(a: number): void;
|
|
11
|
+
export function createDelete(a: number): number;
|
|
12
|
+
export function delete_author(a: number, b: number, c: number): number;
|
|
13
|
+
export function delete_date(a: number, b: number, c: number): number;
|
|
18
14
|
export function __wbg_tablerow_free(a: number): void;
|
|
19
15
|
export function createTableRow(): number;
|
|
20
16
|
export function tablerow_add_cell(a: number, b: number): number;
|
|
@@ -22,10 +18,6 @@ export function tablerow_row_height(a: number, b: number): number;
|
|
|
22
18
|
export function tablerow_height_rule(a: number, b: number): number;
|
|
23
19
|
export function tablerow_delete(a: number, b: number, c: number, d: number, e: number): number;
|
|
24
20
|
export function tablerow_insert(a: number, b: number, c: number, d: number, e: number): number;
|
|
25
|
-
export function __wbg_delete_free(a: number): void;
|
|
26
|
-
export function createDelete(a: number): number;
|
|
27
|
-
export function delete_author(a: number, b: number, c: number): number;
|
|
28
|
-
export function delete_date(a: number, b: number, c: number): number;
|
|
29
21
|
export function __wbg_footer_free(a: number): void;
|
|
30
22
|
export function createFooter(): number;
|
|
31
23
|
export function footer_add_paragraph(a: number, b: number): number;
|
|
@@ -36,6 +28,7 @@ export function header_add_paragraph(a: number, b: number): number;
|
|
|
36
28
|
export function header_add_table(a: number, b: number): number;
|
|
37
29
|
export function __wbg_insert_free(a: number): void;
|
|
38
30
|
export function createInsert(a: number): number;
|
|
31
|
+
export function insert_author(a: number, b: number, c: number): number;
|
|
39
32
|
export function insert_date(a: number, b: number, c: number): number;
|
|
40
33
|
export function __wbg_linespacing_free(a: number): void;
|
|
41
34
|
export function createLineSpacing(): number;
|
|
@@ -45,7 +38,14 @@ export function linespacing_after(a: number, b: number): number;
|
|
|
45
38
|
export function linespacing_before_lines(a: number, b: number): number;
|
|
46
39
|
export function linespacing_after_lines(a: number, b: number): number;
|
|
47
40
|
export function linespacing_line(a: number, b: number): number;
|
|
48
|
-
export function
|
|
41
|
+
export function __wbg_tablecellborder_free(a: number): void;
|
|
42
|
+
export function createTableCellBorder(a: number): number;
|
|
43
|
+
export function tablecellborder_size(a: number, b: number): number;
|
|
44
|
+
export function tablecellborder_color(a: number, b: number, c: number): number;
|
|
45
|
+
export function tablecellborder_border_type(a: number, b: number): number;
|
|
46
|
+
export function tablecellborder_get_size(a: number): number;
|
|
47
|
+
export function tablecellborder_get_color(a: number, b: number): void;
|
|
48
|
+
export function tablecellborder_get_border_type(a: number): number;
|
|
49
49
|
export function __wbg_table_free(a: number): void;
|
|
50
50
|
export function createTable(): number;
|
|
51
51
|
export function table_add_row(a: number, b: number): number;
|
|
@@ -180,6 +180,42 @@ export function paragraph_widow_control(a: number, b: number): number;
|
|
|
180
180
|
export function paragraph_delete(a: number, b: number, c: number, d: number, e: number): number;
|
|
181
181
|
export function paragraph_insert(a: number, b: number, c: number, d: number, e: number): number;
|
|
182
182
|
export function paragraph_paragraph_property_change(a: number, b: number): number;
|
|
183
|
+
export function __wbg_style_free(a: number): void;
|
|
184
|
+
export function createStyle(a: number, b: number, c: number): number;
|
|
185
|
+
export function style_name(a: number, b: number, c: number): number;
|
|
186
|
+
export function style_based_on(a: number, b: number, c: number): number;
|
|
187
|
+
export function style_size(a: number, b: number): number;
|
|
188
|
+
export function style_color(a: number, b: number, c: number): number;
|
|
189
|
+
export function style_highlight(a: number, b: number, c: number): number;
|
|
190
|
+
export function style_bold(a: number): number;
|
|
191
|
+
export function style_italic(a: number): number;
|
|
192
|
+
export function style_strike(a: number): number;
|
|
193
|
+
export function style_underline(a: number, b: number, c: number): number;
|
|
194
|
+
export function style_link(a: number, b: number, c: number): number;
|
|
195
|
+
export function style_vanish(a: number): number;
|
|
196
|
+
export function style_fonts(a: number, b: number): number;
|
|
197
|
+
export function style_spacing(a: number, b: number): number;
|
|
198
|
+
export function style_vert_align(a: number, b: number): number;
|
|
199
|
+
export function style_text_border(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
200
|
+
export function style_align(a: number, b: number): number;
|
|
201
|
+
export function style_indent(a: number, b: number, c: number, d: number, e: number): number;
|
|
202
|
+
export function style_outline_lvl(a: number, b: number): number;
|
|
203
|
+
export function style_numbering(a: number, b: number, c: number): number;
|
|
204
|
+
export function style_line_spacing(a: number, b: number): number;
|
|
205
|
+
export function style_keep_next(a: number, b: number): number;
|
|
206
|
+
export function style_keep_lines(a: number, b: number): number;
|
|
207
|
+
export function style_page_break_before(a: number, b: number): number;
|
|
208
|
+
export function style_widow_control(a: number, b: number): number;
|
|
209
|
+
export function style_table_property(a: number, b: number): number;
|
|
210
|
+
export function style_table_cell_property(a: number, b: number): number;
|
|
211
|
+
export function style_table_indent(a: number, b: number): number;
|
|
212
|
+
export function style_table_align(a: number, b: number): number;
|
|
213
|
+
export function style_set_cell_margins(a: number, b: number, c: number, d: number, e: number): number;
|
|
214
|
+
export function style_cell_margin_top(a: number, b: number, c: number): number;
|
|
215
|
+
export function style_cell_margin_right(a: number, b: number, c: number): number;
|
|
216
|
+
export function style_cell_margin_bottom(a: number, b: number, c: number): number;
|
|
217
|
+
export function style_cell_margin_left(a: number, b: number, c: number): number;
|
|
218
|
+
export function style_layout(a: number, b: number): number;
|
|
183
219
|
export function __wbg_docx_free(a: number): void;
|
|
184
220
|
export function createDocx(): number;
|
|
185
221
|
export function docx_add_paragraph(a: number, b: number): number;
|
|
@@ -215,15 +251,10 @@ export function docx_add_custom_item(a: number, b: number, c: number, d: number,
|
|
|
215
251
|
export function docx_doc_grid(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
216
252
|
export function docx_build(a: number, b: number, c: number): void;
|
|
217
253
|
export function docx_json_with_update_comments(a: number, b: number): void;
|
|
218
|
-
export function
|
|
219
|
-
export function
|
|
220
|
-
export function
|
|
221
|
-
export function
|
|
222
|
-
export function pagemargin_bottom(a: number, b: number): number;
|
|
223
|
-
export function pagemargin_right(a: number, b: number): number;
|
|
224
|
-
export function pagemargin_header(a: number, b: number): number;
|
|
225
|
-
export function pagemargin_footer(a: number, b: number): number;
|
|
226
|
-
export function pagemargin_gutter(a: number, b: number): number;
|
|
254
|
+
export function __wbg_leveloverride_free(a: number): void;
|
|
255
|
+
export function createLevelOverride(a: number): number;
|
|
256
|
+
export function leveloverride_start(a: number, b: number): number;
|
|
257
|
+
export function leveloverride_level(a: number, b: number): number;
|
|
227
258
|
export function __wbg_run_free(a: number): void;
|
|
228
259
|
export function createRun(): number;
|
|
229
260
|
export function run_add_text(a: number, b: number, c: number): number;
|
|
@@ -244,45 +275,15 @@ export function run_fonts(a: number, b: number): number;
|
|
|
244
275
|
export function run_spacing(a: number, b: number): number;
|
|
245
276
|
export function run_vert_align(a: number, b: number): number;
|
|
246
277
|
export function run_text_border(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
247
|
-
export function
|
|
248
|
-
export function
|
|
249
|
-
export function
|
|
250
|
-
export function
|
|
251
|
-
export function
|
|
252
|
-
export function
|
|
253
|
-
export function
|
|
254
|
-
export function
|
|
255
|
-
export function
|
|
256
|
-
export function style_strike(a: number): number;
|
|
257
|
-
export function style_underline(a: number, b: number, c: number): number;
|
|
258
|
-
export function style_vanish(a: number): number;
|
|
259
|
-
export function style_fonts(a: number, b: number): number;
|
|
260
|
-
export function style_spacing(a: number, b: number): number;
|
|
261
|
-
export function style_vert_align(a: number, b: number): number;
|
|
262
|
-
export function style_text_border(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
263
|
-
export function style_align(a: number, b: number): number;
|
|
264
|
-
export function style_indent(a: number, b: number, c: number, d: number, e: number): number;
|
|
265
|
-
export function style_outline_lvl(a: number, b: number): number;
|
|
266
|
-
export function style_numbering(a: number, b: number, c: number): number;
|
|
267
|
-
export function style_line_spacing(a: number, b: number): number;
|
|
268
|
-
export function style_keep_next(a: number, b: number): number;
|
|
269
|
-
export function style_keep_lines(a: number, b: number): number;
|
|
270
|
-
export function style_page_break_before(a: number, b: number): number;
|
|
271
|
-
export function style_widow_control(a: number, b: number): number;
|
|
272
|
-
export function style_table_property(a: number, b: number): number;
|
|
273
|
-
export function style_table_cell_property(a: number, b: number): number;
|
|
274
|
-
export function style_table_indent(a: number, b: number): number;
|
|
275
|
-
export function style_table_align(a: number, b: number): number;
|
|
276
|
-
export function style_set_cell_margins(a: number, b: number, c: number, d: number, e: number): number;
|
|
277
|
-
export function style_cell_margin_top(a: number, b: number, c: number): number;
|
|
278
|
-
export function style_cell_margin_right(a: number, b: number, c: number): number;
|
|
279
|
-
export function style_cell_margin_bottom(a: number, b: number, c: number): number;
|
|
280
|
-
export function style_cell_margin_left(a: number, b: number, c: number): number;
|
|
281
|
-
export function style_layout(a: number, b: number): number;
|
|
282
|
-
export function __wbg_leveloverride_free(a: number): void;
|
|
283
|
-
export function createLevelOverride(a: number): number;
|
|
284
|
-
export function leveloverride_start(a: number, b: number): number;
|
|
285
|
-
export function leveloverride_level(a: number, b: number): number;
|
|
278
|
+
export function __wbg_pagemargin_free(a: number): void;
|
|
279
|
+
export function createPageMargin(): number;
|
|
280
|
+
export function pagemargin_top(a: number, b: number): number;
|
|
281
|
+
export function pagemargin_left(a: number, b: number): number;
|
|
282
|
+
export function pagemargin_bottom(a: number, b: number): number;
|
|
283
|
+
export function pagemargin_right(a: number, b: number): number;
|
|
284
|
+
export function pagemargin_header(a: number, b: number): number;
|
|
285
|
+
export function pagemargin_footer(a: number, b: number): number;
|
|
286
|
+
export function pagemargin_gutter(a: number, b: number): number;
|
|
286
287
|
export function __wbg_tablecellproperty_free(a: number): void;
|
|
287
288
|
export function __wbg_tableproperty_free(a: number): void;
|
|
288
289
|
export function __wbindgen_malloc(a: number): number;
|
package/dist/node/style.d.ts
CHANGED
|
@@ -13,9 +13,11 @@ export declare class Style {
|
|
|
13
13
|
_paragraphProperty: ParagraphProperty;
|
|
14
14
|
_tableProperty: TableProperty;
|
|
15
15
|
_basedOn: string | null;
|
|
16
|
+
_link: string | null;
|
|
16
17
|
constructor(id: string, type: StyleType);
|
|
17
18
|
name: (n: string) => this;
|
|
18
19
|
basedOn: (n: string) => this;
|
|
20
|
+
link: (n: string) => this;
|
|
19
21
|
style(style: string): this;
|
|
20
22
|
size(size: number): this;
|
|
21
23
|
color(color: string): this;
|
package/dist/node/style.js
CHANGED
|
@@ -38,6 +38,10 @@ class Style {
|
|
|
38
38
|
this._basedOn = n;
|
|
39
39
|
return this;
|
|
40
40
|
};
|
|
41
|
+
this.link = (n) => {
|
|
42
|
+
this._link = n;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
41
45
|
this.buildStyleType = () => {
|
|
42
46
|
switch (this._styleType) {
|
|
43
47
|
case "character":
|
|
@@ -60,6 +64,9 @@ class Style {
|
|
|
60
64
|
if (this._basedOn) {
|
|
61
65
|
s = s.based_on(this._basedOn);
|
|
62
66
|
}
|
|
67
|
+
if (this._link) {
|
|
68
|
+
s = s.link(this._link);
|
|
69
|
+
}
|
|
63
70
|
s = (0, run_1.setRunProperty)(s, this._runProperty);
|
|
64
71
|
s = (0, paragraph_property_1.setParagraphProperty)(s, this._paragraphProperty);
|
|
65
72
|
s = (0, table_1.setTableProperty)(s, this._tableProperty);
|
|
@@ -75,6 +82,7 @@ class Style {
|
|
|
75
82
|
this._runProperty = (0, run_1.createDefaultRunProperty)();
|
|
76
83
|
this._paragraphProperty = (0, paragraph_property_1.createDefaultParagraphProperty)();
|
|
77
84
|
this._basedOn = null;
|
|
85
|
+
this._link = null;
|
|
78
86
|
}
|
|
79
87
|
// TODO:
|
|
80
88
|
// runProperty = (n: RunProperty) => {
|
package/dist/node/style.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../js/style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA8B;AAE9B,mCAMiB;AACjB,+BAMe;AACf,6DAO8B;AAM9B,MAAa,KAAK;
|
|
1
|
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G,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAC5D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,gBAAgB,CAAC,CAAS,EAAE,CAAY;QACtC,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;CAwCF;AA9RD,sBA8RC"}
|
|
@@ -5,20 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export function createTableOfContentsItem(): TableOfContentsItem;
|
|
7
7
|
/**
|
|
8
|
-
* @param {
|
|
9
|
-
* @returns {
|
|
8
|
+
* @param {Run} run
|
|
9
|
+
* @returns {Delete}
|
|
10
10
|
*/
|
|
11
|
-
export function
|
|
11
|
+
export function createDelete(run: Run): Delete;
|
|
12
12
|
/**
|
|
13
13
|
* @returns {TableRow}
|
|
14
14
|
*/
|
|
15
15
|
export function createTableRow(): TableRow;
|
|
16
16
|
/**
|
|
17
|
-
* @param {Run} run
|
|
18
|
-
* @returns {Delete}
|
|
19
|
-
*/
|
|
20
|
-
export function createDelete(run: Run): Delete;
|
|
21
|
-
/**
|
|
22
17
|
* @returns {Footer}
|
|
23
18
|
*/
|
|
24
19
|
export function createFooter(): Footer;
|
|
@@ -36,6 +31,11 @@ export function createInsert(run: Run): Insert;
|
|
|
36
31
|
*/
|
|
37
32
|
export function createLineSpacing(): LineSpacing;
|
|
38
33
|
/**
|
|
34
|
+
* @param {number} position
|
|
35
|
+
* @returns {TableCellBorder}
|
|
36
|
+
*/
|
|
37
|
+
export function createTableCellBorder(position: number): TableCellBorder;
|
|
38
|
+
/**
|
|
39
39
|
* @returns {Table}
|
|
40
40
|
*/
|
|
41
41
|
export function createTable(): Table;
|
|
@@ -115,28 +115,28 @@ export function createParagraphPropertyChange(): ParagraphPropertyChange;
|
|
|
115
115
|
*/
|
|
116
116
|
export function createParagraph(): Paragraph;
|
|
117
117
|
/**
|
|
118
|
+
* @param {string} style_id
|
|
119
|
+
* @param {number} style_type
|
|
120
|
+
* @returns {Style}
|
|
121
|
+
*/
|
|
122
|
+
export function createStyle(style_id: string, style_type: number): Style;
|
|
123
|
+
/**
|
|
118
124
|
* @returns {Docx}
|
|
119
125
|
*/
|
|
120
126
|
export function createDocx(): Docx;
|
|
121
127
|
/**
|
|
122
|
-
* @
|
|
128
|
+
* @param {number} level
|
|
129
|
+
* @returns {LevelOverride}
|
|
123
130
|
*/
|
|
124
|
-
export function
|
|
131
|
+
export function createLevelOverride(level: number): LevelOverride;
|
|
125
132
|
/**
|
|
126
133
|
* @returns {Run}
|
|
127
134
|
*/
|
|
128
135
|
export function createRun(): Run;
|
|
129
136
|
/**
|
|
130
|
-
* @
|
|
131
|
-
* @param {number} style_type
|
|
132
|
-
* @returns {Style}
|
|
133
|
-
*/
|
|
134
|
-
export function createStyle(style_id: string, style_type: number): Style;
|
|
135
|
-
/**
|
|
136
|
-
* @param {number} level
|
|
137
|
-
* @returns {LevelOverride}
|
|
137
|
+
* @returns {PageMargin}
|
|
138
138
|
*/
|
|
139
|
-
export function
|
|
139
|
+
export function createPageMargin(): PageMargin;
|
|
140
140
|
/**
|
|
141
141
|
*/
|
|
142
142
|
export enum BorderType {
|
|
@@ -271,19 +271,6 @@ export enum RelativeFromVType {
|
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
273
|
*/
|
|
274
|
-
export enum TabValueType {
|
|
275
|
-
Bar,
|
|
276
|
-
Center,
|
|
277
|
-
Clear,
|
|
278
|
-
Decimal,
|
|
279
|
-
End,
|
|
280
|
-
Right,
|
|
281
|
-
Num,
|
|
282
|
-
Start,
|
|
283
|
-
Left,
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
*/
|
|
287
274
|
export enum BreakType {
|
|
288
275
|
Page,
|
|
289
276
|
Column,
|
|
@@ -299,6 +286,19 @@ export enum LineSpacingType {
|
|
|
299
286
|
}
|
|
300
287
|
/**
|
|
301
288
|
*/
|
|
289
|
+
export enum TabValueType {
|
|
290
|
+
Bar,
|
|
291
|
+
Center,
|
|
292
|
+
Clear,
|
|
293
|
+
Decimal,
|
|
294
|
+
End,
|
|
295
|
+
Right,
|
|
296
|
+
Num,
|
|
297
|
+
Start,
|
|
298
|
+
Left,
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
*/
|
|
302
302
|
export enum TextDirectionType {
|
|
303
303
|
Lr,
|
|
304
304
|
LrV,
|
|
@@ -355,14 +355,6 @@ export enum ShdType {
|
|
|
355
355
|
}
|
|
356
356
|
/**
|
|
357
357
|
*/
|
|
358
|
-
export enum VAlignType {
|
|
359
|
-
Top,
|
|
360
|
-
Center,
|
|
361
|
-
Bottom,
|
|
362
|
-
Unsupported,
|
|
363
|
-
}
|
|
364
|
-
/**
|
|
365
|
-
*/
|
|
366
358
|
export enum VertAlignType {
|
|
367
359
|
Baseline,
|
|
368
360
|
SuperScript,
|
|
@@ -371,6 +363,14 @@ export enum VertAlignType {
|
|
|
371
363
|
}
|
|
372
364
|
/**
|
|
373
365
|
*/
|
|
366
|
+
export enum VAlignType {
|
|
367
|
+
Top,
|
|
368
|
+
Center,
|
|
369
|
+
Bottom,
|
|
370
|
+
Unsupported,
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
*/
|
|
374
374
|
export enum AlignmentType {
|
|
375
375
|
Both,
|
|
376
376
|
Center,
|
|
@@ -1359,6 +1359,11 @@ export class Style {
|
|
|
1359
1359
|
*/
|
|
1360
1360
|
underline(line_type: string): Style;
|
|
1361
1361
|
/**
|
|
1362
|
+
* @param {string} link
|
|
1363
|
+
* @returns {Style}
|
|
1364
|
+
*/
|
|
1365
|
+
link(link: string): Style;
|
|
1366
|
+
/**
|
|
1362
1367
|
* @returns {Style}
|
|
1363
1368
|
*/
|
|
1364
1369
|
vanish(): Style;
|
|
@@ -110,29 +110,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
110
110
|
WASM_VECTOR_LEN = offset;
|
|
111
111
|
return ptr;
|
|
112
112
|
}
|
|
113
|
-
/**
|
|
114
|
-
* @param {number} position
|
|
115
|
-
* @returns {TableCellBorder}
|
|
116
|
-
*/
|
|
117
|
-
export function createTableCellBorder(position) {
|
|
118
|
-
var ret = wasm.createTableCellBorder(position);
|
|
119
|
-
return TableCellBorder.__wrap(ret);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
let cachegetInt32Memory0 = null;
|
|
123
|
-
function getInt32Memory0() {
|
|
124
|
-
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
|
|
125
|
-
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
126
|
-
}
|
|
127
|
-
return cachegetInt32Memory0;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* @returns {TableRow}
|
|
131
|
-
*/
|
|
132
|
-
export function createTableRow() {
|
|
133
|
-
var ret = wasm.createTableRow();
|
|
134
|
-
return TableRow.__wrap(ret);
|
|
135
|
-
}
|
|
136
113
|
|
|
137
114
|
function _assertClass(instance, klass) {
|
|
138
115
|
if (!(instance instanceof klass)) {
|
|
@@ -152,6 +129,14 @@ export function createDelete(run) {
|
|
|
152
129
|
return Delete.__wrap(ret);
|
|
153
130
|
}
|
|
154
131
|
|
|
132
|
+
/**
|
|
133
|
+
* @returns {TableRow}
|
|
134
|
+
*/
|
|
135
|
+
export function createTableRow() {
|
|
136
|
+
var ret = wasm.createTableRow();
|
|
137
|
+
return TableRow.__wrap(ret);
|
|
138
|
+
}
|
|
139
|
+
|
|
155
140
|
/**
|
|
156
141
|
* @returns {Footer}
|
|
157
142
|
*/
|
|
@@ -188,6 +173,22 @@ export function createLineSpacing() {
|
|
|
188
173
|
return LineSpacing.__wrap(ret);
|
|
189
174
|
}
|
|
190
175
|
|
|
176
|
+
/**
|
|
177
|
+
* @param {number} position
|
|
178
|
+
* @returns {TableCellBorder}
|
|
179
|
+
*/
|
|
180
|
+
export function createTableCellBorder(position) {
|
|
181
|
+
var ret = wasm.createTableCellBorder(position);
|
|
182
|
+
return TableCellBorder.__wrap(ret);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
let cachegetInt32Memory0 = null;
|
|
186
|
+
function getInt32Memory0() {
|
|
187
|
+
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
|
|
188
|
+
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
189
|
+
}
|
|
190
|
+
return cachegetInt32Memory0;
|
|
191
|
+
}
|
|
191
192
|
/**
|
|
192
193
|
* @returns {Table}
|
|
193
194
|
*/
|
|
@@ -382,6 +383,18 @@ export function createParagraph() {
|
|
|
382
383
|
return Paragraph.__wrap(ret);
|
|
383
384
|
}
|
|
384
385
|
|
|
386
|
+
/**
|
|
387
|
+
* @param {string} style_id
|
|
388
|
+
* @param {number} style_type
|
|
389
|
+
* @returns {Style}
|
|
390
|
+
*/
|
|
391
|
+
export function createStyle(style_id, style_type) {
|
|
392
|
+
var ptr0 = passStringToWasm0(style_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
393
|
+
var len0 = WASM_VECTOR_LEN;
|
|
394
|
+
var ret = wasm.createStyle(ptr0, len0, style_type);
|
|
395
|
+
return Style.__wrap(ret);
|
|
396
|
+
}
|
|
397
|
+
|
|
385
398
|
/**
|
|
386
399
|
* @returns {Docx}
|
|
387
400
|
*/
|
|
@@ -394,11 +407,12 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
394
407
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
395
408
|
}
|
|
396
409
|
/**
|
|
397
|
-
* @
|
|
410
|
+
* @param {number} level
|
|
411
|
+
* @returns {LevelOverride}
|
|
398
412
|
*/
|
|
399
|
-
export function
|
|
400
|
-
var ret = wasm.
|
|
401
|
-
return
|
|
413
|
+
export function createLevelOverride(level) {
|
|
414
|
+
var ret = wasm.createLevelOverride(level);
|
|
415
|
+
return LevelOverride.__wrap(ret);
|
|
402
416
|
}
|
|
403
417
|
|
|
404
418
|
/**
|
|
@@ -410,24 +424,11 @@ export function createRun() {
|
|
|
410
424
|
}
|
|
411
425
|
|
|
412
426
|
/**
|
|
413
|
-
* @
|
|
414
|
-
* @param {number} style_type
|
|
415
|
-
* @returns {Style}
|
|
416
|
-
*/
|
|
417
|
-
export function createStyle(style_id, style_type) {
|
|
418
|
-
var ptr0 = passStringToWasm0(style_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
419
|
-
var len0 = WASM_VECTOR_LEN;
|
|
420
|
-
var ret = wasm.createStyle(ptr0, len0, style_type);
|
|
421
|
-
return Style.__wrap(ret);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* @param {number} level
|
|
426
|
-
* @returns {LevelOverride}
|
|
427
|
+
* @returns {PageMargin}
|
|
427
428
|
*/
|
|
428
|
-
export function
|
|
429
|
-
var ret = wasm.
|
|
430
|
-
return
|
|
429
|
+
export function createPageMargin() {
|
|
430
|
+
var ret = wasm.createPageMargin();
|
|
431
|
+
return PageMargin.__wrap(ret);
|
|
431
432
|
}
|
|
432
433
|
|
|
433
434
|
/**
|
|
@@ -500,25 +501,25 @@ RightMargin:7,"7":"RightMargin", });
|
|
|
500
501
|
export const 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", });
|
|
501
502
|
/**
|
|
502
503
|
*/
|
|
503
|
-
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", });
|
|
504
|
-
/**
|
|
505
|
-
*/
|
|
506
504
|
export const BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
|
|
507
505
|
/**
|
|
508
506
|
*/
|
|
509
507
|
export const LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
510
508
|
/**
|
|
511
509
|
*/
|
|
510
|
+
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", });
|
|
511
|
+
/**
|
|
512
|
+
*/
|
|
512
513
|
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", });
|
|
513
514
|
/**
|
|
514
515
|
*/
|
|
515
516
|
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", });
|
|
516
517
|
/**
|
|
517
518
|
*/
|
|
518
|
-
export const
|
|
519
|
+
export const VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
519
520
|
/**
|
|
520
521
|
*/
|
|
521
|
-
export const
|
|
522
|
+
export const VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
522
523
|
/**
|
|
523
524
|
*/
|
|
524
525
|
export const 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", });
|
|
@@ -1347,7 +1348,7 @@ export class Insert {
|
|
|
1347
1348
|
const ptr = this.__destroy_into_raw();
|
|
1348
1349
|
var ptr0 = passStringToWasm0(author, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1349
1350
|
var len0 = WASM_VECTOR_LEN;
|
|
1350
|
-
var ret = wasm.
|
|
1351
|
+
var ret = wasm.insert_author(ptr, ptr0, len0);
|
|
1351
1352
|
return Insert.__wrap(ret);
|
|
1352
1353
|
}
|
|
1353
1354
|
/**
|
|
@@ -2612,6 +2613,17 @@ export class Style {
|
|
|
2612
2613
|
return Style.__wrap(ret);
|
|
2613
2614
|
}
|
|
2614
2615
|
/**
|
|
2616
|
+
* @param {string} link
|
|
2617
|
+
* @returns {Style}
|
|
2618
|
+
*/
|
|
2619
|
+
link(link) {
|
|
2620
|
+
const ptr = this.__destroy_into_raw();
|
|
2621
|
+
var ptr0 = passStringToWasm0(link, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2622
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2623
|
+
var ret = wasm.style_link(ptr, ptr0, len0);
|
|
2624
|
+
return Style.__wrap(ret);
|
|
2625
|
+
}
|
|
2626
|
+
/**
|
|
2615
2627
|
* @returns {Style}
|
|
2616
2628
|
*/
|
|
2617
2629
|
vanish() {
|
|
Binary file
|
|
@@ -7,14 +7,10 @@ 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
|
|
11
|
-
export function
|
|
12
|
-
export function
|
|
13
|
-
export function
|
|
14
|
-
export function tablecellborder_border_type(a: number, b: number): number;
|
|
15
|
-
export function tablecellborder_get_size(a: number): number;
|
|
16
|
-
export function tablecellborder_get_color(a: number, b: number): void;
|
|
17
|
-
export function tablecellborder_get_border_type(a: number): number;
|
|
10
|
+
export function __wbg_delete_free(a: number): void;
|
|
11
|
+
export function createDelete(a: number): number;
|
|
12
|
+
export function delete_author(a: number, b: number, c: number): number;
|
|
13
|
+
export function delete_date(a: number, b: number, c: number): number;
|
|
18
14
|
export function __wbg_tablerow_free(a: number): void;
|
|
19
15
|
export function createTableRow(): number;
|
|
20
16
|
export function tablerow_add_cell(a: number, b: number): number;
|
|
@@ -22,10 +18,6 @@ export function tablerow_row_height(a: number, b: number): number;
|
|
|
22
18
|
export function tablerow_height_rule(a: number, b: number): number;
|
|
23
19
|
export function tablerow_delete(a: number, b: number, c: number, d: number, e: number): number;
|
|
24
20
|
export function tablerow_insert(a: number, b: number, c: number, d: number, e: number): number;
|
|
25
|
-
export function __wbg_delete_free(a: number): void;
|
|
26
|
-
export function createDelete(a: number): number;
|
|
27
|
-
export function delete_author(a: number, b: number, c: number): number;
|
|
28
|
-
export function delete_date(a: number, b: number, c: number): number;
|
|
29
21
|
export function __wbg_footer_free(a: number): void;
|
|
30
22
|
export function createFooter(): number;
|
|
31
23
|
export function footer_add_paragraph(a: number, b: number): number;
|
|
@@ -36,6 +28,7 @@ export function header_add_paragraph(a: number, b: number): number;
|
|
|
36
28
|
export function header_add_table(a: number, b: number): number;
|
|
37
29
|
export function __wbg_insert_free(a: number): void;
|
|
38
30
|
export function createInsert(a: number): number;
|
|
31
|
+
export function insert_author(a: number, b: number, c: number): number;
|
|
39
32
|
export function insert_date(a: number, b: number, c: number): number;
|
|
40
33
|
export function __wbg_linespacing_free(a: number): void;
|
|
41
34
|
export function createLineSpacing(): number;
|
|
@@ -45,7 +38,14 @@ export function linespacing_after(a: number, b: number): number;
|
|
|
45
38
|
export function linespacing_before_lines(a: number, b: number): number;
|
|
46
39
|
export function linespacing_after_lines(a: number, b: number): number;
|
|
47
40
|
export function linespacing_line(a: number, b: number): number;
|
|
48
|
-
export function
|
|
41
|
+
export function __wbg_tablecellborder_free(a: number): void;
|
|
42
|
+
export function createTableCellBorder(a: number): number;
|
|
43
|
+
export function tablecellborder_size(a: number, b: number): number;
|
|
44
|
+
export function tablecellborder_color(a: number, b: number, c: number): number;
|
|
45
|
+
export function tablecellborder_border_type(a: number, b: number): number;
|
|
46
|
+
export function tablecellborder_get_size(a: number): number;
|
|
47
|
+
export function tablecellborder_get_color(a: number, b: number): void;
|
|
48
|
+
export function tablecellborder_get_border_type(a: number): number;
|
|
49
49
|
export function __wbg_table_free(a: number): void;
|
|
50
50
|
export function createTable(): number;
|
|
51
51
|
export function table_add_row(a: number, b: number): number;
|
|
@@ -180,6 +180,42 @@ export function paragraph_widow_control(a: number, b: number): number;
|
|
|
180
180
|
export function paragraph_delete(a: number, b: number, c: number, d: number, e: number): number;
|
|
181
181
|
export function paragraph_insert(a: number, b: number, c: number, d: number, e: number): number;
|
|
182
182
|
export function paragraph_paragraph_property_change(a: number, b: number): number;
|
|
183
|
+
export function __wbg_style_free(a: number): void;
|
|
184
|
+
export function createStyle(a: number, b: number, c: number): number;
|
|
185
|
+
export function style_name(a: number, b: number, c: number): number;
|
|
186
|
+
export function style_based_on(a: number, b: number, c: number): number;
|
|
187
|
+
export function style_size(a: number, b: number): number;
|
|
188
|
+
export function style_color(a: number, b: number, c: number): number;
|
|
189
|
+
export function style_highlight(a: number, b: number, c: number): number;
|
|
190
|
+
export function style_bold(a: number): number;
|
|
191
|
+
export function style_italic(a: number): number;
|
|
192
|
+
export function style_strike(a: number): number;
|
|
193
|
+
export function style_underline(a: number, b: number, c: number): number;
|
|
194
|
+
export function style_link(a: number, b: number, c: number): number;
|
|
195
|
+
export function style_vanish(a: number): number;
|
|
196
|
+
export function style_fonts(a: number, b: number): number;
|
|
197
|
+
export function style_spacing(a: number, b: number): number;
|
|
198
|
+
export function style_vert_align(a: number, b: number): number;
|
|
199
|
+
export function style_text_border(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
200
|
+
export function style_align(a: number, b: number): number;
|
|
201
|
+
export function style_indent(a: number, b: number, c: number, d: number, e: number): number;
|
|
202
|
+
export function style_outline_lvl(a: number, b: number): number;
|
|
203
|
+
export function style_numbering(a: number, b: number, c: number): number;
|
|
204
|
+
export function style_line_spacing(a: number, b: number): number;
|
|
205
|
+
export function style_keep_next(a: number, b: number): number;
|
|
206
|
+
export function style_keep_lines(a: number, b: number): number;
|
|
207
|
+
export function style_page_break_before(a: number, b: number): number;
|
|
208
|
+
export function style_widow_control(a: number, b: number): number;
|
|
209
|
+
export function style_table_property(a: number, b: number): number;
|
|
210
|
+
export function style_table_cell_property(a: number, b: number): number;
|
|
211
|
+
export function style_table_indent(a: number, b: number): number;
|
|
212
|
+
export function style_table_align(a: number, b: number): number;
|
|
213
|
+
export function style_set_cell_margins(a: number, b: number, c: number, d: number, e: number): number;
|
|
214
|
+
export function style_cell_margin_top(a: number, b: number, c: number): number;
|
|
215
|
+
export function style_cell_margin_right(a: number, b: number, c: number): number;
|
|
216
|
+
export function style_cell_margin_bottom(a: number, b: number, c: number): number;
|
|
217
|
+
export function style_cell_margin_left(a: number, b: number, c: number): number;
|
|
218
|
+
export function style_layout(a: number, b: number): number;
|
|
183
219
|
export function __wbg_docx_free(a: number): void;
|
|
184
220
|
export function createDocx(): number;
|
|
185
221
|
export function docx_add_paragraph(a: number, b: number): number;
|
|
@@ -215,15 +251,10 @@ export function docx_add_custom_item(a: number, b: number, c: number, d: number,
|
|
|
215
251
|
export function docx_doc_grid(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
216
252
|
export function docx_build(a: number, b: number, c: number): void;
|
|
217
253
|
export function docx_json_with_update_comments(a: number, b: number): void;
|
|
218
|
-
export function
|
|
219
|
-
export function
|
|
220
|
-
export function
|
|
221
|
-
export function
|
|
222
|
-
export function pagemargin_bottom(a: number, b: number): number;
|
|
223
|
-
export function pagemargin_right(a: number, b: number): number;
|
|
224
|
-
export function pagemargin_header(a: number, b: number): number;
|
|
225
|
-
export function pagemargin_footer(a: number, b: number): number;
|
|
226
|
-
export function pagemargin_gutter(a: number, b: number): number;
|
|
254
|
+
export function __wbg_leveloverride_free(a: number): void;
|
|
255
|
+
export function createLevelOverride(a: number): number;
|
|
256
|
+
export function leveloverride_start(a: number, b: number): number;
|
|
257
|
+
export function leveloverride_level(a: number, b: number): number;
|
|
227
258
|
export function __wbg_run_free(a: number): void;
|
|
228
259
|
export function createRun(): number;
|
|
229
260
|
export function run_add_text(a: number, b: number, c: number): number;
|
|
@@ -244,45 +275,15 @@ export function run_fonts(a: number, b: number): number;
|
|
|
244
275
|
export function run_spacing(a: number, b: number): number;
|
|
245
276
|
export function run_vert_align(a: number, b: number): number;
|
|
246
277
|
export function run_text_border(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
247
|
-
export function
|
|
248
|
-
export function
|
|
249
|
-
export function
|
|
250
|
-
export function
|
|
251
|
-
export function
|
|
252
|
-
export function
|
|
253
|
-
export function
|
|
254
|
-
export function
|
|
255
|
-
export function
|
|
256
|
-
export function style_strike(a: number): number;
|
|
257
|
-
export function style_underline(a: number, b: number, c: number): number;
|
|
258
|
-
export function style_vanish(a: number): number;
|
|
259
|
-
export function style_fonts(a: number, b: number): number;
|
|
260
|
-
export function style_spacing(a: number, b: number): number;
|
|
261
|
-
export function style_vert_align(a: number, b: number): number;
|
|
262
|
-
export function style_text_border(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
263
|
-
export function style_align(a: number, b: number): number;
|
|
264
|
-
export function style_indent(a: number, b: number, c: number, d: number, e: number): number;
|
|
265
|
-
export function style_outline_lvl(a: number, b: number): number;
|
|
266
|
-
export function style_numbering(a: number, b: number, c: number): number;
|
|
267
|
-
export function style_line_spacing(a: number, b: number): number;
|
|
268
|
-
export function style_keep_next(a: number, b: number): number;
|
|
269
|
-
export function style_keep_lines(a: number, b: number): number;
|
|
270
|
-
export function style_page_break_before(a: number, b: number): number;
|
|
271
|
-
export function style_widow_control(a: number, b: number): number;
|
|
272
|
-
export function style_table_property(a: number, b: number): number;
|
|
273
|
-
export function style_table_cell_property(a: number, b: number): number;
|
|
274
|
-
export function style_table_indent(a: number, b: number): number;
|
|
275
|
-
export function style_table_align(a: number, b: number): number;
|
|
276
|
-
export function style_set_cell_margins(a: number, b: number, c: number, d: number, e: number): number;
|
|
277
|
-
export function style_cell_margin_top(a: number, b: number, c: number): number;
|
|
278
|
-
export function style_cell_margin_right(a: number, b: number, c: number): number;
|
|
279
|
-
export function style_cell_margin_bottom(a: number, b: number, c: number): number;
|
|
280
|
-
export function style_cell_margin_left(a: number, b: number, c: number): number;
|
|
281
|
-
export function style_layout(a: number, b: number): number;
|
|
282
|
-
export function __wbg_leveloverride_free(a: number): void;
|
|
283
|
-
export function createLevelOverride(a: number): number;
|
|
284
|
-
export function leveloverride_start(a: number, b: number): number;
|
|
285
|
-
export function leveloverride_level(a: number, b: number): number;
|
|
278
|
+
export function __wbg_pagemargin_free(a: number): void;
|
|
279
|
+
export function createPageMargin(): number;
|
|
280
|
+
export function pagemargin_top(a: number, b: number): number;
|
|
281
|
+
export function pagemargin_left(a: number, b: number): number;
|
|
282
|
+
export function pagemargin_bottom(a: number, b: number): number;
|
|
283
|
+
export function pagemargin_right(a: number, b: number): number;
|
|
284
|
+
export function pagemargin_header(a: number, b: number): number;
|
|
285
|
+
export function pagemargin_footer(a: number, b: number): number;
|
|
286
|
+
export function pagemargin_gutter(a: number, b: number): number;
|
|
286
287
|
export function __wbg_tablecellproperty_free(a: number): void;
|
|
287
288
|
export function __wbg_tableproperty_free(a: number): void;
|
|
288
289
|
export function __wbindgen_malloc(a: number): number;
|
package/dist/web/style.d.ts
CHANGED
|
@@ -13,9 +13,11 @@ export declare class Style {
|
|
|
13
13
|
_paragraphProperty: ParagraphProperty;
|
|
14
14
|
_tableProperty: TableProperty;
|
|
15
15
|
_basedOn: string | null;
|
|
16
|
+
_link: string | null;
|
|
16
17
|
constructor(id: string, type: StyleType);
|
|
17
18
|
name: (n: string) => this;
|
|
18
19
|
basedOn: (n: string) => this;
|
|
20
|
+
link: (n: string) => this;
|
|
19
21
|
style(style: string): this;
|
|
20
22
|
size(size: number): this;
|
|
21
23
|
color(color: string): this;
|
package/dist/web/style.js
CHANGED
|
@@ -12,6 +12,10 @@ export class Style {
|
|
|
12
12
|
this._basedOn = n;
|
|
13
13
|
return this;
|
|
14
14
|
};
|
|
15
|
+
this.link = (n) => {
|
|
16
|
+
this._link = n;
|
|
17
|
+
return this;
|
|
18
|
+
};
|
|
15
19
|
this.buildStyleType = () => {
|
|
16
20
|
switch (this._styleType) {
|
|
17
21
|
case "character":
|
|
@@ -34,6 +38,9 @@ export class Style {
|
|
|
34
38
|
if (this._basedOn) {
|
|
35
39
|
s = s.based_on(this._basedOn);
|
|
36
40
|
}
|
|
41
|
+
if (this._link) {
|
|
42
|
+
s = s.link(this._link);
|
|
43
|
+
}
|
|
37
44
|
s = setRunProperty(s, this._runProperty);
|
|
38
45
|
s = setParagraphProperty(s, this._paragraphProperty);
|
|
39
46
|
s = setTableProperty(s, this._tableProperty);
|
|
@@ -49,6 +56,7 @@ export class Style {
|
|
|
49
56
|
this._runProperty = createDefaultRunProperty();
|
|
50
57
|
this._paragraphProperty = createDefaultParagraphProperty();
|
|
51
58
|
this._basedOn = null;
|
|
59
|
+
this._link = null;
|
|
52
60
|
}
|
|
53
61
|
// TODO:
|
|
54
62
|
// runProperty = (n: RunProperty) => {
|
package/dist/web/style.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../js/style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,OAAO,CAAC;AAE9B,OAAO,EACL,6BAA6B,EAC7B,gBAAgB,GAIjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,wBAAwB,EAGxB,cAAc,GACf,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,8BAA8B,EAG9B,oBAAoB,GAErB,MAAM,sBAAsB,CAAC;AAM9B,MAAM,OAAO,KAAK;
|
|
1
|
+
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../js/style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,OAAO,CAAC;AAE9B,OAAO,EACL,6BAA6B,EAC7B,gBAAgB,GAIjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,wBAAwB,EAGxB,cAAc,GACf,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,8BAA8B,EAG9B,oBAAoB,GAErB,MAAM,sBAAsB,CAAC;AAM9B,MAAM,OAAO,KAAK;IAUhB,YAAY,EAAU,EAAE,IAAe;QAcvC,SAAI,G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O,IAAI,CAAC;IACd,CAAC;CAwCF"}
|
package/js/json/styles.ts
CHANGED
package/js/style.ts
CHANGED
|
@@ -35,6 +35,7 @@ export class Style {
|
|
|
35
35
|
_paragraphProperty: ParagraphProperty;
|
|
36
36
|
_tableProperty: TableProperty;
|
|
37
37
|
_basedOn: string | null;
|
|
38
|
+
_link: string | null;
|
|
38
39
|
|
|
39
40
|
constructor(id: string, type: StyleType) {
|
|
40
41
|
this._styleId = id;
|
|
@@ -47,6 +48,7 @@ export class Style {
|
|
|
47
48
|
this._runProperty = createDefaultRunProperty();
|
|
48
49
|
this._paragraphProperty = createDefaultParagraphProperty();
|
|
49
50
|
this._basedOn = null;
|
|
51
|
+
this._link = null;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
name = (n: string) => {
|
|
@@ -59,6 +61,11 @@ export class Style {
|
|
|
59
61
|
return this;
|
|
60
62
|
};
|
|
61
63
|
|
|
64
|
+
link = (n: string) => {
|
|
65
|
+
this._link = n;
|
|
66
|
+
return this;
|
|
67
|
+
};
|
|
68
|
+
|
|
62
69
|
// TODO:
|
|
63
70
|
// runProperty = (n: RunProperty) => {
|
|
64
71
|
// this._runProperty = n;
|
|
@@ -294,6 +301,10 @@ export class Style {
|
|
|
294
301
|
s = s.based_on(this._basedOn);
|
|
295
302
|
}
|
|
296
303
|
|
|
304
|
+
if (this._link) {
|
|
305
|
+
s = s.link(this._link);
|
|
306
|
+
}
|
|
307
|
+
|
|
297
308
|
s = setRunProperty(s, this._runProperty);
|
|
298
309
|
|
|
299
310
|
s = setParagraphProperty(s, this._paragraphProperty);
|