From f8271e7559c82c050eefe877786b17a4f5c1492a Mon Sep 17 00:00:00 2001 From: umsangdon Date: Fri, 30 Oct 2026 16:00:43 +0900 Subject: [PATCH] =?UTF-8?q?feat(D=20=EC=98=88=EC=A0=95=EB=85=B8=EC=84=A0):?= =?UTF-8?q?=20=EA=B2=80=EC=9D=80=20=ED=85=8C=20=EB=91=90=EA=BB=8D=EA=B2=8C?= =?UTF-8?q?=20=C2=B7=20=EC=A4=8C=EC=95=84=EC=9B=83=20=ED=95=9C=EB=8F=84=20?= =?UTF-8?q?=EC=A7=80=ED=82=B4=20=EC=8B=9C=ED=97=98=20(PLAN=20600-1=20?= =?UTF-8?q?=C2=B7=20600-3=20=C2=B7=20=EC=9A=94=EA=B5=AC=20463-24)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - strokeCased 테 +4 px · casing 투명도 0.9 — 밝은 회색 바탕(위성 끔 · 음영 켬)에서 미리보기 대비 3 : 1 이상 - 새 시험 test_600_3_zoom_limit — 휠 하한 인자 기본 0.5 · B05 는 인자 안 줌 · 예정노선만 600 km Co-Authored-By: Claude Sonnet 5.5 --- .../D03_PlanAnalysis_UI_DrawPaint.ts | 2 +- D03_PlanAnalysis/D03_PlanAnalysis_UI_Map.ts | 2 +- resources/tester/test_600_3_zoom_limit.py | 31 +++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 resources/tester/test_600_3_zoom_limit.py diff --git a/D03_PlanAnalysis/D03_PlanAnalysis_UI_DrawPaint.ts b/D03_PlanAnalysis/D03_PlanAnalysis_UI_DrawPaint.ts index 0e81c63f5..29eec9dad 100644 --- a/D03_PlanAnalysis/D03_PlanAnalysis_UI_DrawPaint.ts +++ b/D03_PlanAnalysis/D03_PlanAnalysis_UI_DrawPaint.ts @@ -41,7 +41,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 54b93fc0a..362e17aea 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