diff --git a/D03_PlanAnalysis/D03_PlanAnalysis_UI_DrawPaint.ts b/D03_PlanAnalysis/D03_PlanAnalysis_UI_DrawPaint.ts index 87f532158..b1890160e 100644 --- a/D03_PlanAnalysis/D03_PlanAnalysis_UI_DrawPaint.ts +++ b/D03_PlanAnalysis/D03_PlanAnalysis_UI_DrawPaint.ts @@ -43,7 +43,7 @@ export function strokeCased( dash: number[] = [], ): void { context.setLineDash(dash); - context.lineWidth = width + 3; + context.lineWidth = width + 4; context.strokeStyle = planColors().casing; context.stroke(); context.lineWidth = width; diff --git a/D03_PlanAnalysis/D03_PlanAnalysis_UI_Map.ts b/D03_PlanAnalysis/D03_PlanAnalysis_UI_Map.ts index ee67d6a4d..0681865f2 100644 --- a/D03_PlanAnalysis/D03_PlanAnalysis_UI_Map.ts +++ b/D03_PlanAnalysis/D03_PlanAnalysis_UI_Map.ts @@ -56,7 +56,7 @@ export function planColors(): { active: themeColor("--draw-map-sketch", "#ffe94d"), warn: themeColor("--draw-map-warn", "#ff5a4d"), measure: themeColor("--draw-map-measure", "#ffffff"), - casing: "rgba(0, 0, 0, 0.85)", + casing: "rgba(0, 0, 0, 0.9)", halo: "rgba(0, 0, 0, 0.65)", }; } diff --git a/resources/tester/test_600_3_zoom_limit.py b/resources/tester/test_600_3_zoom_limit.py new file mode 100644 index 000000000..13c5b4b61 --- /dev/null +++ b/resources/tester/test_600_3_zoom_limit.py @@ -0,0 +1,31 @@ +"""600-3 줌아웃 한도 인자 지킴 — 휠 부품 하한은 인자가 있을 때만 바뀜(B05 · 추천 지도는 안 줌 = 0.5 그대로). + +./venv/Scripts/python.exe -m pytest resources/tester/test_600_3_zoom_limit.py -q +""" + +import re +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[2] +read = lambda rel: (ROOT / rel).read_text(encoding="utf-8") # noqa: E731 + +INPUT = read("B05_Profile/B05_Profile_UI_RouteEdit_Input.ts") + + +def test_하한_기본은_0_5(): + assert re.search(r"const MIN_SCALE = 0\.5;", INPUT) + assert "params.minScale?.() ?? MIN_SCALE" in INPUT + + +def test_B05_는_하한_인자를_안_줌(): + for rel in ( + "B05_Profile/B05_Profile_UI_RouteEdit.ts", + "B05_Profile/B05_Profile_UI_RouteEdit_Recommend_Map.ts", + ): + assert "minScale" not in read(rel), rel + + +def test_예정노선만_한반도_폭을_줌(): + plan = read("D03_PlanAnalysis/D03_PlanAnalysis_UI_Map.ts") + assert "MAP_MAX_VIEW_WIDTH_M = 600_000" in plan + assert "minScale:" in plan