You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/diagram/shapes.md
+19-7Lines changed: 19 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,7 @@ Some Shape types provide unique behavior or settings:
137
137
````
138
138
* The `Terminator` Shape normally requires a `Width` that is larger than the `Height`.
139
139
* The `Text` Shape has no borders and background. It occupies the minimum required amount of space to enclose the text content. To display text Shapes with some empty space around the content, use transparent Shapes of another type.
140
+
* All shapes, except `Circle`, `Image`, `Rectangle`, and `Text` can display with rounded corners. See [`CornerRadius` in the Styling section](#styling).
140
141
141
142
>caption Using transparent Rectangle shapes instead of Text shapes
142
143
@@ -215,21 +216,26 @@ The following Shape styling options are available in child tags of `<DiagramShap
215
216
* Rotation angle
216
217
* Border (stroke) color, type, width, and opacity
217
218
219
+
In addition to the above:
220
+
221
+
*`<DiagramShapeDefaults>` and `<DiagramShape>` have a `CornerRadius` parameter that rounds both the border and the background at the Shape corners. If you need a rectangle shape with rounded corners, then use the [`Process` Shape type](#shape-types) instead of `Rectangle`.
222
+
*`<DiagramShapeDefaultsContent>` and `<DiagramShapeContent>` have a `RelativePadding` parameter that adds padding as a ratio of the Shape width. For example, `RelativePadding="0.1"` applies a 10% padding. In some cases, you can increase the padding to force the Shape text to wrap.
223
+
218
224
>caption Setting global and Shape-specific color styles
0 commit comments