docx-plus 0.1.2 → 0.1.3

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.
@@ -12407,7 +12407,8 @@ var docx = (function(exports, hash_js, nanoid_non_secure, undio, fflate) {
12407
12407
  NONE: 0,
12408
12408
  SQUARE: 1,
12409
12409
  TIGHT: 2,
12410
- TOP_AND_BOTTOM: 3
12410
+ TOP_AND_BOTTOM: 3,
12411
+ THROUGH: 4
12411
12412
  };
12412
12413
  /**
12413
12414
  * Enumeration of text wrapping sides for floating drawings.
@@ -12522,10 +12523,101 @@ var docx = (function(exports, hash_js, nanoid_non_secure, undio, fflate) {
12522
12523
  * @module
12523
12524
  */
12524
12525
  /**
12526
+ * Creates a default rectangular wrap polygon matching the image extent.
12527
+ *
12528
+ * Reference: http://officeopenxml.com/drwPicFloating-textWrap.php
12529
+ *
12530
+ * ## XSD Schema
12531
+ * ```xml
12532
+ * <xsd:complexType name="CT_WrapPath">
12533
+ * <xsd:sequence>
12534
+ * <xsd:element name="start" type="a:CT_Point2D" minOccurs="1" maxOccurs="1"/>
12535
+ * <xsd:element name="lineTo" type="a:CT_Point2D" minOccurs="2" maxOccurs="unbounded"/>
12536
+ * </xsd:sequence>
12537
+ * <xsd:attribute name="edited" type="xsd:boolean" use="optional"/>
12538
+ * </xsd:complexType>
12539
+ * ```
12540
+ */
12541
+ const createWrapPolygon$1 = (cx, cy) => new BuilderElement({
12542
+ attributes: { edited: {
12543
+ key: "edited",
12544
+ value: "0"
12545
+ } },
12546
+ children: [
12547
+ new BuilderElement({
12548
+ attributes: {
12549
+ x: {
12550
+ key: "x",
12551
+ value: 0
12552
+ },
12553
+ y: {
12554
+ key: "y",
12555
+ value: 0
12556
+ }
12557
+ },
12558
+ name: "wp:start"
12559
+ }),
12560
+ new BuilderElement({
12561
+ attributes: {
12562
+ x: {
12563
+ key: "x",
12564
+ value: cx
12565
+ },
12566
+ y: {
12567
+ key: "y",
12568
+ value: 0
12569
+ }
12570
+ },
12571
+ name: "wp:lineTo"
12572
+ }),
12573
+ new BuilderElement({
12574
+ attributes: {
12575
+ x: {
12576
+ key: "x",
12577
+ value: cx
12578
+ },
12579
+ y: {
12580
+ key: "y",
12581
+ value: cy
12582
+ }
12583
+ },
12584
+ name: "wp:lineTo"
12585
+ }),
12586
+ new BuilderElement({
12587
+ attributes: {
12588
+ x: {
12589
+ key: "x",
12590
+ value: 0
12591
+ },
12592
+ y: {
12593
+ key: "y",
12594
+ value: cy
12595
+ }
12596
+ },
12597
+ name: "wp:lineTo"
12598
+ }),
12599
+ new BuilderElement({
12600
+ attributes: {
12601
+ x: {
12602
+ key: "x",
12603
+ value: 0
12604
+ },
12605
+ y: {
12606
+ key: "y",
12607
+ value: 0
12608
+ }
12609
+ },
12610
+ name: "wp:lineTo"
12611
+ })
12612
+ ],
12613
+ name: "wp:wrapPolygon"
12614
+ });
12615
+ /**
12525
12616
  * Creates tight text wrapping for a floating drawing.
12526
12617
  *
12527
12618
  * WrapTight causes text to wrap closely around the contours
12528
12619
  * of the drawing rather than its rectangular bounding box.
12620
+ * A default rectangular wrap polygon matching the image extent is generated.
12529
12621
  *
12530
12622
  * Reference: http://officeopenxml.com/drwPicFloating-textWrap.php
12531
12623
  *
@@ -12533,7 +12625,7 @@ var docx = (function(exports, hash_js, nanoid_non_secure, undio, fflate) {
12533
12625
  * ```xml
12534
12626
  * <xsd:complexType name="CT_WrapTight">
12535
12627
  * <xsd:sequence>
12536
- * <xsd:element name="wrapPolygon" type="CT_WrapPath"/>
12628
+ * <xsd:element name="wrapPolygon" type="CT_WrapPath" minOccurs="1" maxOccurs="1"/>
12537
12629
  * </xsd:sequence>
12538
12630
  * <xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
12539
12631
  * <xsd:attribute name="distL" type="ST_WrapDistance"/>
@@ -12541,23 +12633,176 @@ var docx = (function(exports, hash_js, nanoid_non_secure, undio, fflate) {
12541
12633
  * </xsd:complexType>
12542
12634
  * ```
12543
12635
  */
12544
- const createWrapTight = (margins = {
12636
+ const createWrapTight = (textWrapping, margins = {
12545
12637
  bottom: 0,
12638
+ left: 0,
12639
+ right: 0,
12546
12640
  top: 0
12547
- }) => new BuilderElement({
12641
+ }, extent) => new BuilderElement({
12548
12642
  attributes: {
12549
- distB: {
12550
- key: "distB",
12551
- value: margins.bottom
12643
+ distL: {
12644
+ key: "distL",
12645
+ value: margins.left
12552
12646
  },
12553
- distT: {
12554
- key: "distT",
12555
- value: margins.top
12647
+ distR: {
12648
+ key: "distR",
12649
+ value: margins.right
12650
+ },
12651
+ wrapText: {
12652
+ key: "wrapText",
12653
+ value: textWrapping.side || TextWrappingSide.BOTH_SIDES
12556
12654
  }
12557
12655
  },
12656
+ children: [createWrapPolygon$1(extent.x, extent.y)],
12558
12657
  name: "wp:wrapTight"
12559
12658
  });
12560
12659
  //#endregion
12660
+ //#region src/file/drawing/text-wrap/wrap-through.ts
12661
+ /**
12662
+ * Wrap Through module for DrawingML text wrapping.
12663
+ *
12664
+ * This module provides "through" text wrapping for floating drawings
12665
+ * where text wraps through the image contours, filling any concave areas.
12666
+ *
12667
+ * Reference: http://officeopenxml.com/drwPicFloating-textWrap.php
12668
+ *
12669
+ * @module
12670
+ */
12671
+ /**
12672
+ * Creates a default rectangular wrap polygon matching the image extent.
12673
+ *
12674
+ * Reference: http://officeopenxml.com/drwPicFloating-textWrap.php
12675
+ *
12676
+ * ## XSD Schema
12677
+ * ```xml
12678
+ * <xsd:complexType name="CT_WrapPath">
12679
+ * <xsd:sequence>
12680
+ * <xsd:element name="start" type="a:CT_Point2D" minOccurs="1" maxOccurs="1"/>
12681
+ * <xsd:element name="lineTo" type="a:CT_Point2D" minOccurs="2" maxOccurs="unbounded"/>
12682
+ * </xsd:sequence>
12683
+ * <xsd:attribute name="edited" type="xsd:boolean" use="optional"/>
12684
+ * </xsd:complexType>
12685
+ * ```
12686
+ */
12687
+ const createWrapPolygon = (cx, cy) => new BuilderElement({
12688
+ attributes: { edited: {
12689
+ key: "edited",
12690
+ value: "0"
12691
+ } },
12692
+ children: [
12693
+ new BuilderElement({
12694
+ attributes: {
12695
+ x: {
12696
+ key: "x",
12697
+ value: 0
12698
+ },
12699
+ y: {
12700
+ key: "y",
12701
+ value: 0
12702
+ }
12703
+ },
12704
+ name: "wp:start"
12705
+ }),
12706
+ new BuilderElement({
12707
+ attributes: {
12708
+ x: {
12709
+ key: "x",
12710
+ value: cx
12711
+ },
12712
+ y: {
12713
+ key: "y",
12714
+ value: 0
12715
+ }
12716
+ },
12717
+ name: "wp:lineTo"
12718
+ }),
12719
+ new BuilderElement({
12720
+ attributes: {
12721
+ x: {
12722
+ key: "x",
12723
+ value: cx
12724
+ },
12725
+ y: {
12726
+ key: "y",
12727
+ value: cy
12728
+ }
12729
+ },
12730
+ name: "wp:lineTo"
12731
+ }),
12732
+ new BuilderElement({
12733
+ attributes: {
12734
+ x: {
12735
+ key: "x",
12736
+ value: 0
12737
+ },
12738
+ y: {
12739
+ key: "y",
12740
+ value: cy
12741
+ }
12742
+ },
12743
+ name: "wp:lineTo"
12744
+ }),
12745
+ new BuilderElement({
12746
+ attributes: {
12747
+ x: {
12748
+ key: "x",
12749
+ value: 0
12750
+ },
12751
+ y: {
12752
+ key: "y",
12753
+ value: 0
12754
+ }
12755
+ },
12756
+ name: "wp:lineTo"
12757
+ })
12758
+ ],
12759
+ name: "wp:wrapPolygon"
12760
+ });
12761
+ /**
12762
+ * Creates "through" text wrapping for a floating drawing.
12763
+ *
12764
+ * WrapThrough is similar to WrapTight but allows text to wrap through
12765
+ * the concave portions of the drawing shape (e.g., the inside of the letter "O").
12766
+ * A default rectangular wrap polygon matching the image extent is generated.
12767
+ *
12768
+ * Reference: http://officeopenxml.com/drwPicFloating-textWrap.php
12769
+ *
12770
+ * ## XSD Schema
12771
+ * ```xml
12772
+ * <xsd:complexType name="CT_WrapThrough">
12773
+ * <xsd:sequence>
12774
+ * <xsd:element name="wrapPolygon" type="CT_WrapPath" minOccurs="1" maxOccurs="1"/>
12775
+ * </xsd:sequence>
12776
+ * <xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
12777
+ * <xsd:attribute name="distL" type="ST_WrapDistance"/>
12778
+ * <xsd:attribute name="distR" type="ST_WrapDistance"/>
12779
+ * </xsd:complexType>
12780
+ * ```
12781
+ */
12782
+ const createWrapThrough = (textWrapping, margins = {
12783
+ bottom: 0,
12784
+ left: 0,
12785
+ right: 0,
12786
+ top: 0
12787
+ }, extent) => new BuilderElement({
12788
+ attributes: {
12789
+ distL: {
12790
+ key: "distL",
12791
+ value: margins.left
12792
+ },
12793
+ distR: {
12794
+ key: "distR",
12795
+ value: margins.right
12796
+ },
12797
+ wrapText: {
12798
+ key: "wrapText",
12799
+ value: textWrapping.side || TextWrappingSide.BOTH_SIDES
12800
+ }
12801
+ },
12802
+ children: [createWrapPolygon(extent.x, extent.y)],
12803
+ name: "wp:wrapThrough"
12804
+ });
12805
+ //#endregion
12561
12806
  //#region src/file/drawing/text-wrap/wrap-top-and-bottom.ts
12562
12807
  /**
12563
12808
  * Wrap Top and Bottom module for DrawingML text wrapping.
@@ -13007,7 +13252,16 @@ var docx = (function(exports, hash_js, nanoid_non_secure, undio, fflate) {
13007
13252
  this.root.push(createWrapSquare(drawingOptions.floating.wrap, drawingOptions.floating.margins));
13008
13253
  break;
13009
13254
  case TextWrappingType.TIGHT:
13010
- this.root.push(createWrapTight(drawingOptions.floating.margins));
13255
+ this.root.push(createWrapTight(drawingOptions.floating.wrap, drawingOptions.floating.margins, {
13256
+ x: transform.emus.x,
13257
+ y: transform.emus.y
13258
+ }));
13259
+ break;
13260
+ case TextWrappingType.THROUGH:
13261
+ this.root.push(createWrapThrough(drawingOptions.floating.wrap, drawingOptions.floating.margins, {
13262
+ x: transform.emus.x,
13263
+ y: transform.emus.y
13264
+ }));
13011
13265
  break;
13012
13266
  case TextWrappingType.TOP_AND_BOTTOM:
13013
13267
  this.root.push(createWrapTopAndBottom(drawingOptions.floating.margins));
@@ -27910,6 +28164,7 @@ var docx = (function(exports, hash_js, nanoid_non_secure, undio, fflate) {
27910
28164
  exports.createVerticalPosition = createVerticalPosition;
27911
28165
  exports.createWrapNone = createWrapNone;
27912
28166
  exports.createWrapSquare = createWrapSquare;
28167
+ exports.createWrapThrough = createWrapThrough;
27913
28168
  exports.createWrapTight = createWrapTight;
27914
28169
  exports.createWrapTopAndBottom = createWrapTopAndBottom;
27915
28170
  exports.dateTimeValue = dateTimeValue;
package/dist/index.mjs CHANGED
@@ -12408,7 +12408,8 @@ const TextWrappingType = {
12408
12408
  NONE: 0,
12409
12409
  SQUARE: 1,
12410
12410
  TIGHT: 2,
12411
- TOP_AND_BOTTOM: 3
12411
+ TOP_AND_BOTTOM: 3,
12412
+ THROUGH: 4
12412
12413
  };
12413
12414
  /**
12414
12415
  * Enumeration of text wrapping sides for floating drawings.
@@ -12523,10 +12524,101 @@ const createWrapSquare = (textWrapping, margins = {
12523
12524
  * @module
12524
12525
  */
12525
12526
  /**
12527
+ * Creates a default rectangular wrap polygon matching the image extent.
12528
+ *
12529
+ * Reference: http://officeopenxml.com/drwPicFloating-textWrap.php
12530
+ *
12531
+ * ## XSD Schema
12532
+ * ```xml
12533
+ * <xsd:complexType name="CT_WrapPath">
12534
+ * <xsd:sequence>
12535
+ * <xsd:element name="start" type="a:CT_Point2D" minOccurs="1" maxOccurs="1"/>
12536
+ * <xsd:element name="lineTo" type="a:CT_Point2D" minOccurs="2" maxOccurs="unbounded"/>
12537
+ * </xsd:sequence>
12538
+ * <xsd:attribute name="edited" type="xsd:boolean" use="optional"/>
12539
+ * </xsd:complexType>
12540
+ * ```
12541
+ */
12542
+ const createWrapPolygon$1 = (cx, cy) => new BuilderElement({
12543
+ attributes: { edited: {
12544
+ key: "edited",
12545
+ value: "0"
12546
+ } },
12547
+ children: [
12548
+ new BuilderElement({
12549
+ attributes: {
12550
+ x: {
12551
+ key: "x",
12552
+ value: 0
12553
+ },
12554
+ y: {
12555
+ key: "y",
12556
+ value: 0
12557
+ }
12558
+ },
12559
+ name: "wp:start"
12560
+ }),
12561
+ new BuilderElement({
12562
+ attributes: {
12563
+ x: {
12564
+ key: "x",
12565
+ value: cx
12566
+ },
12567
+ y: {
12568
+ key: "y",
12569
+ value: 0
12570
+ }
12571
+ },
12572
+ name: "wp:lineTo"
12573
+ }),
12574
+ new BuilderElement({
12575
+ attributes: {
12576
+ x: {
12577
+ key: "x",
12578
+ value: cx
12579
+ },
12580
+ y: {
12581
+ key: "y",
12582
+ value: cy
12583
+ }
12584
+ },
12585
+ name: "wp:lineTo"
12586
+ }),
12587
+ new BuilderElement({
12588
+ attributes: {
12589
+ x: {
12590
+ key: "x",
12591
+ value: 0
12592
+ },
12593
+ y: {
12594
+ key: "y",
12595
+ value: cy
12596
+ }
12597
+ },
12598
+ name: "wp:lineTo"
12599
+ }),
12600
+ new BuilderElement({
12601
+ attributes: {
12602
+ x: {
12603
+ key: "x",
12604
+ value: 0
12605
+ },
12606
+ y: {
12607
+ key: "y",
12608
+ value: 0
12609
+ }
12610
+ },
12611
+ name: "wp:lineTo"
12612
+ })
12613
+ ],
12614
+ name: "wp:wrapPolygon"
12615
+ });
12616
+ /**
12526
12617
  * Creates tight text wrapping for a floating drawing.
12527
12618
  *
12528
12619
  * WrapTight causes text to wrap closely around the contours
12529
12620
  * of the drawing rather than its rectangular bounding box.
12621
+ * A default rectangular wrap polygon matching the image extent is generated.
12530
12622
  *
12531
12623
  * Reference: http://officeopenxml.com/drwPicFloating-textWrap.php
12532
12624
  *
@@ -12534,7 +12626,7 @@ const createWrapSquare = (textWrapping, margins = {
12534
12626
  * ```xml
12535
12627
  * <xsd:complexType name="CT_WrapTight">
12536
12628
  * <xsd:sequence>
12537
- * <xsd:element name="wrapPolygon" type="CT_WrapPath"/>
12629
+ * <xsd:element name="wrapPolygon" type="CT_WrapPath" minOccurs="1" maxOccurs="1"/>
12538
12630
  * </xsd:sequence>
12539
12631
  * <xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
12540
12632
  * <xsd:attribute name="distL" type="ST_WrapDistance"/>
@@ -12542,23 +12634,176 @@ const createWrapSquare = (textWrapping, margins = {
12542
12634
  * </xsd:complexType>
12543
12635
  * ```
12544
12636
  */
12545
- const createWrapTight = (margins = {
12637
+ const createWrapTight = (textWrapping, margins = {
12546
12638
  bottom: 0,
12639
+ left: 0,
12640
+ right: 0,
12547
12641
  top: 0
12548
- }) => new BuilderElement({
12642
+ }, extent) => new BuilderElement({
12549
12643
  attributes: {
12550
- distB: {
12551
- key: "distB",
12552
- value: margins.bottom
12644
+ distL: {
12645
+ key: "distL",
12646
+ value: margins.left
12553
12647
  },
12554
- distT: {
12555
- key: "distT",
12556
- value: margins.top
12648
+ distR: {
12649
+ key: "distR",
12650
+ value: margins.right
12651
+ },
12652
+ wrapText: {
12653
+ key: "wrapText",
12654
+ value: textWrapping.side || TextWrappingSide.BOTH_SIDES
12557
12655
  }
12558
12656
  },
12657
+ children: [createWrapPolygon$1(extent.x, extent.y)],
12559
12658
  name: "wp:wrapTight"
12560
12659
  });
12561
12660
  //#endregion
12661
+ //#region src/file/drawing/text-wrap/wrap-through.ts
12662
+ /**
12663
+ * Wrap Through module for DrawingML text wrapping.
12664
+ *
12665
+ * This module provides "through" text wrapping for floating drawings
12666
+ * where text wraps through the image contours, filling any concave areas.
12667
+ *
12668
+ * Reference: http://officeopenxml.com/drwPicFloating-textWrap.php
12669
+ *
12670
+ * @module
12671
+ */
12672
+ /**
12673
+ * Creates a default rectangular wrap polygon matching the image extent.
12674
+ *
12675
+ * Reference: http://officeopenxml.com/drwPicFloating-textWrap.php
12676
+ *
12677
+ * ## XSD Schema
12678
+ * ```xml
12679
+ * <xsd:complexType name="CT_WrapPath">
12680
+ * <xsd:sequence>
12681
+ * <xsd:element name="start" type="a:CT_Point2D" minOccurs="1" maxOccurs="1"/>
12682
+ * <xsd:element name="lineTo" type="a:CT_Point2D" minOccurs="2" maxOccurs="unbounded"/>
12683
+ * </xsd:sequence>
12684
+ * <xsd:attribute name="edited" type="xsd:boolean" use="optional"/>
12685
+ * </xsd:complexType>
12686
+ * ```
12687
+ */
12688
+ const createWrapPolygon = (cx, cy) => new BuilderElement({
12689
+ attributes: { edited: {
12690
+ key: "edited",
12691
+ value: "0"
12692
+ } },
12693
+ children: [
12694
+ new BuilderElement({
12695
+ attributes: {
12696
+ x: {
12697
+ key: "x",
12698
+ value: 0
12699
+ },
12700
+ y: {
12701
+ key: "y",
12702
+ value: 0
12703
+ }
12704
+ },
12705
+ name: "wp:start"
12706
+ }),
12707
+ new BuilderElement({
12708
+ attributes: {
12709
+ x: {
12710
+ key: "x",
12711
+ value: cx
12712
+ },
12713
+ y: {
12714
+ key: "y",
12715
+ value: 0
12716
+ }
12717
+ },
12718
+ name: "wp:lineTo"
12719
+ }),
12720
+ new BuilderElement({
12721
+ attributes: {
12722
+ x: {
12723
+ key: "x",
12724
+ value: cx
12725
+ },
12726
+ y: {
12727
+ key: "y",
12728
+ value: cy
12729
+ }
12730
+ },
12731
+ name: "wp:lineTo"
12732
+ }),
12733
+ new BuilderElement({
12734
+ attributes: {
12735
+ x: {
12736
+ key: "x",
12737
+ value: 0
12738
+ },
12739
+ y: {
12740
+ key: "y",
12741
+ value: cy
12742
+ }
12743
+ },
12744
+ name: "wp:lineTo"
12745
+ }),
12746
+ new BuilderElement({
12747
+ attributes: {
12748
+ x: {
12749
+ key: "x",
12750
+ value: 0
12751
+ },
12752
+ y: {
12753
+ key: "y",
12754
+ value: 0
12755
+ }
12756
+ },
12757
+ name: "wp:lineTo"
12758
+ })
12759
+ ],
12760
+ name: "wp:wrapPolygon"
12761
+ });
12762
+ /**
12763
+ * Creates "through" text wrapping for a floating drawing.
12764
+ *
12765
+ * WrapThrough is similar to WrapTight but allows text to wrap through
12766
+ * the concave portions of the drawing shape (e.g., the inside of the letter "O").
12767
+ * A default rectangular wrap polygon matching the image extent is generated.
12768
+ *
12769
+ * Reference: http://officeopenxml.com/drwPicFloating-textWrap.php
12770
+ *
12771
+ * ## XSD Schema
12772
+ * ```xml
12773
+ * <xsd:complexType name="CT_WrapThrough">
12774
+ * <xsd:sequence>
12775
+ * <xsd:element name="wrapPolygon" type="CT_WrapPath" minOccurs="1" maxOccurs="1"/>
12776
+ * </xsd:sequence>
12777
+ * <xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
12778
+ * <xsd:attribute name="distL" type="ST_WrapDistance"/>
12779
+ * <xsd:attribute name="distR" type="ST_WrapDistance"/>
12780
+ * </xsd:complexType>
12781
+ * ```
12782
+ */
12783
+ const createWrapThrough = (textWrapping, margins = {
12784
+ bottom: 0,
12785
+ left: 0,
12786
+ right: 0,
12787
+ top: 0
12788
+ }, extent) => new BuilderElement({
12789
+ attributes: {
12790
+ distL: {
12791
+ key: "distL",
12792
+ value: margins.left
12793
+ },
12794
+ distR: {
12795
+ key: "distR",
12796
+ value: margins.right
12797
+ },
12798
+ wrapText: {
12799
+ key: "wrapText",
12800
+ value: textWrapping.side || TextWrappingSide.BOTH_SIDES
12801
+ }
12802
+ },
12803
+ children: [createWrapPolygon(extent.x, extent.y)],
12804
+ name: "wp:wrapThrough"
12805
+ });
12806
+ //#endregion
12562
12807
  //#region src/file/drawing/text-wrap/wrap-top-and-bottom.ts
12563
12808
  /**
12564
12809
  * Wrap Top and Bottom module for DrawingML text wrapping.
@@ -13008,7 +13253,16 @@ var Anchor = class extends XmlComponent {
13008
13253
  this.root.push(createWrapSquare(drawingOptions.floating.wrap, drawingOptions.floating.margins));
13009
13254
  break;
13010
13255
  case TextWrappingType.TIGHT:
13011
- this.root.push(createWrapTight(drawingOptions.floating.margins));
13256
+ this.root.push(createWrapTight(drawingOptions.floating.wrap, drawingOptions.floating.margins, {
13257
+ x: transform.emus.x,
13258
+ y: transform.emus.y
13259
+ }));
13260
+ break;
13261
+ case TextWrappingType.THROUGH:
13262
+ this.root.push(createWrapThrough(drawingOptions.floating.wrap, drawingOptions.floating.margins, {
13263
+ x: transform.emus.x,
13264
+ y: transform.emus.y
13265
+ }));
13012
13266
  break;
13013
13267
  case TextWrappingType.TOP_AND_BOTTOM:
13014
13268
  this.root.push(createWrapTopAndBottom(drawingOptions.floating.margins));
@@ -27633,4 +27887,4 @@ const findPatchKeys = (text) => {
27633
27887
  return (_text$match = text.match(/(?<=\{\{).+?(?=\}\})/gs)) !== null && _text$match !== void 0 ? _text$match : [];
27634
27888
  };
27635
27889
  //#endregion
27636
- export { AbstractNumbering, AlignmentType, AnnotationReference, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math$1 as Math, MathAngledBrackets, MathCurlyBrackets, MathDegree, MathDenominator, MathFraction, MathFunction, MathFunctionName, MathFunctionProperties, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathNumerator, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchType, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabRelativeTo, PrettifyType, RelativeHorizontalPosition, RelativeVerticalPosition, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, SectionProperties, SectionPropertiesChange, SectionType, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TextAlignmentType, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, ThemeColor, ThemeFont, UnderlineType, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgGroupRun, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createColumns, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccentCharacter, createMathBase, createMathLimitLocation, createMathNAryProperties, createMathPreSubSuperScriptProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };
27890
+ export { AbstractNumbering, AlignmentType, AnnotationReference, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math$1 as Math, MathAngledBrackets, MathCurlyBrackets, MathDegree, MathDenominator, MathFraction, MathFunction, MathFunctionName, MathFunctionProperties, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathNumerator, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchType, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabRelativeTo, PrettifyType, RelativeHorizontalPosition, RelativeVerticalPosition, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, SectionProperties, SectionPropertiesChange, SectionType, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TextAlignmentType, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, ThemeColor, ThemeFont, UnderlineType, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgGroupRun, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createColumns, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccentCharacter, createMathBase, createMathLimitLocation, createMathNAryProperties, createMathPreSubSuperScriptProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };