diff --git a/api/classes/Body.html b/api/classes/Body.html
index 6f097571fd..88039f7b20 100644
--- a/api/classes/Body.html
+++ b/api/classes/Body.html
@@ -29,14 +29,14 @@ section. The last section's properties are stored as a direct child of the body
diff --git a/api/classes/Bookmark.html b/api/classes/Bookmark.html
index 7127a4eb7c..e3782a2162 100644
--- a/api/classes/Bookmark.html
+++ b/api/classes/Bookmark.html
@@ -30,7 +30,7 @@ of a start marker, content, and an end marker.
diff --git a/api/classes/BookmarkEnd.html b/api/classes/BookmarkEnd.html
index b4066d6fc8..a914cb69fc 100644
--- a/api/classes/BookmarkEnd.html
+++ b/api/classes/BookmarkEnd.html
@@ -26,14 +26,14 @@ It must be paired with a corresponding BookmarkStart element with the same id.
diff --git a/api/classes/BookmarkStart.html b/api/classes/BookmarkStart.html
index 2265e404cf..37a68f2b18 100644
--- a/api/classes/BookmarkStart.html
+++ b/api/classes/BookmarkStart.html
@@ -26,14 +26,14 @@ It must be paired with a corresponding BookmarkEnd element with the same id.
diff --git a/api/classes/CellMerge.html b/api/classes/CellMerge.html
index 9751ccad55..0de1a8bf06 100644
--- a/api/classes/CellMerge.html
+++ b/api/classes/CellMerge.html
@@ -23,14 +23,14 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/CellMergeAttributes.html b/api/classes/CellMergeAttributes.html
index 718ad03ea5..5b0fc63f54 100644
--- a/api/classes/CellMergeAttributes.html
+++ b/api/classes/CellMergeAttributes.html
@@ -22,14 +22,14 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/CheckBoxSymbolElement.html b/api/classes/CheckBoxSymbolElement.html
index 2b84712c61..99e16edaf2 100644
--- a/api/classes/CheckBoxSymbolElement.html
+++ b/api/classes/CheckBoxSymbolElement.html
@@ -25,14 +25,14 @@ specifying the Unicode character and font to render.
diff --git a/api/classes/CheckBoxUtil.html b/api/classes/CheckBoxUtil.html
index ce979e048c..4fe287ced3 100644
--- a/api/classes/CheckBoxUtil.html
+++ b/api/classes/CheckBoxUtil.html
@@ -25,14 +25,14 @@ including its checked state and the symbols used for checked and unchecked state
diff --git a/api/classes/CommentRangeEnd.html b/api/classes/CommentRangeEnd.html
index be4cd7e3fc..1985db11da 100644
--- a/api/classes/CommentRangeEnd.html
+++ b/api/classes/CommentRangeEnd.html
@@ -28,14 +28,14 @@ Must be paired with a CommentRangeStart with the same ID.
diff --git a/api/classes/CommentRangeStart.html b/api/classes/CommentRangeStart.html
index dd95a48402..12eb6fedeb 100644
--- a/api/classes/CommentRangeStart.html
+++ b/api/classes/CommentRangeStart.html
@@ -28,14 +28,14 @@ Must be paired with a CommentRangeEnd with the same ID.
diff --git a/api/classes/CommentReference.html b/api/classes/CommentReference.html
index 08a772d779..b52c7225e0 100644
--- a/api/classes/CommentReference.html
+++ b/api/classes/CommentReference.html
@@ -28,14 +28,14 @@ It should be placed after the CommentRangeEnd element.
diff --git a/api/classes/Comments.html b/api/classes/Comments.html
index a94bc6d521..99f18554bc 100644
--- a/api/classes/Comments.html
+++ b/api/classes/Comments.html
@@ -27,14 +27,14 @@ threading is activated and thread data is generated for commentsExtended.xml.
diff --git a/api/classes/CommentsIds.html b/api/classes/CommentsIds.html
index ca8fa79091..3e096664c3 100644
--- a/api/classes/CommentsIds.html
+++ b/api/classes/CommentsIds.html
@@ -19,14 +19,14 @@ to a stable w16cid:durableId preserved by Word across edits.
diff --git a/api/classes/ConcreteHyperlink.html b/api/classes/ConcreteHyperlink.html
index 3deab1f5df..f52d76d7b2 100644
--- a/api/classes/ConcreteHyperlink.html
+++ b/api/classes/ConcreteHyperlink.html
@@ -20,7 +20,7 @@ Use InternalHyperlink or ExternalHyperlink for creating hyperlinks in documents.
diff --git a/api/classes/DeletedTableCell.html b/api/classes/DeletedTableCell.html
index 52cd8a6a13..4a003ffeae 100644
--- a/api/classes/DeletedTableCell.html
+++ b/api/classes/DeletedTableCell.html
@@ -23,14 +23,14 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/DeletedTableRow.html b/api/classes/DeletedTableRow.html
index 48c70f7d9c..966efdbaac 100644
--- a/api/classes/DeletedTableRow.html
+++ b/api/classes/DeletedTableRow.html
@@ -23,14 +23,14 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/DocumentDefaults.html b/api/classes/DocumentDefaults.html
index a48edd5045..a02117c9a8 100644
--- a/api/classes/DocumentDefaults.html
+++ b/api/classes/DocumentDefaults.html
@@ -26,14 +26,14 @@ paragraphs and runs in a document unless overridden by a style or direct formatt
diff --git a/api/classes/EndnoteIdReference.html b/api/classes/EndnoteIdReference.html
index e07897375d..7a9e04498f 100644
--- a/api/classes/EndnoteIdReference.html
+++ b/api/classes/EndnoteIdReference.html
@@ -23,14 +23,14 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/EndnoteReferenceRunAttributes.html b/api/classes/EndnoteReferenceRunAttributes.html
index df1f587cae..4a1d47085e 100644
--- a/api/classes/EndnoteReferenceRunAttributes.html
+++ b/api/classes/EndnoteReferenceRunAttributes.html
@@ -22,14 +22,14 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/Endnotes.html b/api/classes/Endnotes.html
index ebf8901778..7aeb714dca 100644
--- a/api/classes/Endnotes.html
+++ b/api/classes/Endnotes.html
@@ -23,14 +23,14 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/ExternalHyperlink.html b/api/classes/ExternalHyperlink.html
index 6642b35297..8585150bb2 100644
--- a/api/classes/ExternalHyperlink.html
+++ b/api/classes/ExternalHyperlink.html
@@ -29,14 +29,14 @@ is converted to a ConcreteHyperlink with the relationship ID.
diff --git a/api/classes/FootNotes.html b/api/classes/FootNotes.html
index 7d22362852..7318756aa6 100644
--- a/api/classes/FootNotes.html
+++ b/api/classes/FootNotes.html
@@ -28,14 +28,14 @@ line used when footnotes continue across pages.
diff --git a/api/classes/FooterWrapper.html b/api/classes/FooterWrapper.html
index 8c6cf57a8f..836bb138b8 100644
--- a/api/classes/FooterWrapper.html
+++ b/api/classes/FooterWrapper.html
@@ -28,7 +28,7 @@ Each section can have multiple footers for different page types.
diff --git a/api/classes/FootnoteReference.html b/api/classes/FootnoteReference.html
index 1f183d0468..cd9fd5bf24 100644
--- a/api/classes/FootnoteReference.html
+++ b/api/classes/FootnoteReference.html
@@ -19,14 +19,14 @@ and the footnote content by using a unique identifier.
diff --git a/api/classes/GridSpan.html b/api/classes/GridSpan.html
index 7953ba1185..fd0300f30e 100644
--- a/api/classes/GridSpan.html
+++ b/api/classes/GridSpan.html
@@ -26,14 +26,14 @@ in the table grid. This is used to merge cells horizontally (column span).
diff --git a/api/classes/HeaderWrapper.html b/api/classes/HeaderWrapper.html
index 70c545f254..e4c15f8d79 100644
--- a/api/classes/HeaderWrapper.html
+++ b/api/classes/HeaderWrapper.html
@@ -28,7 +28,7 @@ Each section can have multiple headers for different page types.
diff --git a/api/classes/HpsMeasureElement.html b/api/classes/HpsMeasureElement.html
index 43b2a59454..d3c8f272a3 100644
--- a/api/classes/HpsMeasureElement.html
+++ b/api/classes/HpsMeasureElement.html
@@ -25,14 +25,14 @@ Values can be specified as numbers (interpreted as half-points) or with explicit
diff --git a/api/classes/IgnoreIfEmptyXmlComponent.html b/api/classes/IgnoreIfEmptyXmlComponent.html
index 9f2e1ba8b7..0ddfeb7ffb 100644
--- a/api/classes/IgnoreIfEmptyXmlComponent.html
+++ b/api/classes/IgnoreIfEmptyXmlComponent.html
@@ -23,7 +23,7 @@ to be excluded from the output.
diff --git a/api/classes/ImageRun.html b/api/classes/ImageRun.html
index 33d6f6af7f..1c375b0bca 100644
--- a/api/classes/ImageRun.html
+++ b/api/classes/ImageRun.html
@@ -25,14 +25,14 @@ including JPG, PNG, GIF, BMP, and SVG. Optionally wraps the run in
diff --git a/api/classes/ImageWatermark.html b/api/classes/ImageWatermark.html
index 958505b2c7..f1b88b3f48 100644
--- a/api/classes/ImageWatermark.html
+++ b/api/classes/ImageWatermark.html
@@ -38,14 +38,14 @@ way as an ImageRun.
diff --git a/api/classes/ImportedXmlComponent.html b/api/classes/ImportedXmlComponent.html
index ede06c1e79..9a80ba1eed 100644
--- a/api/classes/ImportedXmlComponent.html
+++ b/api/classes/ImportedXmlComponent.html
@@ -22,14 +22,14 @@ templates or when you need to include pre-existing XML fragments.
diff --git a/api/classes/InitializableXmlComponent.html b/api/classes/InitializableXmlComponent.html
index 22928a59f7..e2c07b1aa8 100644
--- a/api/classes/InitializableXmlComponent.html
+++ b/api/classes/InitializableXmlComponent.html
@@ -22,14 +22,14 @@ create a new component that shares or extends the children of an existing compon
diff --git a/api/classes/InsertedTableCell.html b/api/classes/InsertedTableCell.html
index c60824b305..8598b4afc2 100644
--- a/api/classes/InsertedTableCell.html
+++ b/api/classes/InsertedTableCell.html
@@ -23,14 +23,14 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/InsertedTableRow.html b/api/classes/InsertedTableRow.html
index e4da682386..839e97f0e5 100644
--- a/api/classes/InsertedTableRow.html
+++ b/api/classes/InsertedTableRow.html
@@ -23,14 +23,14 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/InsertedTextRun.html b/api/classes/InsertedTextRun.html
index 450869366b..0b18fee65b 100644
--- a/api/classes/InsertedTextRun.html
+++ b/api/classes/InsertedTextRun.html
@@ -29,14 +29,14 @@ made the insertion and when.
diff --git a/api/classes/InternalHyperlink.html b/api/classes/InternalHyperlink.html
index 5dcb7b99c0..fc4dc04814 100644
--- a/api/classes/InternalHyperlink.html
+++ b/api/classes/InternalHyperlink.html
@@ -28,14 +28,14 @@ The bookmark must exist in the document for the hyperlink to function.
diff --git a/api/classes/MathDegree.html b/api/classes/MathDegree.html
index c0c4d350c4..b95682b334 100644
--- a/api/classes/MathDegree.html
+++ b/api/classes/MathDegree.html
@@ -20,14 +20,14 @@ For square roots, this element is typically hidden.
diff --git a/api/classes/MathFunctionName.html b/api/classes/MathFunctionName.html
index a448a7721d..7252f41119 100644
--- a/api/classes/MathFunctionName.html
+++ b/api/classes/MathFunctionName.html
@@ -20,14 +20,14 @@ that appears before the function argument.
diff --git a/api/classes/MathFunctionProperties.html b/api/classes/MathFunctionProperties.html
index f59a927f06..c5ce999d97 100644
--- a/api/classes/MathFunctionProperties.html
+++ b/api/classes/MathFunctionProperties.html
@@ -20,14 +20,14 @@ such as function name alignment and spacing.
diff --git a/api/classes/MathLimitUpper.html b/api/classes/MathLimitUpper.html
index f376227688..8c25882c4e 100644
--- a/api/classes/MathLimitUpper.html
+++ b/api/classes/MathLimitUpper.html
@@ -28,14 +28,14 @@ commonly used for mathematical notation like lim with conditions above.
diff --git a/api/classes/MathPreSubSuperScript.html b/api/classes/MathPreSubSuperScript.html
index d2863f98b4..01309428cc 100644
--- a/api/classes/MathPreSubSuperScript.html
+++ b/api/classes/MathPreSubSuperScript.html
@@ -28,14 +28,14 @@ positioned before (to the left of) the base, commonly used in tensor notation.
diff --git a/api/classes/MathRadicalProperties.html b/api/classes/MathRadicalProperties.html
index 1c23ede1a0..030099351f 100644
--- a/api/classes/MathRadicalProperties.html
+++ b/api/classes/MathRadicalProperties.html
@@ -20,14 +20,14 @@ such as whether to hide the degree (for square roots).
diff --git a/api/classes/MathRun.html b/api/classes/MathRun.html
index 5b99a44bf2..3197005b1e 100644
--- a/api/classes/MathRun.html
+++ b/api/classes/MathRun.html
@@ -28,14 +28,14 @@ similar to how Run contains text in regular paragraphs.
diff --git a/api/classes/MathSubSuperScript.html b/api/classes/MathSubSuperScript.html
index 401b409b40..a300c7a96b 100644
--- a/api/classes/MathSubSuperScript.html
+++ b/api/classes/MathSubSuperScript.html
@@ -28,14 +28,14 @@ commonly used for tensor notation or indexed variables with exponents.
diff --git a/api/classes/Media.html b/api/classes/Media.html
index ed86fc38ab..eae6e7dcf4 100644
--- a/api/classes/Media.html
+++ b/api/classes/Media.html
@@ -23,7 +23,7 @@ is stored with a unique key for retrieval.
diff --git a/api/classes/NextAttributeComponent.html b/api/classes/NextAttributeComponent.html
index ab17b1322f..680c0d5533 100644
--- a/api/classes/NextAttributeComponent.html
+++ b/api/classes/NextAttributeComponent.html
@@ -26,14 +26,14 @@ This gives more control but is more verbose than XmlAttributeComponent.
diff --git a/api/classes/OnOffElement.html b/api/classes/OnOffElement.html
index 3f02dc7ab5..e986880e83 100644
--- a/api/classes/OnOffElement.html
+++ b/api/classes/OnOffElement.html
@@ -26,14 +26,14 @@ it is explicitly disabled. When the value is true, the attribute is often omitte
diff --git a/api/classes/Packer.html b/api/classes/Packer.html
index 13c70d8f52..f3a3ba9a24 100644
--- a/api/classes/Packer.html
+++ b/api/classes/Packer.html
@@ -25,7 +25,7 @@ of the document structure into OOXML format and compression into a .docx ZIP arc
diff --git a/api/classes/PageBorders.html b/api/classes/PageBorders.html
index 4970607c29..bc731d218e 100644
--- a/api/classes/PageBorders.html
+++ b/api/classes/PageBorders.html
@@ -26,14 +26,14 @@ including which pages display the borders and how they are positioned.
diff --git a/api/classes/PageReference.html b/api/classes/PageReference.html
index a1046f5c79..854b6edb5d 100644
--- a/api/classes/PageReference.html
+++ b/api/classes/PageReference.html
@@ -23,14 +23,14 @@ the specified bookmark, useful for cross-references like "see page 5".
diff --git a/api/classes/PageTextDirection.html b/api/classes/PageTextDirection.html
index 003e1515af..ac93e04220 100644
--- a/api/classes/PageTextDirection.html
+++ b/api/classes/PageTextDirection.html
@@ -22,14 +22,14 @@ for all pages in a section.
diff --git a/api/classes/Paragraph.html b/api/classes/Paragraph.html
index dd13b1e5a1..59f548e3e9 100644
--- a/api/classes/Paragraph.html
+++ b/api/classes/Paragraph.html
@@ -35,7 +35,7 @@ various inline elements such as text runs, images, hyperlinks, and bookmarks.
diff --git a/api/classes/ParagraphPropertiesChange.html b/api/classes/ParagraphPropertiesChange.html
index 7bdcd0adec..81bb7a1e2e 100644
--- a/api/classes/ParagraphPropertiesChange.html
+++ b/api/classes/ParagraphPropertiesChange.html
@@ -30,7 +30,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/ParagraphPropertiesDefaults.html b/api/classes/ParagraphPropertiesDefaults.html
index c53cc7d3b1..45e9010b30 100644
--- a/api/classes/ParagraphPropertiesDefaults.html
+++ b/api/classes/ParagraphPropertiesDefaults.html
@@ -26,14 +26,14 @@ to all paragraphs in the document unless overridden.
diff --git a/api/classes/PositionalTab.html b/api/classes/PositionalTab.html
index 47852eb1c4..7ea36a0a68 100644
--- a/api/classes/PositionalTab.html
+++ b/api/classes/PositionalTab.html
@@ -29,14 +29,14 @@ an exact alignment and position within the paragraph.
diff --git a/api/classes/RunPropertiesDefaults.html b/api/classes/RunPropertiesDefaults.html
index 30644c0525..4a885ee898 100644
--- a/api/classes/RunPropertiesDefaults.html
+++ b/api/classes/RunPropertiesDefaults.html
@@ -26,14 +26,14 @@ to all text runs in the document unless overridden by styles or direct formattin
diff --git a/api/classes/SectionProperties.html b/api/classes/SectionProperties.html
index 596b4717cc..396299f78b 100644
--- a/api/classes/SectionProperties.html
+++ b/api/classes/SectionProperties.html
@@ -27,14 +27,14 @@ A document can contain multiple sections with different properties.
diff --git a/api/classes/SectionPropertiesChange.html b/api/classes/SectionPropertiesChange.html
index 777ddb5339..f4e857d21c 100644
--- a/api/classes/SectionPropertiesChange.html
+++ b/api/classes/SectionPropertiesChange.html
@@ -23,14 +23,14 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/ShapeCanvasRun.html b/api/classes/ShapeCanvasRun.html
index 1d75b45b5a..fa8725d763 100644
--- a/api/classes/ShapeCanvasRun.html
+++ b/api/classes/ShapeCanvasRun.html
@@ -25,14 +25,14 @@ diagrams that people will edit.
diff --git a/api/classes/ShapeGroupRun.html b/api/classes/ShapeGroupRun.html
index e876a84e8a..09569a242c 100644
--- a/api/classes/ShapeGroupRun.html
+++ b/api/classes/ShapeGroupRun.html
@@ -27,14 +27,14 @@ when shapes are moved on a
diff --git a/api/classes/ShapeRun.html b/api/classes/ShapeRun.html
index 65f60a7d23..3b46d0585d 100644
--- a/api/classes/ShapeRun.html
+++ b/api/classes/ShapeRun.html
@@ -25,14 +25,14 @@ and arrowheads, and text inside it. It sits inline with text unless floati
diff --git a/api/classes/SimpleField.html b/api/classes/SimpleField.html
index 4382153bb7..c1203b2853 100644
--- a/api/classes/SimpleField.html
+++ b/api/classes/SimpleField.html
@@ -29,7 +29,7 @@ Simple fields are typically used for fields that don't require complex nesting.<
diff --git a/api/classes/SimpleMailMergeField.html b/api/classes/SimpleMailMergeField.html
index 71cd2c2565..72e2c6bc1c 100644
--- a/api/classes/SimpleMailMergeField.html
+++ b/api/classes/SimpleMailMergeField.html
@@ -22,14 +22,14 @@ It creates a MERGEFIELD that will be populated with data during mail merge.
diff --git a/api/classes/StringContainer.html b/api/classes/StringContainer.html
index 8327edceec..db0b6becff 100644
--- a/api/classes/StringContainer.html
+++ b/api/classes/StringContainer.html
@@ -22,14 +22,14 @@ rather than an attribute.
diff --git a/api/classes/StringEnumValueElement.html b/api/classes/StringEnumValueElement.html
index b703d0ef4f..8fb723b348 100644
--- a/api/classes/StringEnumValueElement.html
+++ b/api/classes/StringEnumValueElement.html
@@ -25,14 +25,14 @@ type parameter to enforce type safety for enum values.
diff --git a/api/classes/StyleForParagraph.html b/api/classes/StyleForParagraph.html
index 564761a452..5f57f22fbe 100644
--- a/api/classes/StyleForParagraph.html
+++ b/api/classes/StyleForParagraph.html
@@ -27,14 +27,14 @@ run-level properties (font, size, color) for text within the paragraph.
diff --git a/api/classes/StyleLevel.html b/api/classes/StyleLevel.html
index 2ab5fff36d..c2d69a3433 100644
--- a/api/classes/StyleLevel.html
+++ b/api/classes/StyleLevel.html
@@ -19,7 +19,7 @@ custom styles to be included in the table of contents at specific levels.
diff --git a/api/classes/Styles.html b/api/classes/Styles.html
index 231f2fe7ba..33b5cf635d 100644
--- a/api/classes/Styles.html
+++ b/api/classes/Styles.html
@@ -27,14 +27,14 @@ a way to define consistent formatting across a document.
diff --git a/api/classes/TDirection.html b/api/classes/TDirection.html
index e79c1d9320..61a353996d 100644
--- a/api/classes/TDirection.html
+++ b/api/classes/TDirection.html
@@ -26,14 +26,14 @@ useful for creating rotated text or supporting different writing systems.
diff --git a/api/classes/Table.html b/api/classes/Table.html
index 162e0a4791..3cac372f6e 100644
--- a/api/classes/Table.html
+++ b/api/classes/Table.html
@@ -28,14 +28,14 @@ Tables are used to organize content into a grid structure.
diff --git a/api/classes/TableCellBorders.html b/api/classes/TableCellBorders.html
index 4785f8a2d7..5128d61949 100644
--- a/api/classes/TableCellBorders.html
+++ b/api/classes/TableCellBorders.html
@@ -26,14 +26,14 @@ can be configured independently with different styles, colors, and widths.
diff --git a/api/classes/TableOfContents.html b/api/classes/TableOfContents.html
index e3c0927c01..2114f5c36a 100644
--- a/api/classes/TableOfContents.html
+++ b/api/classes/TableOfContents.html
@@ -28,14 +28,14 @@ with page numbers. It uses a TOC field code to generate entries.
diff --git a/api/classes/TableRow.html b/api/classes/TableRow.html
index c91f13375a..2a5d16876f 100644
--- a/api/classes/TableRow.html
+++ b/api/classes/TableRow.html
@@ -28,14 +28,14 @@ one or more table cells that hold the actual content.
diff --git a/api/classes/TableRowProperties.html b/api/classes/TableRowProperties.html
index 65dabe6a29..b0e41284c2 100644
--- a/api/classes/TableRowProperties.html
+++ b/api/classes/TableRowProperties.html
@@ -22,14 +22,14 @@ whether it can split across pages, and whether it's a header row.
diff --git a/api/classes/TableRowPropertiesChange.html b/api/classes/TableRowPropertiesChange.html
index 278e331b66..18fb96646d 100644
--- a/api/classes/TableRowPropertiesChange.html
+++ b/api/classes/TableRowPropertiesChange.html
@@ -23,14 +23,14 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/TextWatermark.html b/api/classes/TextWatermark.html
index 37a478039e..e11881b20f 100644
--- a/api/classes/TextWatermark.html
+++ b/api/classes/TextWatermark.html
@@ -36,14 +36,14 @@ recognizes it and can remove or replace it through that command.
diff --git a/api/classes/Textbox.html b/api/classes/Textbox.html
index 08c91459b0..da744745f7 100644
--- a/api/classes/Textbox.html
+++ b/api/classes/Textbox.html
@@ -35,14 +35,14 @@ a VML shape (v:shape) that contains a VML textbox (v:textbox) with the actual co
diff --git a/api/classes/VerticalMerge.html b/api/classes/VerticalMerge.html
index 10216c79aa..5241582923 100644
--- a/api/classes/VerticalMerge.html
+++ b/api/classes/VerticalMerge.html
@@ -27,14 +27,14 @@ This is used to create row spans in tables.
Use ShapeRun with type: "rectangle" and children for a text box. It has plain options for fills,
+lines, effects and text layout, and can be any of the preset shapes.
diff --git a/api/classes/XmlAttributeComponent.html b/api/classes/XmlAttributeComponent.html
index fb939768d5..4d7e3a0dca 100644
--- a/api/classes/XmlAttributeComponent.html
+++ b/api/classes/XmlAttributeComponent.html
@@ -26,7 +26,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/XmlComponent.html b/api/classes/XmlComponent.html
index e155e2df8d..3ea7717e1a 100644
--- a/api/classes/XmlComponent.html
+++ b/api/classes/XmlComponent.html
@@ -23,7 +23,7 @@ the intermediate object format used by the xml serialization library.
\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/convertToXmlComponent.html b/api/functions/convertToXmlComponent.html
index 15ae2e04c3..f252186339 100644
--- a/api/functions/convertToXmlComponent.html
+++ b/api/functions/convertToXmlComponent.html
@@ -35,7 +35,7 @@ of the original XML.
diff --git a/api/functions/createEmphasisMark.html b/api/functions/createEmphasisMark.html
index e3c7523ec8..13ee78c07b 100644
--- a/api/functions/createEmphasisMark.html
+++ b/api/functions/createEmphasisMark.html
@@ -36,7 +36,7 @@ text to emphasize it. This is commonly used in East Asian typography.
diff --git a/api/functions/createFrameProperties.html b/api/functions/createFrameProperties.html
index 00b2b52e8e..928ab3f988 100644
--- a/api/functions/createFrameProperties.html
+++ b/api/functions/createFrameProperties.html
@@ -40,7 +40,7 @@ drop cap effects and various text wrapping options.
diff --git a/api/functions/createHorizontalPosition.html b/api/functions/createHorizontalPosition.html
index eba1e54284..145970e983 100644
--- a/api/functions/createHorizontalPosition.html
+++ b/api/functions/createHorizontalPosition.html
@@ -39,7 +39,7 @@ object relative to a base element (page, margin, column, etc.).
diff --git a/api/functions/createMathAccentCharacter.html b/api/functions/createMathAccentCharacter.html
index 0193376f96..435253572a 100644
--- a/api/functions/createMathAccentCharacter.html
+++ b/api/functions/createMathAccentCharacter.html
@@ -30,7 +30,7 @@ such as summation (∑), integral (∫), or product (∏) symbols.
diff --git a/api/functions/createMathNAryProperties.html b/api/functions/createMathNAryProperties.html
index ae9e2f0534..eabc2e2e11 100644
--- a/api/functions/createMathNAryProperties.html
+++ b/api/functions/createMathNAryProperties.html
@@ -30,7 +30,7 @@ and integrals, including the operator character and limit positioning.
diff --git a/api/functions/createMathSubScriptElement.html b/api/functions/createMathSubScriptElement.html
index b69934aabf..eb9de05428 100644
--- a/api/functions/createMathSubScriptElement.html
+++ b/api/functions/createMathSubScriptElement.html
@@ -30,7 +30,7 @@ script objects, and other structures that support subscripts.
diff --git a/api/functions/createMathSuperScriptElement.html b/api/functions/createMathSuperScriptElement.html
index 9dd85e6da9..db36af90e0 100644
--- a/api/functions/createMathSuperScriptElement.html
+++ b/api/functions/createMathSuperScriptElement.html
@@ -30,7 +30,7 @@ script objects, and other structures that support superscripts.
diff --git a/api/functions/createPageNumberType.html b/api/functions/createPageNumberType.html
index e5249b245c..ca01145fe6 100644
--- a/api/functions/createPageNumberType.html
+++ b/api/functions/createPageNumberType.html
@@ -36,7 +36,7 @@ for all pages in a section.
diff --git a/api/functions/createSectionType.html b/api/functions/createSectionType.html
index 0dfc1e9a0c..e956f30ed0 100644
--- a/api/functions/createSectionType.html
+++ b/api/functions/createSectionType.html
@@ -36,7 +36,7 @@ where the new section begins relative to the previous section.
diff --git a/api/functions/createTableLook.html b/api/functions/createTableLook.html
index 0f187493be..5ef7cc7fa6 100644
--- a/api/functions/createTableLook.html
+++ b/api/functions/createTableLook.html
@@ -33,7 +33,7 @@ styles to apply special formatting to specific regions of the table.
diff --git a/api/functions/createTableRowHeight.html b/api/functions/createTableRowHeight.html
index 83a9c5825b..dc63bcfefd 100644
--- a/api/functions/createTableRowHeight.html
+++ b/api/functions/createTableRowHeight.html
@@ -37,7 +37,7 @@ determining how the height should be applied.
diff --git a/api/functions/createWrapNone.html b/api/functions/createWrapNone.html
index 9bc716a27a..7f2ec23686 100644
--- a/api/functions/createWrapNone.html
+++ b/api/functions/createWrapNone.html
@@ -22,7 +22,7 @@ without wrapping around it.
diff --git a/api/functions/createWrapSquare.html b/api/functions/createWrapSquare.html
index 8a65b1f3e7..842607f646 100644
--- a/api/functions/createWrapSquare.html
+++ b/api/functions/createWrapSquare.html
@@ -31,7 +31,7 @@ of the drawing on the specified side(s).
Creates through text wrapping for a floating drawing.
+
WrapThrough wraps text around the contours of the drawing like WrapTight, and also
+fills any open space inside the drawing, such as the middle of a ring.
diff --git a/api/functions/dateTimeValue.html b/api/functions/dateTimeValue.html
index a608946437..98ca255479 100644
--- a/api/functions/dateTimeValue.html
+++ b/api/functions/dateTimeValue.html
@@ -35,7 +35,7 @@ This matches the xsd:dateTime format required by OOXML.
diff --git a/api/functions/hpsMeasureValue.html b/api/functions/hpsMeasureValue.html
index 5babaf2d39..7fca2ae08f 100644
--- a/api/functions/hpsMeasureValue.html
+++ b/api/functions/hpsMeasureValue.html
@@ -35,7 +35,7 @@ HPS (half-points) are commonly used for font sizes.
diff --git a/api/functions/patchDocument.html b/api/functions/patchDocument.html
index 993bef137c..68e8a6ba5f 100644
--- a/api/functions/patchDocument.html
+++ b/api/functions/patchDocument.html
@@ -41,7 +41,7 @@ the original document structure and optionally the original formatting.
diff --git a/api/functions/universalMeasureToTwips.html b/api/functions/universalMeasureToTwips.html
index 22f6228985..7fc7baefff 100644
--- a/api/functions/universalMeasureToTwips.html
+++ b/api/functions/universalMeasureToTwips.html
@@ -34,7 +34,7 @@ Strings are converted according to their unit suffix.
diff --git a/api/interfaces/IXmlableObject.html b/api/interfaces/IXmlableObject.html
index 47c5e87e3d..57aa1a1063 100644
--- a/api/interfaces/IXmlableObject.html
+++ b/api/interfaces/IXmlableObject.html
@@ -18,7 +18,7 @@ to generate the final XML output. Objects typically have a structure like:
-
+
Hierarchy
Record<string,unknown>
@@ -30,7 +30,7 @@ to generate the final XML output. Objects typically have a structure like:
diff --git a/api/modules.html b/api/modules.html
index 372f9ef958..ba0bb5d5e7 100644
--- a/api/modules.html
+++ b/api/modules.html
@@ -26,15 +26,15 @@ serves as the main entry point for creating Word documents.
diff --git a/api/types/AttributePayload.html b/api/types/AttributePayload.html
index d1f9c08d1d..447e320082 100644
--- a/api/types/AttributePayload.html
+++ b/api/types/AttributePayload.html
@@ -20,7 +20,7 @@ control over attribute name mapping.
One end of a connector: the id of the shape it attaches to, or the id and the side of the shape.
-Without a side, the connector attaches to the side that faces the shape at its other end.
One end of a connector: the id of the shape it attaches to, or the id with a side or point of the shape.
+Without either, the connector attaches to the side that faces the shape at its other end.
Attaches to the connection point nearest this point, such as { x: 0, y: 100 } for the one nearest the
+bottom-left corner. On a shape without connection points, the connector ends at this point
A point on a shape, as percentages of the shape's width and height before it is rotated or flipped:
+{ x: 0, y: 0 } is the top-left corner and { x: 100, y: 100 } the bottom-right corner.
diff --git a/api/types/IContext.html b/api/types/IContext.html
index 09cd2b9cbe..d8708d356c 100644
--- a/api/types/IContext.html
+++ b/api/types/IContext.html
@@ -17,7 +17,7 @@ during the conversion of components to XML.
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/IRunOptions.html b/api/types/IRunOptions.html
index 7d870cdb3e..97891a09d4 100644
--- a/api/types/IRunOptions.html
+++ b/api/types/IRunOptions.html
@@ -20,7 +20,7 @@ The children property can contain various inline content elements.
diff --git a/api/types/IRunStylePropertiesOptions.html b/api/types/IRunStylePropertiesOptions.html
index 82aacb737d..e365bdec27 100644
--- a/api/types/IRunStylePropertiesOptions.html
+++ b/api/types/IRunStylePropertiesOptions.html
@@ -18,7 +18,7 @@ including font, size, bold, italic, underline, color, and other character format
Size of the canvas in pixels. Defaults to reaching from the top-left corner to the right and bottom
+of the shapes, including their lines and effects, so an offset leaves space above and to the left of a shape.
+The shapes are not scaled.
Size of the canvas in pixels. Defaults to reaching from the top-left corner to the right and bottom
-of the shapes, so an offset leaves space above and to the left of a shape. The shapes are not scaled.
A shape takes the options of a ShapeRun except floating. transformation.offset positions it,
in pixels, and id names it so connectors can attach to it.
@@ -19,7 +19,7 @@ in pixels, and id names it so connectors can attach to it.
Size of the group in pixels, with optional rotation and flip. Defaults to the size of
+the box around the children. A different size scales every shape in the group.
Size of the group in pixels, with optional rotation and flip. Defaults to the size of
-the box around the children. A different size scales every shape in the group.
diff --git a/api/types/ITableCellBorders.html b/api/types/ITableCellBorders.html
index 92677b4fca..6cb7d189a7 100644
--- a/api/types/ITableCellBorders.html
+++ b/api/types/ITableCellBorders.html
@@ -21,7 +21,7 @@ can be specified for top, bottom, left, right, start, and end edges.
@@ -45,7 +45,7 @@ If relativeHorizontalPosition is also specified, then the absoluteHorizontalPosi
If the attribute is omitted, the value is assumed to be zero.
@@ -56,7 +56,7 @@ If relativeVerticalPosition is also specified, then the absoluteVerticalPosition
If the attribute is omitted, the value is assumed to be zero.
@@ -64,7 +64,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.
+
@@ -84,12 +84,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.
+
@@ -117,7 +117,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
+
@@ -125,7 +125,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.
+
@@ -133,7 +133,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.
+
@@ -87,7 +87,7 @@ When true, horizontal banding (alternating row colors) is disabled.
When false or undefined, horizontal banding is enabled if defined in the table style.
+
@@ -96,7 +96,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/ITableOfContentsOptions.html b/api/types/ITableOfContentsOptions.html
index 2dee3d3282..e1c63fe12a 100644
--- a/api/types/ITableOfContentsOptions.html
+++ b/api/types/ITableOfContentsOptions.html
@@ -22,7 +22,7 @@ Options correspond to field switches in the TOC field code.
@@ -58,7 +58,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.
@@ -84,7 +84,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.
+
@@ -95,21 +95,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.
+
@@ -118,21 +118,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.
+
@@ -167,7 +167,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).
+
@@ -177,14 +177,14 @@ where startLevel and endLevel are integers, and startLevel has a value equal-to
TC fields that assign entries to lower levels are skipped.
+
@@ -73,64 +73,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/IXmlAttribute.html b/api/types/IXmlAttribute.html
index d36497efce..b81eaa14f8 100644
--- a/api/types/IXmlAttribute.html
+++ b/api/types/IXmlAttribute.html
@@ -16,7 +16,7 @@
numbers, or booleans, which will be converted to strings in the final XML.
diff --git a/api/types/OutputByType.html b/api/types/OutputByType.html
index 8508d58eb1..09359925e9 100644
--- a/api/types/OutputByType.html
+++ b/api/types/OutputByType.html
@@ -23,7 +23,7 @@ format determines the return type. Based on JSZip's output types.
diff --git a/api/types/ParagraphChild.html b/api/types/ParagraphChild.html
index c16241921d..65ae7c5bae 100644
--- a/api/types/ParagraphChild.html
+++ b/api/types/ParagraphChild.html
@@ -16,7 +16,7 @@ This union type represents all valid inline content elements that can appear
within a paragraph in WordprocessingML.
diff --git a/api/types/PresetShapeAdjustments.html b/api/types/PresetShapeAdjustments.html
index 67e2880735..252ce81cce 100644
--- a/api/types/PresetShapeAdjustments.html
+++ b/api/types/PresetShapeAdjustments.html
@@ -20,7 +20,7 @@ allows, so a value that is too large acts like the largest allowed value.
diff --git a/api/types/ShapeAdjustments.html b/api/types/ShapeAdjustments.html
index 697ec3839d..8d7a7d4990 100644
--- a/api/types/ShapeAdjustments.html
+++ b/api/types/ShapeAdjustments.html
@@ -22,7 +22,7 @@ It is never for shapes without handles, which take no adjustments.<
A WordArt-style warp that bends or stretches the text to a shape, such as "archUp", "wave" or "inflate".
+The ...Filled arches, circle and button spread the text over the whole shape, where the others follow a single line.
diff --git a/api/variables/CharacterSet.html b/api/variables/CharacterSet.html
index da3130bbf3..5dee51dd78 100644
--- a/api/variables/CharacterSet.html
+++ b/api/variables/CharacterSet.html
@@ -59,7 +59,7 @@ Maps character set names to their hexadecimal identifiers.
diff --git a/api/variables/DocumentAttributeNamespaces.html b/api/variables/DocumentAttributeNamespaces.html
index d82cb9aada..c30bbefd62 100644
--- a/api/variables/DocumentAttributeNamespaces.html
+++ b/api/variables/DocumentAttributeNamespaces.html
@@ -93,7 +93,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/DropCapType.html b/api/variables/DropCapType.html
index 58ef0a99f3..129156c69c 100644
--- a/api/variables/DropCapType.html
+++ b/api/variables/DropCapType.html
@@ -31,7 +31,7 @@ beginning of a paragraph. This enum defines how the drop cap should be positione
diff --git a/api/variables/EMPTY_OBJECT.html b/api/variables/EMPTY_OBJECT.html
index f4067d9d7c..f55914daf2 100644
--- a/api/variables/EMPTY_OBJECT.html
+++ b/api/variables/EMPTY_OBJECT.html
@@ -19,7 +19,7 @@ has no children or attributes.
diff --git a/api/variables/EmphasisMarkType.html b/api/variables/EmphasisMarkType.html
index e0f6be0538..402d8a37c9 100644
--- a/api/variables/EmphasisMarkType.html
+++ b/api/variables/EmphasisMarkType.html
@@ -30,7 +30,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/LevelFormat.html b/api/variables/LevelFormat.html
index c986f83ee2..a671694cb4 100644
--- a/api/variables/LevelFormat.html
+++ b/api/variables/LevelFormat.html
@@ -280,7 +280,7 @@ decimal, roman numerals, letters, and various international formats.
diff --git a/api/variables/PageTextDirectionType.html b/api/variables/PageTextDirectionType.html
index dd450d97ed..a51137022b 100644
--- a/api/variables/PageTextDirectionType.html
+++ b/api/variables/PageTextDirectionType.html
@@ -27,7 +27,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/ShadingType.html b/api/variables/ShadingType.html
index 0e78c378c3..7d991e0e10 100644
--- a/api/variables/ShadingType.html
+++ b/api/variables/ShadingType.html
@@ -102,7 +102,7 @@ color and the pattern color.
diff --git a/api/variables/TextEffect.html b/api/variables/TextEffect.html
index 6413d88a85..30fa4f25c9 100644
--- a/api/variables/TextEffect.html
+++ b/api/variables/TextEffect.html
@@ -55,7 +55,7 @@ these effects are deprecated and may not be supported by all applications.
diff --git a/api/variables/VerticalAlign.html b/api/variables/VerticalAlign.html
index 6b0d8b0021..c0d00f6ff4 100644
--- a/api/variables/VerticalAlign.html
+++ b/api/variables/VerticalAlign.html
@@ -31,7 +31,7 @@ backward-compatibility and will be removed in the next major release.
diff --git a/api/variables/VerticalAlignTable.html b/api/variables/VerticalAlignTable.html
index 6ab0ac7b11..003fd4a728 100644
--- a/api/variables/VerticalAlignTable.html
+++ b/api/variables/VerticalAlignTable.html
@@ -27,7 +27,7 @@ are valid according to ECMA-376 (§17.18.87 ST_VerticalJc within <w:tcP
diff --git a/api/variables/VerticalMergeType.html b/api/variables/VerticalMergeType.html
index 7be7f4bda5..73990d29eb 100644
--- a/api/variables/VerticalMergeType.html
+++ b/api/variables/VerticalMergeType.html
@@ -28,7 +28,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/bookmarkUniqueNumericId.html b/api/variables/bookmarkUniqueNumericId.html
index b49b765071..c1199c4c1d 100644
--- a/api/variables/bookmarkUniqueNumericId.html
+++ b/api/variables/bookmarkUniqueNumericId.html
@@ -26,7 +26,7 @@ than a generator per instance.
diff --git a/api/variables/docPropertiesUniqueNumericId.html b/api/variables/docPropertiesUniqueNumericId.html
index 946a08e257..b53ef6ed76 100644
--- a/api/variables/docPropertiesUniqueNumericId.html
+++ b/api/variables/docPropertiesUniqueNumericId.html
@@ -27,7 +27,7 @@ one counter rather than a generator per instance.
diff --git a/usage/images.md b/usage/images.md
index d1d80db0a1..a0fb38d6bf 100644
--- a/usage/images.md
+++ b/usage/images.md
@@ -239,10 +239,10 @@ const image = new ImageRun({
Wrap options have the following properties are:
-| Property | Type | Notes | Possible Values |
-| -------- | ------------------ | -------- | ------------------------------------------- |
-| type | `TextWrappingType` | Optional | `NONE`, `SQUARE`, `TIGHT`, `TOP_AND_BOTTOM` |
-| side | `TextWrappingSide` | Optional | `BOTH_SIDES`, `LEFT`, `RIGHT`, `LARGEST` |
+| Property | Type | Notes | Possible Values |
+| -------- | ------------------ | -------- | ------------------------------------------------------ |
+| type | `TextWrappingType` | Optional | `NONE`, `SQUARE`, `TIGHT`, `THROUGH`, `TOP_AND_BOTTOM` |
+| side | `TextWrappingSide` | Optional | `BOTH_SIDES`, `LEFT`, `RIGHT`, `LARGEST` |
## Margins
diff --git a/usage/shape-patterns-and-warps.md b/usage/shape-patterns-and-warps.md
new file mode 100644
index 0000000000..7be6b9cc5d
--- /dev/null
+++ b/usage/shape-patterns-and-warps.md
@@ -0,0 +1,129 @@
+# Shape Patterns and Text Warps
+
+This page lists the preset patterns a [shape's fill](usage/shapes.md#pattern-fills) can use, and the WordArt-style warps and text directions for [text in shapes](usage/shapes.md#text-layout).
+
+Office Open XML abbreviates or numbers many of these names, such as `dkUpDiag` and `textWave2`. This library names each one after what it is, and writes the OOXML name to the file. The OOXML column lets you look a name up in the specification or find it in a document's XML.
+
+
+
+## Patterns
+
+A pattern is lines or dots in one colour (`color`) over another (`backgroundColor`).
+
+| Pattern | OOXML name | Looks like |
+| ------------------------ | ------------ | ------------------------------------------ |
+| `percent5` | `pct5` | 5% of dots |
+| `percent10` | `pct10` | 10% of dots |
+| `percent20` | `pct20` | 20% of dots |
+| `percent25` | `pct25` | 25% of dots |
+| `percent30` | `pct30` | 30% of dots |
+| `percent40` | `pct40` | 40% of dots |
+| `percent50` | `pct50` | 50% of dots |
+| `percent60` | `pct60` | 60% of dots |
+| `percent70` | `pct70` | 70% of dots |
+| `percent75` | `pct75` | 75% of dots |
+| `percent80` | `pct80` | 80% of dots |
+| `percent90` | `pct90` | 90% of dots |
+| `horizontal` | `horz` | Horizontal lines |
+| `vertical` | `vert` | Vertical lines |
+| `lightHorizontal` | `ltHorz` | Thin horizontal lines |
+| `lightVertical` | `ltVert` | Thin vertical lines |
+| `darkHorizontal` | `dkHorz` | Thick horizontal lines |
+| `darkVertical` | `dkVert` | Thick vertical lines |
+| `narrowHorizontal` | `narHorz` | Horizontal lines close together |
+| `narrowVertical` | `narVert` | Vertical lines close together |
+| `dashedHorizontal` | `dashHorz` | Dashed horizontal lines |
+| `dashedVertical` | `dashVert` | Dashed vertical lines |
+| `cross` | `cross` | Horizontal and vertical lines |
+| `downwardDiagonal` | `dnDiag` | Lines from top-left to bottom-right |
+| `upwardDiagonal` | `upDiag` | Lines from bottom-left to top-right |
+| `lightDownwardDiagonal` | `ltDnDiag` | Thin lines from top-left to bottom-right |
+| `lightUpwardDiagonal` | `ltUpDiag` | Thin lines from bottom-left to top-right |
+| `darkDownwardDiagonal` | `dkDnDiag` | Thick lines from top-left to bottom-right |
+| `darkUpwardDiagonal` | `dkUpDiag` | Thick lines from bottom-left to top-right |
+| `wideDownwardDiagonal` | `wdDnDiag` | Wide lines from top-left to bottom-right |
+| `wideUpwardDiagonal` | `wdUpDiag` | Wide lines from bottom-left to top-right |
+| `dashedDownwardDiagonal` | `dashDnDiag` | Dashed lines from top-left to bottom-right |
+| `dashedUpwardDiagonal` | `dashUpDiag` | Dashed lines from bottom-left to top-right |
+| `diagonalCross` | `diagCross` | Lines in both diagonal directions |
+| `smallCheckerBoard` | `smCheck` | Small squares, like a chess board |
+| `largeCheckerBoard` | `lgCheck` | Large squares, like a chess board |
+| `smallGrid` | `smGrid` | A fine grid |
+| `largeGrid` | `lgGrid` | A coarse grid |
+| `dottedGrid` | `dotGrid` | A grid of dots |
+| `smallConfetti` | `smConfetti` | Small scattered squares |
+| `largeConfetti` | `lgConfetti` | Large scattered squares |
+| `horizontalBrick` | `horzBrick` | Brickwork |
+| `diagonalBrick` | `diagBrick` | Brickwork on a slant |
+| `solidDiamond` | `solidDmnd` | Filled diamonds |
+| `openDiamond` | `openDmnd` | Outlined diamonds |
+| `dottedDiamond` | `dotDmnd` | Diamonds of dots |
+| `plaid` | `plaid` | Tartan |
+| `sphere` | `sphere` | Shaded balls |
+| `weave` | `weave` | Woven strips |
+| `divot` | `divot` | Short slanted strokes |
+| `shingle` | `shingle` | Overlapping tiles |
+| `wave` | `wave` | Wavy lines |
+| `trellis` | `trellis` | A lattice |
+| `zigZag` | `zigZag` | Zigzag lines |
+
+## Text warps
+
+A warp bends or stretches the text in a shape, as WordArt does. The warps that follow a path, such as `archUp` and `circle`, lay the text along one line. The `...Filled` versions spread it over the whole shape.
+
+| Warp | OOXML name |
+| ----------------------- | --------------------------- |
+| `square` | `textPlain` |
+| `stop` | `textStop` |
+| `triangleUp` | `textTriangle` |
+| `triangleDown` | `textTriangleInverted` |
+| `chevronUp` | `textChevron` |
+| `chevronDown` | `textChevronInverted` |
+| `ringInside` | `textRingInside` |
+| `ringOutside` | `textRingOutside` |
+| `archUp` | `textArchUp` |
+| `archDown` | `textArchDown` |
+| `circle` | `textCircle` |
+| `button` | `textButton` |
+| `archUpFilled` | `textArchUpPour` |
+| `archDownFilled` | `textArchDownPour` |
+| `circleFilled` | `textCirclePour` |
+| `buttonFilled` | `textButtonPour` |
+| `curveUp` | `textCurveUp` |
+| `curveDown` | `textCurveDown` |
+| `canUp` | `textCanUp` |
+| `canDown` | `textCanDown` |
+| `wave` | `textWave1` |
+| `waveInverted` | `textWave2` |
+| `doubleWave` | `textDoubleWave1` |
+| `doubleWaveInverted` | `textWave4` |
+| `inflate` | `textInflate` |
+| `deflate` | `textDeflate` |
+| `inflateBottom` | `textInflateBottom` |
+| `deflateBottom` | `textDeflateBottom` |
+| `inflateTop` | `textInflateTop` |
+| `deflateTop` | `textDeflateTop` |
+| `deflateInflate` | `textDeflateInflate` |
+| `deflateInflateDeflate` | `textDeflateInflateDeflate` |
+| `fadeRight` | `textFadeRight` |
+| `fadeLeft` | `textFadeLeft` |
+| `fadeUp` | `textFadeUp` |
+| `fadeDown` | `textFadeDown` |
+| `slantUp` | `textSlantUp` |
+| `slantDown` | `textSlantDown` |
+| `cascadeUp` | `textCascadeUp` |
+| `cascadeDown` | `textCascadeDown` |
+
+## Text directions
+
+| Direction | OOXML name | Text |
+| -------------------- | ---------------- | ------------------------------------------------------------------------------------- |
+| `horizontal` | `horz` | Left to right (the default) |
+| `topToBottom` | `vert` | Turned a quarter turn clockwise, so each line reads downwards |
+| `bottomToTop` | `vert270` | Turned a quarter turn anticlockwise, so each line reads upwards |
+| `stacked` | `wordArtVert` | Upright letters stacked one below the other, with lines running left to right |
+| `stackedRightToLeft` | `wordArtVertRtl` | Upright letters stacked one below the other, with lines running right to left |
+| `eastAsianVertical` | `eaVert` | East Asian characters upright and other text turned, with lines running right to left |
+| `mongolianVertical` | `mongolianVert` | As `eastAsianVertical`, with lines running left to right |
+
+
diff --git a/usage/shapes.md b/usage/shapes.md
index 5f6f964de1..be2c348791 100644
--- a/usage/shapes.md
+++ b/usage/shapes.md
@@ -17,6 +17,9 @@ Like an image, a shape is a run inside a `Paragraph`. It sits in the line of tex
| Place a shape anywhere on the page | `floating` | Stamp in a corner |
| Keep several shapes together as one drawing | `ShapeGroupRun` | Badge, simple diagram |
| Join shapes with lines that follow them | `ShapeCanvasRun` with connectors | Flowchart, org chart |
+| Crop a photo to a circle | `ellipse` with a picture `fill` | Profile picture |
+| Add a shadow, glow or reflection | `effects` | Card with a drop shadow |
+| Draw a shape that isn't a preset | `type: "custom"` with an SVG `path` | Logo, badge, freeform outline |
## Basic Usage
@@ -108,7 +111,7 @@ new ShapeRun({
## Fill
-`fill` can be a colour, `"none"`, a solid fill or a gradient. Colours are 6-digit hex values, with or without a `#`.
+`fill` can be a colour, `"none"`, a solid fill, a gradient, a pattern or a picture. Colours are 6-digit hex values, with or without a `#`.
```ts
// A colour
@@ -162,6 +165,56 @@ new ShapeRun({
| `angle` | `number` | Optional | Direction of a linear gradient in degrees, clockwise. `0` (the default) runs left to right and `90` runs top to bottom |
| `path` | `"circle"` \| `"rectangle"` \| `"shape"` | Optional | Makes the gradient radiate from the centre in a circle, a rectangle or following the shape's outline, instead of being linear |
+### Pattern fills
+
+A pattern fill repeats lines or dots in one colour over another. [Shape Patterns and Text Warps](usage/shape-patterns-and-warps.md#patterns) lists all 54 patterns.
+
+```ts
+new ShapeRun({
+ type: "rectangle",
+ transformation: { width: 80, height: 60 },
+ fill: { type: "pattern", pattern: "wideUpwardDiagonal", color: "2F5597", backgroundColor: "DEEBF7" },
+});
+```
+
+| Property | Type | Notes | Description |
+| ----------------- | -------------- | -------- | ---------------------------------------------------------------- |
+| `type` | `"pattern"` | Required | |
+| `pattern` | `ShapePattern` | Required | Such as `"percent20"`, `"horizontal"`, `"smallCheckerBoard"` |
+| `color` | `string` | Optional | 6-digit hex colour of the lines and dots. Default is `000000` |
+| `backgroundColor` | `string` | Optional | 6-digit hex colour of the space behind them. Default is `FFFFFF` |
+
+### Picture fills
+
+A picture fill puts a picture inside the shape, and the shape's outline crops it. `image` takes the same `type` and `data` as an [`ImageRun`](usage/images.md), including SVG with a `fallback`. The picture is stretched to fill the shape unless you `tile` it.
+
+```ts
+// A photo cropped to a circle
+new ShapeRun({
+ type: "ellipse",
+ transformation: { width: 80, height: 80 },
+ fill: { type: "picture", image: { type: "jpg", data: fs.readFileSync("./photo.jpg") } },
+ line: { color: "FFFFFF", width: 3 },
+});
+
+// A picture repeated across a heart, at a fifth of its size, with every other tile mirrored
+new ShapeRun({
+ type: "heart",
+ transformation: { width: 80, height: 80 },
+ fill: { type: "picture", image: { type: "png", data: pattern }, tile: { scale: 20, mirror: "both" } },
+});
+```
+
+| Property | Type | Notes | Description |
+| -------------- | -------------- | -------- | -------------------------------------------------------------------------------- |
+| `type` | `"picture"` | Required | |
+| `image` | `ImageSource` | Required | `{ type, data }`, as for an `ImageRun` |
+| `tile` | `PictureTile` | Optional | Repeats the picture at its own size instead of stretching it. See below |
+| `crop` | `ICropOptions` | Optional | Crops a percentage, from 0 to 100, off each side before the picture is stretched |
+| `transparency` | `number` | Optional | From `0` (opaque) to `100` (invisible) |
+
+`tile` takes a `scale` (percent of the picture's own size, default `100`), an `alignment` for the first tile (`"topLeft"`, the default, `"top"`, `"topRight"`, `"left"`, `"center"`, `"right"`, `"bottomLeft"`, `"bottom"` or `"bottomRight"`) and `mirror` (`"none"`, the default, `"horizontal"`, `"vertical"` or `"both"`), which mirrors every other tile.
+
## Line
`line` is the shape's outline, or the line itself for `line` and connector shapes. It can be a colour, `"none"` or an object:
@@ -180,14 +233,18 @@ new ShapeRun({
});
```
-| Property | Type | Notes | Description |
-| -------------- | ----------- | -------- | --------------------------------------------------- |
-| `color` | `string` | Optional | 6-digit hex colour. Default is `000000` (black) |
-| `width` | `number` | Optional | Width in points, from `0` to `1584`. Default is `1` |
-| `transparency` | `number` | Optional | From `0` (opaque) to `100` (invisible) |
-| `dash` | `LineDash` | Optional | Dash pattern. Default is a solid line |
-| `startArrow` | `Arrowhead` | Optional | Arrowhead at the start of the line |
-| `endArrow` | `Arrowhead` | Optional | Arrowhead at the end of the line |
+| Property | Type | Notes | Description |
+| -------------- | ------------------------------------------------------------------------ | -------- | ------------------------------------------------------------------------ |
+| `color` | `string` | Optional | 6-digit hex colour. Default is `000000` (black) |
+| `width` | `number` | Optional | Width in points, from `0` to `1584`. Default is `1` |
+| `transparency` | `number` | Optional | From `0` (opaque) to `100` (invisible) |
+| `dash` | `LineDash` \| `CustomLineDash` | Optional | A dash pattern, or dashes of your own. Default is a solid line |
+| `cap` | `"flat"` \| `"round"` \| `"square"` | Optional | The shape of the line's ends and of each dash's ends |
+| `join` | `"miter"` \| `"round"` \| `"bevel"` | Optional | The shape of the corners where the line turns: sharp, rounded or cut off |
+| `compound` | `"single"` \| `"double"` \| `"thickThin"` \| `"thinThick"` \| `"triple"` | Optional | Draws the line as two or three parallel lines |
+| `gradient` | `{ stops, angle?, path? }` | Optional | Colours the line with a [gradient](#gradients) instead of `color` |
+| `startArrow` | `Arrowhead` | Optional | Arrowhead at the start of the line |
+| `endArrow` | `Arrowhead` | Optional | Arrowhead at the end of the line |
@@ -207,6 +264,13 @@ new ShapeRun({
+A custom dash is a list of dashes and the gaps after them, each measured in multiples of the line's width. With round caps, a dash of length `0` draws a round dot:
+
+```ts
+// Round dots, then dashes three times as long as the line is wide
+line: { width: 3, cap: "round", dash: [{ length: 0, gap: 2 }, { length: 3, gap: 2 }] },
+```
+
An `Arrowhead` is one of `"triangle"`, `"stealth"`, `"diamond"`, `"oval"` or `"arrow"`, or an object with a `type` and a `width` and `length` of `"small"`, `"medium"` (the default) or `"large"`.
?> Arrowheads can be put on any shape's line, but they are only drawn on open shapes such as `line`, the connectors and `arc`.
@@ -230,20 +294,48 @@ new ShapeRun({
});
```
-`bodyProperties` controls where the text sits, as for [WPS Text Boxes](usage/wps-text-box.md#body-properties):
+### Text layout
+
+`textOptions` sets how the text is laid out in the shape:
```ts
new ShapeRun({
type: "rectangle",
transformation: { width: 200, height: 100 },
children: [new Paragraph("Top left")],
- bodyProperties: {
- verticalAnchor: VerticalAnchor.TOP,
- margins: { top: 45720, bottom: 45720, left: 91440, right: 91440 }, // EMUs
+ textOptions: {
+ verticalAlignment: "top",
+ margins: { top: 4, right: 8, bottom: 4, left: 8 }, // points
},
});
```
+| Property | Type | Description |
+| ---------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
+| `verticalAlignment` | `"top"` \| `"center"` \| `"bottom"` | Where the text sits between the top and bottom of the shape. Default is `"center"` |
+| `margins` | `{ top, right, bottom, left }` | Space between the shape's edges and the text, in points. Word's defaults are 7.2 left and right, 3.6 top and bottom |
+| `wrap` | `boolean` | Whether lines wrap at the shape's edges. Default is `true` |
+| `resizeShapeToFitText` | `boolean` | Grows or shrinks the shape to fit its text when Word lays it out |
+| `shrinkTextOnOverflow` | `boolean` | Makes the text smaller when there is too much of it. Can't be used with `resizeShapeToFitText` |
+| `direction` | `ShapeTextDirection` | `"horizontal"` (the default), `"topToBottom"`, `"bottomToTop"`, `"stacked"` and more |
+| `columns` | `{ count, spacing? }` | Lays the text out in 1 to 16 columns, `spacing` points apart |
+| `warp` | `ShapeTextWarp` | Bends or stretches the text like WordArt, such as `"archUp"`, `"wave"` or `"inflate"` |
+
+[Shape Patterns and Text Warps](usage/shape-patterns-and-warps.md) lists every warp and direction. Word applies `resizeShapeToFitText` and `shrinkTextOnOverflow` when it next lays the shape out, such as when the text is edited.
+
+```ts
+// WordArt: text bent into an arch
+new ShapeRun({
+ type: "rectangle",
+ transformation: { width: 200, height: 80 },
+ line: "none",
+ children: [new Paragraph({ alignment: AlignmentType.CENTER, children: [new TextRun({ text: "WordArt", size: 48, bold: true })] })],
+ textOptions: { warp: "archUp", wrap: false },
+});
+```
+
+?> Word may not show text in columns inside a shape. PowerPoint and LibreOffice do.
+
## Adjustments
Many shapes have handles in Word that change their proportions, such as the corner radius of a rounded rectangle or the thickness of an arrow. `adjustments` sets them. Each shape has its own adjustments, named after what they change:
@@ -282,6 +374,78 @@ new ShapeRun({
In TypeScript, `adjustments` only accepts the names that belong to the shape's `type`, so your editor suggests them. Word keeps each value within the range the shape allows, so a value that is too large acts like the largest allowed value.
+## Effects
+
+`effects` adds shadows, a glow, soft edges and a reflection. They can be combined, and each takes sizes in points and angles in degrees:
+
+```ts
+new ShapeRun({
+ type: "roundedRectangle",
+ transformation: { width: 120, height: 60 },
+ fill: "DEEBF7",
+ effects: {
+ shadow: {}, // Word's "Offset: Bottom Right" shadow
+ glow: { color: "FFC000", size: 8 },
+ },
+});
+```
+
+| Effect | Type | Description |
+| ------------- | ----------------- | -------------------------------------------------------------------------------------------------------- |
+| `shadow` | `ShapeShadow` | A shadow behind the shape. `{}` gives a black shadow 60% transparent, 3pt away, down and to the right |
+| `innerShadow` | `ShapeShadow` | A shadow inside the shape, as if it were cut out of the page |
+| `glow` | `ShapeGlow` | A glow around the shape: a `color`, a `size` in points (default `5`) and a `transparency` (default `60`) |
+| `softEdges` | `number` | Blurs the shape's edges inwards by this many points |
+| `reflection` | `ShapeReflection` | A reflection below the shape. `{}` gives a half reflection touching the shape |
+
+A shadow has a `color` (default `000000`), `transparency` (default `60`), `blur` in points (default `4`), `distance` in points (default `3`) and `angle`, the direction it falls in degrees clockwise from 3 o'clock (default `45`). A reflection has a `transparency` where it meets the shape (default `50`), a `size`, the percentage of the shape it reflects (default `50`), a `distance` below the shape and a `blur`, both in points.
+
+The drawing's box grows to make room for the effects, so they aren't cut off.
+
+## Custom Shapes
+
+For a shape that isn't one of the presets, give `type: "custom"` and the outline as SVG path data. The path can be in any units: it is scaled so the box around it fills the shape's `transformation`.
+
+```ts
+// A star
+new ShapeRun({
+ type: "custom",
+ path: "M 50 0 L 61 35 L 98 35 L 68 57 L 79 91 L 50 70 L 21 91 L 32 57 L 2 35 L 39 35 Z",
+ transformation: { width: 80, height: 76 },
+ fill: "FFC000",
+});
+
+// An open curve, with arrowheads
+new ShapeRun({
+ type: "custom",
+ path: "M 0 50 C 30 0 70 100 100 50",
+ transformation: { width: 120, height: 50 },
+ line: { width: 2, endArrow: "triangle" },
+});
+```
+
+The path can use the commands `M` (move), `L` (line), `H` and `V` (horizontal and vertical lines), `C` and `S` (cubic curves), `Q` and `T` (quadratic curves), `A` (elliptical arcs) and `Z` (close), in upper case for absolute coordinates and lower case for relative ones. A path that isn't closed is still filled, as in SVG, but its line and arrowheads are drawn only along the path.
+
+Custom shapes can hold text like any other shape. Connectors attach to the corners and ends of the path.
+
+## Links and Decorative Shapes
+
+`link` makes a shape open a web address when it is clicked (with Ctrl, in Word). `decorative: true` is Word's **Mark as decorative**: screen readers skip the shape, which suits divider bars and other shapes that don't carry meaning.
+
+```ts
+new ShapeRun({
+ type: "roundedRectangle",
+ transformation: { width: 160, height: 40 },
+ fill: "4472C4",
+ children: [new Paragraph("Visit docx.js.org")],
+ link: "https://docx.js.org",
+});
+
+new ShapeRun({ type: "rectangle", transformation: { width: 600, height: 3 }, fill: "BFBFBF", line: "none", decorative: true });
+```
+
+Groups, canvases and the shapes, pictures and groups inside them take `link` and `decorative` too.
+
## Inline and Floating
A shape sits in the line of text by default. It is aligned to the text baseline and its height adds to the height of the line.
@@ -302,7 +466,7 @@ new ShapeRun({
});
```
-?> Use `TextWrappingType.SQUARE` or `TextWrappingType.TOP_AND_BOTTOM` to wrap text around a shape.
+?> 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.
## Alternative Text
@@ -341,6 +505,34 @@ new ShapeGroupRun({
A group can be `floating`, and can have `altText`, just like a single shape.
+### Pictures and Groups Inside Groups
+
+A group or canvas can also hold pictures and other groups. A picture takes an `image`, as for an `ImageRun`, and a `transformation`. Connectors attach to the middle of its sides, and it can have a `line`, `effects` and a `crop`:
+
+```ts
+{ id: "logo", type: "picture", image: { type: "png", data: fs.readFileSync("./logo.png") }, transformation: { width: 60, height: 70 } }
+```
+
+A group inside a group keeps its children together. Its children are positioned relative to each other, and its `transformation.offset` places the group. Give it a `width` and `height` to scale its children, or a `rotation` or `flip`:
+
+```ts
+new ShapeGroupRun({
+ children: [
+ { type: "rectangle", transformation: { width: 200, height: 100 }, fill: "F2F2F2" },
+ {
+ type: "group",
+ transformation: { offset: { left: 60, top: 10 }, width: 40, height: 40, rotation: 20 }, // half size, turned
+ children: [
+ { type: "ellipse", transformation: { width: 80, height: 80 }, fill: "5B9BD5", line: "none" },
+ { type: "star5", transformation: { offset: { left: 15, top: 12 }, width: 50, height: 50 }, fill: "FFC000" },
+ ],
+ },
+ ],
+});
+```
+
+Connectors can attach to shapes and pictures inside groups, so every `id` must be different across the whole drawing. A connector inside a group can only join shapes in that group.
+
## Connectors
A connector is a line from one shape to another. Give each shape an `id`, then add a child with `type: "connector"` that names the shapes it joins. The connector is drawn between them, so it needs no size or position:
@@ -361,6 +553,13 @@ A connector attaches to the sides of the shapes that face each other. To choose
{ type: "connector", from: { id: "fix", side: "top" }, to: { id: "draft", side: "right" }, route: "elbow" }
```
+To attach to a particular point, give a `point` instead of a `side`, as percentages of the shape's width and height before it is rotated. The connector attaches to the connection point nearest it, such as the tip of a diamond:
+
+```ts
+// From the right-hand point of a decision diamond
+{ type: "connector", from: { id: "ask", point: { x: 100, y: 50 } }, to: "wait" }
+```
+
`route` sets the path the connector takes:
| `route` | Path |
@@ -369,11 +568,21 @@ A connector attaches to the sides of the shapes that face each other. To choose
| `"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.
+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).
+
+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.
+
+`label` puts text on a connector, in a box centred on the middle of its route. Give a background `fill` to hide the line behind the text:
+
+```ts
+{ type: "connector", from: "ask", to: "go", label: { text: "Yes", fill: "FFFFFF" } }
+```
+
+A label is a string, or an object with `text` (a string or paragraphs), and optional `width` and `height` in pixels, `fill` and `line`. It is a separate text box, so Word doesn't move it when the connector moves.
The connector's `line` works as for any shape: `startArrow` is drawn at `from` and `endArrow` at `to`. Connectors can come before or after the shapes they join in `children`; the order sets which is drawn on top.
-A connector attaches at one of the points Word offers on the shape, such as the middle of a rectangle's side or the tip of a triangle, so Word treats it as connected. Shapes without connection points, such as the chart shapes, are connected at the middle of a side without being attached.
+A connector attaches at one of the points Word offers on the shape, such as the middle of a rectangle's side or the tip of a triangle, so Word treats it as connected. Shapes without connection points, such as the chart shapes, are connected at the middle of a side, or at the `point` given, without being attached.
## Canvases
@@ -390,32 +599,36 @@ new ShapeCanvasRun({
});
```
-Shapes are positioned with `transformation.offset`, in pixels from the canvas's top-left corner. Without a `transformation`, the canvas reaches from its corner to the right and bottom of the shapes. A canvas can be `floating` and can have `altText`.
+Shapes are positioned with `transformation.offset`, in pixels from the canvas's top-left corner. Without a `transformation`, the canvas reaches from its corner to the right and bottom of the shapes, including their lines, arrowheads and effects. Anything drawn above or to the left of the corner, such as the line of a shape at the corner, moves everything onto the canvas. A canvas can be `floating` and can have `altText`.
## Options
### ShapeRun
-| Property | Type | Notes | Description |
-| ---------------- | ------------------------ | -------- | -------------------------------------------------------------------------------- |
-| `type` | `PresetShapeType` | Required | The preset shape, such as `"rectangle"`, `"ellipse"` or `"line"` |
-| `transformation` | `IMediaTransformation` | 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) |
-| `children` | `Paragraph[]` | Optional | Text inside the shape |
-| `bodyProperties` | `IBodyPropertiesOptions` | Optional | Where the text sits in the shape |
-| `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 |
+| Property | Type | Notes | Description |
+| ---------------- | ------------------------------- | -------- | -------------------------------------------------------------------------------- |
+| `type` | `PresetShapeType` \| `"custom"` | Required | The preset shape, such as `"rectangle"`, `"ellipse"` or `"line"`, or `"custom"` |
+| `transformation` | `IMediaTransformation` | 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) |
+| `children` | `Paragraph[]` | Optional | Text 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 |
### ShapeGroupRun
-| Property | Type | Notes | Description |
-| ---------------- | --------------------------- | -------- | ------------------------------------------------------------------------------------------------------ |
-| `children` | `IShapeGroupChildOptions[]` | Required | Shapes, each with the options of a `ShapeRun` except `floating`, plus an optional `id`, and connectors |
-| `transformation` | `IMediaTransformation` | Optional | Size in pixels, rotation and flip. Defaults to the box around the children |
-| `floating` | `IFloating` | Optional | Positions the group on the page |
-| `altText` | `DocPropertiesOptions` | Optional | `name`, `description` and `title` for screen readers |
+| Property | Type | Notes | Description |
+| ---------------- | --------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------- |
+| `children` | `IShapeGroupChildOptions[]` | Required | Shapes, each with the options of a `ShapeRun` except `floating`, plus an optional `id`, pictures, groups and connectors |
+| `transformation` | `IMediaTransformation` | Optional | Size in pixels, rotation and flip. Defaults to the box around the children |
+| `floating` | `IFloating` | Optional | Positions the group on the page |
+| `altText` | `DocPropertiesOptions` | Optional | `name`, `description` and `title` for screen readers |
### ShapeCanvasRun
@@ -430,22 +643,31 @@ Shapes are positioned with `transformation.offset`, in pixels from the canvas's
### Connector
-| Property | Type | Notes | Description |
-| --------- | ---------------------- | -------- | ------------------------------------------------------------------- |
-| `type` | `"connector"` | Required | |
-| `from` | `ConnectorEnd` | Required | The `id` of the shape it starts at, or `{ id, side }` |
-| `to` | `ConnectorEnd` | Required | The `id` of the shape it ends at, or `{ id, side }` |
-| `route` | `ConnectorRoute` | Optional | `"straight"` (the default), `"elbow"` or `"curved"` |
-| `line` | `ShapeLine` | Optional | See [Line](#line). `startArrow` is at `from` and `endArrow` at `to` |
-| `altText` | `DocPropertiesOptions` | Optional | `name`, `description` and `title` for screen readers |
+| Property | Type | Notes | Description |
+| --------- | ---------------------------- | -------- | ------------------------------------------------------------------------ |
+| `type` | `"connector"` | Required | |
+| `from` | `ConnectorEnd` | Required | The `id` of the shape it starts at, or `{ id, side }` or `{ id, point }` |
+| `to` | `ConnectorEnd` | Required | The `id` of the shape it ends at, or `{ id, side }` or `{ id, point }` |
+| `route` | `ConnectorRoute` | Optional | `"straight"` (the default), `"elbow"` or `"curved"` |
+| `margin` | `number` | Optional | How far out elbow and curved connectors go, in pixels. Default `24` |
+| `label` | `string` \| `ConnectorLabel` | Optional | Text in a box on the middle of the route |
+| `line` | `ShapeLine` | Optional | See [Line](#line). `startArrow` is at `from` and `endArrow` at `to` |
+| `altText` | `DocPropertiesOptions` | Optional | `name`, `description` and `title` for screen readers |
-## ShapeRun vs WpsShapeRun
+## ShapeRun vs WpsShapeRun and WpgGroupRun
-[`WpsShapeRun`](usage/wps-text-box.md) draws a rectangular text box. `ShapeRun` draws any preset shape, with or without text, and has simpler options for fills and lines. Both write the same kind of DrawingML shape, so prefer `ShapeRun` for new documents.
+[`WpsShapeRun`](usage/wps-text-box.md) draws a rectangular text box, and `WpgGroupRun` groups text boxes and pictures. `ShapeRun` draws any shape, with or without text, and `ShapeGroupRun` groups shapes, pictures and groups, with simpler options for fills, lines, effects and text. They write the same kinds of DrawingML elements. `WpsShapeRun` and `WpgGroupRun` are deprecated, so use `ShapeRun` and `ShapeGroupRun` for new documents.
## Compatibility
-Shapes are written as DrawingML shapes (`wps:wsp`), groups (`wpg:wgp`) 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.
+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.
+
+LibreOffice (checked with version 26.8) draws most shapes as Word does, but:
+
+- It doesn't draw reflections, inner shadows, double and triple lines (`compound`) or gradient lines. A gradient line is drawn in its first colour.
+- It draws an elbow connector that goes around a shape as if it didn't, because it can't draw a connector whose middle bend is outside the box between its ends.
+- It draws the text of a shape that has `resizeShapeToFitText`, or of a group or canvas that starts a new line, on the first line of the paragraph.
+- It doesn't turn the text of a rotated shape with the shape.
## Examples
@@ -480,3 +702,19 @@ A flowchart on a canvas whose connectors stay attached, straight, elbow and curv
[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/110-shape-connectors.ts ":include")
_Source: https://github.com/dolanmiu/docx/blob/master/demo/110-shape-connectors.ts_
+
+### Shape styles
+
+Effects, pattern and picture fills, line styles, text layout and WordArt warps, custom shapes, links and decorative shapes.
+
+[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/111-shape-styles.ts ":include")
+
+_Source: https://github.com/dolanmiu/docx/blob/master/demo/111-shape-styles.ts_
+
+### Diagrams
+
+Pictures and groups on a canvas, connector labels, connecting to a point on a shape, and connectors that go around shapes.
+
+[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/112-shape-diagrams.ts ":include")
+
+_Source: https://github.com/dolanmiu/docx/blob/master/demo/112-shape-diagrams.ts_
diff --git a/usage/wps-text-box.md b/usage/wps-text-box.md
index 9df942de0d..f4600ed4b1 100644
--- a/usage/wps-text-box.md
+++ b/usage/wps-text-box.md
@@ -4,7 +4,7 @@ WPS (WordProcessing Shape) text boxes are the modern, DrawingML-based alternativ
!> `WPS Text Boxes` require an understanding of [Paragraphs](usage/paragraph.md).
-?> For shapes other than rectangles, or simpler fill and line options, use [`ShapeRun`](usage/shapes.md). Any shape can hold text through its `children`.
+!> `WpsShapeRun` is deprecated. Use [`ShapeRun`](usage/shapes.md) with `type: "rectangle"` and `children` instead: it has simpler options for fills, lines, effects and text layout, and any shape can hold text.
## When to Use WPS vs VML Text Boxes
The unique identifier for this abstract numbering definition.