diff --git a/api/classes/index.Body.html b/api/classes/index.Body.html
index 1080ab5372..bb9dbf1ac5 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 a3adc5b7fb..ed2a0e7e26 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 e0111ba1fa..a935f5d95d 100644
--- a/api/classes/index.BookmarkEnd.html
+++ b/api/classes/index.BookmarkEnd.html
@@ -34,7 +34,7 @@ It must be paired with a corresponding BookmarkStart element with the same id.
diff --git a/api/classes/index.BookmarkStart.html b/api/classes/index.BookmarkStart.html
index 20bc79a206..835a2fdc4f 100644
--- a/api/classes/index.BookmarkStart.html
+++ b/api/classes/index.BookmarkStart.html
@@ -34,7 +34,7 @@ It must be paired with a corresponding BookmarkEnd element with the same id.
diff --git a/api/classes/index.CellMerge.html b/api/classes/index.CellMerge.html
index b3c138ab21..87833cb64e 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 5af00bd9f4..5fbb05a4cf 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 9fe933248f..b601738636 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 b8ec4d4263..1c715e211d 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 6b54b4d942..cb7ebadd17 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 218428860d..71d0f74a6e 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 87906ec5ac..0cd413aae0 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 ebfb19e9d1..2bb55afe98 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 027630cf23..c9f6aa8175 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 74a38cd3e7..c890720ae8 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 cfee846f68..60578af2ad 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 cadd17d37e..d51a080c17 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 ab67b94368..e6e95341a0 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.EndnoteIdReference.html b/api/classes/index.EndnoteIdReference.html
index 3d4b220557..dbb7350120 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 c83d5bc98c..973f6b162b 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 cc80e2ad1e..1c6621e799 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 b4653036f8..dd311a171d 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 3efd6e3369..989f23f92c 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 4761507697..65860d7973 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 86a7cfde3f..9bdcccf1b1 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 b91757b9ef..8a1be58cb3 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 c8258d0e47..8f65077389 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 1f859fd704..0c4fdcadbb 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 d290c18c84..09e484a8db 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 f704548719..f1541eb44c 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 0913a27062..711862975b 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 41adbdc71e..ba20b291a0 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 d5e45e870e..997dc1abcd 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 034ed4fabf..ef8fc75497 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 79742d1c5f..4266994ba7 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 5a7c56d45a..75518714dc 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 00ffee9aca..32e2fdc328 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 718375761e..1294f7d409 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 6874d1538e..93d79d3194 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 761b6dc79b..d68afad99a 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 548bf95cbd..1303f3d812 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 6843aab971..9983aa06c3 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 29d6ecc640..805f3adb6a 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 a6a4a0ff71..31edaa9424 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 521507fe83..f30d9ec50c 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 799585fac9..f082e3b03c 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 d86b9c77f4..23db6b22e8 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 5772a4a7c1..c3a4339ab1 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 be2ba9b724..6cb801b627 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 c9bd813629..9367389671 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 1b875e1e29..694130190f 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.PageReference.html b/api/classes/index.PageReference.html
index e04c8abfed..59270fce85 100644
--- a/api/classes/index.PageReference.html
+++ b/api/classes/index.PageReference.html
@@ -31,7 +31,7 @@ the specified bookmark, useful for cross-references like "see page 5".
diff --git a/api/classes/index.PageTextDirection.html b/api/classes/index.PageTextDirection.html
index 9ce90452a3..95c5570956 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 2c6925c085..c54c2fca09 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 5e61e32b9e..a8aa89bcaa 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 8657cc2df1..7904feafb4 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 0ced31c1db..b910ef9201 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 cf3c3b295e..cbc025e154 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 c739d07017..f1ff0b2d8e 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 6ef6cf4c7e..75ca6c2aac 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 616ff31cff..701073e69d 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 62e0624849..175df83716 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 c24b27bdd1..e2b7265b37 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 c51900e036..0b1a2eec1d 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 152fe54bf7..4537d06c7a 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 c04591427e..98f542d0dd 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 eadefee3f8..18d890e880 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 71eb8a7040..ef83f3686d 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 674b9a8787..e3866be1aa 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 e19ad724b0..0151b6909e 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.TableOfContents.html b/api/classes/index.TableOfContents.html
index 8158effe0c..c9ffbc4842 100644
--- a/api/classes/index.TableOfContents.html
+++ b/api/classes/index.TableOfContents.html
@@ -36,7 +36,7 @@ with page numbers. It uses a TOC field code to generate entries.
diff --git a/api/classes/index.TableRow.html b/api/classes/index.TableRow.html
index 585b470e2c..cb91497149 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 fb106bb517..7fce12d8f1 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 36bb468050..ad5ded3b41 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.Textbox.html b/api/classes/index.Textbox.html
index 43f38597d1..e1e5977204 100644
--- a/api/classes/index.Textbox.html
+++ b/api/classes/index.Textbox.html
@@ -43,7 +43,7 @@ a VML shape (v:shape) that contains a VML textbox (v:textbox) with the actual co
diff --git a/api/classes/index.VerticalMerge.html b/api/classes/index.VerticalMerge.html
index c88ad5583b..fc2e683507 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 18716a22af..bdebc12c8d 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 4c12bf19bb..31e323120e 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 d9d9845310..26d6c8878b 100644
--- a/api/classes/index.XmlComponent.html
+++ b/api/classes/index.XmlComponent.html
@@ -128,7 +128,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/shapes.ShapeCanvasRun.html b/api/classes/shapes.ShapeCanvasRun.html
index 9f25a235b6..e6a7d8a72a 100644
--- a/api/classes/shapes.ShapeCanvasRun.html
+++ b/api/classes/shapes.ShapeCanvasRun.html
@@ -18,7 +18,7 @@ keeps connectors attached to their shapes when the shapes are moved. Use it for
diagrams that people will edit.
The shapes are positioned with transformation.offset, in pixels from the canvas's top-left corner, or by a layout.
Applications that can't draw canvases, such as Apple Pages, draw the same shapes as a group instead: the canvas is
-written in mc:AlternateContent, with the group as its fallback.
+written in mc:AlternateContent, with the group as its fallback, unless fallback is false.
@@ -28,14 +28,14 @@ written in mc:AlternateContent, with the group as its fallback.
diff --git a/api/classes/shapes.ShapeGroupRun.html b/api/classes/shapes.ShapeGroupRun.html
index 732e5b7d6e..8d3e5816bb 100644
--- a/api/classes/shapes.ShapeGroupRun.html
+++ b/api/classes/shapes.ShapeGroupRun.html
@@ -28,14 +28,14 @@ when shapes are moved on a Copy
diff --git a/api/classes/shapes.ShapeRun.html b/api/classes/shapes.ShapeRun.html
index ddff9ec9f5..e43581aafc 100644
--- a/api/classes/shapes.ShapeRun.html
+++ b/api/classes/shapes.ShapeRun.html
@@ -26,14 +26,14 @@ 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 85b89c7a7d..69c629209b 100644
--- a/api/classes/watermarks.ImageWatermark.html
+++ b/api/classes/watermarks.ImageWatermark.html
@@ -39,14 +39,14 @@ way as an ImageRun.
diff --git a/api/classes/watermarks.TextWatermark.html b/api/classes/watermarks.TextWatermark.html
index ec5ef5cb77..b87f2492ec 100644
--- a/api/classes/watermarks.TextWatermark.html
+++ b/api/classes/watermarks.TextWatermark.html
@@ -37,14 +37,14 @@ 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 f71b53405a..1220f5a426 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 e9786e5294..402d3e459a 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 c80fb92d20..6789399f38 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 5b51c679f4..492c7a5dc4 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 20e1772e6d..cd7b90b14f 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 65d337f2a7..103489c178 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 97e3a06c69..d33aaa1bd7 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 607e0080f5..ce1004c0ff 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 971923fee2..9fbf2ebe10 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 791505e6af..084330a1c6 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.createTableLook.html b/api/functions/index.createTableLook.html
index a00018a34a..941b0bfbe1 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 b3e667e443..7d0d0ba506 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 80dc94741f..35f04a241f 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 a98aabafe9..3ca5318a11 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 d46c95dd4f..67e1e7a077 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 28d9553215..32e6cbb670 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 7eb950e96c..07925d445f 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.hpsMeasureValue.html b/api/functions/index.hpsMeasureValue.html
index 2320728f66..cbb0268a75 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 1341257534..0e99da65c0 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 2f04e45c44..3a79cf2321 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/interfaces/index.IXmlableObject.html b/api/interfaces/index.IXmlableObject.html
index 1e743b8dd0..901576d2a9 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/index.AttributePayload.html b/api/types/index.AttributePayload.html
index 4114028795..b4c0e02960 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.
diff --git a/api/types/index.GraphicMediaData.html b/api/types/index.GraphicMediaData.html
index 56d034b949..9d8c2c09ac 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 3ae97b306c..953a132b5f 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 019d5ecd86..c51774580b 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 15a6f73612..c2a4239fdc 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 bc80ffc331..9972f77e30 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
diff --git a/api/types/index.ITableCellBorders.html b/api/types/index.ITableCellBorders.html
index 28222d37b4..ced2284bc9 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,12 +85,12 @@ 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.
+
@@ -118,7 +118,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
+
@@ -126,7 +126,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.
+
@@ -134,7 +134,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 92712a274c..00f21ca299 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.
+
@@ -74,64 +74,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.IXmlAttribute.html b/api/types/index.IXmlAttribute.html
index f913bccbd3..e65db257ea 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.OutputByType.html b/api/types/index.OutputByType.html
index c1916b0a44..f20b6e4776 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.ParagraphChild.html b/api/types/index.ParagraphChild.html
index 82471ca4f1..c8cf2e6961 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.
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.
diff --git a/api/types/shapes.ConnectorEnd.html b/api/types/shapes.ConnectorEnd.html
index fffeec4f48..01f9a9d2a0 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
The shapes, pictures and groups on the canvas, and the connectors between them
+
OptionalReadonlyfallback?: boolean
+
Whether to write the same diagram as a group too, for applications that can't draw canvases, such as Apple Pages.
+Default is true. Without it, the canvas takes up half as much of the document, and those applications draw nothing
diff --git a/api/types/shapes.IShapeConnectorOptions.html b/api/types/shapes.IShapeConnectorOptions.html
index 3adc5e03f7..416a4ba4bb 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
A shape takes the options of a ShapeRun except floating. transformation.offset positions it,
in pixels, unless a layout places it, and id names it so connectors can attach to it.
@@ -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 9c3bb1072f..4cd0239818 100644
--- a/api/types/shapes.IShapeGroupOptions.html
+++ b/api/types/shapes.IShapeGroupOptions.html
@@ -46,7 +46,7 @@ the box around the children. A different size scales every shape in the group.
Its children are positioned relative to each other, like the children of a ShapeGroupRun, and transformation.offset
places the group's top-left corner. Connectors in the group can only join shapes in the group, but connectors
@@ -29,6 +29,10 @@ outside it can attach to the shapes in it.
The shapes, pictures, groups and connectors in the group
+
OptionalReadonlylane?: string
+
The lane of the flow the group goes in, by its name. See ShapeFlowLayout.lanes
diff --git a/api/types/shapes.PresetShapeAdjustments.html b/api/types/shapes.PresetShapeAdjustments.html
index 36caecc076..ee34c2d2d4 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 79f7a56592..3c5bedd913 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 b792bdc8ae..4877fc91dc 100644
--- a/api/types/shapes.ShapeFlowLayout.html
+++ b/api/types/shapes.ShapeFlowLayout.html
@@ -18,9 +18,9 @@ that connect to it, and the shapes on each level are ordered so connectors cross
Bands the flow runs along, such as the people or teams that do each step of a process (swimlanes). Each shape
+with a lane goes in the band of that name, and shapes without one go in the first. The bands are side by side,
+across the direction the flow runs in, each with a header at the start of the flow
+
OptionalReadonlylevelSpacing
levelSpacing?:number
Space between one level and the next, in pixels. Default is 50
Offset in EMUs from the horizontal base, or a percentage of the base's width, such as "10%". A percentage needs
+a base of the page, the space between its margins, or one of its margins
How a ShapeGroupRun or ShapeCanvasRun places the shapes, pictures and groups that have no offset.
-Shapes with an offset stay where it puts them. Connectors are routed after the shapes are placed.
+Shapes with an offset stay where it puts them: those that connect to the shapes the layout places take part in the
+layout, which is placed around them. Connectors are routed after the shapes are placed.
A size in pixels, "fitText" to fit the shape's text, or a percentage, such as "100%", for a floating shape: a
+percentage of the space between the page's margins, or of what floating.sizeRelativeTo gives.
diff --git a/api/types/shapes.ShapeTextWarp.html b/api/types/shapes.ShapeTextWarp.html
index cfd48ec270..58c85460f5 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
Width in pixels, or "fitText" for as wide as the longest line of the shape's text
+
Width in pixels, "fitText" for as wide as the longest line of the shape's text, or a percentage of the space
+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 8cd772bdc5..29778eed49 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.
Offset in EMUs from the vertical base, or a percentage of the base's height, such as "10%". A percentage needs
+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 e04d35a55b..98bb1a1944 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 5895542b7c..c865adedf4 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 b405db3615..70943c670a 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 c350dd43a5..54c21f404c 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 04d6994b6a..18cf865a97 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 b106e9e263..56685a7b72 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 c0c353bc21..ea01c6fb81 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 5091acb1a7..1afe548349 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 099eb2094d..90a61d3a0e 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 e105e2bdae..e2bc09301c 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 9304469619..c4b3aabaaf 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 7e174b4304..37c7d19e58 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 16fbd7932e..bc1d1c38a3 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 e02d5797f4..ceabc31f5c 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/usage/shapes.md b/usage/shapes.md
index 9fcea6dcd0..36f79281f7 100644
--- a/usage/shapes.md
+++ b/usage/shapes.md
@@ -301,7 +301,7 @@ An `Arrowhead` is one of `"triangle"`, `"stealth"`, `"diamond"`, `"oval"` or `"a
## Text in Shapes
-`text` puts a line of text in the middle of a shape, in the document's default font. Each `\n` starts a new, centred paragraph:
+`text` puts a line of text in the middle of a shape, in the document's default font. Each `\n` starts a new, centred paragraph. If the document's paragraphs have space before or after them, these paragraphs don't, so the text stays in the middle:
```ts
new ShapeRun({ type: "flowChartProcess", text: "Review", transformation: { width: 120, height: 40 }, fill: "DEEBF7" });
@@ -345,7 +345,38 @@ new ShapeRun({
- Both include the text margins, and allow for shapes whose text box is smaller than the shape, such as ellipses and diamonds.
- Text that runs up or down the shape (`textOptions.direction`) is measured across the shape's height.
-The size is worked out when the document is made, from how wide each character is in the run's font and size. Widths are built in for Calibri, Cambria, Arial, Times New Roman and Courier New. Other fonts are measured as the one most like them: Aptos and other sans-serif fonts as Arial, and serif fonts as Times New Roman. Text without a font or size of its own is measured in Word's defaults, 10pt Times New Roman, because the document's styles aren't known when the shape is made. Give the runs a `font` and `size` if your document uses other defaults.
+The size is worked out when the document is written, from how wide each character is in its font and size. Widths are built in for Calibri, Cambria, Arial, Times New Roman and Courier New. Other fonts are measured as the one most like them: Aptos and other sans-serif fonts as Arial, and serif fonts as Times New Roman.
+
+The text is measured in the document's styles, as Word formats it:
+
+- The font, size and bold of the document's defaults (`styles.default.document`), the paragraph's style (such as a heading or `Normal`), the run's character style, and the run's own formatting, each overriding the one before. All caps, small caps, hidden text, character spacing and scale are included.
+- The paragraph's space before and after, line spacing and indents, from the same styles and the paragraph's own formatting. Contextual spacing leaves out the space between paragraphs of the same style.
+- Text in a document with no default font or size is measured in Word's own defaults, 10pt Times New Roman.
+
+```ts
+const doc = new Document({
+ // Word's defaults for new documents: 11pt Calibri, with space after each paragraph
+ styles: { default: { document: { run: { font: "Calibri", size: 22 }, paragraph: { spacing: { after: 160, line: 259 } } } } },
+ sections: [
+ {
+ children: [
+ new Paragraph({
+ // As wide as "Write the draft" in 11pt Calibri
+ children: [
+ new ShapeRun({
+ type: "flowChartProcess",
+ text: "Write the draft",
+ transformation: { width: "fitText", height: 40 },
+ }),
+ ],
+ }),
+ ],
+ },
+ ],
+});
+```
+
+Fonts that come from the document's theme, such as those in styles copied from a Word document with `externalStyles`, aren't known, as the library doesn't write a theme. Give those styles a font by name if shapes should fit their text.
The estimate is close for the built-in fonts and rougher for others. For an exact fit once Word has laid the text out, use `textOptions.resizeShapeToFitText` as well.
@@ -523,6 +554,50 @@ new ShapeRun({
?> Use `TextWrappingType.SQUARE` or `TextWrappingType.TOP_AND_BOTTOM` to wrap text around a shape's box. `TextWrappingType.TIGHT` and `TextWrappingType.THROUGH` wrap it around the shape's outline instead.
+### Sizes and positions as percentages
+
+A floating shape's `width` and `height` can be percentages, such as `"100%"`, and so can its offsets. Word keeps them as percentages, so the shape grows and moves with the page if its size or margins change. A rule as wide as the text:
+
+```ts
+new ShapeRun({
+ type: "line",
+ transformation: { width: "100%", height: 0 },
+ line: { color: "2E74B5", width: 2 },
+ floating: {
+ horizontalPosition: { relative: HorizontalPositionRelativeFrom.MARGIN, offset: 0 },
+ verticalPosition: { relative: VerticalPositionRelativeFrom.PARAGRAPH, offset: 380000 },
+ },
+});
+```
+
+- A percentage size is of the space between the margins, where the text goes. `floating.sizeRelativeTo` makes it of something else: `{ width: "page" }`, or `"leftMargin"`, `"rightMargin"`, `"insideMargin"` or `"outsideMargin"` for a width, and `"page"`, `"topMargin"`, `"bottomMargin"`, `"insideMargin"` or `"outsideMargin"` for a height.
+- A percentage offset, such as `offset: "75%"`, is of the width or height of what the position is `relative` to: the page, the space between the margins (`MARGIN`), or one of the margins. It can't be of a column, character, paragraph or line.
+- A shape in a group or canvas, or one in the line of text, can't have a percentage size.
+
+The shape is written with the percentages, as Word 2010 and later read them (`wp14:sizeRelH`, `wp14:sizeRelV`, `wp14:pctPosHOffset` and `wp14:pctPosVOffset`), and with the size and offset it would have on an A4 page with 1-inch margins for applications that don't. LibreOffice reads the percentage sizes, and places the shape by the offset.
+
+### Text that flows from one shape to the next
+
+Give shapes the same `textFlow` to make their text flow from one to the next, as the columns of a newsletter do. The first shape of the flow in the document holds the text, and what doesn't fit flows on into the next shape with the same `textFlow`, in the order they are in the document:
+
+```ts
+const column = (offset: `${number}%`, children?: readonly Paragraph[]): ShapeRun =>
+ new ShapeRun({
+ type: "rectangle",
+ transformation: { width: "31%", height: 180 },
+ textFlow: "article",
+ children,
+ floating: {
+ horizontalPosition: { relative: HorizontalPositionRelativeFrom.MARGIN, offset },
+ verticalPosition: { relative: VerticalPositionRelativeFrom.PARAGRAPH, offset: 0 },
+ },
+ });
+
+new Paragraph({ children: [column("0%", articleParagraphs), column("34%")] });
+```
+
+The shapes after the first continue its text, so their own `text` and `children` aren't written. Word and LibreOffice lay out the text when they open the document, so it follows the document's fonts. A flow is only for a `ShapeRun`: shapes in groups and canvases can't be in one.
+
## Alternative Text
Give a shape `altText` so screen readers can describe it:
@@ -536,6 +611,10 @@ new ShapeRun({
});
```
+A group or canvas without a `description` of its own is described from the text of its shapes and its connectors, following each flow from its start, such as "Start, then Write the draft, then Approved? Yes: Publish, then End. No: Fix it, then back to Write the draft." Branches use the connectors' labels, and a shape that leads to several shapes without labels, as in an org chart, lists them: "Chief Executive leads to Technology, Finance and Operations." Shapes are read by their `altText.name`, or their text, and those with neither are left out. A decorative group or canvas isn't described. Give the diagram a `description` of its own to say something else.
+
+The rectangle behind a canvas's group, for applications that can't draw canvases, and the bands of swimlanes, are marked as decorative, so screen readers skip them.
+
## Groups
A `ShapeGroupRun` keeps several shapes together, so they move, resize and wrap as one drawing. Each shape takes the same options as a `ShapeRun`, except `floating`, and its `transformation.offset` positions it in pixels.
@@ -623,9 +702,9 @@ To attach to a particular point, give a `point` instead of a `side`, as percenta
| `"elbow"` | Horizontal and vertical lines with right-angled bends, like Word's elbow connector |
| `"curved"` | A smooth curve that leaves and arrives square to the shapes, like Word's curved connector |
-Elbow and curved connectors leave and arrive at right angles to the sides they attach to, and go around a shape when they have to, for example to join two shapes' top sides. `margin` sets how far out they go, in pixels (default `24`, a quarter of an inch).
+Elbow and curved connectors leave and arrive at right angles to the sides they attach to, and go around a shape when they have to, for example to join two shapes' top sides. `margin` sets how far out they go, in pixels (default `24`, a quarter of an inch). Elbow connectors whose lines would lie on top of each other between their bends are moved 6 pixels apart, unless they meet at one end, as the lines from a box in an org chart do.
-When the usual route would cross another shape in the group or canvas, an elbow or curved connector takes a route with up to four bends that goes around it, a margin away, if there is one.
+When the usual route would cross another shape in the group or canvas, an elbow or curved connector takes a route with up to four bends that goes around it, a margin away, if there is one. Where shapes are closer together than two margins, the route goes halfway between them. An elbow connector that needs more than four bends to get around the shapes, which Word's connectors can't have, is drawn as a freeform line instead. Word doesn't keep a freeform line attached to the shapes when they are moved.
Without a `route`, a connector is straight, unless a straight line would go through another shape in the group or canvas. Then it takes an elbow route around it. Give `route: "straight"` to keep it straight anyway.
@@ -639,10 +718,10 @@ A label is a string, or an object with:
- `text`: a string or paragraphs.
- `position`: `"start"`, `"middle"` (the default) or `"end"`. At the start or end, the label sits just clear of the shape there, such as `"Yes"` and `"No"` beside a decision.
-- `width` and `height`: in pixels. By default the box fits the text, measured as for [`"fitText"`](#sizing-a-shape-to-its-text).
+- `width` and `height`: in pixels. By default the box fits the text, measured as for [`"fitText"`](#sizing-a-shape-to-its-text). A label given as a string has no space before or after it.
- `fill` and `line`.
-A label that would sit on a shape, or on an earlier label, moves along its route until it is clear. If there is no room on the route, it goes beside it. A label is a separate text box, so Word doesn't move it when the connector moves.
+A label that would sit on a shape, on an earlier label or on another connector's line moves along its route until it is clear. If there is no room on the route, it goes beside it, on the side with fewer shapes and labels near it. In a flow or tree, the space between two levels grows to fit the labels of the connectors between them. A label is a separate text box, so Word doesn't move it when the connector moves.
### Connectors that meet
@@ -693,47 +772,88 @@ new ShapeCanvasRun({
});
```
-| `layout.type` | Places the shapes |
-| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `"flow"` | In levels along the connectors, like a flowchart. Each shape goes on the level after the shapes that connect to it, and each level is ordered so connectors cross as little as they can |
-| `"tree"` | As a tree, like an org chart. Each connector joins a parent (`from`) to a child (`to`), and each parent is centred over its children |
-| `"grid"` | In rows and columns, in the order they are given, each centred in its cell |
+| `layout.type` | Places the shapes |
+| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `"flow"` | In levels along the connectors, like a flowchart. Each shape goes on the level after the shapes that connect to it, each level is ordered so connectors cross as little as they can, and each shape is lined up with the shapes it connects to, so connectors are as straight as they can be |
+| `"tree"` | As a tree, like an org chart. Each connector joins a parent (`from`) to a child (`to`), and each parent is centred over its children |
+| `"grid"` | In rows and columns, in the order they are given, each centred in its cell |
-| Option | Layouts | Description |
-| -------------- | ---------- | -------------------------------------------------------------------------------------- |
-| `direction` | flow, tree | `"down"` (the default), `"right"`, `"up"` or `"left"`: the way the levels run |
-| `spacing` | all | Space between shapes on the same level, or between rows and columns, in pixels |
-| `levelSpacing` | flow, tree | Space between one level and the next, in pixels |
-| `columns` | grid | The number of columns. By default, enough to make the grid about as wide as it is tall |
+| Option | Layouts | Description |
+| -------------- | ---------- | ------------------------------------------------------------------------------------------- |
+| `direction` | flow, tree | `"down"` (the default), `"right"`, `"up"` or `"left"`: the way the levels run |
+| `spacing` | all | Space between shapes on the same level, or between rows and columns, in pixels |
+| `levelSpacing` | flow, tree | Space between one level and the next, in pixels |
+| `columns` | grid | The number of columns. By default, enough to make the grid about as wide as it is tall |
+| `lanes` | flow | Bands the flow runs along, such as the teams that do each step. See [Swimlanes](#swimlanes) |
Spacing defaults to 40 pixels between shapes and 50 between levels in a flow, 20 and 40 in a tree, and 40 in a grid.
In a flow or tree, a connector without a `side` leaves one level from the side facing the next level and arrives from the side facing the level before, such as bottom to top when the levels run down. A connector back to the level before goes between the same sides the other way, and one that leads further back, such as a loop to redo a step, leaves and arrives at the side (right, or bottom when the levels run across) and goes around the shapes. In a flow, connectors that lead back don't change the levels.
-A shape with an `offset` keeps it, and the layout places the other shapes as if it weren't there, starting at the top-left corner. A group inside a canvas or group is placed as one shape, and can have a `layout` of its own for its children. Rotated shapes are placed by the box around them.
+In a flow, a connector given a side across the levels places the shape it leads to on that side: a "No" connector that leaves the right of a decision (`from: { id: "review", side: "right" }`) puts its shape to the right of the decision's other shapes, and the decision stays lined up with them. Arriving at the left of a shape does the same.
-The positions are worked out when the document is made and written as ordinary offsets, so the diagram can be edited in Word like any other.
+A shape with an `offset` keeps it. If it connects to shapes the layout places, it takes part in the layout, and the layout is placed around it: give the first shape of a flow an offset to start the flow there. With several such shapes, the layout is placed as near all of them as it can be. A shape with an `offset` that doesn't connect to the layout's shapes is left out of it, and the layout starts at the top-left corner. A group inside a canvas or group is placed as one shape, and can have a `layout` of its own for its children. Rotated shapes are placed by the box around them.
+
+The positions are worked out when the document is written, and written as ordinary offsets, so the diagram can be edited in Word like any other.
+
+### Swimlanes
+
+Give a flow `lanes` to draw a process in bands, one for each person or team that does its steps. Each shape with a `lane` goes in the band of that name, and shapes without one go in the first. The bands are side by side across the flow, each with a header, with its name, at the start of the flow. Connectors cross between the bands.
+
+```ts
+new ShapeCanvasRun({
+ layout: {
+ type: "flow",
+ lanes: [{ name: "Customer", fill: "F2F2F2" }, { name: "Support", fill: "DEEBF7" }, "Engineering"],
+ },
+ children: [
+ {
+ id: "report",
+ lane: "Customer",
+ type: "flowChartTerminator",
+ text: "Report a problem",
+ transformation: { width: "fitText", height: 36 },
+ },
+ { id: "log", lane: "Support", type: "flowChartProcess", text: "Log the ticket", transformation: { width: "fitText", height: 40 } },
+ { id: "fix", lane: "Engineering", type: "flowChartProcess", text: "Fix the bug", transformation: { width: "fitText", height: 40 } },
+ { type: "connector", from: "report", to: "log", route: "elbow", line: { endArrow: "triangle" } },
+ { type: "connector", from: "log", to: "fix", route: "elbow", line: { endArrow: "triangle" } },
+ ],
+});
+```
+
+A lane is a name, or an object with these options:
+
+| Option | Type | Description |
+| ------------ | ----------- | --------------------------------------------------------------------- |
+| `name` | `string` | Written in the lane's header. Shapes go in the lane with `lane: name` |
+| `fill` | `ShapeFill` | The lane's background. Default is none |
+| `headerFill` | `ShapeFill` | The header's background. Default is light grey |
+| `line` | `ShapeLine` | The line around the lane and its header. Default is a thin grey line |
+
+Each lane is as wide as its shapes and its name need. The shapes in each lane are lined up with each other, and elbow connectors (`route: "elbow"`) keep a process's lines square as they cross between lanes. Swimlanes that run across the page (`direction: "right"`) have their headers on the left.
## Options
### ShapeRun
-| Property | Type | Notes | Description |
-| ---------------- | ------------------------------- | -------- | -------------------------------------------------------------------------------- |
-| `type` | `PresetShapeType` \| `"custom"` | Required | The preset shape, such as `"rectangle"`, `"ellipse"` or `"line"`, or `"custom"` |
-| `transformation` | `ShapeTransformation` | Required | Size in pixels, rotation and flip. See [Size and Rotation](#size-and-rotation) |
-| `fill` | `ShapeFill` | Optional | See [Fill](#fill). Default is no fill |
-| `line` | `ShapeLine` | Optional | See [Line](#line). Default is a black line 1pt wide |
-| `adjustments` | `ShapeAdjustments` | Optional | The shape's handles, which depend on `type`. See [Adjustments](#adjustments) |
-| `path` | `string` | Optional | SVG path data, for `type: "custom"`. See [Custom Shapes](#custom-shapes) |
-| `effects` | `ShapeEffects` | Optional | Shadows, glow, soft edges and reflection. See [Effects](#effects) |
-| `text` | `string` | Optional | Centred text inside the shape. See [Text in Shapes](#text-in-shapes) |
-| `children` | `Paragraph[]` | Optional | Paragraphs inside the shape |
-| `textOptions` | `ShapeTextOptions` | Optional | How the text is laid out. See [Text layout](#text-layout) |
-| `floating` | `IFloating` | Optional | Positions the shape on the page. See [Inline and Floating](#inline-and-floating) |
-| `altText` | `DocPropertiesOptions` | Optional | `name`, `description` and `title` for screen readers |
-| `link` | `string` | Optional | A web address the shape opens when it is clicked |
-| `decorative` | `boolean` | Optional | Marks the shape as decorative, so screen readers skip it |
+| Property | Type | Notes | Description |
+| ---------------- | ------------------------------- | -------- | ------------------------------------------------------------------------------------------------- |
+| `type` | `PresetShapeType` \| `"custom"` | Required | The preset shape, such as `"rectangle"`, `"ellipse"` or `"line"`, or `"custom"` |
+| `transformation` | `ShapeTransformation` | Required | Size in pixels, rotation and flip. See [Size and Rotation](#size-and-rotation) |
+| `fill` | `ShapeFill` | Optional | See [Fill](#fill). Default is no fill |
+| `line` | `ShapeLine` | Optional | See [Line](#line). Default is a black line 1pt wide |
+| `adjustments` | `ShapeAdjustments` | Optional | The shape's handles, which depend on `type`. See [Adjustments](#adjustments) |
+| `path` | `string` | Optional | SVG path data, for `type: "custom"`. See [Custom Shapes](#custom-shapes) |
+| `effects` | `ShapeEffects` | Optional | Shadows, glow, soft edges and reflection. See [Effects](#effects) |
+| `text` | `string` | Optional | Centred text inside the shape. See [Text in Shapes](#text-in-shapes) |
+| `children` | `Paragraph[]` | Optional | Paragraphs inside the shape |
+| `textOptions` | `ShapeTextOptions` | Optional | How the text is laid out. See [Text layout](#text-layout) |
+| `floating` | `ShapeFloating` | Optional | Positions the shape on the page. See [Inline and Floating](#inline-and-floating) |
+| `textFlow` | `string` | Optional | The text flow the shape is in. See [Text that flows](#text-that-flows-from-one-shape-to-the-next) |
+| `altText` | `DocPropertiesOptions` | Optional | `name`, `description` and `title` for screen readers |
+| `link` | `string` | Optional | A web address the shape opens when it is clicked |
+| `decorative` | `boolean` | Optional | Marks the shape as decorative, so screen readers skip it |
### ShapeGroupRun
@@ -747,15 +867,16 @@ The positions are worked out when the document is made and written as ordinary o
### ShapeCanvasRun
-| Property | Type | Notes | Description |
-| ---------------- | ----------------------------------- | -------- | ---------------------------------------------------------------------------------------- |
-| `children` | `IShapeCanvasChildOptions[]` | Required | Shapes and connectors, as for a `ShapeGroupRun` |
-| `transformation` | `{ width: number; height: number }` | Optional | Size in pixels. Defaults to reaching the right and bottom of the shapes |
-| `fill` | `ShapeFill` | Optional | The canvas's background. Default is none |
-| `line` | `ShapeLine` | Optional | The canvas's outline. Default is none |
-| `layout` | `ShapeLayout` | Optional | Places the children without an `offset`. See [Laying Out Diagrams](#laying-out-diagrams) |
-| `floating` | `IFloating` | Optional | Positions the canvas on the page |
-| `altText` | `DocPropertiesOptions` | Optional | `name`, `description` and `title` for screen readers |
+| Property | Type | Notes | Description |
+| ---------------- | ----------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
+| `children` | `IShapeCanvasChildOptions[]` | Required | Shapes and connectors, as for a `ShapeGroupRun` |
+| `transformation` | `{ width: number; height: number }` | Optional | Size in pixels. Defaults to reaching the right and bottom of the shapes |
+| `fill` | `ShapeFill` | Optional | The canvas's background. Default is none |
+| `line` | `ShapeLine` | Optional | The canvas's outline. Default is none |
+| `layout` | `ShapeLayout` | Optional | Places the children without an `offset`. See [Laying Out Diagrams](#laying-out-diagrams) |
+| `floating` | `IFloating` | Optional | Positions the canvas on the page |
+| `altText` | `DocPropertiesOptions` | Optional | `name`, `description` and `title` for screen readers |
+| `fallback` | `boolean` | Optional | Whether to write the diagram as a group too, for applications that can't draw canvases. Default is `true`. See [Compatibility](#compatibility) |
### Connector
@@ -778,7 +899,7 @@ The positions are worked out when the document is made and written as ordinary o
Shapes are written as DrawingML shapes (`wps:wsp`), groups (`wpg:wgp` and `wpg:grpSp`), pictures (`pic:pic`) and drawing canvases (`wpc:wpc`), the formats Word has used since Word 2010. Word 2007 and older can't display them. Other word processors differ in how much of DrawingML they draw, so check the result in the applications your readers use.
-A canvas is written with the same shapes as a group after it, in `mc:AlternateContent`. Applications that can't draw canvases, such as Apple Pages, draw the group instead. Word and LibreOffice draw the canvas.
+A canvas is written with the same shapes as a group after it, in `mc:AlternateContent`. Applications that can't draw canvases, such as Apple Pages, draw the group instead. Word and LibreOffice draw the canvas. Set `fallback: false` on a `ShapeCanvasRun` to leave the group out, which halves the space the canvas takes up in the document, if its readers only use Word or LibreOffice.
LibreOffice (checked with version 26.8) draws most shapes as Word does, but:
@@ -789,7 +910,7 @@ LibreOffice (checked with version 26.8) draws most shapes as Word does, but:
Apple Pages (checked with version 15.1) draws shapes and groups, and the group in place of a canvas, but:
-- It draws text that has no size of its own larger than Word does. Shapes sized with `"fitText"` and connector labels are sized for Word's 10pt, so give the text a `size` if it has to fit in Pages as well.
+- It draws text that has no size, in its own formatting or the document's styles, larger than Word does. Shapes sized with `"fitText"` and connector labels are sized for Word's 10pt, so give the document a default size (`styles.default.document.run.size`) if the text has to fit in Pages as well.
## Examples
@@ -848,3 +969,27 @@ Shapes sized to fit their text, a flowchart, an org chart and a grid laid out au
[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/113-shape-layout.ts ":include")
_Source: https://github.com/dolanmiu/docx/blob/master/demo/113-shape-layout.ts_
+
+### Shapes in the document's styles
+
+Shapes, a canvas and a group sized to fit their text in 11pt Calibri with space after each paragraph, with a heading, a character style and an indented paragraph in a shape.
+
+[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/115-shape-document-styles.ts ":include")
+
+_Source: https://github.com/dolanmiu/docx/blob/master/demo/115-shape-document-styles.ts_
+
+### Swimlanes
+
+A support process in swimlanes down the page, with a decision and a branch to another team, and a shorter process in lanes across the page.
+
+[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/116-shape-swimlanes.ts ":include")
+
+_Source: https://github.com/dolanmiu/docx/blob/master/demo/116-shape-swimlanes.ts_
+
+### Page layout
+
+A rule as wide as the text, a sidebar sized and placed as percentages of the text's width, and an article whose text flows from one box into the next.
+
+[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/117-shape-page-layout.ts ":include")
+
+_Source: https://github.com/dolanmiu/docx/blob/master/demo/117-shape-page-layout.ts_
The unique identifier for this abstract numbering definition.