docx-wasm 0.4.12-beta1 → 0.4.12-beta2

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.
@@ -0,0 +1,14 @@
1
+ export interface FrameProperty {
2
+ h?: number;
3
+ hRule?: string;
4
+ hAnchor?: string;
5
+ hSpace?: number;
6
+ vAnchor?: string;
7
+ vSpace?: number;
8
+ w?: number;
9
+ wrap?: string;
10
+ x?: number;
11
+ xAlign?: string;
12
+ y?: number;
13
+ yAlign?: string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FrameProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameProperty.js","sourceRoot":"","sources":["../../../../js/json/bindings/FrameProperty.ts"],"names":[],"mappings":""}
@@ -151,6 +151,66 @@ export enum PageOrientationType {
151
151
  }
152
152
  /**
153
153
  */
154
+ export enum RelativeFromHType {
155
+ /**
156
+ * Specifies that the horizontal positioning shall be
157
+ * relative to the position of the anchor within its run
158
+ * content.
159
+ */
160
+ Character,
161
+ /**
162
+ * Specifies that the horizontal positioning shall be
163
+ * relative to the extents of the column which contains its
164
+ * anchor.
165
+ */
166
+ Column,
167
+ /**
168
+ * Specifies that the horizontal positioning shall be
169
+ * relative to the inside margin of the current page (the
170
+ * left margin on odd pages, right on even pages).
171
+ */
172
+ InsideMargin,
173
+ /**
174
+ * Specifies that the horizontal positioning shall be
175
+ * relative to the left margin of the page.
176
+ */
177
+ LeftMargin,
178
+ /**
179
+ * Specifies that the horizontal positioning shall be
180
+ * relative to the page margins.
181
+ */
182
+ Margin,
183
+ /**
184
+ * Specifies that the horizontal positioning shall be
185
+ * relative to the outside margin of the current page (the
186
+ * right margin on odd pages, left on even pages).
187
+ */
188
+ OutsizeMargin,
189
+ /**
190
+ * Specifies that the horizontal positioning shall be
191
+ * relative to the edge of the page.
192
+ */
193
+ Page,
194
+ /**
195
+ * Specifies that the horizontal positioning shall be
196
+ * relative to the right margin of the page.
197
+ */
198
+ RightMargin,
199
+ }
200
+ /**
201
+ */
202
+ export enum RelativeFromVType {
203
+ BottomMargin,
204
+ InsideMargin,
205
+ Line,
206
+ Margin,
207
+ OutsizeMargin,
208
+ Page,
209
+ Paragraph,
210
+ TopMargin,
211
+ }
212
+ /**
213
+ */
154
214
  export enum SectionType {
155
215
  NextPage,
156
216
  NextColumn,
@@ -160,6 +220,13 @@ export enum SectionType {
160
220
  }
161
221
  /**
162
222
  */
223
+ export enum VMergeType {
224
+ Continue,
225
+ Restart,
226
+ Unsupported,
227
+ }
228
+ /**
229
+ */
163
230
  export enum StyleType {
164
231
  Paragraph,
165
232
  Character,
@@ -169,19 +236,6 @@ export enum StyleType {
169
236
  }
170
237
  /**
171
238
  */
172
- export enum TabValueType {
173
- Bar,
174
- Center,
175
- Clear,
176
- Decimal,
177
- End,
178
- Right,
179
- Num,
180
- Start,
181
- Left,
182
- }
183
- /**
184
- */
185
239
  export enum TextDirectionType {
186
240
  Lr,
187
241
  LrV,
@@ -246,6 +300,19 @@ export enum ShdType {
246
300
  }
247
301
  /**
248
302
  */
303
+ export enum TabValueType {
304
+ Bar,
305
+ Center,
306
+ Clear,
307
+ Decimal,
308
+ End,
309
+ Right,
310
+ Num,
311
+ Start,
312
+ Left,
313
+ }
314
+ /**
315
+ */
249
316
  export enum TableBorderPosition {
250
317
  Left,
251
318
  Right,
@@ -278,6 +345,19 @@ export enum ParagraphBorderPosition {
278
345
  }
279
346
  /**
280
347
  */
348
+ export enum AlignmentType {
349
+ Both,
350
+ Center,
351
+ Distribute,
352
+ Start,
353
+ End,
354
+ Left,
355
+ Right,
356
+ Justified,
357
+ Unsupported,
358
+ }
359
+ /**
360
+ */
281
361
  export enum CharacterSpacingValues {
282
362
  DoNotCompress,
283
363
  CompressPunctuation,
@@ -299,22 +379,48 @@ export enum TableAlignmentType {
299
379
  }
300
380
  /**
301
381
  */
302
- export enum AlignmentType {
303
- Both,
304
- Center,
305
- Distribute,
306
- Start,
307
- End,
382
+ export enum TableLayoutType {
383
+ Fixed,
384
+ Autofit,
385
+ }
386
+ /**
387
+ */
388
+ export enum BreakType {
389
+ Page,
390
+ Column,
391
+ TextWrapping,
392
+ Unsupported,
393
+ }
394
+ /**
395
+ */
396
+ export enum DrawingPositionType {
397
+ Anchor,
398
+ Inline,
399
+ }
400
+ /**
401
+ */
402
+ export enum PicAlign {
308
403
  Left,
309
404
  Right,
310
- Justified,
405
+ Center,
406
+ Bottom,
407
+ Top,
408
+ }
409
+ /**
410
+ */
411
+ export enum VertAlignType {
412
+ Baseline,
413
+ SuperScript,
414
+ SubScript,
311
415
  Unsupported,
312
416
  }
313
417
  /**
314
418
  */
315
- export enum TableLayoutType {
316
- Fixed,
317
- Autofit,
419
+ export enum VAlignType {
420
+ Top,
421
+ Center,
422
+ Bottom,
423
+ Unsupported,
318
424
  }
319
425
  /**
320
426
  */
@@ -353,29 +459,6 @@ export enum BorderType {
353
459
  }
354
460
  /**
355
461
  */
356
- export enum BreakType {
357
- Page,
358
- Column,
359
- TextWrapping,
360
- Unsupported,
361
- }
362
- /**
363
- */
364
- export enum DrawingPositionType {
365
- Anchor,
366
- Inline,
367
- }
368
- /**
369
- */
370
- export enum PicAlign {
371
- Left,
372
- Right,
373
- Center,
374
- Bottom,
375
- Top,
376
- }
377
- /**
378
- */
379
462
  export enum HeightRule {
380
463
  Auto,
381
464
  AtLeast,
@@ -383,22 +466,6 @@ export enum HeightRule {
383
466
  }
384
467
  /**
385
468
  */
386
- export enum VertAlignType {
387
- Baseline,
388
- SuperScript,
389
- SubScript,
390
- Unsupported,
391
- }
392
- /**
393
- */
394
- export enum VAlignType {
395
- Top,
396
- Center,
397
- Bottom,
398
- Unsupported,
399
- }
400
- /**
401
- */
402
469
  export enum LevelSuffixType {
403
470
  Nothing,
404
471
  Space,
@@ -414,13 +481,6 @@ export enum FieldCharType {
414
481
  }
415
482
  /**
416
483
  */
417
- export enum FontPitchType {
418
- Default,
419
- Fixed,
420
- Variable,
421
- }
422
- /**
423
- */
424
484
  export enum TabLeaderType {
425
485
  Dot,
426
486
  Heavy,
@@ -440,70 +500,10 @@ export enum WidthType {
440
500
  }
441
501
  /**
442
502
  */
443
- export enum LineSpacingType {
444
- Auto,
445
- AtLeast,
446
- Exact,
447
- }
448
- /**
449
- */
450
- export enum RelativeFromHType {
451
- /**
452
- * Specifies that the horizontal positioning shall be
453
- * relative to the position of the anchor within its run
454
- * content.
455
- */
456
- Character,
457
- /**
458
- * Specifies that the horizontal positioning shall be
459
- * relative to the extents of the column which contains its
460
- * anchor.
461
- */
462
- Column,
463
- /**
464
- * Specifies that the horizontal positioning shall be
465
- * relative to the inside margin of the current page (the
466
- * left margin on odd pages, right on even pages).
467
- */
468
- InsideMargin,
469
- /**
470
- * Specifies that the horizontal positioning shall be
471
- * relative to the left margin of the page.
472
- */
473
- LeftMargin,
474
- /**
475
- * Specifies that the horizontal positioning shall be
476
- * relative to the page margins.
477
- */
478
- Margin,
479
- /**
480
- * Specifies that the horizontal positioning shall be
481
- * relative to the outside margin of the current page (the
482
- * right margin on odd pages, left on even pages).
483
- */
484
- OutsizeMargin,
485
- /**
486
- * Specifies that the horizontal positioning shall be
487
- * relative to the edge of the page.
488
- */
489
- Page,
490
- /**
491
- * Specifies that the horizontal positioning shall be
492
- * relative to the right margin of the page.
493
- */
494
- RightMargin,
495
- }
496
- /**
497
- */
498
- export enum RelativeFromVType {
499
- BottomMargin,
500
- InsideMargin,
501
- Line,
502
- Margin,
503
- OutsizeMargin,
504
- Page,
505
- Paragraph,
506
- TopMargin,
503
+ export enum FontPitchType {
504
+ Default,
505
+ Fixed,
506
+ Variable,
507
507
  }
508
508
  /**
509
509
  */
@@ -513,10 +513,10 @@ export enum SpecialIndentKind {
513
513
  }
514
514
  /**
515
515
  */
516
- export enum VMergeType {
517
- Continue,
518
- Restart,
519
- Unsupported,
516
+ export enum LineSpacingType {
517
+ Auto,
518
+ AtLeast,
519
+ Exact,
520
520
  }
521
521
  /**
522
522
  */
@@ -447,141 +447,141 @@ module.exports.createTableRow = function() {
447
447
  module.exports.PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
448
448
  /**
449
449
  */
450
- 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", });
450
+ module.exports.RelativeFromHType = Object.freeze({
451
451
  /**
452
+ * Specifies that the horizontal positioning shall be
453
+ * relative to the position of the anchor within its run
454
+ * content.
452
455
  */
453
- module.exports.StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
456
+ Character:0,"0":"Character",
454
457
  /**
458
+ * Specifies that the horizontal positioning shall be
459
+ * relative to the extents of the column which contains its
460
+ * anchor.
455
461
  */
456
- 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", });
462
+ Column:1,"1":"Column",
457
463
  /**
464
+ * Specifies that the horizontal positioning shall be
465
+ * relative to the inside margin of the current page (the
466
+ * left margin on odd pages, right on even pages).
458
467
  */
459
- 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", });
468
+ InsideMargin:2,"2":"InsideMargin",
460
469
  /**
470
+ * Specifies that the horizontal positioning shall be
471
+ * relative to the left margin of the page.
461
472
  */
462
- module.exports.DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
473
+ LeftMargin:3,"3":"LeftMargin",
463
474
  /**
475
+ * Specifies that the horizontal positioning shall be
476
+ * relative to the page margins.
464
477
  */
465
- 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", });
478
+ Margin:4,"4":"Margin",
466
479
  /**
480
+ * Specifies that the horizontal positioning shall be
481
+ * relative to the outside margin of the current page (the
482
+ * right margin on odd pages, left on even pages).
467
483
  */
468
- 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", });
484
+ OutsizeMargin:5,"5":"OutsizeMargin",
469
485
  /**
486
+ * Specifies that the horizontal positioning shall be
487
+ * relative to the edge of the page.
470
488
  */
471
- module.exports.TableCellBorderPosition = 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",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
489
+ Page:6,"6":"Page",
472
490
  /**
491
+ * Specifies that the horizontal positioning shall be
492
+ * relative to the right margin of the page.
473
493
  */
474
- module.exports.ParagraphBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",Between:4,"4":"Between",Bar:5,"5":"Bar", });
494
+ RightMargin:7,"7":"RightMargin", });
475
495
  /**
476
496
  */
477
- module.exports.CharacterSpacingValues = Object.freeze({ DoNotCompress:0,"0":"DoNotCompress",CompressPunctuation:1,"1":"CompressPunctuation",CompressPunctuationAndJapaneseKana:2,"2":"CompressPunctuationAndJapaneseKana",Unsupported:3,"3":"Unsupported", });
497
+ 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", });
478
498
  /**
479
499
  */
480
- module.exports.HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
500
+ 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", });
481
501
  /**
482
502
  */
483
- module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
503
+ module.exports.VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
484
504
  /**
485
505
  */
486
- 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", });
506
+ module.exports.StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
487
507
  /**
488
508
  */
489
- module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
509
+ 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", });
490
510
  /**
491
511
  */
492
- 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", });
512
+ module.exports.DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
493
513
  /**
494
514
  */
495
- module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
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", });
496
516
  /**
497
517
  */
498
- module.exports.DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:1,"1":"Inline", });
518
+ 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", });
499
519
  /**
500
520
  */
501
- 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", });
521
+ 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", });
502
522
  /**
503
523
  */
504
- module.exports.HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
524
+ module.exports.TableCellBorderPosition = 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",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
505
525
  /**
506
526
  */
507
- module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
527
+ module.exports.ParagraphBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",Between:4,"4":"Between",Bar:5,"5":"Bar", });
508
528
  /**
509
529
  */
510
- module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
530
+ 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", });
511
531
  /**
512
532
  */
513
- module.exports.LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
533
+ module.exports.CharacterSpacingValues = Object.freeze({ DoNotCompress:0,"0":"DoNotCompress",CompressPunctuation:1,"1":"CompressPunctuation",CompressPunctuationAndJapaneseKana:2,"2":"CompressPunctuationAndJapaneseKana",Unsupported:3,"3":"Unsupported", });
514
534
  /**
515
535
  */
516
- module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
536
+ module.exports.HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
517
537
  /**
518
538
  */
519
- module.exports.FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
539
+ module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
520
540
  /**
521
541
  */
522
- 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", });
542
+ module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
523
543
  /**
524
544
  */
525
- module.exports.WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
545
+ module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
526
546
  /**
527
547
  */
528
- module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
548
+ module.exports.DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:1,"1":"Inline", });
529
549
  /**
530
550
  */
531
- module.exports.RelativeFromHType = Object.freeze({
551
+ 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", });
532
552
  /**
533
- * Specifies that the horizontal positioning shall be
534
- * relative to the position of the anchor within its run
535
- * content.
536
553
  */
537
- Character:0,"0":"Character",
554
+ module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
538
555
  /**
539
- * Specifies that the horizontal positioning shall be
540
- * relative to the extents of the column which contains its
541
- * anchor.
542
556
  */
543
- Column:1,"1":"Column",
557
+ module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
544
558
  /**
545
- * Specifies that the horizontal positioning shall be
546
- * relative to the inside margin of the current page (the
547
- * left margin on odd pages, right on even pages).
548
559
  */
549
- InsideMargin:2,"2":"InsideMargin",
560
+ 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", });
550
561
  /**
551
- * Specifies that the horizontal positioning shall be
552
- * relative to the left margin of the page.
553
562
  */
554
- LeftMargin:3,"3":"LeftMargin",
563
+ module.exports.HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
555
564
  /**
556
- * Specifies that the horizontal positioning shall be
557
- * relative to the page margins.
558
565
  */
559
- Margin:4,"4":"Margin",
566
+ module.exports.LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
560
567
  /**
561
- * Specifies that the horizontal positioning shall be
562
- * relative to the outside margin of the current page (the
563
- * right margin on odd pages, left on even pages).
564
568
  */
565
- OutsizeMargin:5,"5":"OutsizeMargin",
569
+ module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
566
570
  /**
567
- * Specifies that the horizontal positioning shall be
568
- * relative to the edge of the page.
569
571
  */
570
- Page:6,"6":"Page",
572
+ 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", });
571
573
  /**
572
- * Specifies that the horizontal positioning shall be
573
- * relative to the right margin of the page.
574
574
  */
575
- RightMargin:7,"7":"RightMargin", });
575
+ module.exports.WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
576
576
  /**
577
577
  */
578
- 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", });
578
+ module.exports.FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
579
579
  /**
580
580
  */
581
581
  module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
582
582
  /**
583
583
  */
584
- module.exports.VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
584
+ module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
585
585
  /**
586
586
  */
587
587
  class AbstractNumbering {
Binary file
@@ -0,0 +1,14 @@
1
+ export interface FrameProperty {
2
+ h?: number;
3
+ hRule?: string;
4
+ hAnchor?: string;
5
+ hSpace?: number;
6
+ vAnchor?: string;
7
+ vSpace?: number;
8
+ w?: number;
9
+ wrap?: string;
10
+ x?: number;
11
+ xAlign?: string;
12
+ y?: number;
13
+ yAlign?: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FrameProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameProperty.js","sourceRoot":"","sources":["../../../../js/json/bindings/FrameProperty.ts"],"names":[],"mappings":""}
@@ -151,6 +151,66 @@ export enum PageOrientationType {
151
151
  }
152
152
  /**
153
153
  */
154
+ export enum RelativeFromHType {
155
+ /**
156
+ * Specifies that the horizontal positioning shall be
157
+ * relative to the position of the anchor within its run
158
+ * content.
159
+ */
160
+ Character,
161
+ /**
162
+ * Specifies that the horizontal positioning shall be
163
+ * relative to the extents of the column which contains its
164
+ * anchor.
165
+ */
166
+ Column,
167
+ /**
168
+ * Specifies that the horizontal positioning shall be
169
+ * relative to the inside margin of the current page (the
170
+ * left margin on odd pages, right on even pages).
171
+ */
172
+ InsideMargin,
173
+ /**
174
+ * Specifies that the horizontal positioning shall be
175
+ * relative to the left margin of the page.
176
+ */
177
+ LeftMargin,
178
+ /**
179
+ * Specifies that the horizontal positioning shall be
180
+ * relative to the page margins.
181
+ */
182
+ Margin,
183
+ /**
184
+ * Specifies that the horizontal positioning shall be
185
+ * relative to the outside margin of the current page (the
186
+ * right margin on odd pages, left on even pages).
187
+ */
188
+ OutsizeMargin,
189
+ /**
190
+ * Specifies that the horizontal positioning shall be
191
+ * relative to the edge of the page.
192
+ */
193
+ Page,
194
+ /**
195
+ * Specifies that the horizontal positioning shall be
196
+ * relative to the right margin of the page.
197
+ */
198
+ RightMargin,
199
+ }
200
+ /**
201
+ */
202
+ export enum RelativeFromVType {
203
+ BottomMargin,
204
+ InsideMargin,
205
+ Line,
206
+ Margin,
207
+ OutsizeMargin,
208
+ Page,
209
+ Paragraph,
210
+ TopMargin,
211
+ }
212
+ /**
213
+ */
154
214
  export enum SectionType {
155
215
  NextPage,
156
216
  NextColumn,
@@ -160,6 +220,13 @@ export enum SectionType {
160
220
  }
161
221
  /**
162
222
  */
223
+ export enum VMergeType {
224
+ Continue,
225
+ Restart,
226
+ Unsupported,
227
+ }
228
+ /**
229
+ */
163
230
  export enum StyleType {
164
231
  Paragraph,
165
232
  Character,
@@ -169,19 +236,6 @@ export enum StyleType {
169
236
  }
170
237
  /**
171
238
  */
172
- export enum TabValueType {
173
- Bar,
174
- Center,
175
- Clear,
176
- Decimal,
177
- End,
178
- Right,
179
- Num,
180
- Start,
181
- Left,
182
- }
183
- /**
184
- */
185
239
  export enum TextDirectionType {
186
240
  Lr,
187
241
  LrV,
@@ -246,6 +300,19 @@ export enum ShdType {
246
300
  }
247
301
  /**
248
302
  */
303
+ export enum TabValueType {
304
+ Bar,
305
+ Center,
306
+ Clear,
307
+ Decimal,
308
+ End,
309
+ Right,
310
+ Num,
311
+ Start,
312
+ Left,
313
+ }
314
+ /**
315
+ */
249
316
  export enum TableBorderPosition {
250
317
  Left,
251
318
  Right,
@@ -278,6 +345,19 @@ export enum ParagraphBorderPosition {
278
345
  }
279
346
  /**
280
347
  */
348
+ export enum AlignmentType {
349
+ Both,
350
+ Center,
351
+ Distribute,
352
+ Start,
353
+ End,
354
+ Left,
355
+ Right,
356
+ Justified,
357
+ Unsupported,
358
+ }
359
+ /**
360
+ */
281
361
  export enum CharacterSpacingValues {
282
362
  DoNotCompress,
283
363
  CompressPunctuation,
@@ -299,22 +379,48 @@ export enum TableAlignmentType {
299
379
  }
300
380
  /**
301
381
  */
302
- export enum AlignmentType {
303
- Both,
304
- Center,
305
- Distribute,
306
- Start,
307
- End,
382
+ export enum TableLayoutType {
383
+ Fixed,
384
+ Autofit,
385
+ }
386
+ /**
387
+ */
388
+ export enum BreakType {
389
+ Page,
390
+ Column,
391
+ TextWrapping,
392
+ Unsupported,
393
+ }
394
+ /**
395
+ */
396
+ export enum DrawingPositionType {
397
+ Anchor,
398
+ Inline,
399
+ }
400
+ /**
401
+ */
402
+ export enum PicAlign {
308
403
  Left,
309
404
  Right,
310
- Justified,
405
+ Center,
406
+ Bottom,
407
+ Top,
408
+ }
409
+ /**
410
+ */
411
+ export enum VertAlignType {
412
+ Baseline,
413
+ SuperScript,
414
+ SubScript,
311
415
  Unsupported,
312
416
  }
313
417
  /**
314
418
  */
315
- export enum TableLayoutType {
316
- Fixed,
317
- Autofit,
419
+ export enum VAlignType {
420
+ Top,
421
+ Center,
422
+ Bottom,
423
+ Unsupported,
318
424
  }
319
425
  /**
320
426
  */
@@ -353,29 +459,6 @@ export enum BorderType {
353
459
  }
354
460
  /**
355
461
  */
356
- export enum BreakType {
357
- Page,
358
- Column,
359
- TextWrapping,
360
- Unsupported,
361
- }
362
- /**
363
- */
364
- export enum DrawingPositionType {
365
- Anchor,
366
- Inline,
367
- }
368
- /**
369
- */
370
- export enum PicAlign {
371
- Left,
372
- Right,
373
- Center,
374
- Bottom,
375
- Top,
376
- }
377
- /**
378
- */
379
462
  export enum HeightRule {
380
463
  Auto,
381
464
  AtLeast,
@@ -383,22 +466,6 @@ export enum HeightRule {
383
466
  }
384
467
  /**
385
468
  */
386
- export enum VertAlignType {
387
- Baseline,
388
- SuperScript,
389
- SubScript,
390
- Unsupported,
391
- }
392
- /**
393
- */
394
- export enum VAlignType {
395
- Top,
396
- Center,
397
- Bottom,
398
- Unsupported,
399
- }
400
- /**
401
- */
402
469
  export enum LevelSuffixType {
403
470
  Nothing,
404
471
  Space,
@@ -414,13 +481,6 @@ export enum FieldCharType {
414
481
  }
415
482
  /**
416
483
  */
417
- export enum FontPitchType {
418
- Default,
419
- Fixed,
420
- Variable,
421
- }
422
- /**
423
- */
424
484
  export enum TabLeaderType {
425
485
  Dot,
426
486
  Heavy,
@@ -440,70 +500,10 @@ export enum WidthType {
440
500
  }
441
501
  /**
442
502
  */
443
- export enum LineSpacingType {
444
- Auto,
445
- AtLeast,
446
- Exact,
447
- }
448
- /**
449
- */
450
- export enum RelativeFromHType {
451
- /**
452
- * Specifies that the horizontal positioning shall be
453
- * relative to the position of the anchor within its run
454
- * content.
455
- */
456
- Character,
457
- /**
458
- * Specifies that the horizontal positioning shall be
459
- * relative to the extents of the column which contains its
460
- * anchor.
461
- */
462
- Column,
463
- /**
464
- * Specifies that the horizontal positioning shall be
465
- * relative to the inside margin of the current page (the
466
- * left margin on odd pages, right on even pages).
467
- */
468
- InsideMargin,
469
- /**
470
- * Specifies that the horizontal positioning shall be
471
- * relative to the left margin of the page.
472
- */
473
- LeftMargin,
474
- /**
475
- * Specifies that the horizontal positioning shall be
476
- * relative to the page margins.
477
- */
478
- Margin,
479
- /**
480
- * Specifies that the horizontal positioning shall be
481
- * relative to the outside margin of the current page (the
482
- * right margin on odd pages, left on even pages).
483
- */
484
- OutsizeMargin,
485
- /**
486
- * Specifies that the horizontal positioning shall be
487
- * relative to the edge of the page.
488
- */
489
- Page,
490
- /**
491
- * Specifies that the horizontal positioning shall be
492
- * relative to the right margin of the page.
493
- */
494
- RightMargin,
495
- }
496
- /**
497
- */
498
- export enum RelativeFromVType {
499
- BottomMargin,
500
- InsideMargin,
501
- Line,
502
- Margin,
503
- OutsizeMargin,
504
- Page,
505
- Paragraph,
506
- TopMargin,
503
+ export enum FontPitchType {
504
+ Default,
505
+ Fixed,
506
+ Variable,
507
507
  }
508
508
  /**
509
509
  */
@@ -513,10 +513,10 @@ export enum SpecialIndentKind {
513
513
  }
514
514
  /**
515
515
  */
516
- export enum VMergeType {
517
- Continue,
518
- Restart,
519
- Unsupported,
516
+ export enum LineSpacingType {
517
+ Auto,
518
+ AtLeast,
519
+ Exact,
520
520
  }
521
521
  /**
522
522
  */
@@ -448,141 +448,141 @@ export function createTableRow() {
448
448
  export const PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
449
449
  /**
450
450
  */
451
- 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", });
451
+ export const RelativeFromHType = Object.freeze({
452
452
  /**
453
+ * Specifies that the horizontal positioning shall be
454
+ * relative to the position of the anchor within its run
455
+ * content.
453
456
  */
454
- export const StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
457
+ Character:0,"0":"Character",
455
458
  /**
459
+ * Specifies that the horizontal positioning shall be
460
+ * relative to the extents of the column which contains its
461
+ * anchor.
456
462
  */
457
- 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", });
463
+ Column:1,"1":"Column",
458
464
  /**
465
+ * Specifies that the horizontal positioning shall be
466
+ * relative to the inside margin of the current page (the
467
+ * left margin on odd pages, right on even pages).
459
468
  */
460
- 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", });
469
+ InsideMargin:2,"2":"InsideMargin",
461
470
  /**
471
+ * Specifies that the horizontal positioning shall be
472
+ * relative to the left margin of the page.
462
473
  */
463
- export const DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
474
+ LeftMargin:3,"3":"LeftMargin",
464
475
  /**
476
+ * Specifies that the horizontal positioning shall be
477
+ * relative to the page margins.
465
478
  */
466
- 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", });
479
+ Margin:4,"4":"Margin",
467
480
  /**
481
+ * Specifies that the horizontal positioning shall be
482
+ * relative to the outside margin of the current page (the
483
+ * right margin on odd pages, left on even pages).
468
484
  */
469
- 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", });
485
+ OutsizeMargin:5,"5":"OutsizeMargin",
470
486
  /**
487
+ * Specifies that the horizontal positioning shall be
488
+ * relative to the edge of the page.
471
489
  */
472
- export const TableCellBorderPosition = 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",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
490
+ Page:6,"6":"Page",
473
491
  /**
492
+ * Specifies that the horizontal positioning shall be
493
+ * relative to the right margin of the page.
474
494
  */
475
- export const ParagraphBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",Between:4,"4":"Between",Bar:5,"5":"Bar", });
495
+ RightMargin:7,"7":"RightMargin", });
476
496
  /**
477
497
  */
478
- export const CharacterSpacingValues = Object.freeze({ DoNotCompress:0,"0":"DoNotCompress",CompressPunctuation:1,"1":"CompressPunctuation",CompressPunctuationAndJapaneseKana:2,"2":"CompressPunctuationAndJapaneseKana",Unsupported:3,"3":"Unsupported", });
498
+ 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", });
479
499
  /**
480
500
  */
481
- export const HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
501
+ 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", });
482
502
  /**
483
503
  */
484
- export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
504
+ export const VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
485
505
  /**
486
506
  */
487
- 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", });
507
+ export const StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
488
508
  /**
489
509
  */
490
- export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
510
+ 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", });
491
511
  /**
492
512
  */
493
- export const 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", });
513
+ export const DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
494
514
  /**
495
515
  */
496
- export const BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
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", });
497
517
  /**
498
518
  */
499
- export const DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:1,"1":"Inline", });
519
+ 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", });
500
520
  /**
501
521
  */
502
- 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", });
522
+ 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", });
503
523
  /**
504
524
  */
505
- export const HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
525
+ export const TableCellBorderPosition = 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",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
506
526
  /**
507
527
  */
508
- export const VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
528
+ export const ParagraphBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",Between:4,"4":"Between",Bar:5,"5":"Bar", });
509
529
  /**
510
530
  */
511
- export const VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
531
+ 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", });
512
532
  /**
513
533
  */
514
- export const LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
534
+ export const CharacterSpacingValues = Object.freeze({ DoNotCompress:0,"0":"DoNotCompress",CompressPunctuation:1,"1":"CompressPunctuation",CompressPunctuationAndJapaneseKana:2,"2":"CompressPunctuationAndJapaneseKana",Unsupported:3,"3":"Unsupported", });
515
535
  /**
516
536
  */
517
- export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
537
+ export const HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
518
538
  /**
519
539
  */
520
- export const FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
540
+ export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
521
541
  /**
522
542
  */
523
- export const 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", });
543
+ export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
524
544
  /**
525
545
  */
526
- export const WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
546
+ export const BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
527
547
  /**
528
548
  */
529
- export const LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
549
+ export const DrawingPositionType = Object.freeze({ Anchor:0,"0":"Anchor",Inline:1,"1":"Inline", });
530
550
  /**
531
551
  */
532
- export const RelativeFromHType = Object.freeze({
552
+ 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", });
533
553
  /**
534
- * Specifies that the horizontal positioning shall be
535
- * relative to the position of the anchor within its run
536
- * content.
537
554
  */
538
- Character:0,"0":"Character",
555
+ export const VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
539
556
  /**
540
- * Specifies that the horizontal positioning shall be
541
- * relative to the extents of the column which contains its
542
- * anchor.
543
557
  */
544
- Column:1,"1":"Column",
558
+ export const VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
545
559
  /**
546
- * Specifies that the horizontal positioning shall be
547
- * relative to the inside margin of the current page (the
548
- * left margin on odd pages, right on even pages).
549
560
  */
550
- InsideMargin:2,"2":"InsideMargin",
561
+ export const 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", });
551
562
  /**
552
- * Specifies that the horizontal positioning shall be
553
- * relative to the left margin of the page.
554
563
  */
555
- LeftMargin:3,"3":"LeftMargin",
564
+ export const HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
556
565
  /**
557
- * Specifies that the horizontal positioning shall be
558
- * relative to the page margins.
559
566
  */
560
- Margin:4,"4":"Margin",
567
+ export const LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
561
568
  /**
562
- * Specifies that the horizontal positioning shall be
563
- * relative to the outside margin of the current page (the
564
- * right margin on odd pages, left on even pages).
565
569
  */
566
- OutsizeMargin:5,"5":"OutsizeMargin",
570
+ export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
567
571
  /**
568
- * Specifies that the horizontal positioning shall be
569
- * relative to the edge of the page.
570
572
  */
571
- Page:6,"6":"Page",
573
+ export const 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", });
572
574
  /**
573
- * Specifies that the horizontal positioning shall be
574
- * relative to the right margin of the page.
575
575
  */
576
- RightMargin:7,"7":"RightMargin", });
576
+ export const WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
577
577
  /**
578
578
  */
579
- 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", });
579
+ export const FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
580
580
  /**
581
581
  */
582
582
  export const SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
583
583
  /**
584
584
  */
585
- export const VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
585
+ export const LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
586
586
  /**
587
587
  */
588
588
  export class AbstractNumbering {
Binary file
@@ -0,0 +1,2 @@
1
+
2
+ export interface FrameProperty { h?: number, hRule?: string, hAnchor?: string, hSpace?: number, vAnchor?: string, vSpace?: number, w?: number, wrap?: string, x?: number, xAlign?: string, y?: number, yAlign?: string, }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docx-wasm",
3
- "version": "0.4.12-beta1",
3
+ "version": "0.4.12-beta2",
4
4
  "main": "dist/node/index.js",
5
5
  "browser": "dist/web/index.js",
6
6
  "author": "bokuweb <bokuweb12@gmail.com>",