feat(D 예정노선): 검은 테 두껍게 · 줌아웃 한도 지킴 시험 (PLAN 600-1 · 600-3 · 요구 463-24)
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user