diff --git a/api/classes/index.AbstractNumbering.html b/api/classes/index.AbstractNumbering.html
index 32b8bb23d6..90c93a6a9c 100644
--- a/api/classes/index.AbstractNumbering.html
+++ b/api/classes/index.AbstractNumbering.html
@@ -35,7 +35,7 @@ Each abstract definition can contain up to 9 levels.
diff --git a/api/classes/index.Body.html b/api/classes/index.Body.html
index fc8d6dc809..873da83355 100644
--- a/api/classes/index.Body.html
+++ b/api/classes/index.Body.html
@@ -37,7 +37,7 @@ section. The last section's properties are stored as a direct child of the body
diff --git a/api/classes/index.Bookmark.html b/api/classes/index.Bookmark.html
index 0a0a7c9833..1d9e710415 100644
--- a/api/classes/index.Bookmark.html
+++ b/api/classes/index.Bookmark.html
@@ -31,7 +31,7 @@ of a start marker, content, and an end marker.
diff --git a/api/classes/index.BookmarkEnd.html b/api/classes/index.BookmarkEnd.html
index afdaf6a819..40b111c7da 100644
--- a/api/classes/index.BookmarkEnd.html
+++ b/api/classes/index.BookmarkEnd.html
@@ -35,7 +35,7 @@ taken from bookmarkUniqueNumericId (see BookmarkStart)
diff --git a/api/classes/index.BookmarkStart.html b/api/classes/index.BookmarkStart.html
index 8337c51ed4..7f527891f2 100644
--- a/api/classes/index.BookmarkStart.html
+++ b/api/classes/index.BookmarkStart.html
@@ -37,7 +37,7 @@ same as a Bookmark's.
diff --git a/api/classes/index.CellMerge.html b/api/classes/index.CellMerge.html
index 6efdfa9f40..c077cc11bd 100644
--- a/api/classes/index.CellMerge.html
+++ b/api/classes/index.CellMerge.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.CellMergeAttributes.html b/api/classes/index.CellMergeAttributes.html
index cb78786407..1c4b5f513a 100644
--- a/api/classes/index.CellMergeAttributes.html
+++ b/api/classes/index.CellMergeAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.CheckBoxSymbolElement.html b/api/classes/index.CheckBoxSymbolElement.html
index 8068dce6fc..62c359b84a 100644
--- a/api/classes/index.CheckBoxSymbolElement.html
+++ b/api/classes/index.CheckBoxSymbolElement.html
@@ -33,7 +33,7 @@ specifying the Unicode character and font to render.
diff --git a/api/classes/index.CheckBoxUtil.html b/api/classes/index.CheckBoxUtil.html
index a5746a086e..d1ec0a36fd 100644
--- a/api/classes/index.CheckBoxUtil.html
+++ b/api/classes/index.CheckBoxUtil.html
@@ -33,7 +33,7 @@ including its checked state and the symbols used for checked and unchecked state
diff --git a/api/classes/index.CommentRangeEnd.html b/api/classes/index.CommentRangeEnd.html
index cb818981e2..7afe07140f 100644
--- a/api/classes/index.CommentRangeEnd.html
+++ b/api/classes/index.CommentRangeEnd.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeStart with the same ID.
diff --git a/api/classes/index.CommentRangeStart.html b/api/classes/index.CommentRangeStart.html
index 6f1b0961b1..d4c4653b49 100644
--- a/api/classes/index.CommentRangeStart.html
+++ b/api/classes/index.CommentRangeStart.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeEnd with the same ID.
diff --git a/api/classes/index.CommentReference.html b/api/classes/index.CommentReference.html
index 80cab9bde7..97566e47c6 100644
--- a/api/classes/index.CommentReference.html
+++ b/api/classes/index.CommentReference.html
@@ -36,7 +36,7 @@ It should be placed after the CommentRangeEnd element.
diff --git a/api/classes/index.Comments.html b/api/classes/index.Comments.html
index 0b7c3d4ef5..c9f36753ea 100644
--- a/api/classes/index.Comments.html
+++ b/api/classes/index.Comments.html
@@ -35,7 +35,7 @@ threading is activated and thread data is generated for commentsExtended.xml.
diff --git a/api/classes/index.CommentsIds.html b/api/classes/index.CommentsIds.html
index bc70acbd4a..b9e42c691c 100644
--- a/api/classes/index.CommentsIds.html
+++ b/api/classes/index.CommentsIds.html
@@ -27,7 +27,7 @@ to a stable w16cid:durableId preserved by Word across edits.
diff --git a/api/classes/index.ConcreteHyperlink.html b/api/classes/index.ConcreteHyperlink.html
index 9fcc805fa6..9446831bcb 100644
--- a/api/classes/index.ConcreteHyperlink.html
+++ b/api/classes/index.ConcreteHyperlink.html
@@ -30,7 +30,7 @@ Use InternalHyperlink or ExternalHyperlink for creating hyperlinks in documents.
diff --git a/api/classes/index.DeletedTableCell.html b/api/classes/index.DeletedTableCell.html
index 3a0afd80ae..b3f39e8d22 100644
--- a/api/classes/index.DeletedTableCell.html
+++ b/api/classes/index.DeletedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DeletedTableRow.html b/api/classes/index.DeletedTableRow.html
index eeed351539..c607e8737b 100644
--- a/api/classes/index.DeletedTableRow.html
+++ b/api/classes/index.DeletedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DocumentDefaults.html b/api/classes/index.DocumentDefaults.html
index 13a2be9883..cb6fab83cb 100644
--- a/api/classes/index.DocumentDefaults.html
+++ b/api/classes/index.DocumentDefaults.html
@@ -34,7 +34,7 @@ paragraphs and runs in a document unless overridden by a style or direct formatt
diff --git a/api/classes/index.DrawingPatch.html b/api/classes/index.DrawingPatch.html
index a3a18741f2..2dede25446 100644
--- a/api/classes/index.DrawingPatch.html
+++ b/api/classes/index.DrawingPatch.html
@@ -27,7 +27,7 @@ is one: it replaces the data of a chart made in Word.
diff --git a/api/classes/index.EndnoteIdReference.html b/api/classes/index.EndnoteIdReference.html
index b103325944..30a948ff73 100644
--- a/api/classes/index.EndnoteIdReference.html
+++ b/api/classes/index.EndnoteIdReference.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.EndnoteReferenceRunAttributes.html b/api/classes/index.EndnoteReferenceRunAttributes.html
index 6d68aa56ca..066d484b73 100644
--- a/api/classes/index.EndnoteReferenceRunAttributes.html
+++ b/api/classes/index.EndnoteReferenceRunAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.Endnotes.html b/api/classes/index.Endnotes.html
index e8b98806bb..eb93f91009 100644
--- a/api/classes/index.Endnotes.html
+++ b/api/classes/index.Endnotes.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ExternalHyperlink.html b/api/classes/index.ExternalHyperlink.html
index ee0e046bd4..898281701b 100644
--- a/api/classes/index.ExternalHyperlink.html
+++ b/api/classes/index.ExternalHyperlink.html
@@ -37,7 +37,7 @@ is converted to a ConcreteHyperlink with the relationship ID.
diff --git a/api/classes/index.FileChild.html b/api/classes/index.FileChild.html
index 819ff76466..b21629221e 100644
--- a/api/classes/index.FileChild.html
+++ b/api/classes/index.FileChild.html
@@ -28,7 +28,7 @@ to the document body. Examples include Paragraph and Table.
diff --git a/api/classes/index.FootNotes.html b/api/classes/index.FootNotes.html
index 125243af23..8b3b493c5f 100644
--- a/api/classes/index.FootNotes.html
+++ b/api/classes/index.FootNotes.html
@@ -36,7 +36,7 @@ line used when footnotes continue across pages.
diff --git a/api/classes/index.FooterWrapper.html b/api/classes/index.FooterWrapper.html
index d3b40cf496..393a148fe6 100644
--- a/api/classes/index.FooterWrapper.html
+++ b/api/classes/index.FooterWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple footers for different page types.
diff --git a/api/classes/index.FootnoteReference.html b/api/classes/index.FootnoteReference.html
index 46d074a1e2..685d2558b8 100644
--- a/api/classes/index.FootnoteReference.html
+++ b/api/classes/index.FootnoteReference.html
@@ -27,7 +27,7 @@ and the footnote content by using a unique identifier.
diff --git a/api/classes/index.GridSpan.html b/api/classes/index.GridSpan.html
index 2495a9d459..938fc97be9 100644
--- a/api/classes/index.GridSpan.html
+++ b/api/classes/index.GridSpan.html
@@ -34,7 +34,7 @@ in the table grid. This is used to merge cells horizontally (column span).
diff --git a/api/classes/index.HeaderWrapper.html b/api/classes/index.HeaderWrapper.html
index c67ae646ff..445ad6ef71 100644
--- a/api/classes/index.HeaderWrapper.html
+++ b/api/classes/index.HeaderWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple headers for different page types.
diff --git a/api/classes/index.HpsMeasureElement.html b/api/classes/index.HpsMeasureElement.html
index fdd838bc05..7a92864c51 100644
--- a/api/classes/index.HpsMeasureElement.html
+++ b/api/classes/index.HpsMeasureElement.html
@@ -33,7 +33,7 @@ Values can be specified as numbers (interpreted as half-points) or with explicit
diff --git a/api/classes/index.IgnoreIfEmptyXmlComponent.html b/api/classes/index.IgnoreIfEmptyXmlComponent.html
index 30f7093fac..a691fd7b86 100644
--- a/api/classes/index.IgnoreIfEmptyXmlComponent.html
+++ b/api/classes/index.IgnoreIfEmptyXmlComponent.html
@@ -39,7 +39,7 @@ to be excluded from the output.
diff --git a/api/classes/index.ImageRun.html b/api/classes/index.ImageRun.html
index 431d009c2d..9b30b5ea95 100644
--- a/api/classes/index.ImageRun.html
+++ b/api/classes/index.ImageRun.html
@@ -33,7 +33,7 @@ including JPG, PNG, GIF, BMP, and SVG. Optionally wraps the run in
diff --git a/api/classes/index.ImportedXmlComponent.html b/api/classes/index.ImportedXmlComponent.html
index 1bd0a50b1b..00f4317996 100644
--- a/api/classes/index.ImportedXmlComponent.html
+++ b/api/classes/index.ImportedXmlComponent.html
@@ -30,7 +30,7 @@ templates or when you need to include pre-existing XML fragments.
diff --git a/api/classes/index.InitializableXmlComponent.html b/api/classes/index.InitializableXmlComponent.html
index 1f20b2e785..77157cba94 100644
--- a/api/classes/index.InitializableXmlComponent.html
+++ b/api/classes/index.InitializableXmlComponent.html
@@ -30,7 +30,7 @@ create a new component that shares or extends the children of an existing compon
diff --git a/api/classes/index.InsertedTableCell.html b/api/classes/index.InsertedTableCell.html
index 848e43e8b5..1a1c499984 100644
--- a/api/classes/index.InsertedTableCell.html
+++ b/api/classes/index.InsertedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTableRow.html b/api/classes/index.InsertedTableRow.html
index 323c07128f..a913741ea3 100644
--- a/api/classes/index.InsertedTableRow.html
+++ b/api/classes/index.InsertedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTextRun.html b/api/classes/index.InsertedTextRun.html
index 1b3d6a59fd..02c8bffc8b 100644
--- a/api/classes/index.InsertedTextRun.html
+++ b/api/classes/index.InsertedTextRun.html
@@ -37,7 +37,7 @@ made the insertion and when.
diff --git a/api/classes/index.InternalHyperlink.html b/api/classes/index.InternalHyperlink.html
index 5ad23bcc6e..f4429867c2 100644
--- a/api/classes/index.InternalHyperlink.html
+++ b/api/classes/index.InternalHyperlink.html
@@ -36,7 +36,7 @@ The bookmark must exist in the document for the hyperlink to function.
diff --git a/api/classes/index.LastRenderedPageBreak.html b/api/classes/index.LastRenderedPageBreak.html
index 2851e704f0..1af09f3ba1 100644
--- a/api/classes/index.LastRenderedPageBreak.html
+++ b/api/classes/index.LastRenderedPageBreak.html
@@ -23,7 +23,7 @@ This is typically generated by Word and not created manually.
diff --git a/api/classes/index.MathDegree.html b/api/classes/index.MathDegree.html
index 6e2d4f8a29..cf56eb4b3d 100644
--- a/api/classes/index.MathDegree.html
+++ b/api/classes/index.MathDegree.html
@@ -28,7 +28,7 @@ For square roots, this element is typically hidden.
diff --git a/api/classes/index.MathFunctionName.html b/api/classes/index.MathFunctionName.html
index 28a5da5102..1fad51191e 100644
--- a/api/classes/index.MathFunctionName.html
+++ b/api/classes/index.MathFunctionName.html
@@ -28,7 +28,7 @@ that appears before the function argument.
diff --git a/api/classes/index.MathFunctionProperties.html b/api/classes/index.MathFunctionProperties.html
index a21322d4a1..83ab3b8ba6 100644
--- a/api/classes/index.MathFunctionProperties.html
+++ b/api/classes/index.MathFunctionProperties.html
@@ -28,7 +28,7 @@ such as function name alignment and spacing.
diff --git a/api/classes/index.MathLimitUpper.html b/api/classes/index.MathLimitUpper.html
index a11cf50f43..bcdc0fe4bc 100644
--- a/api/classes/index.MathLimitUpper.html
+++ b/api/classes/index.MathLimitUpper.html
@@ -36,7 +36,7 @@ commonly used for mathematical notation like lim with conditions above.
diff --git a/api/classes/index.MathPreSubSuperScript.html b/api/classes/index.MathPreSubSuperScript.html
index 6e0b22c033..e22f5e73d9 100644
--- a/api/classes/index.MathPreSubSuperScript.html
+++ b/api/classes/index.MathPreSubSuperScript.html
@@ -36,7 +36,7 @@ positioned before (to the left of) the base, commonly used in tensor notation.
diff --git a/api/classes/index.MathRadicalProperties.html b/api/classes/index.MathRadicalProperties.html
index 281c182ee0..488d7a7c51 100644
--- a/api/classes/index.MathRadicalProperties.html
+++ b/api/classes/index.MathRadicalProperties.html
@@ -28,7 +28,7 @@ such as whether to hide the degree (for square roots).
diff --git a/api/classes/index.MathRun.html b/api/classes/index.MathRun.html
index 42e34ebf9c..05a187f97d 100644
--- a/api/classes/index.MathRun.html
+++ b/api/classes/index.MathRun.html
@@ -36,7 +36,7 @@ similar to how Run contains text in regular paragraphs.
diff --git a/api/classes/index.MathSubSuperScript.html b/api/classes/index.MathSubSuperScript.html
index e9190dd2eb..96c76fb242 100644
--- a/api/classes/index.MathSubSuperScript.html
+++ b/api/classes/index.MathSubSuperScript.html
@@ -36,7 +36,7 @@ commonly used for tensor notation or indexed variables with exponents.
diff --git a/api/classes/index.Media.html b/api/classes/index.Media.html
index 73cf1596d6..1a0b8c7986 100644
--- a/api/classes/index.Media.html
+++ b/api/classes/index.Media.html
@@ -24,7 +24,7 @@ is stored with a unique key for retrieval.
diff --git a/api/classes/index.NextAttributeComponent.html b/api/classes/index.NextAttributeComponent.html
index 78840f420b..456291c2de 100644
--- a/api/classes/index.NextAttributeComponent.html
+++ b/api/classes/index.NextAttributeComponent.html
@@ -34,7 +34,7 @@ This gives more control but is more verbose than XmlAttributeComponent.
diff --git a/api/classes/index.OnOffElement.html b/api/classes/index.OnOffElement.html
index 83660518a3..368cf687b3 100644
--- a/api/classes/index.OnOffElement.html
+++ b/api/classes/index.OnOffElement.html
@@ -34,7 +34,7 @@ it is explicitly disabled. When the value is true, the attribute is often omitte
diff --git a/api/classes/index.Packer.html b/api/classes/index.Packer.html
index 8fddf7ec84..1e02c21c49 100644
--- a/api/classes/index.Packer.html
+++ b/api/classes/index.Packer.html
@@ -26,7 +26,7 @@ of the document structure into OOXML format and compression into a .docx ZIP arc
diff --git a/api/classes/index.PageBorders.html b/api/classes/index.PageBorders.html
index 1a8404a954..ff0fca6e23 100644
--- a/api/classes/index.PageBorders.html
+++ b/api/classes/index.PageBorders.html
@@ -34,7 +34,7 @@ including which pages display the borders and how they are positioned.
diff --git a/api/classes/index.PageTextDirection.html b/api/classes/index.PageTextDirection.html
index 4c77919f8c..eab6017260 100644
--- a/api/classes/index.PageTextDirection.html
+++ b/api/classes/index.PageTextDirection.html
@@ -30,7 +30,7 @@ for all pages in a section.
diff --git a/api/classes/index.Paragraph.html b/api/classes/index.Paragraph.html
index 94fec9e955..e4b6addd99 100644
--- a/api/classes/index.Paragraph.html
+++ b/api/classes/index.Paragraph.html
@@ -36,7 +36,7 @@ various inline elements such as text runs, images, hyperlinks, and bookmarks.
diff --git a/api/classes/index.ParagraphPropertiesChange.html b/api/classes/index.ParagraphPropertiesChange.html
index c1315f202d..305733dc34 100644
--- a/api/classes/index.ParagraphPropertiesChange.html
+++ b/api/classes/index.ParagraphPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ParagraphPropertiesDefaults.html b/api/classes/index.ParagraphPropertiesDefaults.html
index b14a330245..0c36849798 100644
--- a/api/classes/index.ParagraphPropertiesDefaults.html
+++ b/api/classes/index.ParagraphPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all paragraphs in the document unless overridden.
diff --git a/api/classes/index.PositionalTab.html b/api/classes/index.PositionalTab.html
index 2380065fd8..e94e892c10 100644
--- a/api/classes/index.PositionalTab.html
+++ b/api/classes/index.PositionalTab.html
@@ -37,7 +37,7 @@ an exact alignment and position within the paragraph.
diff --git a/api/classes/index.RunPropertiesDefaults.html b/api/classes/index.RunPropertiesDefaults.html
index 43bc695b84..719c9aab38 100644
--- a/api/classes/index.RunPropertiesDefaults.html
+++ b/api/classes/index.RunPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all text runs in the document unless overridden by styles or direct formattin
diff --git a/api/classes/index.SectionProperties.html b/api/classes/index.SectionProperties.html
index 0fe6f7740d..8267286363 100644
--- a/api/classes/index.SectionProperties.html
+++ b/api/classes/index.SectionProperties.html
@@ -35,7 +35,7 @@ A document can contain multiple sections with different properties.
diff --git a/api/classes/index.SectionPropertiesChange.html b/api/classes/index.SectionPropertiesChange.html
index cb4819f511..d7ed7f3749 100644
--- a/api/classes/index.SectionPropertiesChange.html
+++ b/api/classes/index.SectionPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.SimpleField.html b/api/classes/index.SimpleField.html
index c47e85c9b9..d8028c7a34 100644
--- a/api/classes/index.SimpleField.html
+++ b/api/classes/index.SimpleField.html
@@ -40,7 +40,7 @@ Simple fields are typically used for fields that don't require complex nesting.<
diff --git a/api/classes/index.SimpleMailMergeField.html b/api/classes/index.SimpleMailMergeField.html
index 16463057b9..1e19ce9f1a 100644
--- a/api/classes/index.SimpleMailMergeField.html
+++ b/api/classes/index.SimpleMailMergeField.html
@@ -30,7 +30,7 @@ It creates a MERGEFIELD that will be populated with data during mail merge.
diff --git a/api/classes/index.StringContainer.html b/api/classes/index.StringContainer.html
index 6096874756..454c8ba4ab 100644
--- a/api/classes/index.StringContainer.html
+++ b/api/classes/index.StringContainer.html
@@ -30,7 +30,7 @@ rather than an attribute.
diff --git a/api/classes/index.StringEnumValueElement.html b/api/classes/index.StringEnumValueElement.html
index 68bad5cf8b..14b31d967b 100644
--- a/api/classes/index.StringEnumValueElement.html
+++ b/api/classes/index.StringEnumValueElement.html
@@ -33,7 +33,7 @@ type parameter to enforce type safety for enum values.
diff --git a/api/classes/index.StyleForParagraph.html b/api/classes/index.StyleForParagraph.html
index d20df4f6f0..831a5726dc 100644
--- a/api/classes/index.StyleForParagraph.html
+++ b/api/classes/index.StyleForParagraph.html
@@ -35,7 +35,7 @@ run-level properties (font, size, color) for text within the paragraph.
diff --git a/api/classes/index.StyleLevel.html b/api/classes/index.StyleLevel.html
index 8153c305e4..bc87602e27 100644
--- a/api/classes/index.StyleLevel.html
+++ b/api/classes/index.StyleLevel.html
@@ -20,7 +20,7 @@ custom styles to be included in the table of contents at specific levels.
diff --git a/api/classes/index.Styles.html b/api/classes/index.Styles.html
index 7e0d32a44d..251601cdad 100644
--- a/api/classes/index.Styles.html
+++ b/api/classes/index.Styles.html
@@ -35,7 +35,7 @@ a way to define consistent formatting across a document.
diff --git a/api/classes/index.TDirection.html b/api/classes/index.TDirection.html
index 837530bb17..a8de9abbb6 100644
--- a/api/classes/index.TDirection.html
+++ b/api/classes/index.TDirection.html
@@ -34,7 +34,7 @@ useful for creating rotated text or supporting different writing systems.
diff --git a/api/classes/index.Table.html b/api/classes/index.Table.html
index b0be4ea0fa..d46ddea0f8 100644
--- a/api/classes/index.Table.html
+++ b/api/classes/index.Table.html
@@ -36,7 +36,7 @@ Tables are used to organize content into a grid structure.
diff --git a/api/classes/index.TableCellBorders.html b/api/classes/index.TableCellBorders.html
index b4d73ef1b0..ed49be0557 100644
--- a/api/classes/index.TableCellBorders.html
+++ b/api/classes/index.TableCellBorders.html
@@ -34,7 +34,7 @@ can be configured independently with different styles, colors, and widths.
diff --git a/api/classes/index.TableRow.html b/api/classes/index.TableRow.html
index 8141f9816d..e8321277ed 100644
--- a/api/classes/index.TableRow.html
+++ b/api/classes/index.TableRow.html
@@ -36,7 +36,7 @@ one or more table cells that hold the actual content.
diff --git a/api/classes/index.TableRowProperties.html b/api/classes/index.TableRowProperties.html
index f05622adde..18c227ac4e 100644
--- a/api/classes/index.TableRowProperties.html
+++ b/api/classes/index.TableRowProperties.html
@@ -30,7 +30,7 @@ whether it can split across pages, and whether it's a header row.
diff --git a/api/classes/index.TableRowPropertiesChange.html b/api/classes/index.TableRowPropertiesChange.html
index 54c67ab7ad..a8db99c607 100644
--- a/api/classes/index.TableRowPropertiesChange.html
+++ b/api/classes/index.TableRowPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.VerticalMerge.html b/api/classes/index.VerticalMerge.html
index a10ed0ba99..c49e599e52 100644
--- a/api/classes/index.VerticalMerge.html
+++ b/api/classes/index.VerticalMerge.html
@@ -35,7 +35,7 @@ This is used to create row spans in tables.
diff --git a/api/classes/index.WpsShapeRun.html b/api/classes/index.WpsShapeRun.html
index 0ed993a4cc..2cb052452c 100644
--- a/api/classes/index.WpsShapeRun.html
+++ b/api/classes/index.WpsShapeRun.html
@@ -28,7 +28,7 @@ options for fills, lines, effects and text layout, and can be any of the preset
diff --git a/api/classes/index.XmlAttributeComponent.html b/api/classes/index.XmlAttributeComponent.html
index b472e6a25e..0d6901019e 100644
--- a/api/classes/index.XmlAttributeComponent.html
+++ b/api/classes/index.XmlAttributeComponent.html
@@ -41,7 +41,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.XmlComponent.html b/api/classes/index.XmlComponent.html
index 025e1ff236..37f4e7cd00 100644
--- a/api/classes/index.XmlComponent.html
+++ b/api/classes/index.XmlComponent.html
@@ -129,7 +129,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/math.MathBrackets.html b/api/classes/math.MathBrackets.html
index 52d335c2e5..1bcb80649c 100644
--- a/api/classes/math.MathBrackets.html
+++ b/api/classes/math.MathBrackets.html
@@ -29,7 +29,7 @@ with what they hold.
diff --git a/api/classes/math.MathLargeOperator.html b/api/classes/math.MathLargeOperator.html
index 515ec494b6..8847d8ec1d 100644
--- a/api/classes/math.MathLargeOperator.html
+++ b/api/classes/math.MathLargeOperator.html
@@ -28,7 +28,7 @@ it applies to. MathSum and MathIntegral are two of the
diff --git a/api/classes/math.MathMatrix.html b/api/classes/math.MathMatrix.html
index 092ec7a3dd..807589913c 100644
--- a/api/classes/math.MathMatrix.html
+++ b/api/classes/math.MathMatrix.html
@@ -30,7 +30,7 @@ and Pages centre every column.
diff --git a/api/classes/math.MathPhantom.html b/api/classes/math.MathPhantom.html
index 24570cf209..de0ab68969 100644
--- a/api/classes/math.MathPhantom.html
+++ b/api/classes/math.MathPhantom.html
@@ -28,7 +28,7 @@ line things up with it. Or math that is seen but takes up no room, or less, as <
diff --git a/api/classes/shapes.ShapeCanvasRun.html b/api/classes/shapes.ShapeCanvasRun.html
index f82465b7d7..19aa3858f3 100644
--- a/api/classes/shapes.ShapeCanvasRun.html
+++ b/api/classes/shapes.ShapeCanvasRun.html
@@ -35,7 +35,7 @@ written in mc:AlternateContent, with the group as its fallback, unl
diff --git a/api/classes/shapes.ShapeGroupRun.html b/api/classes/shapes.ShapeGroupRun.html
index 99f06bfc8e..05c6b976e5 100644
--- a/api/classes/shapes.ShapeGroupRun.html
+++ b/api/classes/shapes.ShapeGroupRun.html
@@ -35,7 +35,7 @@ when shapes are moved on a
diff --git a/api/classes/shapes.ShapeRun.html b/api/classes/shapes.ShapeRun.html
index 4655129cd0..cd545da7c3 100644
--- a/api/classes/shapes.ShapeRun.html
+++ b/api/classes/shapes.ShapeRun.html
@@ -33,7 +33,7 @@ and arrowheads, and text inside it. It sits inline with text unless floati
diff --git a/api/classes/watermarks.ImageWatermark.html b/api/classes/watermarks.ImageWatermark.html
index 3b78770175..83abb328f5 100644
--- a/api/classes/watermarks.ImageWatermark.html
+++ b/api/classes/watermarks.ImageWatermark.html
@@ -46,7 +46,7 @@ way as an ImageRun.
diff --git a/api/classes/watermarks.TextWatermark.html b/api/classes/watermarks.TextWatermark.html
index 7d64d410a3..f461994ed9 100644
--- a/api/classes/watermarks.TextWatermark.html
+++ b/api/classes/watermarks.TextWatermark.html
@@ -44,7 +44,7 @@ recognizes it and can remove or replace it through that command.
\n option - causes the field result to be the paragraph number without trailing periods. No information about prior numbered levels is displayed unless it is included as part of the current level.
diff --git a/api/functions/index.convertToXmlComponent.html b/api/functions/index.convertToXmlComponent.html
index 190db60a93..6076db018c 100644
--- a/api/functions/index.convertToXmlComponent.html
+++ b/api/functions/index.convertToXmlComponent.html
@@ -36,7 +36,7 @@ of the original XML.
diff --git a/api/functions/index.createEmphasisMark.html b/api/functions/index.createEmphasisMark.html
index eee53c4aee..397406839f 100644
--- a/api/functions/index.createEmphasisMark.html
+++ b/api/functions/index.createEmphasisMark.html
@@ -37,7 +37,7 @@ text to emphasize it. This is commonly used in East Asian typography.
diff --git a/api/functions/index.createFrameProperties.html b/api/functions/index.createFrameProperties.html
index 409a71d40c..34d4c127e9 100644
--- a/api/functions/index.createFrameProperties.html
+++ b/api/functions/index.createFrameProperties.html
@@ -41,7 +41,7 @@ drop cap effects and various text wrapping options.
diff --git a/api/functions/index.createHorizontalPosition.html b/api/functions/index.createHorizontalPosition.html
index 437c79e8f2..388fbb73ef 100644
--- a/api/functions/index.createHorizontalPosition.html
+++ b/api/functions/index.createHorizontalPosition.html
@@ -40,7 +40,7 @@ object relative to a base element (page, margin, column, etc.).
diff --git a/api/functions/index.createMathAccentCharacter.html b/api/functions/index.createMathAccentCharacter.html
index b884209cbb..dbafc5b0e3 100644
--- a/api/functions/index.createMathAccentCharacter.html
+++ b/api/functions/index.createMathAccentCharacter.html
@@ -31,7 +31,7 @@ such as summation (∑), integral (∫), or product (∏) symbols.
diff --git a/api/functions/index.createMathNAryProperties.html b/api/functions/index.createMathNAryProperties.html
index 3b5ca9f10b..b3bebf663d 100644
--- a/api/functions/index.createMathNAryProperties.html
+++ b/api/functions/index.createMathNAryProperties.html
@@ -31,7 +31,7 @@ and integrals, including the operator character and limit positioning.
diff --git a/api/functions/index.createMathSubScriptElement.html b/api/functions/index.createMathSubScriptElement.html
index 0891368186..c3ab5caae5 100644
--- a/api/functions/index.createMathSubScriptElement.html
+++ b/api/functions/index.createMathSubScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support subscripts.
diff --git a/api/functions/index.createMathSuperScriptElement.html b/api/functions/index.createMathSuperScriptElement.html
index fed086903c..446e38a92f 100644
--- a/api/functions/index.createMathSuperScriptElement.html
+++ b/api/functions/index.createMathSuperScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support superscripts.
diff --git a/api/functions/index.createPageNumberType.html b/api/functions/index.createPageNumberType.html
index abcf681706..1169275cd7 100644
--- a/api/functions/index.createPageNumberType.html
+++ b/api/functions/index.createPageNumberType.html
@@ -37,7 +37,7 @@ for all pages in a section.
diff --git a/api/functions/index.createSectionType.html b/api/functions/index.createSectionType.html
index 852c2a7ad6..d54d1fbf1c 100644
--- a/api/functions/index.createSectionType.html
+++ b/api/functions/index.createSectionType.html
@@ -37,7 +37,7 @@ where the new section begins relative to the previous section.
diff --git a/api/functions/index.createTableFloatProperties.html b/api/functions/index.createTableFloatProperties.html
index 47f75f2f58..11c8527056 100644
--- a/api/functions/index.createTableFloatProperties.html
+++ b/api/functions/index.createTableFloatProperties.html
@@ -38,7 +38,7 @@ The overlap option isn't part of it: the table properties write it as w:tblOverl
diff --git a/api/functions/index.createTableLook.html b/api/functions/index.createTableLook.html
index dea5561353..dd9bc201e7 100644
--- a/api/functions/index.createTableLook.html
+++ b/api/functions/index.createTableLook.html
@@ -34,7 +34,7 @@ styles to apply special formatting to specific regions of the table.
diff --git a/api/functions/index.createTableRowHeight.html b/api/functions/index.createTableRowHeight.html
index d48f4d4cdc..93e9fb05de 100644
--- a/api/functions/index.createTableRowHeight.html
+++ b/api/functions/index.createTableRowHeight.html
@@ -38,7 +38,7 @@ determining how the height should be applied.
diff --git a/api/functions/index.createWrapNone.html b/api/functions/index.createWrapNone.html
index ac87af72ae..8b44c8bc22 100644
--- a/api/functions/index.createWrapNone.html
+++ b/api/functions/index.createWrapNone.html
@@ -23,7 +23,7 @@ without wrapping around it.
diff --git a/api/functions/index.createWrapSquare.html b/api/functions/index.createWrapSquare.html
index 74647179d4..a6d9feb343 100644
--- a/api/functions/index.createWrapSquare.html
+++ b/api/functions/index.createWrapSquare.html
@@ -32,7 +32,7 @@ of the drawing on the specified side(s).
diff --git a/api/functions/index.createWrapThrough.html b/api/functions/index.createWrapThrough.html
index d690c0daa6..dc59865e50 100644
--- a/api/functions/index.createWrapThrough.html
+++ b/api/functions/index.createWrapThrough.html
@@ -36,7 +36,7 @@ fills any open space inside the drawing, such as the middle of a ring.
diff --git a/api/functions/index.createWrapTight.html b/api/functions/index.createWrapTight.html
index a84695db6e..bde5a61213 100644
--- a/api/functions/index.createWrapTight.html
+++ b/api/functions/index.createWrapTight.html
@@ -36,7 +36,7 @@ of the drawing rather than its rectangular bounding box.
diff --git a/api/functions/index.dateTimeValue.html b/api/functions/index.dateTimeValue.html
index 8fd6993962..311dae9885 100644
--- a/api/functions/index.dateTimeValue.html
+++ b/api/functions/index.dateTimeValue.html
@@ -36,7 +36,7 @@ This matches the xsd:dateTime format required by OOXML.
diff --git a/api/functions/index.fillPartPageNumbers.html b/api/functions/index.fillPartPageNumbers.html
index 72c0d2bb1e..65d54af61f 100644
--- a/api/functions/index.fillPartPageNumbers.html
+++ b/api/functions/index.fillPartPageNumbers.html
@@ -35,7 +35,7 @@ are left as they are
diff --git a/api/functions/index.fillSequenceNumbers.html b/api/functions/index.fillSequenceNumbers.html
index 946ca3c194..e1134ca46d 100644
--- a/api/functions/index.fillSequenceNumbers.html
+++ b/api/functions/index.fillSequenceNumbers.html
@@ -27,7 +27,7 @@ tables of contents are filled in from its headings, as Word leaves a heading's S
diff --git a/api/functions/index.hpsMeasureValue.html b/api/functions/index.hpsMeasureValue.html
index ddc6d6c420..de87bce7bf 100644
--- a/api/functions/index.hpsMeasureValue.html
+++ b/api/functions/index.hpsMeasureValue.html
@@ -36,7 +36,7 @@ HPS (half-points) are commonly used for font sizes.
diff --git a/api/functions/index.patchDocument.html b/api/functions/index.patchDocument.html
index 2a7931ecc2..96e7d7b132 100644
--- a/api/functions/index.patchDocument.html
+++ b/api/functions/index.patchDocument.html
@@ -42,7 +42,7 @@ the original document structure and optionally the original formatting.
diff --git a/api/functions/index.universalMeasureToTwips.html b/api/functions/index.universalMeasureToTwips.html
index f6e96d1bd6..524216015c 100644
--- a/api/functions/index.universalMeasureToTwips.html
+++ b/api/functions/index.universalMeasureToTwips.html
@@ -35,7 +35,7 @@ Strings are converted according to their unit suffix.
diff --git a/api/functions/layout.estimatePageNumbersWith.html b/api/functions/layout.estimatePageNumbersWith.html
index 7e968497a7..df075ca9e1 100644
--- a/api/functions/layout.estimatePageNumbersWith.html
+++ b/api/functions/layout.estimatePageNumbersWith.html
@@ -32,7 +32,7 @@ options say. Give what it returns to a document as its pageNumbers,
diff --git a/api/functions/layout.layoutDocument.html b/api/functions/layout.layoutDocument.html
index 8b180d2cdb..b9188c05de 100644
--- a/api/functions/layout.layoutDocument.html
+++ b/api/functions/layout.layoutDocument.html
@@ -40,7 +40,7 @@ text box, it stops, and gives the pages up to there, with why in stoppedAt
diff --git a/api/functions/layout.measureWithPretext.html b/api/functions/layout.measureWithPretext.html
index c0e4c451a9..f70116c8e3 100644
--- a/api/functions/layout.measureWithPretext.html
+++ b/api/functions/layout.measureWithPretext.html
@@ -40,7 +40,7 @@ measures text in another, and Pretext keeps the widths it measured.
diff --git a/api/functions/math.latexToMath.html b/api/functions/math.latexToMath.html
index e7dbc4ed1e..132fc85325 100644
--- a/api/functions/math.latexToMath.html
+++ b/api/functions/math.latexToMath.html
@@ -44,7 +44,7 @@ cases and aligned equations, with \tag for their numbers. The math
diff --git a/api/interfaces/index.IXmlableObject.html b/api/interfaces/index.IXmlableObject.html
index ea4eccf5d9..9d3cca9b0d 100644
--- a/api/interfaces/index.IXmlableObject.html
+++ b/api/interfaces/index.IXmlableObject.html
@@ -31,7 +31,7 @@ to generate the final XML output. Objects typically have a structure like:
diff --git a/api/types/charts.BarChartBaseOptions.html b/api/types/charts.BarChartBaseOptions.html
index edd74d59f7..3dfaf69923 100644
--- a/api/types/charts.BarChartBaseOptions.html
+++ b/api/types/charts.BarChartBaseOptions.html
@@ -31,7 +31,7 @@ Default is Office's: -27 for column charts and 0 for bar charts. Stacked bars al
@@ -49,14 +49,14 @@ bar, line or area chart spaces them by date
Sales. 2025: Jan 10, Feb 20.", and none for a decorative chart. An empty description removes it
+
diff --git a/api/types/charts.CategoryChartOptions.html b/api/types/charts.CategoryChartOptions.html
index 8013d02448..98bc24139b 100644
--- a/api/types/charts.CategoryChartOptions.html
+++ b/api/types/charts.CategoryChartOptions.html
@@ -59,7 +59,7 @@ in years, are labelled in rows, the groups below their categories
diff --git a/api/types/charts.ChartAxisCrossing.html b/api/types/charts.ChartAxisCrossing.html
index ede70f014e..9d30c3a74b 100644
--- a/api/types/charts.ChartAxisCrossing.html
+++ b/api/types/charts.ChartAxisCrossing.html
@@ -20,7 +20,7 @@ the value is the category's number, from 1, or when the categories are dates, a
diff --git a/api/types/charts.ChartAxisGroup.html b/api/types/charts.ChartAxisGroup.html
index 993cf2b539..3d3b6cb965 100644
--- a/api/types/charts.ChartAxisGroup.html
+++ b/api/types/charts.ChartAxisGroup.html
@@ -19,7 +19,7 @@ chart's are along the bottom and the top.
diff --git a/api/types/charts.ChartCategoryGroup.html b/api/types/charts.ChartCategoryGroup.html
index 9232fec631..62b7669c53 100644
--- a/api/types/charts.ChartCategoryGroup.html
+++ b/api/types/charts.ChartCategoryGroup.html
@@ -20,7 +20,7 @@ categories, or groups of its own, such as the months of each quarter of each yea
@@ -67,21 +67,21 @@ a point, and where they fit best on a pie. A chart's position is for the series
another way keep Office's, unless their own labels give one
diff --git a/api/types/charts.ChartDataPatchOptions.html b/api/types/charts.ChartDataPatchOptions.html
index 8c6b9407c6..2fc47b2582 100644
--- a/api/types/charts.ChartDataPatchOptions.html
+++ b/api/types/charts.ChartDataPatchOptions.html
@@ -19,7 +19,7 @@ series' points, or for a stock chart its prices.
diff --git a/api/types/charts.ChartErrorBarsAmount.html b/api/types/charts.ChartErrorBarsAmount.html
index 8135a91b45..da157a919d 100644
--- a/api/types/charts.ChartErrorBarsAmount.html
+++ b/api/types/charts.ChartErrorBarsAmount.html
@@ -64,7 +64,7 @@ deviations, or the standard error.
diff --git a/api/types/charts.ChartLineDash.html b/api/types/charts.ChartLineDash.html
index 60164a7302..ffb5764a3f 100644
--- a/api/types/charts.ChartLineDash.html
+++ b/api/types/charts.ChartLineDash.html
@@ -19,7 +19,7 @@ and so on.
diff --git a/api/types/charts.ChartPointLabel.html b/api/types/charts.ChartPointLabel.html
index 466816ca62..c705fe2971 100644
--- a/api/types/charts.ChartPointLabel.html
+++ b/api/types/charts.ChartPointLabel.html
@@ -19,7 +19,7 @@ format and its font. Anything left out is as the series' labels have it.
diff --git a/api/types/charts.ChartTrendline.html b/api/types/charts.ChartTrendline.html
index 3b03455511..d13d7c39d7 100644
--- a/api/types/charts.ChartTrendline.html
+++ b/api/types/charts.ChartTrendline.html
@@ -20,7 +20,7 @@ forecast. It is drawn as a dotted line in the series' colour, and has an entry i
@@ -57,7 +57,7 @@ forecast. It is drawn as a dotted line in the series' colour, and has an entry i
along the x axis. Default is 0. Not for moving averages
@@ -73,35 +73,35 @@ the x axis. Default is 0. Not for moving averages
linear, exponential and polynomial trendlines, and above 0 for exponential ones
+
diff --git a/api/types/charts.ChartValueAxis.html b/api/types/charts.ChartValueAxis.html
index d4be35f615..f83e0c37e8 100644
--- a/api/types/charts.ChartValueAxis.html
+++ b/api/types/charts.ChartValueAxis.html
@@ -43,7 +43,7 @@ of 0 or less can't be shown. Default is a linear scale
diff --git a/api/types/charts.ComboChartSeriesType.html b/api/types/charts.ComboChartSeriesType.html
index 5491082ca5..72c635accc 100644
--- a/api/types/charts.ComboChartSeriesType.html
+++ b/api/types/charts.ComboChartSeriesType.html
@@ -19,7 +19,7 @@ or an area. A chart with series of more than one type is Word's "Combo"
@@ -59,14 +59,14 @@ with undefined, takes the next of the theme's accent colours
one for each slice in the order of the categories, where undefined leaves a slice in. Default is 0
+
diff --git a/api/types/charts.SplitPieChartBaseOptions.html b/api/types/charts.SplitPieChartBaseOptions.html
index 0307f19fb5..cc9e51e38a 100644
--- a/api/types/charts.SplitPieChartBaseOptions.html
+++ b/api/types/charts.SplitPieChartBaseOptions.html
@@ -42,7 +42,7 @@ second pie or a stacked bar, joined to the slice of the pie that stands for them
diff --git a/api/types/index.AttributePayload.html b/api/types/index.AttributePayload.html
index d56edf930a..dc52507620 100644
--- a/api/types/index.AttributePayload.html
+++ b/api/types/index.AttributePayload.html
@@ -21,7 +21,7 @@ control over attribute name mapping.
Specifies the additional length, in EMUs, which shall be added to the bottom edge of the DrawingML object to determine its actual bottom edge including effects.
Specifies the additional length, in EMUs, which shall be added to the left edge of the DrawingML object to determine its actual left edge including effects.
Specifies the additional length, in EMUs, which shall be added to the right edge of the DrawingML object to determine its actual right edge including effects.
Specifies the additional length, in EMUs, which shall be added to the top edge of the DrawingML object to determine its actual top edge including effects.
@@ -63,14 +63,14 @@ name. The page references to a bookmark that isn't in it are left blank.
the first of them on may not be Word's. Nothing of them is written into the document.
+
@@ -88,7 +88,7 @@ those in headers, footers and notes.
in headers and footers only on its pages, show. Those of a section whose number is undefined are left blank.
+
diff --git a/api/types/index.GraphicMediaData.html b/api/types/index.GraphicMediaData.html
index 49bddf91e2..3e41bb5a5e 100644
--- a/api/types/index.GraphicMediaData.html
+++ b/api/types/index.GraphicMediaData.html
@@ -25,7 +25,7 @@ graphic it is. This is how docx/shapes writes its shapes.
diff --git a/api/types/index.IContext.html b/api/types/index.IContext.html
index 4b1a942c7f..7d04582a63 100644
--- a/api/types/index.IContext.html
+++ b/api/types/index.IContext.html
@@ -18,7 +18,7 @@ during the conversion of components to XML.
diff --git a/api/types/index.ICropOptions.html b/api/types/index.ICropOptions.html
index 324c888508..79da4145e0 100644
--- a/api/types/index.ICropOptions.html
+++ b/api/types/index.ICropOptions.html
@@ -19,7 +19,7 @@ side of the image.
The grid can define a grid which snaps all East Asian characters to grid positions, but leaves Latin text with its default spacing; a grid which adds the specified character pitch to each character on each row; or a grid which affects only the line pitch for the current section.
Specifies that the paragraph (or at least part of it) should be rendered on the same page as the next paragraph when possible. If multiple paragraphs are to be kept together but they exceed a page, then the set of paragraphs begin on a new page and page breaks are used thereafter as needed.
diff --git a/api/types/index.IRunOptions.html b/api/types/index.IRunOptions.html
index bfb9f0be92..01536d7866 100644
--- a/api/types/index.IRunOptions.html
+++ b/api/types/index.IRunOptions.html
@@ -21,7 +21,7 @@ The children property can contain various inline content elements.
diff --git a/api/types/index.IRunStylePropertiesOptions.html b/api/types/index.IRunStylePropertiesOptions.html
index 0dda1ecea4..c9dd8d1705 100644
--- a/api/types/index.IRunStylePropertiesOptions.html
+++ b/api/types/index.IRunStylePropertiesOptions.html
@@ -19,7 +19,7 @@ including font, size, bold, italic, underline, color, and other character format
@@ -140,117 +140,117 @@ including font, size, bold, italic, underline, color, and other character format
highlights all the run's text. docx used to write it as w:highlightCs, which is in no schema.
diff --git a/api/types/index.ITableCellBorders.html b/api/types/index.ITableCellBorders.html
index 9adb81a408..da96e67088 100644
--- a/api/types/index.ITableCellBorders.html
+++ b/api/types/index.ITableCellBorders.html
@@ -22,7 +22,7 @@ can be specified for top, bottom, left, right, start, and end edges.
@@ -46,7 +46,7 @@ If relativeHorizontalPosition is also specified, then the absoluteHorizontalPosi
If the attribute is omitted, the value is assumed to be zero.
@@ -57,7 +57,7 @@ If relativeVerticalPosition is also specified, then the absoluteVerticalPosition
If the attribute is omitted, the value is assumed to be zero.
@@ -65,7 +65,7 @@ If the attribute is omitted, the value is assumed to be zero.
below the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -85,7 +85,7 @@ If omitted, the value is assumed to be page.
to the left of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -121,7 +121,7 @@ inline - the table should be vertically aligned in line with the surrounding tex
top - the table should be vertically aligned to the top edge of the anchor
+
@@ -129,7 +129,7 @@ top - the table should be vertically aligned to the top edge of the anchor
to the right of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -137,7 +137,7 @@ to the right of the table. The value is in twentieths of a point. If omitted, th
above the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -88,7 +88,7 @@ When true, horizontal banding (alternating row colors) is disabled.
When false or undefined, horizontal banding is enabled if defined in the table style.
+
@@ -97,7 +97,7 @@ When true, vertical banding (alternating column colors) is disabled.
When false or undefined, vertical banding is enabled if defined in the table style.
+
diff --git a/api/types/index.ITableOfContentsOptions.html b/api/types/index.ITableOfContentsOptions.html
index e743ebf43a..44ecb80bf2 100644
--- a/api/types/index.ITableOfContentsOptions.html
+++ b/api/types/index.ITableOfContentsOptions.html
@@ -23,7 +23,7 @@ Options correspond to field switches in the TOC field code.
@@ -59,7 +59,7 @@ The identifier designated by text in this switch's field-argument corresponds to
Use captionLabelIncludingNumbers (\c) to build a table of captions with labels and numbers.
@@ -85,7 +85,7 @@ the bookmark named by text in this switch's field-argument.
that separate an entry and its page number. The default is a tab with leader dots.
+
@@ -96,21 +96,21 @@ to the style with a style ID of HeadingX (e.g. 1 corresponds to Heading1).
If no heading range is specified, all heading levels used in the document are listed.
+
@@ -119,21 +119,21 @@ Page numbers are omitted from all levels unless a range of entry levels is speci
text in this switch's field-argument. A range is specified as for \l.
+
@@ -168,7 +168,7 @@ with each doublet being a comma-separated set of style name and table of content
text in this switch's field-argument (which is typically a letter).
+
@@ -178,14 +178,14 @@ where startLevel and endLevel are integers, and startLevel has a value equal-to
TC fields that assign entries to lower levels are skipped.
+
@@ -76,64 +76,64 @@ parent cell) when the document is packed, so the table renders the same in every
consumer. Supply explicit values to take full control of the grid.
diff --git a/api/types/index.IThemeColorsOptions.html b/api/types/index.IThemeColorsOptions.html
index 2159fc2356..33e3f2e32f 100644
--- a/api/types/index.IThemeColorsOptions.html
+++ b/api/types/index.IThemeColorsOptions.html
@@ -21,7 +21,7 @@ when the theme's colors change. The colors not given are Office's.
diff --git a/api/types/index.IXmlAttribute.html b/api/types/index.IXmlAttribute.html
index 9be9ad37d3..1459d309c0 100644
--- a/api/types/index.IXmlAttribute.html
+++ b/api/types/index.IXmlAttribute.html
@@ -17,7 +17,7 @@
numbers, or booleans, which will be converted to strings in the final XML.
diff --git a/api/types/index.MathRunStyle.html b/api/types/index.MathRunStyle.html
index 22985ff942..23822984be 100644
--- a/api/types/index.MathRunStyle.html
+++ b/api/types/index.MathRunStyle.html
@@ -23,7 +23,7 @@
alphabet other than roman is plain unless given a style, as LaTeX draws its alphabets upright.
diff --git a/api/types/index.OutputByType.html b/api/types/index.OutputByType.html
index 182a3e3ce0..4d8afe376d 100644
--- a/api/types/index.OutputByType.html
+++ b/api/types/index.OutputByType.html
@@ -24,7 +24,7 @@ format determines the return type. Based on JSZip's output types.
diff --git a/api/types/index.PageNumberEstimator.html b/api/types/index.PageNumberEstimator.html
index 207341c162..5e881276c2 100644
--- a/api/types/index.PageNumberEstimator.html
+++ b/api/types/index.PageNumberEstimator.html
@@ -38,7 +38,7 @@ page counts can be written with it.
diff --git a/api/types/index.ParagraphChild.html b/api/types/index.ParagraphChild.html
index 23d5c9dbf6..12b59afad9 100644
--- a/api/types/index.ParagraphChild.html
+++ b/api/types/index.ParagraphChild.html
@@ -17,7 +17,7 @@ This union type represents all valid inline content elements that can appear
within a paragraph in WordprocessingML.
@@ -57,7 +57,7 @@ when it opens it, unzipped and read as the template is, by its path in the templ
(captureSpacesBetweenElements), as the spaces in a text element are its text
diff --git a/api/types/index.RelationshipType.html b/api/types/index.RelationshipType.html
index 561432c4a6..d045f5612e 100644
--- a/api/types/index.RelationshipType.html
+++ b/api/types/index.RelationshipType.html
@@ -17,7 +17,7 @@
Each type corresponds to a specific kind of document component or resource.
diff --git a/api/types/index.TableRowsPatch.html b/api/types/index.TableRowsPatch.html
index 91e147ffae..1dbc9be66d 100644
--- a/api/types/index.TableRowsPatch.html
+++ b/api/types/index.TableRowsPatch.html
@@ -32,7 +32,7 @@ none. The other patches are applied after the rows are repeated, so a placeholde
@@ -55,14 +55,14 @@ A field's patch can repeat rows of a table in the copy in turn, whose fields are
repeated for each part, with its item's fields, and an item without parts has no row
diff --git a/api/types/index.TemplatePageNumberEstimator.html b/api/types/index.TemplatePageNumberEstimator.html
index 7c927b5239..02cf0a30b3 100644
--- a/api/types/index.TemplatePageNumberEstimator.html
+++ b/api/types/index.TemplatePageNumberEstimator.html
@@ -33,7 +33,7 @@ pages, are written with it.
Specifies the height of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the element left of it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the position of the bottom of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the right of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the top of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the type of positioning used to place an element. Default is static. When the element is contained inside a group, this property must be absolute.
Specifies relative horizontal position data for objects in WordprocessingML documents. This modifies the mso-position-horizontal property. Default is text.
Specifies relative vertical position data for objects in WordprocessingML documents. This modifies the mso-position-vertical property. Default is text.
Specifies the position of the top of the containing block of the shape relative to the element above it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the width of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the distance from the bottom of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the left side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the right side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the top of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies whether the wrap coordinates were customized by the user. If the wrap coordinates are generated by an editor, this property is true; otherwise they were customized by a user. Default is false.
@@ -45,7 +45,7 @@ file is measured with the upright one. The layout stops at a character a font's
it in another font. A font the document embeds is measured from the document's own file
@@ -60,7 +60,7 @@ nearest to Word's lays it out. It still stops where it has no guess, such as at
is off, so the numbers written are Word's, as near as the layout knows, or blank.
+
@@ -70,7 +70,7 @@ break, and tabs move to their stops, as Word lays them out, and lines are as tal
width tables, so the layout stops at text in a font that isn't in them and isn't given as a file or embedded.
+
@@ -67,21 +67,21 @@ drawing that text flows around. Its text is lined up in it as the paragraph's al
sides of a drawing is two lines with the same y, the left first
+
diff --git a/api/types/layout.MeasureWidth.html b/api/types/layout.MeasureWidth.html
index 8425bc7381..eea275d68b 100644
--- a/api/types/layout.MeasureWidth.html
+++ b/api/types/layout.MeasureWidth.html
@@ -33,7 +33,7 @@ between characters and the width of scaled text, which the document's formatting
diff --git a/api/types/shapes.ConnectorEnd.html b/api/types/shapes.ConnectorEnd.html
index b355ebd6c8..5b6d52e874 100644
--- a/api/types/shapes.ConnectorEnd.html
+++ b/api/types/shapes.ConnectorEnd.html
@@ -38,7 +38,7 @@ bottom-left corner. On a shape without connection points, the connector ends at
diff --git a/api/types/shapes.CustomShapeGeometry.html b/api/types/shapes.CustomShapeGeometry.html
index f52fea7cda..5408caad30 100644
--- a/api/types/shapes.CustomShapeGeometry.html
+++ b/api/types/shapes.CustomShapeGeometry.html
@@ -50,7 +50,7 @@ fill the shape. Later paths are drawn over earlier ones
diff --git a/api/types/shapes.CustomShapePath.html b/api/types/shapes.CustomShapePath.html
index fac4dd475c..64abfe1f03 100644
--- a/api/types/shapes.CustomShapePath.html
+++ b/api/types/shapes.CustomShapePath.html
@@ -20,7 +20,7 @@ own, so paths can overlap without cutting holes in each other.
diff --git a/api/types/shapes.CustomShapePathFill.html b/api/types/shapes.CustomShapePathFill.html
index 03ecb886df..a47256677c 100644
--- a/api/types/shapes.CustomShapePathFill.html
+++ b/api/types/shapes.CustomShapePathFill.html
@@ -19,7 +19,7 @@ fill made lighter or darker, as Word's preset shapes shade the top of a cube or
diff --git a/api/types/shapes.IShapeCanvasOptions.html b/api/types/shapes.IShapeCanvasOptions.html
index e6f7c5c663..ad4e658dd0 100644
--- a/api/types/shapes.IShapeCanvasOptions.html
+++ b/api/types/shapes.IShapeCanvasOptions.html
@@ -64,7 +64,7 @@ The shapes are not scaled.
diff --git a/api/types/shapes.IShapeConnectorOptions.html b/api/types/shapes.IShapeConnectorOptions.html
index 7567955a2d..807989a063 100644
--- a/api/types/shapes.IShapeConnectorOptions.html
+++ b/api/types/shapes.IShapeConnectorOptions.html
@@ -23,7 +23,7 @@ or several connectors join the same two shapes, their ends are spread out along
@@ -64,21 +64,21 @@ or several connectors join the same two shapes, their ends are spread out along
shape, so Word doesn't move it when the connector moves
diff --git a/api/types/shapes.IShapeGroupChildOptions.html b/api/types/shapes.IShapeGroupChildOptions.html
index 746c0cf378..bc3823f656 100644
--- a/api/types/shapes.IShapeGroupChildOptions.html
+++ b/api/types/shapes.IShapeGroupChildOptions.html
@@ -20,7 +20,7 @@ in pixels, unless a layout places it, and id names it
diff --git a/api/types/shapes.IShapeGroupOptions.html b/api/types/shapes.IShapeGroupOptions.html
index 26cf548152..9ddd2d915c 100644
--- a/api/types/shapes.IShapeGroupOptions.html
+++ b/api/types/shapes.IShapeGroupOptions.html
@@ -50,7 +50,7 @@ the box around the children. A different size scales every shape in the group.
diff --git a/api/types/shapes.IShapeNestedGroupOptions.html b/api/types/shapes.IShapeNestedGroupOptions.html
index f9cae0f7d2..827ff2c161 100644
--- a/api/types/shapes.IShapeNestedGroupOptions.html
+++ b/api/types/shapes.IShapeNestedGroupOptions.html
@@ -47,7 +47,7 @@ box around the children, and a different size scales every child
diff --git a/api/types/shapes.IShapeOptions.html b/api/types/shapes.IShapeOptions.html
index 4929341a54..24dc3c0183 100644
--- a/api/types/shapes.IShapeOptions.html
+++ b/api/types/shapes.IShapeOptions.html
@@ -23,7 +23,7 @@ or startAngle and endAngle for a "pie"
diff --git a/api/types/shapes.PresetShapeAdjustments.html b/api/types/shapes.PresetShapeAdjustments.html
index 8d3dc84b02..5d466abde6 100644
--- a/api/types/shapes.PresetShapeAdjustments.html
+++ b/api/types/shapes.PresetShapeAdjustments.html
@@ -21,7 +21,7 @@ allows, so a value that is too large acts like the largest allowed value.
diff --git a/api/types/shapes.ShapeAdjustments.html b/api/types/shapes.ShapeAdjustments.html
index cf36d82de6..ec28a58344 100644
--- a/api/types/shapes.ShapeAdjustments.html
+++ b/api/types/shapes.ShapeAdjustments.html
@@ -23,7 +23,7 @@ It is never for shapes without handles, which take no adjustments.<
diff --git a/api/types/shapes.ShapeFlowLayout.html b/api/types/shapes.ShapeFlowLayout.html
index 3ad17d1a0f..0def88e3d1 100644
--- a/api/types/shapes.ShapeFlowLayout.html
+++ b/api/types/shapes.ShapeFlowLayout.html
@@ -20,7 +20,7 @@ that connect to it, and the shapes on each level are ordered so connectors cross
@@ -52,26 +52,26 @@ with a lane goes in the band of that name, and shapes without one g
across the direction the flow runs in, each with a header at the start of the flow
diff --git a/api/types/shapes.ShapeHorizontalPosition.html b/api/types/shapes.ShapeHorizontalPosition.html
index 57696c83fd..23b3593299 100644
--- a/api/types/shapes.ShapeHorizontalPosition.html
+++ b/api/types/shapes.ShapeHorizontalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/types/shapes.ShapeLayout.html b/api/types/shapes.ShapeLayout.html
index 5998f1d619..51061b156b 100644
--- a/api/types/shapes.ShapeLayout.html
+++ b/api/types/shapes.ShapeLayout.html
@@ -20,7 +20,7 @@ layout, which is placed around them. Connectors are routed after the shapes are
diff --git a/api/types/shapes.ShapeSize.html b/api/types/shapes.ShapeSize.html
index 84e21ef35f..1a00905da0 100644
--- a/api/types/shapes.ShapeSize.html
+++ b/api/types/shapes.ShapeSize.html
@@ -19,7 +19,7 @@ percentage of the space between the page's margins, or of what floating.si
diff --git a/api/types/shapes.ShapeTextWarp.html b/api/types/shapes.ShapeTextWarp.html
index 7ec1400817..bfb03089b3 100644
--- a/api/types/shapes.ShapeTextWarp.html
+++ b/api/types/shapes.ShapeTextWarp.html
@@ -19,7 +19,7 @@ The ...Filled arches, circle and button spread the text over the wh
diff --git a/api/types/shapes.ShapeThemeColor.html b/api/types/shapes.ShapeThemeColor.html
index 7e1534d241..8a47851c51 100644
--- a/api/types/shapes.ShapeThemeColor.html
+++ b/api/types/shapes.ShapeThemeColor.html
@@ -20,7 +20,7 @@ same as docx's ThemeColor, which text, borders and sha
diff --git a/api/types/shapes.ShapeTransformation.html b/api/types/shapes.ShapeTransformation.html
index ab74d588ed..2ab3bfca28 100644
--- a/api/types/shapes.ShapeTransformation.html
+++ b/api/types/shapes.ShapeTransformation.html
@@ -30,7 +30,7 @@ between the margins for a floating shape, such as "100%"<
diff --git a/api/types/shapes.ShapeTreeLayout.html b/api/types/shapes.ShapeTreeLayout.html
index 6478923d2a..d60da5419d 100644
--- a/api/types/shapes.ShapeTreeLayout.html
+++ b/api/types/shapes.ShapeTreeLayout.html
@@ -20,7 +20,7 @@ children are placed side by side below their parent, which is centred over them.
diff --git a/api/types/shapes.ShapeVerticalPosition.html b/api/types/shapes.ShapeVerticalPosition.html
index 8b70bd386f..aad44d81dd 100644
--- a/api/types/shapes.ShapeVerticalPosition.html
+++ b/api/types/shapes.ShapeVerticalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/variables/index.CharacterSet.html b/api/variables/index.CharacterSet.html
index 838f398a62..4da2f95f53 100644
--- a/api/variables/index.CharacterSet.html
+++ b/api/variables/index.CharacterSet.html
@@ -60,7 +60,7 @@ Maps character set names to their hexadecimal identifiers.
diff --git a/api/variables/index.DocumentAttributeNamespaces.html b/api/variables/index.DocumentAttributeNamespaces.html
index 97ee212fec..1d282c862c 100644
--- a/api/variables/index.DocumentAttributeNamespaces.html
+++ b/api/variables/index.DocumentAttributeNamespaces.html
@@ -94,7 +94,7 @@ in a document, including WordprocessingML, DrawingML, VML, and others.
When this value is set, the input specified via the user interface may be restricted to the number of lines per page and characters per line, with the consumer or producer translating this information based on the current font data to get the resulting line and character pitch values
diff --git a/api/variables/index.DropCapType.html b/api/variables/index.DropCapType.html
index 2cfbd45e43..d64685e503 100644
--- a/api/variables/index.DropCapType.html
+++ b/api/variables/index.DropCapType.html
@@ -32,7 +32,7 @@ beginning of a paragraph. This enum defines how the drop cap should be positione
diff --git a/api/variables/index.EMPTY_OBJECT.html b/api/variables/index.EMPTY_OBJECT.html
index b01879f042..a0011ef934 100644
--- a/api/variables/index.EMPTY_OBJECT.html
+++ b/api/variables/index.EMPTY_OBJECT.html
@@ -20,7 +20,7 @@ has no children or attributes.
diff --git a/api/variables/index.EmphasisMarkType.html b/api/variables/index.EmphasisMarkType.html
index 6bda89d2f7..98be2c2bb3 100644
--- a/api/variables/index.EmphasisMarkType.html
+++ b/api/variables/index.EmphasisMarkType.html
@@ -31,7 +31,7 @@ Emphasis marks are commonly used in East Asian typography.
Specifies that this header or footer shall appear on the first page in this section. The appearance of this header or footer is contingent on the setting of the titlePg element (§2.10.6).
diff --git a/api/variables/index.LevelFormat.html b/api/variables/index.LevelFormat.html
index 10fb04a525..3aa8185c5a 100644
--- a/api/variables/index.LevelFormat.html
+++ b/api/variables/index.LevelFormat.html
@@ -281,7 +281,7 @@ decimal, roman numerals, letters, and various international formats.
diff --git a/api/variables/index.PageTextDirectionType.html b/api/variables/index.PageTextDirectionType.html
index d26fdb4358..bfe91dba86 100644
--- a/api/variables/index.PageTextDirectionType.html
+++ b/api/variables/index.PageTextDirectionType.html
@@ -28,7 +28,7 @@ vertically (top-to-bottom), commonly used for East Asian languages.
Top-to-bottom, right-to-left (vertical East Asian text flow)
diff --git a/api/variables/index.ShadingType.html b/api/variables/index.ShadingType.html
index 13be69786e..c82e083cf7 100644
--- a/api/variables/index.ShadingType.html
+++ b/api/variables/index.ShadingType.html
@@ -103,7 +103,7 @@ color and the pattern color.
diff --git a/api/variables/index.TextEffect.html b/api/variables/index.TextEffect.html
index 4fc2438474..44b0cbebae 100644
--- a/api/variables/index.TextEffect.html
+++ b/api/variables/index.TextEffect.html
@@ -56,7 +56,7 @@ these effects are deprecated and may not be supported by all applications.
diff --git a/api/variables/index.VerticalAlign.html b/api/variables/index.VerticalAlign.html
index cf5a93bf1a..2578540f6b 100644
--- a/api/variables/index.VerticalAlign.html
+++ b/api/variables/index.VerticalAlign.html
@@ -32,7 +32,7 @@ backward-compatibility and will be removed in the next major release.
diff --git a/api/variables/index.VerticalAlignTable.html b/api/variables/index.VerticalAlignTable.html
index 30f1745159..2a19b8e235 100644
--- a/api/variables/index.VerticalAlignTable.html
+++ b/api/variables/index.VerticalAlignTable.html
@@ -28,7 +28,7 @@ are valid according to ECMA-376 (§17.18.87 ST_VerticalJc within <w:tcP
diff --git a/api/variables/index.VerticalMergeType.html b/api/variables/index.VerticalMergeType.html
index 3fead06ba4..d7440bfa28 100644
--- a/api/variables/index.VerticalMergeType.html
+++ b/api/variables/index.VerticalMergeType.html
@@ -29,7 +29,7 @@ This cell continues a vertical merge started by a cell above it.
This cell begins a new vertical merge region.
diff --git a/api/variables/index.bookmarkUniqueNumericId.html b/api/variables/index.bookmarkUniqueNumericId.html
index 6317f7caf0..8fc59e7e62 100644
--- a/api/variables/index.bookmarkUniqueNumericId.html
+++ b/api/variables/index.bookmarkUniqueNumericId.html
@@ -27,7 +27,7 @@ than a generator per instance.
diff --git a/api/variables/index.docPropertiesUniqueNumericId.html b/api/variables/index.docPropertiesUniqueNumericId.html
index 4e5f479d02..1fc52f7bdc 100644
--- a/api/variables/index.docPropertiesUniqueNumericId.html
+++ b/api/variables/index.docPropertiesUniqueNumericId.html
@@ -28,7 +28,7 @@ one counter rather than a generator per instance.
diff --git a/api/variables/layout.estimatePageNumbers.html b/api/variables/layout.estimatePageNumbers.html
index 63d5245fee..7c121d2efe 100644
--- a/api/variables/layout.estimatePageNumbers.html
+++ b/api/variables/layout.estimatePageNumbers.html
@@ -50,7 +50,7 @@ written, and the numbers left blank stay blank, without asking to update the fie
diff --git a/live-examples/lib/layout.iife.js b/live-examples/lib/layout.iife.js
index bb409f72f7..dd537c1410 100644
--- a/live-examples/lib/layout.iife.js
+++ b/live-examples/lib/layout.iife.js
@@ -7430,7 +7430,8 @@ var docxLayout = (function(exports) {
right: distance("distR")
},
horizontal,
- vertical
+ vertical,
+ mayOverlap: attributes.allowOverlap === void 0 || isOn(attributes.allowOverlap)
});
};
/**
@@ -9623,8 +9624,6 @@ var docxLayout = (function(exports) {
}, breakAfter === void 0 ? {} : { breakAfter }), spacingBelow === void 0 ? {} : { spacingBelow }) });
};
var MOST_ATTEMPTS = 10;
- /** Whether two boxes are in the same place */
- var sameBox = (one, other) => Math.abs(one.left - other.left) < TOLERANCE && Math.abs(one.right - other.right) < TOLERANCE && Math.abs(one.top - other.top) < TOLERANCE && Math.abs(one.bottom - other.bottom) < TOLERANCE;
/** Whether two sets of lines' rooms are the same */
var sameRooms = (one, other) => one.size === other.size && [...one].every(([line, { start, end }]) => {
const room = other.get(line);
@@ -10404,8 +10403,9 @@ var docxLayout = (function(exports) {
position = Math.max(deepest, position + spaceAfter) - spaceAfter;
};
const balanceColumns = (end) => {
+ var _pinned$get;
const from = columnsStart;
- if (drawings.some(({ keepOut }) => keepOut.bottom > columnTop + TOLERANCE)) throw new Unsupported("columns evened out beside a drawing that text flows around");
+ if (((_pinned$get = pinned.get(pageCount)) !== null && _pinned$get !== void 0 ? _pinned$get : []).length > 0) throw new Unsupported("columns evened out beside a drawing placed beside text before it");
const page = pageCount;
const balanced = endsAfterTable(end - 1) ? end - 1 : end;
const layOut = (height) => {
@@ -11052,41 +11052,53 @@ var docxLayout = (function(exports) {
};
/** The drawings placed from the top of the page and those on it, once each */
const withPinned = (onPage) => {
- var _pinned$get;
- return [...(_pinned$get = pinned.get(pageCount)) !== null && _pinned$get !== void 0 ? _pinned$get : [], ...onPage].filter((drawing, index, all) => all.findIndex(({ anchor }) => anchor === drawing.anchor) === index);
+ var _pinned$get2;
+ return [...(_pinned$get2 = pinned.get(pageCount)) !== null && _pinned$get2 !== void 0 ? _pinned$get2 : [], ...onPage].filter((drawing, index, all) => all.findIndex(({ anchor }) => anchor === drawing.anchor) === index);
};
/**
* Stops at a drawing placed from the top of the page whose paragraph didn't stay on it, as the text before it went
* round it, which Word lays out in ways not yet followed
*/
const checkAnchors = () => {
- var _pinned$get2;
- if (((_pinned$get2 = pinned.get(pageCount)) !== null && _pinned$get2 !== void 0 ? _pinned$get2 : []).some(({ anchor }) => !anchored.includes(anchor))) throw new Unsupported("a drawing whose paragraph goes on to the next page as the text before it goes round it");
+ var _pinned$get3;
+ if (((_pinned$get3 = pinned.get(pageCount)) !== null && _pinned$get3 !== void 0 ? _pinned$get3 : []).some(({ anchor }) => !anchored.includes(anchor))) throw new Unsupported("a drawing whose paragraph goes on to the next page as the text before it goes round it");
};
/**
- * Moves a table that doesn't fit beside the drawings that text flows around where it would start down below them, as
- * Word moves one as wide as the text (`word-floats.docx` F40). It stops where Word's way isn't known: a table that fits
- * beside them, and one with drawings beside it further down
+ * Places a table beside the drawings that text flows around on its page when it fits beside them, as Word places one of
+ * 3000 twips beside a drawing on the right or the left, moving it to the right past one on the left
+ * (`word-floats2.docx` G14, G15), and moves one that doesn't down below them, as Word moves one as wide as the text
+ * (`word-floats.docx` F40). Where it goes across is its indent, which must leave it beside the drawings, or past one on
+ * its left, where an indent would put it isn't known. Its rows are as tall wherever it goes across the column, so only
+ * where it goes down the page counts here. Whether Word sizes a table sized to its text in the room beside a drawing
+ * isn't known.
*/
- const moveBelowDrawings = (table, firstRow) => {
- var _table$indent;
+ const placeBesideDrawings = (table, heights) => {
+ var _table$borderLeft, _table$borderRight, _table$indent;
const current = columnsSection();
const columnStart = columnLeft(current, column);
- const left = columnStart + ((_table$indent = table.indent) !== null && _table$indent !== void 0 ? _table$indent : 0);
- const tableWidth = Math.max(0, ...table.rows.map(({ cells }) => sum(cells.map((cell) => cell.width + cell.marginLeft + cell.marginRight))));
- const across = (box) => box.left < left + tableWidth && left < box.right;
+ const within = {
+ start: columnStart,
+ end: columnStart + current.columns[column]
+ };
+ const tableWidth = Math.max(0, ...table.rows.map(({ cells }) => sum(cells.map((cell) => cell.width + cell.marginLeft + cell.marginRight)))) + (((_table$borderLeft = table.borderLeft) !== null && _table$borderLeft !== void 0 ? _table$borderLeft : 0) + ((_table$borderRight = table.borderRight) !== null && _table$borderRight !== void 0 ? _table$borderRight : 0)) / 2;
+ const tableHeight = sum(heights);
+ const indent = (_table$indent = table.indent) !== null && _table$indent !== void 0 ? _table$indent : 0;
for (;;) {
const at = position;
- const beside = drawings.filter(({ keepOut }) => keepOut.top < at + firstRow && keepOut.bottom > at + TOLERANCE && across(keepOut));
- if (beside.length === 0) break;
- const room = roomBeside(beside, position, firstRow, {
- start: columnStart,
- end: columnStart + current.columns[column]
- });
- if ("spans" in room && room.spans.some(({ start, end }) => end - start >= tableWidth - TOLERANCE)) throw new Unsupported("a table that fits beside a drawing that text flows around");
- position = Math.max(...beside.map(({ keepOut }) => keepOut.bottom));
+ const beside = drawings.filter(({ keepOut }) => keepOut.top < at + tableHeight && at < keepOut.bottom && keepOut.left < within.end && within.start < keepOut.right);
+ if (beside.length === 0) return;
+ const room = roomBeside(beside, at, tableHeight, within);
+ const spans = "spans" in room ? room.spans : [];
+ const left = columnStart + indent;
+ const atIndent = spans.some(({ start, end }) => start <= Math.max(columnStart, left) + TOLERANCE && left + tableWidth <= end + TOLERANCE);
+ const pastLeft = spans.some(({ start, end }) => start > Math.max(columnStart, left) + TOLERANCE && end - start >= tableWidth - TOLERANCE);
+ if (atIndent || pastLeft) {
+ if (table.fit !== void 0) throw new Unsupported("a table sized to its text beside a drawing that text flows around");
+ if (!atIndent && indent !== 0) throw new Unsupported("an indented table moved past a drawing on its left");
+ return;
+ }
+ position = Math.min(...beside.map(({ keepOut }) => keepOut.bottom));
}
- if (drawings.some(({ keepOut }) => keepOut.bottom > position + TOLERANCE && across(keepOut))) throw new Unsupported("a table beside a drawing that text flows around");
};
/** Whether a drawing that text flows around on the page goes down below where the next line goes */
const besideDrawing = () => drawings.some(({ keepOut }) => keepOut.bottom > position + TOLERANCE);
@@ -11099,20 +11111,17 @@ var docxLayout = (function(exports) {
const before = placements.slice(placements.findLastIndex(({ type }) => type === "page") + 1);
const anchorBlock = blockIndex;
for (const { drawing } of placed) {
- var _pinned$get3;
+ var _pinned$get4;
const { keepOut } = drawing;
- const pin = ((_pinned$get3 = pinned.get(pageCount)) !== null && _pinned$get3 !== void 0 ? _pinned$get3 : []).find(({ anchor }) => anchor === drawing.anchor);
anchored = [...anchored, drawing.anchor];
- if (pin !== void 0 && sameBox(pin.keepOut, keepOut)) continue;
- if ([...drawings, ...placed.slice(0, placed.findIndex((one) => one.drawing === drawing)).map((one) => one.drawing)].some((other) => other.anchor !== drawing.anchor && overlap(other.keepOut, keepOut))) throw new Unsupported("drawings that text flows around that overlap");
- const besideEarlier = before.some((placement) => placement.type === "line" && placement.block !== anchorBlock && overlap(keepOut, {
+ if (((_pinned$get4 = pinned.get(pageCount)) !== null && _pinned$get4 !== void 0 ? _pinned$get4 : []).some(({ anchor }) => anchor === drawing.anchor)) continue;
+ if ([...drawings, ...placed.slice(0, placed.findIndex((one) => one.drawing === drawing)).map((one) => one.drawing)].filter((other) => other.anchor !== drawing.anchor && overlap(other.keepOut, keepOut)).some((other) => !other.drawing.mayOverlap || !drawing.drawing.mayOverlap)) throw new Unsupported("drawings that text flows around that may not overlap, overlapping");
+ if (before.some((placement) => placement.type === "line" ? placement.block !== anchorBlock && overlap(keepOut, {
left: placement.line.x,
right: placement.line.x + placement.line.width,
top: placement.line.y,
bottom: placement.line.y + placement.line.height
- }));
- if (before.some((placement) => placement.type === "row" && placement.row.y + placement.row.height > keepOut.top && placement.row.y < keepOut.bottom)) throw new Unsupported("a table beside a drawing that text flows around");
- if (besideEarlier || pin !== void 0) throw new DrawingAbove(drawing);
+ }) : placement.type === "row" && placement.row.y + placement.row.height > keepOut.top && placement.row.y < keepOut.bottom)) throw new DrawingAbove(drawing);
if (noteArea > 0 && keepOut.bottom > linesBottom() + TOLERANCE) throw new Unsupported("a drawing that text flows around beside the footnotes at the bottom of its page");
}
drawings = [...drawings.filter(({ anchor }) => !placed.some(({ drawing }) => drawing.anchor === anchor)), ...placed.map(({ drawing }) => drawing)];
@@ -11130,10 +11139,11 @@ var docxLayout = (function(exports) {
* or the line they are anchored in as it is laid out before they are: the line of the text right before the anchor, which
* the text going round the drawing can move to the next line, where the drawing stays (F16). One that would go above the
* top of the page's text goes down to it, as Word moves it (F38b, F38c). When its first line goes below a drawing, its
- * own space before goes below the drawing with it (`paragraph.own`), as Word puts it (F37). Where its space before and
- * the space after the paragraph before it both make the space above it, its top isn't known.
+ * own space before goes below the drawing with it (`paragraph.own`), as Word puts it (F37). On a page it goes on to, those
+ * anchored there are placed against the top of its part on it (`word-floats2.docx` G20), and those `excluded`, anchored
+ * on a later page, aren't placed.
*/
- const rowsOf = (block, widths, given, from, rowsTop, paragraph) => {
+ const rowsOf = (block, widths, given, from, rowsTop, paragraph, excluded = /* @__PURE__ */ new Set(), at = blockIndex) => {
const current = columnsSection();
const left = columnLeft(current, column);
const within = {
@@ -11143,7 +11153,7 @@ var docxLayout = (function(exports) {
const earlier = new Map([...given].filter(([line]) => line < from));
const firstLines = linesOf(block, widths, earlier);
const anchorLine = (lines, index) => lines.findIndex(({ markers }) => markers.includes(drawingMarker(index)));
- const own = block.items.flatMap((item, index) => item.type === "drawing" && anchorLine(firstLines, index) >= from ? [{
+ const own = block.items.flatMap((item, index) => item.type === "drawing" && anchorLine(firstLines, index) >= from && !excluded.has(index) ? [{
drawing: item.drawing,
index
}] : []);
@@ -11154,19 +11164,24 @@ var docxLayout = (function(exports) {
rooms: earlier,
placed: []
};
- if (from > 0 && own.length > 0) throw new Unsupported("a drawing anchored in a paragraph after it goes on from another column or page");
const { indentLeft = 0, indentRight = 0, firstLineIndent = 0 } = block.format;
const columnEnd = linesBottom();
/** Places one of its own drawings, against its paragraph's top, or the top of a line from `lineTop`, `height` tall */
const place = ({ drawing, index }, line, lineTop, height) => {
- var _paragraph$top;
+ var _pinned$get5;
if (drawing.horizontal.from === "character") throw new Unsupported("a drawing placed against where it is anchored along its line");
- if (drawing.vertical.from === "paragraph" && paragraph === void 0) throw new Unsupported("a drawing placed against a paragraph whose space before meets the space after the one before it");
+ const anchor = `${at} ${index}`;
+ const pin = ((_pinned$get5 = pinned.get(pageCount)) !== null && _pinned$get5 !== void 0 ? _pinned$get5 : []).find((one) => one.anchor === anchor);
+ if (pin !== void 0) return {
+ line,
+ item: index,
+ drawing: pin
+ };
const where = placeDrawing(drawing, {
section: section(),
oddPage: pageNumber % 2 === 1,
column: within,
- paragraph: (_paragraph$top = paragraph === null || paragraph === void 0 ? void 0 : paragraph.top) !== null && _paragraph$top !== void 0 ? _paragraph$top : 0,
+ paragraph: from > 0 ? rowsTop : paragraph.top,
line: {
top: lineTop,
height
@@ -11182,11 +11197,12 @@ var docxLayout = (function(exports) {
}) : where;
return {
line,
+ item: index,
drawing: {
drawing,
box,
keepOut: keepOutOf(drawing, box),
- anchor: `${blockIndex} ${index}`
+ anchor
}
};
};
@@ -11232,7 +11248,6 @@ var docxLayout = (function(exports) {
for (;;) {
const room = roomOfRow(all, y, height, line);
if ("below" in room) {
- if (line === 0 && paragraph === void 0) throw new Unsupported("a paragraph below a drawing whose space before meets the space after the one before it");
y = room.below + (line === 0 ? paragraph.own : 0);
continue;
}
@@ -11265,14 +11280,18 @@ var docxLayout = (function(exports) {
};
const byPage = own.filter(({ drawing }) => drawing.vertical.from !== "line").map((item) => place(item, anchorLine(firstLines, item.index), rowsTop, 0));
const byLine = own.filter(({ drawing }) => drawing.vertical.from === "line");
- const first = settle(byPage);
- if (byLine.length === 0) return _objectSpread2(_objectSpread2({}, first), {}, { placed: byPage });
- const placed = [...byPage, ...byLine.flatMap((item) => {
+ /** The lines settled beside the drawings, with the line each is anchored in among them */
+ const settled = (placed) => {
+ const laid = settle(placed);
+ return _objectSpread2(_objectSpread2({}, laid), {}, { placed: placed.map((one) => _objectSpread2(_objectSpread2({}, one), {}, { line: anchorLine(laid.lines, one.item) })) });
+ };
+ const first = settled(byPage);
+ if (byLine.length === 0) return first;
+ return settled([...byPage, ...byLine.flatMap((item) => {
const line = anchorLine(first.lines, item.index);
const row = first.rows.find((one) => line >= one.first && line < one.first + one.count);
return (row === null || row === void 0 ? void 0 : row.top) === void 0 ? [] : [place(item, line, row.top, row.height)];
- })];
- return _objectSpread2(_objectSpread2({}, settle(placed)), {}, { placed });
+ })]);
};
/**
* Places a paragraph's lines, breaking pages and columns between them where they don't fit, and at its page and
@@ -11302,7 +11321,10 @@ var docxLayout = (function(exports) {
let widths = [];
let rooms = /* @__PURE__ */ new Map();
let index = 0;
+ let excluded = /* @__PURE__ */ new Set();
+ let excludedAt = "";
for (;;) {
+ if (excludedAt !== `${pageCount} ${column} ${index}`) excluded = /* @__PURE__ */ new Set();
widths = widthsFrom(widths, index, columnsSection().columns[column]);
const isFirstLine = index === 0;
if (movesOn && isFirstLine && !placedInColumn && taller[column]) {
@@ -11310,22 +11332,12 @@ var docxLayout = (function(exports) {
continue;
}
const space = isFirstLine ? spaceAbove() + paragraph.borderAbove : 0;
- const above = isFirstLine ? spaceAbove() : 0;
- const own = above === 0 || paragraph.spaceBefore === 0 ? {
- top: position + above,
- own: paragraph.borderAbove
- } : spaceAfter === 0 && above === paragraph.spaceBefore ? {
- top: position,
- own: space
- } : void 0;
- const laid = rowsOf(block, widths, rooms, index, position + space, own);
+ const theirs = Math.min(spaceAfter, isFirstLine ? spaceAbove() : 0);
+ const laid = rowsOf(block, widths, rooms, index, position + space, {
+ top: position + theirs,
+ own: space - theirs
+ }, excluded);
const { lines, rows } = laid;
- const sinking = laid.placed.filter(({ drawing: { drawing, keepOut } }) => (drawing.vertical.from === "paragraph" || drawing.vertical.from === "line") && keepOut.bottom > linesBottom() + TOLERANCE);
- if (sinking.length > 0) {
- if (!sinking.every(({ drawing: { drawing, box } }) => box.bottom + drawing.effects.bottom > linesBottom() + TOLERANCE) || !placedInColumn || noteArea > 0 || columnsSection().columns.length > 1) throw new Unsupported("a drawing that moves with its paragraph past the bottom of the page's text");
- startPage();
- continue;
- }
const remaining = rows.map(({ line }) => line);
/** How many of its lines are on the rows up to one */
const linesUpTo = (upTo) => sum(rows.slice(0, upTo).map(({ count: onRow }) => onRow));
@@ -11363,6 +11375,22 @@ var docxLayout = (function(exports) {
count = Math.max(1, fits);
}
}
+ const placedEnd = index + linesUpTo(count);
+ const later = count > 0 ? laid.placed.filter(({ line }) => line >= placedEnd) : [];
+ if (later.length > 0) {
+ excluded = /* @__PURE__ */ new Set([...excluded, ...later.map(({ item }) => item)]);
+ excludedAt = `${pageCount} ${column} ${index}`;
+ continue;
+ }
+ if (count > 0 && [...excluded].some((item) => lines.findIndex(({ markers }) => markers.includes(drawingMarker(item))) < placedEnd)) throw new Unsupported("a drawing whose anchor's page changes as the text goes round it");
+ const onPage = Math.max(placedEnd, index + 1);
+ const sinking = laid.placed.filter(({ line, drawing: { drawing, keepOut } }) => line < onPage && (drawing.vertical.from === "paragraph" || drawing.vertical.from === "line") && keepOut.bottom > linesBottom() + TOLERANCE);
+ if (sinking.length > 0) {
+ stopIfBalancing();
+ if (!sinking.every(({ drawing: { drawing, box } }) => box.bottom + drawing.effects.bottom > linesBottom() + TOLERANCE) || !placedInColumn || noteArea > 0) throw new Unsupported("a drawing that moves with its paragraph past the bottom of the page's text");
+ nextColumn();
+ continue;
+ }
if (count > 0) {
position += space;
const current = columnsSection();
@@ -11380,9 +11408,7 @@ var docxLayout = (function(exports) {
}
position += row.height;
}
- const placedEnd = index + placedLines;
- placeDrawings(laid.placed.filter(({ line }) => line < placedEnd));
- if (laid.placed.some(({ line }) => line >= placedEnd)) throw new Unsupported("a drawing anchored in a line that goes on to the next column or page");
+ placeDrawings(laid.placed);
({rooms} = laid);
if (index + placedLines === lines.length) position += paragraph.borderBelow;
spaceAfter = 0;
@@ -11762,7 +11788,7 @@ var docxLayout = (function(exports) {
}
};
const placeTable = (block) => {
- var _heights$, _table$rows$borderBot, _table$rows;
+ var _table$rows$borderBot, _table$rows;
const width = columnsSection().columns[column];
const table = sizedToPlace(block, width);
const merges = mergesOf(table);
@@ -11771,7 +11797,7 @@ var docxLayout = (function(exports) {
const repeated = headerRows > 0 ? sum(heights.slice(0, headerRows)) : 0;
position += spaceAfter;
spaceAfter = 0;
- moveBelowDrawings(table, (_heights$ = heights[0]) !== null && _heights$ !== void 0 ? _heights$ : 0);
+ placeBesideDrawings(table, heights);
const startTablePage = (index) => {
nextColumn();
if (index >= headerRows) {
@@ -11952,17 +11978,85 @@ var docxLayout = (function(exports) {
}, next.pageBreakBefore ? {} : { keptLines: firstLines });
};
/**
+ * The room the paragraphs kept with the next one, from this one, need on the page beside its drawings, as `keptHeight`
+ * gives it: each laid out in rows from where it goes, beside the drawings on the page and those of the paragraph they
+ * are kept with, as they are placed, and none of it fitting when a drawing of that paragraph that moves with it would go
+ * past the bottom of the page. Word moves a heading kept with the next to the next page with a paragraph that moves
+ * there with its drawing (`word-floats2.docx` G11, G12), and keeps one beside a drawing with as many of the next
+ * paragraph's lines, beside it, as widow control keeps together (G13). Where the paragraphs kept with the next have
+ * drawings of their own, or are kept with a table, how much room Word finds for them hasn't been seen.
+ */
+ const keptBeside = (index, width) => {
+ var _nextRows$at, _lastRow$spacingBelow;
+ const chain = keptChain(index);
+ const anchor = blocks[index + chain].block;
+ const kept = blocks.slice(index, index + chain).map(({ block }) => block);
+ if (anchor.type === "table" || kept.some(({ items }) => items.some(({ type }) => type === "drawing"))) throw new Unsupported("a paragraph kept with the next beside a drawing, with a drawing of its own or before a table");
+ const widths = [{
+ from: 0,
+ width
+ }];
+ let y = position;
+ let after = spaceAfter;
+ /**
+ * The rows of a paragraph of the chain, from where the one before ends, and the space and border above them, moving on
+ * to where it ends
+ */
+ const rowsHere = (paragraph, offset, measured) => {
+ const space = (offset === 0 ? spaceAboveOf(measured.spaceBefore) : between(after, measured.spaceBefore)) + measured.borderAbove;
+ const theirs = Math.min(after, space - measured.borderAbove);
+ const laid = rowsOf(paragraph, widths, /* @__PURE__ */ new Map(), 0, y + space, {
+ top: y + theirs,
+ own: space - theirs
+ }, /* @__PURE__ */ new Set(), index + offset);
+ y += space + sum(laid.rows.map(({ line }) => line.height)) + measured.borderBelow;
+ after = measured.spaceAfter;
+ return _objectSpread2(_objectSpread2({}, laid), {}, { space });
+ };
+ const measuredAt = (offset) => {
+ var _blocks3, _blocks4;
+ return measureParagraph(blocks[index + offset].block, width, (_blocks3 = blocks[index + offset - 1]) === null || _blocks3 === void 0 ? void 0 : _blocks3.block, (_blocks4 = blocks[index + offset + 1]) === null || _blocks4 === void 0 ? void 0 : _blocks4.block);
+ };
+ const keptLines = kept.flatMap((paragraph, offset) => rowsHere(paragraph, offset, measuredAt(offset)).rows.map(({ line }) => line));
+ const keptNotes = notesIn(keptLines.flatMap(({ markers }) => markers));
+ const keptHeightSoFar = y - position;
+ if (anchor.type === "paragraph" && anchor.sectionBreak) {
+ var _keptLines$at$spacing, _keptLines$at;
+ return {
+ height: keptHeightSoFar,
+ spacingBelow: (_keptLines$at$spacing = (_keptLines$at = keptLines.at(-1)) === null || _keptLines$at === void 0 ? void 0 : _keptLines$at.spacingBelow) !== null && _keptLines$at$spacing !== void 0 ? _keptLines$at$spacing : 0,
+ notes: keptNotes,
+ kept: keptNotes,
+ keptWith: "nothing"
+ };
+ }
+ const next = measuredAt(chain);
+ const { rows, placed, space: nextSpace } = rowsHere(anchor, chain, next);
+ const firstRows = next.keepLines || next.widowControl && rows.length <= 3 ? rows.length : next.widowControl ? 2 : 1;
+ const nextRows = rows.slice(0, firstRows);
+ const nextLines = sum(nextRows.map(({ count }) => count));
+ const sinks = placed.some(({ line, drawing: { drawing, keepOut } }) => line < nextLines && (drawing.vertical.from === "paragraph" || drawing.vertical.from === "line") && keepOut.bottom > linesBottom() + TOLERANCE);
+ const lastRow = (_nextRows$at = nextRows.at(-1)) === null || _nextRows$at === void 0 ? void 0 : _nextRows$at.line;
+ return _objectSpread2({
+ height: sinks ? Number.POSITIVE_INFINITY : keptHeightSoFar + nextSpace + sum(nextRows.map(({ line }) => line.height)) + (nextRows.length === rows.length ? next.borderBelow : 0),
+ spacingBelow: nextRows.length === rows.length && next.borderBelow > 0 ? 0 : (_lastRow$spacingBelow = lastRow === null || lastRow === void 0 ? void 0 : lastRow.spacingBelow) !== null && _lastRow$spacingBelow !== void 0 ? _lastRow$spacingBelow : 0,
+ notes: [...keptNotes, ...notesIn(nextRows.flatMap(({ line }) => line.markers))],
+ kept: keptNotes,
+ keptWith: chain === 0 ? "nothing" : firstRows === rows.length && !next.pageBreakBefore ? "whole" : "part"
+ }, next.pageBreakBefore ? {} : { keptLines: nextLines });
+ };
+ /**
* Whether a block is the empty paragraph that ends a section right after a table. Word gives it a line of its own, as
* there is no line of a paragraph before it for its mark to go on (`word-header-columns.docx` H1 to H4, H7 and H8),
* where LibreOffice gives it no room
*/
const endsAfterTable = (index) => {
- var _blocks$index, _blocks3;
+ var _blocks$index, _blocks5;
const block = (_blocks$index = blocks[index]) === null || _blocks$index === void 0 ? void 0 : _blocks$index.block;
- return (block === null || block === void 0 ? void 0 : block.type) === "paragraph" && block.sectionBreak === true && ((_blocks3 = blocks[index - 1]) === null || _blocks3 === void 0 ? void 0 : _blocks3.block.type) === "table";
+ return (block === null || block === void 0 ? void 0 : block.type) === "paragraph" && block.sectionBreak === true && ((_blocks5 = blocks[index - 1]) === null || _blocks5 === void 0 ? void 0 : _blocks5.block.type) === "table";
};
const placeBlock = (block, index) => {
- var _blocks5, _blocks6;
+ var _blocks7, _blocks8;
blockIndex = index;
stopAtRead(block);
const width = columnsSection().columns[column];
@@ -11972,8 +12066,8 @@ var docxLayout = (function(exports) {
if (previous !== void 0 && sharesBorders(block, previous.block) && (previous.section !== blocks[index].section || block.format.pageBreakBefore === true)) stopAt("paragraphs with the same borders either side of a section or page break");
}
if (block.type === "paragraph" && block.sectionBreak && !endsAfterTable(index)) {
- var _blocks4;
- const { spaceBefore } = measureParagraph(block, width, (_blocks4 = blocks[index - 1]) === null || _blocks4 === void 0 ? void 0 : _blocks4.block);
+ var _blocks6;
+ const { spaceBefore } = measureParagraph(block, width, (_blocks6 = blocks[index - 1]) === null || _blocks6 === void 0 ? void 0 : _blocks6.block);
if (placedInColumn) position += between(spaceAfter, spaceBefore);
spaceAfter = 0;
return;
@@ -11983,18 +12077,18 @@ var docxLayout = (function(exports) {
sectionSpaceAfter = void 0;
return;
}
- const paragraph = measureParagraph(block, width, (_blocks5 = blocks[index - 1]) === null || _blocks5 === void 0 ? void 0 : _blocks5.block, (_blocks6 = blocks[index + 1]) === null || _blocks6 === void 0 ? void 0 : _blocks6.block);
+ const paragraph = measureParagraph(block, width, (_blocks7 = blocks[index - 1]) === null || _blocks7 === void 0 ? void 0 : _blocks7.block, (_blocks8 = blocks[index + 1]) === null || _blocks8 === void 0 ? void 0 : _blocks8.block);
let holdNotes = false;
if (paragraph.keepNext) {
const chain = blocks.slice(index, index + keptChain(index) + 1).map(({ block: one }) => one);
- if (besideDrawing() || chain.some((one) => one.type === "paragraph" && one.items.some(({ type }) => type === "drawing"))) throw new Unsupported("a paragraph kept with the next beside a drawing that text flows around");
+ const beside = besideDrawing() || chain.some((one) => one.type === "paragraph" && one.items.some(({ type }) => type === "drawing"));
/**
* What is kept together, from where the next line goes, broken into lines at the width of the column it goes in,
* with the footnotes held back from a paragraph kept with this one, which go below these lines too (`all`), and
* whether it fits with its footnotes taking some room
*/
const keptHere = () => {
- const measured = keptHeight(index, columnsSection().columns[column]);
+ const measured = (beside ? keptBeside : keptHeight)(index, columnsSection().columns[column]);
const withHeld = [...held, ...measured.notes];
return _objectSpread2(_objectSpread2({}, measured), {}, {
all: withHeld,
@@ -12030,13 +12124,13 @@ var docxLayout = (function(exports) {
* out again, and after the page has been laid out again for its drawings a few times
*/
const placeAbove = (drawing) => {
- var _pageLayouts$get, _pinned$get4;
+ var _pageLayouts$get, _pinned$get6;
const layouts = ((_pageLayouts$get = pageLayouts.get(pageCount)) !== null && _pageLayouts$get !== void 0 ? _pageLayouts$get : 0) + 1;
if (layouts > MOST_PAGE_LAYOUTS) throw new Unsupported("drawings whose places on the page don't settle as the text goes round them");
const onPage = placements.slice(placements.findLastIndex(({ type }) => type === "page") + 1, columnsStart.placed);
if (columnsStart.pageCount === pageCount && onPage.length > 0) throw new Unsupported("a drawing beside text of a section before on its page");
pageLayouts.set(pageCount, layouts);
- pinned.set(pageCount, [...((_pinned$get4 = pinned.get(pageCount)) !== null && _pinned$get4 !== void 0 ? _pinned$get4 : []).filter(({ anchor }) => anchor !== drawing.anchor), drawing]);
+ pinned.set(pageCount, [...((_pinned$get6 = pinned.get(pageCount)) !== null && _pinned$get6 !== void 0 ? _pinned$get6 : []).filter(({ anchor }) => anchor !== drawing.anchor), drawing]);
};
/** Lays out the blocks from one (`from`) to the one before another (`to`), starting their sections */
const placeBlocks = (from, to) => {
diff --git a/usage/layout.md b/usage/layout.md
index c19d0b84eb..bd3870816e 100644
--- a/usage/layout.md
+++ b/usage/layout.md
@@ -208,7 +208,7 @@ The pages are laid out with the widths and heights of the characters of the font
- footnotes, which take room at the bottom of the page their reference is on, and endnotes, which follow the text. A footnote that doesn't fit below its reference continues at the bottom of the next page, as Word continues it: it breaks between its paragraphs and table rows, and inside a paragraph keeping to its widow and orphan control, and its reference's line moves to the next page with it when too little of it would stay. A first paragraph kept together, or kept with the next, stays with its reference whole, with the first lines of what it is kept with, and a table row whose lines widow control keeps together goes on the next page whole. A table's header rows aren't repeated above the rest of a footnote on the next page. The footnote of a line kept with a longer paragraph goes below the first lines of it that the line is kept with, and the rest of the paragraph goes on the next page. One longer than a page fills the pages after it, and the text goes on above its end. Before a section that starts on a new page, the rest of a footnote goes on pages of its own, which belong to the section its reference is in, and the new section starts after them. A line at the top of a page whose footnote can't go on a page with it, such as one that starts with a paragraph kept together that is taller than a page, stays there, and the footnote starts on the next page. A table row refers to footnotes as a line does: it moves to the next page with a footnote that doesn't fit below it, and one that breaks across pages has each line's footnote on the page the line is on, and breaks after a line whose footnote continues. In columns, the footnotes of a page are laid out in the columns too, as Word lays them out: one after the other from the first column, evened out, each part broken at the width of the column it is in, and every column ends above them. Footnotes from another section of the same columns on the page go on in them. A line or table row in columns whose footnotes don't fit below it moves to the next column, or the next page, with all of them, as Word moves it, rather than continue one. The separator above the endnotes goes on the page of their first line, and on each page after the first they are on, the continuation separator is above them, as Word puts them. Each is a line of its paragraph style's text tall, at single spacing, whatever its own spacing, line spacing and size, as Word lays them out. Below the continuation separator, as many lines of endnotes go on the page as fit on it without it, so the last can go past the bottom margin by as much as the separator takes, as Word puts them. Footnotes and endnotes are numbered as Word numbers them, 1, 2, 3 and i, ii, iii, or in the format and from the number a document or its sections give, afresh in each section when they say so
- run formatting that changes how much room text takes, as Word lays it out. Superscript and subscript (`superScript`, `subScript`) are drawn at 65% of the text's size, to the nearest half-point and down from a quarter, so 7 points at 11 and 9.5 at 15, and small capitals (`smallCaps`) at 80%, so 9 points at 11; both take up the line of their run's own size, so they never make a line taller. Raised and lowered text (`position`) raises the line's top or lowers its bottom by as much as it goes past the rest of the line: a word raised 6 points makes a line of Calibri 11 120 twips taller, and a smaller word raised a little none. Emphasis marks (`emphasisMark`) take a quarter of their line, over it, or under it for dots below; line spacing that gives a line a little more room adds it below the marks' room, and spacing that gives it enough, such as 1.5 lines, holds the marks. A border around text (`border` on a `TextRun`) takes its space and its width on each side of the text, and above and below it, as wide as a paragraph's border of its style: two runs next to each other with the same border are in one box, a box that goes on to the next line starts again there, and a line keeps room for its box to end after its last word
- pictures in the line, which stand on the baseline, so a line with text in it is as tall as the picture and the text below the baseline, as Word makes it. A line with a picture is at least as tall as a line of the picture's run's font, and its multiple line spacing adds a share of that, as Word's does
-- pictures, shapes and charts that text wraps around (`floating` with a `wrap`), as Word lays the text out around them. A line beside a drawing has the room beside it, with the drawing's distances from the text (`margins`) and the room its effects take, such as a shape's line or shadow, and a line with no room beside it goes below it. Square, tight and through wrapping put the text beside the drawing's box, on the side or sides its wrapping's `side` says, the left first, and Word puts as many words in the room on a side as fit there, however narrow it is, and none when the next word doesn't fit. Top and bottom wrapping puts the lines below the drawing. A drawing in a margin, where there is no text, leaves the lines as they are. A line beside a drawing starts at the drawing's edge or the paragraph's left indent, whichever is further in, and its first line is indented from there. A drawing is placed against the page, its margins, the column, or the paragraph or line it is anchored in, as its `horizontalPosition` and `verticalPosition` say: at an offset, lined up with them, or at a percentage of them, as `docx/shapes` places shapes, and its percentage sizes are a share of the page or its margins. Placed against its paragraph, it is at the top of the paragraph's space before, and no higher than the top of the page's text; where it would go past the bottom of the page's text, the paragraph moves to the next page with it, and a paragraph whose first line goes below a drawing with top and bottom wrapping keeps its space before above that line. Placed against its line, it is at the line its anchor is on before the text goes round it, though the text going round it can move the anchor on to the next line. The text before a drawing's paragraph on its page goes round it too, as Word lays the page out again with it. A table that doesn't fit beside a drawing goes below it. A turned picture wraps the text around its box as it is before it is turned. Drawings in headers and footers, and those behind or in front of the text, don't move the body's lines
+- pictures, shapes and charts that text wraps around (`floating` with a `wrap`), as Word lays the text out around them. A line beside a drawing has the room beside it, with the drawing's distances from the text (`margins`) and the room its effects take, such as a shape's line or shadow, and a line with no room beside it goes below it. Square, tight and through wrapping put the text beside the drawing's box, on the side or sides its wrapping's `side` says, the left first, and Word puts as many words in the room on a side as fit there, however narrow it is, and none when the next word doesn't fit. Top and bottom wrapping puts the lines below the drawing. Drawings that overlap keep the text out of all their room. A drawing in a margin, where there is no text, leaves the lines as they are. A line beside a drawing starts at the drawing's edge or the paragraph's left indent, whichever is further in, and its first line is indented from there. A drawing is placed against the page, its margins, the column, or the paragraph or line it is anchored in, as its `horizontalPosition` and `verticalPosition` say: at an offset, which places the drawing without its effects, lined up with them, with its effects, or at a percentage of them, as `docx/shapes` places shapes, and its percentage sizes are a share of the page or its margins. Placed against its paragraph, it is at the top of the paragraph, below the space after the paragraph before, which is that paragraph's, and above its own space before, and no higher than the top of the page's text. Where it would go past the bottom of the page's text, the paragraph moves to the next column or page with it, and a paragraph whose first line goes below a drawing with top and bottom wrapping keeps its own space before above that line. Placed against its line, it is at the line its anchor is on before the text goes round it, though the text going round it can move the anchor on to the next line. One anchored in a line that goes on to the next page goes there with it, against the top of the paragraph's part on that page. The text before a drawing's paragraph on its page goes round it too, as Word lays the page out again with it, and the drawing stays where it was first placed, though its paragraph moves down: with top and bottom wrapping, the lines before it that its distance above it reaches go below it. A table that fits beside a drawing at its indent goes beside it, as does one without an indent that fits past a drawing on its left, and one that doesn't fit goes below it. Paragraphs kept with the next are kept with as many of the next paragraph's lines beside a drawing as they would be without it, and move to the next page with a paragraph that moves there with its drawing. Columns are evened out with the drawings in them. A turned picture wraps the text around its box as it is before it is turned. Drawings in headers and footers, and those behind or in front of the text, don't move the body's lines
- tracked changes, as Word lays them out with its markup in balloons beside the page, or in Simple Markup. Deleted text (`DeletedTextRun`), and deleted pictures, tabs and breaks, take no room, nor does text moved elsewhere, and inserted text (`InsertedTextRun`) does. A paragraph whose mark is deleted (`run: { deletion }`) is joined to the next, all in the next one's formatting, style and list, and a section whose break is deleted goes on into the next, on its pages. A paragraph with no paragraph after it to join, before a table or at the end of a table cell or of the document, stays as it is. A footnote whose reference is deleted isn't laid out, but Word still counts it, so the footnotes after it keep their numbers. A deleted table row (`TableRow`'s `deletion`) takes no room, nor does the space between cells around it, and the rows around it have one border between them, which is the deleted row's own when it has borders of its own. Nor does a table all of whose rows are deleted take room. A table style's formatting for the first and last rows and for bands of rows goes by each row's place among all the rows, the deleted ones too, so with the first row deleted the second isn't formatted as the first. Word still sizes the columns of a table to their text, or widens them for long words, by its deleted rows and deleted text. Deleted and inserted cells, comments and changes of formatting don't move the lines. A document that asks Word to hide its insertions and deletions, or its markup (`w:revisionView`), is laid out the same, as Word for Mac opens it in its own view
- tables, with their columns' widths (`columnWidths`, or their cells' widths), their rows' heights, cell margins and borders. The columns of a table given no widths are sized to their text, as Word sizes them: each as wide as its longest line, or narrower when they don't all fit, but never narrower than its longest word, and a column whose cells give it a width keeps it. A cell merged across columns (`columnSpan`) widens them where its longest line needs more room, each in proportion to how wide it is, and a table in a cell counts as wide as its columns. In a table whose cells all have widths, a column with a word longer than its cells give it is widened to fit the word, and the other columns are narrowed to make room, as Word does, unless the table's layout is fixed. A table with a width of its own in twips is fitted to it, as Word fits it: when its columns are narrower, they are widened in proportion, and when they are wider, they are narrowed toward their longest words, or, when its layout is fixed, whatever is in them, each by the same share of the room for its text. When a word is longer than the table, its column is as wide as the word, and the table goes past the margin. Where the rows of a table give a column different widths, each column is as wide as the widest a row gives it, and a cell merged across columns that is wider than they are widens the last of them, before they are fitted to the table's width, or, without one, narrowed to the room, unless its layout is fixed. A word in a cell merged across columns that is longer than they are wide is shared among them in proportion to each column's longest word and its longest line, or its width, added together, as Word shares it, and those columns keep its width when the others are narrowed. Rows break across pages between the lines of their cells, as Word breaks them, keeping to widow and orphan control and lines kept together, and with room on the page for the space after a cell's paragraph that ends there. They move to the next page whole when a cell would have none of its lines on the page, when they are kept whole (`cantSplit`), and when the page hasn't room for the height they are set to. A row kept whole, or whose paragraph is kept together, that is taller than a page moves to a new page and breaks there as other rows do, and a row set to a height taller than a page takes a page of its own, cut off at its bottom, as Word lays them out. Where a table breaks across pages, Word draws its bottom border below the last of it on the page, which takes room there too, or its cells' own bottom borders. Header rows are repeated at the top of each page and column a table is on. The text of a cell merged down rows (`verticalMerge`) goes down from the top of its first row across the others, and makes the last of them taller when it needs the room. Where one of its rows breaks across pages, its text breaks with the row, as far down the page as its lines go, keeping to widow control, as Word breaks it, and the rest of it goes on from the top of its rows on the next page. A table in a cell breaks with its row, between its own rows and in them between the lines of their cells, as Word breaks it: as a table in the text breaks, keeping to widow control, with its bottom border below the last of it on the page and its cells' margins around their lines on each page, and with its rows kept whole, or of a set height, moving to the next page whole. On the next page, Word draws its top border above the rest of it
- table formatting, as Word lays it out. Borders come from the table's style and the table (`borders`), side by side, from its cells (`TableCell`'s `borders`), and from the parts of its style for some of its cells. Where two cells meet, Word draws the wider of their borders, and each row is as much taller as the widest border above its cells. Double, triple and the other styles of border take the room Word gives them, such as three times their width for a double border, and a border's `space` adds to it. A cell's text is as far in from a border beside it as its margin, or half the border when that is more. A row is as tall as its tallest cell's text, with the largest margins above and below of its cells, which needn't be the same cell's. Space between cells (`cellSpacing`) goes around each cell and inside the table's edges, and the table keeps its width, its columns narrowed for the space as Word narrows them. A row whose first cell's first paragraph is kept with the next (`keepNext`) is kept on the page with the next row, or, for the last row, with the paragraph after the table, and rows kept together that don't fit on a page of their own start a new page and break where it ends. Text that runs up or down a cell (`textDirection`) makes its row only as tall as a line of its paragraph mark, as Word breaks it into lines as long as the row is tall. A table sized to its text that is indented (`indent`) is sized in the room the indent leaves. The parts of a table style for some cells, such as its first row, its last column or its bands of rows, apply where the table turns them on (`tableLook`), and where it doesn't say, as Word turns them on: its first row and column and its bands of rows. A header of several rows (`tableHeader`) is the table's first row, all of it, and the bands of rows start below it, as Word applies them. In [templates](#templates), an empty last paragraph of a cell whose mark is hidden (`w:hideMark`) takes no room
@@ -221,7 +221,7 @@ The pages are laid out with the widths and heights of the characters of the font
It stops at the first thing it can't lay out yet, and the page numbers of the headings and bookmarks after it are left blank, until the fields are updated in Word (see [Opening the document in Word](#opening-the-document-in-word)):
- a table that text wraps around (a table's `float`), a text box, or a text frame
-- a picture, shape or chart that text wraps around where Word's way with it hasn't been seen: drawings whose room overlaps, one in a table cell, a footnote or an endnote, one beside a table that fits beside it or that is placed before it, one beside paragraphs kept with the next, one in columns evened out before a continuous section break, and one beside the footnotes at the bottom of a page. So does one placed against where its anchor is along its line (`HorizontalPositionRelativeFrom.CHARACTER`), or by its simple position, one placed against a paragraph whose space before meets the space after the paragraph before it, one that would go above the page's text with a distance from the text above it, and one that would go past the bottom of the page's text at the top of a page, in columns, above footnotes, or only by its distance from the text below it. So does one anchored in a line that goes on to the next page, or in a paragraph after it goes on from the page before, and a page whose text going round a drawing moves the drawing's paragraph to the next page, or that has to be laid out again for its drawings more than 5 times
+- a picture, shape or chart that text wraps around where Word's way with it hasn't been seen: drawings that may not overlap (`allowOverlap: false`) and do, which Word moves out of the way, one in a table cell, a footnote or an endnote, one beside a table sized to its text, or beside an indented table it would move to the right, one beside paragraphs kept with the next that have drawings of their own or are kept with a table, one in columns evened out after being laid out again for a drawing beside text before it, and one beside the footnotes at the bottom of a page. So does one placed against where its anchor is along its line (`HorizontalPositionRelativeFrom.CHARACTER`), or by its simple position, one that would go above the page's text with a distance from the text above it, and one that would go past the bottom of the page's text at the top of a page or a column, above footnotes, or only by its distance from the text below it. So does one whose anchor's page changes as the text goes round it, and a page whose text going round a drawing moves the drawing's paragraph to the next page, or that has to be laid out again for its drawings more than 5 times
- an equation
- a footnote that continues on the next page where it would break in a paragraph kept together or with the next after its first, in a table row whose lines could go on both pages, or right after a table's header rows; one that continues from a paragraph kept with a table, or with a paragraph that starts a new page, or onto a page of its own after a continuous section break; a footnote line, or a line and the start of its footnote, taller than a page; and a footnote that can't go on a page with its line, from a line below the top of a page, or with text after it that goes on to the next page, or another footnote below it
- a paragraph kept together that is taller than some of 3 or more columns of different widths but not others, and a paragraph kept with the next before one taller than some of the columns but not others
The unique identifier for this abstract numbering definition.