Make the Outline render mode draw with consistent stroke thickness at any viewport zoom (#3848)

* Remove dead code for now-retired SVG implementation

* Implement viewport zoom compensation for thickness
This commit is contained in:
Keavon Chambers
2026-03-02 20:13:05 -08:00
committed by GitHub
parent a8b5203d6c
commit 7cc3097acd
7 changed files with 7 additions and 26 deletions
@@ -432,10 +432,6 @@ impl TableRowLayout for Vector {
TextLabel::new("Stroke Transform").narrow(true).widget_instance(),
TextLabel::new(format_transform_matrix(&stroke.transform)).narrow(true).widget_instance(),
]);
table_rows.push(vec![
TextLabel::new("Stroke Non-Scaling").narrow(true).widget_instance(),
TextLabel::new((if stroke.non_scaling { "Yes" } else { "No" }).to_string()).narrow(true).widget_instance(),
]);
table_rows.push(vec![
TextLabel::new("Stroke Paint Order").narrow(true).widget_instance(),
TextLabel::new(stroke.paint_order.to_string()).narrow(true).widget_instance(),
@@ -515,7 +515,6 @@ fn apply_usvg_stroke(stroke: &usvg::Stroke, modify_inputs: &mut ModifyInputsCont
align: StrokeAlign::Center,
paint_order: PaintOrder::StrokeAbove,
transform,
non_scaling: false,
})
}
}