fix: clarify EM overview path layers

This commit is contained in:
梁薄云
2026-08-09 19:17:22 +08:00
parent 76fa2900ce
commit bc76ff45c8
3 changed files with 126 additions and 53 deletions
@@ -45,6 +45,24 @@ internal static class WebAssetChecks
"overview renders its own metric coordinate system");
Verification.True(js.Contains("X (m)") && js.Contains("Y (m)"),
"overview labels both metric axes");
Verification.True(css.Contains("--world-smoothed-path"),
"overview defines a dedicated smoothed-path color");
Verification.True(css.Contains("--world-em-trajectory"),
"overview defines a dedicated EM-path color");
Verification.True(css.Contains(".world-marker-shape"),
"overview marker shapes use a shared screen-space class");
Verification.True(css.Contains(".marker-smooth-start"),
"overview styles the smoothed-path start marker");
Verification.True(js.Contains("function markerTransform("),
"overview anchors fixed-size markers in world coordinates");
Verification.True(js.Contains("function appendWorldMarker("),
"overview centralizes fixed-size marker rendering");
Verification.True(!js.Contains("const corners = [[.38, .18]"),
"vehicle marker no longer uses a large world-size rectangle");
Verification.True(!css.Contains(".marker-vehicle .vehicle-outline { fill: none; stroke: #20252b; stroke-width: .7; }"),
"vehicle outline no longer uses a world-scale heavy stroke");
Verification.True(!css.Contains(".marker-vehicle .vehicle-heading { stroke: #20252b; stroke-width: .8; }"),
"vehicle marker no longer uses world-scale heavy strokes");
Verification.True(css.Contains(".marker-vehicle"), "vehicle marker semantic class");
Verification.True(css.Contains(".marker-plan-start"), "plan start marker semantic class");
Verification.True(css.Contains(".marker-gear-switch"), "gear-switch marker semantic class");