Merge remote-tracking branch 'origin/sub_laptop_4' into main_laptop_1

This commit is contained in:
2026-10-31 22:52:54 +09:00
3 changed files with 18 additions and 4 deletions
+15 -1
View File
@@ -29,7 +29,10 @@ DRAW_READS = [
("B05_Profile/B05_Profile_UI_RouteEdit_Render.ts", '"--draw-surface"'),
("B05_Profile/B05_Profile_UI_RouteEdit_Render.ts", '"--draw-text-secondary"'),
("B05_Profile/B05_Profile_UI_RouteEdit_Render.ts", '"--draw-danger"'),
("B05_Profile/B05_Profile_UI_RouteEdit_RecPreview.ts", '"--draw-map-sketch"'), # 626-1 추천 보기
(
"B05_Profile/B05_Profile_UI_RouteEdit_RecPreview.ts",
'"--draw-map-sketch"',
), # 626-1 추천 보기
("B05_Profile/B05_Profile_UI_Viewer.ts", '"--draw-surface-raised"'),
("B04_PreProcess/B04_PreProcess_UI_Camera.ts", '"--draw-surface-raised"'),
("D03_PlanAnalysis/D03_PlanAnalysis_UI_Map.ts", '"--draw-map-sketch"'),
@@ -185,6 +188,17 @@ def test_map_drawing_colors_fixed_and_readable_on_dark_map():
assert (lum + 0.05) / 0.05 >= 3, name
def test_slope_down_node_distinct_from_route_mint():
"""625-5 − 노드 색 = 진한 파랑 · 민트 노선 선(route-0)과 · 어두운 바탕과 · 검은 테와 각각 ≥ 3 : 1."""
light = _blocks(THEME.read_text(encoding="utf-8"))["light"]
blue = light["--draw-map-slope-down"]
assert blue == "#3b6bff"
for other in (light["--draw-map-route-0"], "#1f2937"):
hi, lo = sorted((_lum(blue), _lum(other)), reverse=True)
assert (hi + 0.05) / (lo + 0.05) >= 3, other
assert (_lum(blue) + 0.05) / 0.05 >= 3
def test_paint_network_uses_cased_route_lines():
src = (ROOT / "D03_PlanAnalysis/D03_PlanAnalysis_UI_DrawPaint.ts").read_text(encoding="utf-8")
body = src[src.index("export function paintNetwork") : src.index("export function pointLayer")]