处理实心长方形(有constant_width的线)

master
liaoxianglian 5 months ago
parent be39194a88
commit aca0c7803c

@ -102,6 +102,8 @@ impl TryFrom<&LwPolyline> for Line {
antialias: false, antialias: false,
style: if poly.thickness > 0.1 { style: if poly.thickness > 0.1 {
"line-style:normal;line-weight:normal;filling:none;color:black" "line-style:normal;line-weight:normal;filling:none;color:black"
} else if poly.constant_width > 1.0{
"line-style:normal;line-weight:hight;filling:none;color:black"
} else { } else {
"line-style:normal;line-weight:thin;filling:none;color:black" "line-style:normal;line-weight:thin;filling:none;color:black"
} }

@ -185,9 +185,9 @@ impl From<&Solid> for Polygon {
//reasons...I'm trying to think if there is a time we might want to turn it on? //reasons...I'm trying to think if there is a time we might want to turn it on?
antialias: false, antialias: false,
style: if solid.thickness > 0.5 { style: if solid.thickness > 0.5 {
"line-style:normal;line-weight:normal;filling:none;color:black" "line-style:normal;line-weight:normal;filling:black;color:black"
} else { } else {
"line-style:normal;line-weight:thin;filling:none;color:black" "line-style:normal;line-weight:thin;filling:black;color:black"
} }
.into(), .into(),
} }

Loading…
Cancel
Save