@@ -836,6 +836,16 @@ export interface Style {
836836 */
837837 noWrap ?: boolean | undefined ;
838838
839+ /**
840+ * Controls the line breaking behavior.
841+ *
842+ * - `normal` breaks lines at spaces
843+ * - `break-all` breaks lines anywhere
844+ *
845+ * Defaults to `normal`.
846+ */
847+ wordBreak ?: "normal" | "break-all" | undefined ;
848+
839849 /**
840850 * Space between columns in `pt`.
841851 *
@@ -1043,13 +1053,13 @@ export interface ContentCanvas extends ContentBase, ForbidOtherElementProperties
10431053 */
10441054export interface ContentSvg extends ContentBase , ContentLink , ForbidOtherElementProperties < "svg" > {
10451055 /**
1046- * Renders the given SVG content string as an image.
1056+ * Renders the given SVG element or content string as an image.
10471057 *
10481058 * For images other than SVG, use the `image` property instead.
10491059 *
10501060 * Simple vectors can also be rendered using the `canvas` property instead.
10511061 */
1052- svg : string ;
1062+ svg : string | SVGElement ;
10531063
10541064 /**
10551065 * Width of the image in `pt`.
@@ -1563,6 +1573,15 @@ export interface OrderedListElementProperties {
15631573 * Defaults to the list's {@link ContentOrderedList.type}.
15641574 */
15651575 listType ?: OrderedListType | undefined ;
1576+
1577+ /**
1578+ * Color of the list marker (i.e. number).
1579+ *
1580+ * Supports well-known color names like `blue` or hexadecimal color strings like `#ccffcc`.
1581+ *
1582+ * Defaults to the list's marker color.
1583+ */
1584+ markerColor ?: string | undefined ;
15661585}
15671586
15681587/**
@@ -1590,6 +1609,15 @@ export interface UnorderedListElementProperties {
15901609 * Defaults to the list's {@link ContentUnorderedList.type}.
15911610 */
15921611 listType ?: UnorderedListType | undefined ;
1612+
1613+ /**
1614+ * Color of the list marker (i.e. bullet point).
1615+ *
1616+ * Supports well-known color names like `blue` or hexadecimal color strings like `#ccffcc`.
1617+ *
1618+ * Defaults to the list's marker color.
1619+ */
1620+ markerColor ?: string | undefined ;
15931621}
15941622
15951623/**
@@ -2069,7 +2097,7 @@ export interface TDocumentDefinitions {
20692097 *
20702098 * @param currentNode - The current content node to check.
20712099 * @param followingNodesOnPage - The content nodes defined after the current node on the same page.
2072- * @param nodesOnNextPage - The content nodes on the page after the current node's page.
2100+ * @param nodesOnNextPage - The content nodes on the next page.
20732101 * @param previousNodesOnPage - The content nodes defined before the current node on the same page.
20742102 *
20752103 * @returns whether to insert a page break before the current node.
0 commit comments