We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6862e89 commit b82a644Copy full SHA for b82a644
1 file changed
node-graph/libraries/rendering/src/render_ext.rs
@@ -112,8 +112,10 @@ impl RenderExt for Stroke {
112
return String::new();
113
}
114
115
+ let default_weight = if self.align != StrokeAlign::Center && render_params.aligned_strokes { 1. / 2. } else { 1. };
116
+
117
// Set to None if the value is the SVG default
- let weight = (self.weight != if self.align == StrokeAlign::Center { 1. } else { 1. / 2. }).then_some(self.weight);
118
+ let weight = (self.weight != default_weight).then_some(self.weight);
119
let dash_array = (!self.dash_lengths.is_empty()).then_some(self.dash_lengths());
120
let dash_offset = (self.dash_offset != 0.).then_some(self.dash_offset);
121
let stroke_cap = (self.cap != StrokeCap::Butt).then_some(self.cap);
0 commit comments