summaryrefslogtreecommitdiff
path: root/library/src/visualize/path.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-05-17 14:41:46 +0200
committerLaurenz <laurmaedje@gmail.com>2023-05-17 14:41:46 +0200
commit551ea99d05166b0be50792f767ddd38b996e32fa (patch)
treeec5e86a087e79e8c181c7d4b904216a775227e2d /library/src/visualize/path.rs
parent46aace78ac4ac1c075b9b1670dbb7372df1a0a82 (diff)
Show default values in documentation
Fixes #169 Fixes #1102
Diffstat (limited to 'library/src/visualize/path.rs')
-rw-r--r--library/src/visualize/path.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/library/src/visualize/path.rs b/library/src/visualize/path.rs
index 9b3fd876..c9b596c7 100644
--- a/library/src/visualize/path.rs
+++ b/library/src/visualize/path.rs
@@ -27,8 +27,11 @@ pub struct PathElem {
/// [non-zero winding rule](https://en.wikipedia.org/wiki/Nonzero-rule).
pub fill: Option<Paint>,
- /// How to stroke the path. See the
- /// [polygon's documentation]($func/polygon.stroke) for more details.
+ /// How to stroke the path. This can be:
+ ///
+ /// See the [line's documentation]($func/line.stroke) for more details. Can
+ /// be set to `{none}` to disable the stroke or to `{auto}` for a stroke of
+ /// `{1pt}` black if and if only if no fill is given.
#[resolve]
#[fold]
pub stroke: Smart<Option<PartialStroke>>,