summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/visualize/polygon.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/visualize/polygon.rs')
-rw-r--r--crates/typst-library/src/visualize/polygon.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/typst-library/src/visualize/polygon.rs b/crates/typst-library/src/visualize/polygon.rs
index 42b08343..d75e1a65 100644
--- a/crates/typst-library/src/visualize/polygon.rs
+++ b/crates/typst-library/src/visualize/polygon.rs
@@ -43,7 +43,6 @@ pub struct PolygonElem {
///
/// 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<Stroke>>,
@@ -117,10 +116,10 @@ impl PolygonElem {
let mut elem = PolygonElem::new(vertices);
if let Some(fill) = fill {
- elem.push_fill(fill);
+ elem.fill.set(fill);
}
if let Some(stroke) = stroke {
- elem.push_stroke(stroke);
+ elem.stroke.set(stroke);
}
elem.pack().spanned(span)
}