docx-wasm 0.4.12-beta11 → 0.4.12-beta12
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/bindings/TableCellBorders.d.ts +11 -0
- package/dist/node/json/bindings/TableCellBorders.js +3 -0
- package/dist/node/json/bindings/TableCellBorders.js.map +1 -0
- package/dist/node/json/table.d.ts +3 -1
- package/dist/node/pkg/docx_wasm.d.ts +48 -48
- package/dist/node/pkg/docx_wasm.js +16 -16
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/json/bindings/TableCellBorders.d.ts +11 -0
- package/dist/web/json/bindings/TableCellBorders.js +2 -0
- package/dist/web/json/bindings/TableCellBorders.js.map +1 -0
- package/dist/web/json/table.d.ts +3 -1
- package/dist/web/pkg/docx_wasm.d.ts +48 -48
- package/dist/web/pkg/docx_wasm_bg.js +16 -16
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/js/json/bindings/TableCellBorders.ts +3 -0
- package/js/json/table.ts +5 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TableCellBorder } from "./TableCellBorder";
|
|
2
|
+
export interface TableCellBorders {
|
|
3
|
+
top: TableCellBorder | null;
|
|
4
|
+
left: TableCellBorder | null;
|
|
5
|
+
bottom: TableCellBorder | null;
|
|
6
|
+
right: TableCellBorder | null;
|
|
7
|
+
insideH: TableCellBorder | null;
|
|
8
|
+
insideV: TableCellBorder | null;
|
|
9
|
+
tr2Bl: TableCellBorder | null;
|
|
10
|
+
tl2Br: TableCellBorder | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellBorders.js","sourceRoot":"","sources":["../../../../js/json/bindings/TableCellBorders.ts"],"names":[],"mappings":""}
|
|
@@ -6,6 +6,8 @@ import { ShadingJSON } from "./shading";
|
|
|
6
6
|
import { TableLayoutType } from "../table";
|
|
7
7
|
import { DeleteJSONData, InsertJSONData } from "..";
|
|
8
8
|
import { StructuredTagJSON } from "./structured-data-tag";
|
|
9
|
+
import { TableCellBorder } from "./bindings/TableCellBorder";
|
|
10
|
+
export { TableCellBorder as TableCellBorderJSON } from "./bindings/TableCellBorder";
|
|
9
11
|
export declare type TableCellChildJSON = ParagraphJSON | TableJSON | StructuredTagJSON;
|
|
10
12
|
export declare type WidthType = "dxa" | "auto" | "pct" | "nil";
|
|
11
13
|
export { TextDirectionType } from "../table-cell";
|
|
@@ -15,7 +17,7 @@ export declare type TableCellPropertyJSON = {
|
|
|
15
17
|
width: number;
|
|
16
18
|
widthType: WidthType;
|
|
17
19
|
} | null;
|
|
18
|
-
borders?:
|
|
20
|
+
borders?: TableCellBorder | null;
|
|
19
21
|
gridSpan?: number | null;
|
|
20
22
|
verticalMerge?: "restart" | "continue" | null;
|
|
21
23
|
verticalAlign?: "top" | "center" | "bottom" | null;
|
|
@@ -169,12 +169,6 @@ export enum VMergeType {
|
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
171
|
*/
|
|
172
|
-
export enum PageOrientationType {
|
|
173
|
-
Landscape,
|
|
174
|
-
Portrait,
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
*/
|
|
178
172
|
export enum RelativeFromHType {
|
|
179
173
|
/**
|
|
180
174
|
* Specifies that the horizontal positioning shall be
|
|
@@ -235,6 +229,12 @@ export enum RelativeFromVType {
|
|
|
235
229
|
}
|
|
236
230
|
/**
|
|
237
231
|
*/
|
|
232
|
+
export enum PageOrientationType {
|
|
233
|
+
Landscape,
|
|
234
|
+
Portrait,
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
*/
|
|
238
238
|
export enum SectionType {
|
|
239
239
|
NextPage,
|
|
240
240
|
NextColumn,
|
|
@@ -244,6 +244,20 @@ export enum SectionType {
|
|
|
244
244
|
}
|
|
245
245
|
/**
|
|
246
246
|
*/
|
|
247
|
+
export enum TextDirectionType {
|
|
248
|
+
Lr,
|
|
249
|
+
LrV,
|
|
250
|
+
Rl,
|
|
251
|
+
RlV,
|
|
252
|
+
Tb,
|
|
253
|
+
TbV,
|
|
254
|
+
TbRlV,
|
|
255
|
+
TbRl,
|
|
256
|
+
BtLr,
|
|
257
|
+
LrTbV,
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
*/
|
|
247
261
|
export enum TableBorderPosition {
|
|
248
262
|
Left,
|
|
249
263
|
Right,
|
|
@@ -333,20 +347,6 @@ export enum TabValueType {
|
|
|
333
347
|
}
|
|
334
348
|
/**
|
|
335
349
|
*/
|
|
336
|
-
export enum TextDirectionType {
|
|
337
|
-
Lr,
|
|
338
|
-
LrV,
|
|
339
|
-
Rl,
|
|
340
|
-
RlV,
|
|
341
|
-
Tb,
|
|
342
|
-
TbV,
|
|
343
|
-
TbRlV,
|
|
344
|
-
TbRl,
|
|
345
|
-
BtLr,
|
|
346
|
-
LrTbV,
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
*/
|
|
350
350
|
export enum DocGridType {
|
|
351
351
|
Default,
|
|
352
352
|
Lines,
|
|
@@ -418,12 +418,6 @@ export enum TableAlignmentType {
|
|
|
418
418
|
}
|
|
419
419
|
/**
|
|
420
420
|
*/
|
|
421
|
-
export enum TableLayoutType {
|
|
422
|
-
Fixed,
|
|
423
|
-
Autofit,
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
*/
|
|
427
421
|
export enum AlignmentType {
|
|
428
422
|
Both,
|
|
429
423
|
Center,
|
|
@@ -445,40 +439,32 @@ export enum BreakType {
|
|
|
445
439
|
}
|
|
446
440
|
/**
|
|
447
441
|
*/
|
|
448
|
-
export enum
|
|
449
|
-
|
|
450
|
-
|
|
442
|
+
export enum TableLayoutType {
|
|
443
|
+
Fixed,
|
|
444
|
+
Autofit,
|
|
451
445
|
}
|
|
452
446
|
/**
|
|
453
447
|
*/
|
|
454
|
-
export enum
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
Center,
|
|
448
|
+
export enum TextAlignmentType {
|
|
449
|
+
Auto,
|
|
450
|
+
Baseline,
|
|
458
451
|
Bottom,
|
|
452
|
+
Center,
|
|
459
453
|
Top,
|
|
460
454
|
}
|
|
461
455
|
/**
|
|
462
456
|
*/
|
|
463
|
-
export enum
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
Exact,
|
|
467
|
-
}
|
|
468
|
-
/**
|
|
469
|
-
*/
|
|
470
|
-
export enum LevelSuffixType {
|
|
471
|
-
Nothing,
|
|
472
|
-
Space,
|
|
473
|
-
Tab,
|
|
457
|
+
export enum DrawingPositionType {
|
|
458
|
+
Anchor,
|
|
459
|
+
Inline,
|
|
474
460
|
}
|
|
475
461
|
/**
|
|
476
462
|
*/
|
|
477
|
-
export enum
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
Bottom,
|
|
463
|
+
export enum PicAlign {
|
|
464
|
+
Left,
|
|
465
|
+
Right,
|
|
481
466
|
Center,
|
|
467
|
+
Bottom,
|
|
482
468
|
Top,
|
|
483
469
|
}
|
|
484
470
|
/**
|
|
@@ -499,6 +485,20 @@ export enum VAlignType {
|
|
|
499
485
|
}
|
|
500
486
|
/**
|
|
501
487
|
*/
|
|
488
|
+
export enum HeightRule {
|
|
489
|
+
Auto,
|
|
490
|
+
AtLeast,
|
|
491
|
+
Exact,
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
*/
|
|
495
|
+
export enum LevelSuffixType {
|
|
496
|
+
Nothing,
|
|
497
|
+
Space,
|
|
498
|
+
Tab,
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
*/
|
|
502
502
|
export enum FieldCharType {
|
|
503
503
|
Begin,
|
|
504
504
|
Separate,
|
|
@@ -462,9 +462,6 @@ module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",H
|
|
|
462
462
|
module.exports.VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
|
|
463
463
|
/**
|
|
464
464
|
*/
|
|
465
|
-
module.exports.PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
466
|
-
/**
|
|
467
|
-
*/
|
|
468
465
|
module.exports.RelativeFromHType = Object.freeze({
|
|
469
466
|
/**
|
|
470
467
|
* Specifies that the horizontal positioning shall be
|
|
@@ -515,9 +512,15 @@ RightMargin:7,"7":"RightMargin", });
|
|
|
515
512
|
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", });
|
|
516
513
|
/**
|
|
517
514
|
*/
|
|
515
|
+
module.exports.PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
516
|
+
/**
|
|
517
|
+
*/
|
|
518
518
|
module.exports.SectionType = Object.freeze({ NextPage:0,"0":"NextPage",NextColumn:1,"1":"NextColumn",Continuous:2,"2":"Continuous",EvenPage:3,"3":"EvenPage",OddPage:4,"4":"OddPage", });
|
|
519
519
|
/**
|
|
520
520
|
*/
|
|
521
|
+
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", });
|
|
522
|
+
/**
|
|
523
|
+
*/
|
|
521
524
|
module.exports.TableBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV", });
|
|
522
525
|
/**
|
|
523
526
|
*/
|
|
@@ -536,9 +539,6 @@ module.exports.StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character
|
|
|
536
539
|
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", });
|
|
537
540
|
/**
|
|
538
541
|
*/
|
|
539
|
-
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", });
|
|
540
|
-
/**
|
|
541
|
-
*/
|
|
542
542
|
module.exports.DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
|
|
543
543
|
/**
|
|
544
544
|
*/
|
|
@@ -554,28 +554,22 @@ module.exports.CharacterSpacingValues = Object.freeze({ DoNotCompress:0,"0":"DoN
|
|
|
554
554
|
module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
555
555
|
/**
|
|
556
556
|
*/
|
|
557
|
-
module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
|
|
558
|
-
/**
|
|
559
|
-
*/
|
|
560
557
|
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", });
|
|
561
558
|
/**
|
|
562
559
|
*/
|
|
563
560
|
module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
|
|
564
561
|
/**
|
|
565
562
|
*/
|
|
566
|
-
module.exports.
|
|
567
|
-
/**
|
|
568
|
-
*/
|
|
569
|
-
module.exports.PicAlign = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Center:2,"2":"Center",Bottom:3,"3":"Bottom",Top:4,"4":"Top", });
|
|
563
|
+
module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
|
|
570
564
|
/**
|
|
571
565
|
*/
|
|
572
|
-
module.exports.
|
|
566
|
+
module.exports.TextAlignmentType = Object.freeze({ Auto:0,"0":"Auto",Baseline:1,"1":"Baseline",Bottom:2,"2":"Bottom",Center:3,"3":"Center",Top:4,"4":"Top", });
|
|
573
567
|
/**
|
|
574
568
|
*/
|
|
575
|
-
module.exports.
|
|
569
|
+
module.exports.DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:1,"1":"Inline", });
|
|
576
570
|
/**
|
|
577
571
|
*/
|
|
578
|
-
module.exports.
|
|
572
|
+
module.exports.PicAlign = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Center:2,"2":"Center",Bottom:3,"3":"Bottom",Top:4,"4":"Top", });
|
|
579
573
|
/**
|
|
580
574
|
*/
|
|
581
575
|
module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
@@ -584,6 +578,12 @@ module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperSc
|
|
|
584
578
|
module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
585
579
|
/**
|
|
586
580
|
*/
|
|
581
|
+
module.exports.HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
582
|
+
/**
|
|
583
|
+
*/
|
|
584
|
+
module.exports.LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
|
|
585
|
+
/**
|
|
586
|
+
*/
|
|
587
587
|
module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
588
588
|
/**
|
|
589
589
|
*/
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TableCellBorder } from "./TableCellBorder";
|
|
2
|
+
export interface TableCellBorders {
|
|
3
|
+
top: TableCellBorder | null;
|
|
4
|
+
left: TableCellBorder | null;
|
|
5
|
+
bottom: TableCellBorder | null;
|
|
6
|
+
right: TableCellBorder | null;
|
|
7
|
+
insideH: TableCellBorder | null;
|
|
8
|
+
insideV: TableCellBorder | null;
|
|
9
|
+
tr2Bl: TableCellBorder | null;
|
|
10
|
+
tl2Br: TableCellBorder | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellBorders.js","sourceRoot":"","sources":["../../../../js/json/bindings/TableCellBorders.ts"],"names":[],"mappings":""}
|
package/dist/web/json/table.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { ShadingJSON } from "./shading";
|
|
|
6
6
|
import { TableLayoutType } from "../table";
|
|
7
7
|
import { DeleteJSONData, InsertJSONData } from "..";
|
|
8
8
|
import { StructuredTagJSON } from "./structured-data-tag";
|
|
9
|
+
import { TableCellBorder } from "./bindings/TableCellBorder";
|
|
10
|
+
export { TableCellBorder as TableCellBorderJSON } from "./bindings/TableCellBorder";
|
|
9
11
|
export declare type TableCellChildJSON = ParagraphJSON | TableJSON | StructuredTagJSON;
|
|
10
12
|
export declare type WidthType = "dxa" | "auto" | "pct" | "nil";
|
|
11
13
|
export { TextDirectionType } from "../table-cell";
|
|
@@ -15,7 +17,7 @@ export declare type TableCellPropertyJSON = {
|
|
|
15
17
|
width: number;
|
|
16
18
|
widthType: WidthType;
|
|
17
19
|
} | null;
|
|
18
|
-
borders?:
|
|
20
|
+
borders?: TableCellBorder | null;
|
|
19
21
|
gridSpan?: number | null;
|
|
20
22
|
verticalMerge?: "restart" | "continue" | null;
|
|
21
23
|
verticalAlign?: "top" | "center" | "bottom" | null;
|
|
@@ -169,12 +169,6 @@ export enum VMergeType {
|
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
171
|
*/
|
|
172
|
-
export enum PageOrientationType {
|
|
173
|
-
Landscape,
|
|
174
|
-
Portrait,
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
*/
|
|
178
172
|
export enum RelativeFromHType {
|
|
179
173
|
/**
|
|
180
174
|
* Specifies that the horizontal positioning shall be
|
|
@@ -235,6 +229,12 @@ export enum RelativeFromVType {
|
|
|
235
229
|
}
|
|
236
230
|
/**
|
|
237
231
|
*/
|
|
232
|
+
export enum PageOrientationType {
|
|
233
|
+
Landscape,
|
|
234
|
+
Portrait,
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
*/
|
|
238
238
|
export enum SectionType {
|
|
239
239
|
NextPage,
|
|
240
240
|
NextColumn,
|
|
@@ -244,6 +244,20 @@ export enum SectionType {
|
|
|
244
244
|
}
|
|
245
245
|
/**
|
|
246
246
|
*/
|
|
247
|
+
export enum TextDirectionType {
|
|
248
|
+
Lr,
|
|
249
|
+
LrV,
|
|
250
|
+
Rl,
|
|
251
|
+
RlV,
|
|
252
|
+
Tb,
|
|
253
|
+
TbV,
|
|
254
|
+
TbRlV,
|
|
255
|
+
TbRl,
|
|
256
|
+
BtLr,
|
|
257
|
+
LrTbV,
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
*/
|
|
247
261
|
export enum TableBorderPosition {
|
|
248
262
|
Left,
|
|
249
263
|
Right,
|
|
@@ -333,20 +347,6 @@ export enum TabValueType {
|
|
|
333
347
|
}
|
|
334
348
|
/**
|
|
335
349
|
*/
|
|
336
|
-
export enum TextDirectionType {
|
|
337
|
-
Lr,
|
|
338
|
-
LrV,
|
|
339
|
-
Rl,
|
|
340
|
-
RlV,
|
|
341
|
-
Tb,
|
|
342
|
-
TbV,
|
|
343
|
-
TbRlV,
|
|
344
|
-
TbRl,
|
|
345
|
-
BtLr,
|
|
346
|
-
LrTbV,
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
*/
|
|
350
350
|
export enum DocGridType {
|
|
351
351
|
Default,
|
|
352
352
|
Lines,
|
|
@@ -418,12 +418,6 @@ export enum TableAlignmentType {
|
|
|
418
418
|
}
|
|
419
419
|
/**
|
|
420
420
|
*/
|
|
421
|
-
export enum TableLayoutType {
|
|
422
|
-
Fixed,
|
|
423
|
-
Autofit,
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
*/
|
|
427
421
|
export enum AlignmentType {
|
|
428
422
|
Both,
|
|
429
423
|
Center,
|
|
@@ -445,40 +439,32 @@ export enum BreakType {
|
|
|
445
439
|
}
|
|
446
440
|
/**
|
|
447
441
|
*/
|
|
448
|
-
export enum
|
|
449
|
-
|
|
450
|
-
|
|
442
|
+
export enum TableLayoutType {
|
|
443
|
+
Fixed,
|
|
444
|
+
Autofit,
|
|
451
445
|
}
|
|
452
446
|
/**
|
|
453
447
|
*/
|
|
454
|
-
export enum
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
Center,
|
|
448
|
+
export enum TextAlignmentType {
|
|
449
|
+
Auto,
|
|
450
|
+
Baseline,
|
|
458
451
|
Bottom,
|
|
452
|
+
Center,
|
|
459
453
|
Top,
|
|
460
454
|
}
|
|
461
455
|
/**
|
|
462
456
|
*/
|
|
463
|
-
export enum
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
Exact,
|
|
467
|
-
}
|
|
468
|
-
/**
|
|
469
|
-
*/
|
|
470
|
-
export enum LevelSuffixType {
|
|
471
|
-
Nothing,
|
|
472
|
-
Space,
|
|
473
|
-
Tab,
|
|
457
|
+
export enum DrawingPositionType {
|
|
458
|
+
Anchor,
|
|
459
|
+
Inline,
|
|
474
460
|
}
|
|
475
461
|
/**
|
|
476
462
|
*/
|
|
477
|
-
export enum
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
Bottom,
|
|
463
|
+
export enum PicAlign {
|
|
464
|
+
Left,
|
|
465
|
+
Right,
|
|
481
466
|
Center,
|
|
467
|
+
Bottom,
|
|
482
468
|
Top,
|
|
483
469
|
}
|
|
484
470
|
/**
|
|
@@ -499,6 +485,20 @@ export enum VAlignType {
|
|
|
499
485
|
}
|
|
500
486
|
/**
|
|
501
487
|
*/
|
|
488
|
+
export enum HeightRule {
|
|
489
|
+
Auto,
|
|
490
|
+
AtLeast,
|
|
491
|
+
Exact,
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
*/
|
|
495
|
+
export enum LevelSuffixType {
|
|
496
|
+
Nothing,
|
|
497
|
+
Space,
|
|
498
|
+
Tab,
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
*/
|
|
502
502
|
export enum FieldCharType {
|
|
503
503
|
Begin,
|
|
504
504
|
Separate,
|
|
@@ -463,9 +463,6 @@ export const SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Han
|
|
|
463
463
|
export const VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
|
|
464
464
|
/**
|
|
465
465
|
*/
|
|
466
|
-
export const PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
467
|
-
/**
|
|
468
|
-
*/
|
|
469
466
|
export const RelativeFromHType = Object.freeze({
|
|
470
467
|
/**
|
|
471
468
|
* Specifies that the horizontal positioning shall be
|
|
@@ -516,9 +513,15 @@ RightMargin:7,"7":"RightMargin", });
|
|
|
516
513
|
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", });
|
|
517
514
|
/**
|
|
518
515
|
*/
|
|
516
|
+
export const PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
517
|
+
/**
|
|
518
|
+
*/
|
|
519
519
|
export const SectionType = Object.freeze({ NextPage:0,"0":"NextPage",NextColumn:1,"1":"NextColumn",Continuous:2,"2":"Continuous",EvenPage:3,"3":"EvenPage",OddPage:4,"4":"OddPage", });
|
|
520
520
|
/**
|
|
521
521
|
*/
|
|
522
|
+
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", });
|
|
523
|
+
/**
|
|
524
|
+
*/
|
|
522
525
|
export const TableBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV", });
|
|
523
526
|
/**
|
|
524
527
|
*/
|
|
@@ -537,9 +540,6 @@ export const StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1
|
|
|
537
540
|
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", });
|
|
538
541
|
/**
|
|
539
542
|
*/
|
|
540
|
-
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", });
|
|
541
|
-
/**
|
|
542
|
-
*/
|
|
543
543
|
export const DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
|
|
544
544
|
/**
|
|
545
545
|
*/
|
|
@@ -555,28 +555,22 @@ export const CharacterSpacingValues = Object.freeze({ DoNotCompress:0,"0":"DoNot
|
|
|
555
555
|
export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
556
556
|
/**
|
|
557
557
|
*/
|
|
558
|
-
export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
|
|
559
|
-
/**
|
|
560
|
-
*/
|
|
561
558
|
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", });
|
|
562
559
|
/**
|
|
563
560
|
*/
|
|
564
561
|
export const BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
|
|
565
562
|
/**
|
|
566
563
|
*/
|
|
567
|
-
export const
|
|
568
|
-
/**
|
|
569
|
-
*/
|
|
570
|
-
export const PicAlign = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Center:2,"2":"Center",Bottom:3,"3":"Bottom",Top:4,"4":"Top", });
|
|
564
|
+
export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
|
|
571
565
|
/**
|
|
572
566
|
*/
|
|
573
|
-
export const
|
|
567
|
+
export const TextAlignmentType = Object.freeze({ Auto:0,"0":"Auto",Baseline:1,"1":"Baseline",Bottom:2,"2":"Bottom",Center:3,"3":"Center",Top:4,"4":"Top", });
|
|
574
568
|
/**
|
|
575
569
|
*/
|
|
576
|
-
export const
|
|
570
|
+
export const DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:1,"1":"Inline", });
|
|
577
571
|
/**
|
|
578
572
|
*/
|
|
579
|
-
export const
|
|
573
|
+
export const PicAlign = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Center:2,"2":"Center",Bottom:3,"3":"Bottom",Top:4,"4":"Top", });
|
|
580
574
|
/**
|
|
581
575
|
*/
|
|
582
576
|
export const VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
@@ -585,6 +579,12 @@ export const VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScri
|
|
|
585
579
|
export const VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
586
580
|
/**
|
|
587
581
|
*/
|
|
582
|
+
export const HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
583
|
+
/**
|
|
584
|
+
*/
|
|
585
|
+
export const LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
|
|
586
|
+
/**
|
|
587
|
+
*/
|
|
588
588
|
export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
589
589
|
/**
|
|
590
590
|
*/
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TableCellBorder } from "./TableCellBorder";
|
|
2
|
+
|
|
3
|
+
export interface TableCellBorders { top: TableCellBorder | null, left: TableCellBorder | null, bottom: TableCellBorder | null, right: TableCellBorder | null, insideH: TableCellBorder | null, insideV: TableCellBorder | null, tr2Bl: TableCellBorder | null, tl2Br: TableCellBorder | null, }
|
package/js/json/table.ts
CHANGED
|
@@ -7,6 +7,10 @@ import { TableLayoutType } from "../table";
|
|
|
7
7
|
import { DeleteJSONData, InsertJSONData } from "..";
|
|
8
8
|
import { StructuredTagJSON } from "./structured-data-tag";
|
|
9
9
|
|
|
10
|
+
import { TableCellBorder } from "./bindings/TableCellBorder";
|
|
11
|
+
|
|
12
|
+
export { TableCellBorder as TableCellBorderJSON } from "./bindings/TableCellBorder";
|
|
13
|
+
|
|
10
14
|
export type TableCellChildJSON = ParagraphJSON | TableJSON | StructuredTagJSON;
|
|
11
15
|
|
|
12
16
|
export type WidthType = "dxa" | "auto" | "pct" | "nil";
|
|
@@ -20,7 +24,7 @@ export type TableCellPropertyJSON = {
|
|
|
20
24
|
width: number;
|
|
21
25
|
widthType: WidthType;
|
|
22
26
|
} | null;
|
|
23
|
-
borders?:
|
|
27
|
+
borders?: TableCellBorder | null;
|
|
24
28
|
gridSpan?: number | null;
|
|
25
29
|
verticalMerge?: "restart" | "continue" | null;
|
|
26
30
|
verticalAlign?: "top" | "center" | "bottom" | null;
|