Add rotation properties to the Text docs

Amends 7896e645b2
This commit is contained in:
Simon Hausmann 2024-07-03 11:16:58 +02:00
parent 97de0d8ad8
commit bc458ebb26

View file

@ -738,6 +738,9 @@ and the text itself.
- **`stroke`** (_in_ _brush_): The brush used for the text outline (default value: `transparent`).
- **`stroke-width`** (_in_ _length_): The width of the text outline. If the width is zero, then a hairline stroke (1 physical pixel) will be rendered.
- **`stroke-style`** (_in_ _enum [`TextStrokeStyle`](enums.md#textstrokestyle)_): The style/alignment of the text outline (default value: `outside`).
- **`rotation-angle`** (_in_ _angle_), **`rotation-origin-x`** (_in_ _length_), **`rotation-origin-y`** (_in_ _length_):
Rotates the text by the given angle around the specified origin point. The default origin point is the center of the element.
When these properties are set, the `Text` can't have children.
### Example