Flip components if flipped in Specctra DSN

This commit is contained in:
Mikolaj Wielgus 2026-03-11 08:30:52 +01:00
parent fde7b163df
commit 8cd52ca75c
2 changed files with 5 additions and 5 deletions

View File

@ -150,7 +150,7 @@ impl Displayer {
ui.painter().add(egui::Shape::convex_polygon(
points,
egui::Color32::RED,
color,
egui::Stroke::new(5.0 / viewport.scale_factor(), color),
));
}

View File

@ -105,7 +105,7 @@ impl Board {
pin.point_with_rotation(),
layer,
(circle.diameter / 2.0) as u64,
false,
!place_side_is_front,
)
}
Shape::Rect(rect) => {
@ -119,7 +119,7 @@ impl Board {
rect.x2,
rect.y2,
layer,
false,
!place_side_is_front,
)
}
Shape::Path(path) => {
@ -131,7 +131,7 @@ impl Board {
&path.coords,
path.width,
layer,
false,
!place_side_is_front,
)
}
Shape::Polygon(polygon) => {
@ -143,7 +143,7 @@ impl Board {
&polygon.coords,
polygon.width,
layer,
false,
!place_side_is_front,
)
}
}