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 eaf554f commit c1ba710Copy full SHA for c1ba710
node-graph/libraries/rendering/src/render_ext.rs
@@ -113,7 +113,7 @@ impl RenderExt for Stroke {
113
}
114
115
// Set to None if the value is the SVG default
116
- let weight = (self.weight != 1.).then_some(self.weight);
+ let weight = (self.weight != if self.align == StrokeAlign::Center { 1. } else { 1. / 2. }).then_some(self.weight);
117
let dash_array = (!self.dash_lengths.is_empty()).then_some(self.dash_lengths());
118
let dash_offset = (self.dash_offset != 0.).then_some(self.dash_offset);
119
let stroke_cap = (self.cap != StrokeCap::Butt).then_some(self.cap);
0 commit comments