diff --git a/B05_Profile/B05_Profile_UI_RouteEdit.ts b/B05_Profile/B05_Profile_UI_RouteEdit.ts
index 3d05ffc66..f08e4e559 100644
--- a/B05_Profile/B05_Profile_UI_RouteEdit.ts
+++ b/B05_Profile/B05_Profile_UI_RouteEdit.ts
@@ -56,7 +56,6 @@ import {
captureView,
createViewMemory,
fitCanvas,
- fitView,
openingView,
restoreSavedView,
screenToMetric,
@@ -318,13 +317,6 @@ export async function mountRouteEditor(
rotation.set(opening.rotationRad);
viewReady = true;
}
- // [맞춤] — 처음 그림과 같은 등고 영역 맞춤(회전 0 · 349-0). 셈은 `_View` 몫.
- overlay.querySelector('[data-act="fit"]')!.addEventListener("click", () => {
- if (!meta || view.width <= 0 || !planned.length) return;
- view = fitView(meta, view, planned, contours?.layer ?? null);
- rotation.set(0);
- draw();
- });
const toScreen = (vertex: Vertex): [number, number] =>
meta ? metricToScreen(meta, view, vertex[0], vertex[1]) : [0, 0];
diff --git a/B05_Profile/B05_Profile_UI_RouteEdit_Chrome.ts b/B05_Profile/B05_Profile_UI_RouteEdit_Chrome.ts
index 211b0658a..5e8ed273a 100644
--- a/B05_Profile/B05_Profile_UI_RouteEdit_Chrome.ts
+++ b/B05_Profile/B05_Profile_UI_RouteEdit_Chrome.ts
@@ -11,6 +11,7 @@ import { bindFootprintToggle } from "./B05_Profile_UI_RouteEdit_Footprint";
* **배치**(352-1) — 지도가 칸 전체 · 머리 줄 · 테두리 없음. 도구는 3D 와 같은 떠 있는 유리 단추
* (지도 왼쪽 위 · ☰ 비킴), [?] 조작 설명은 도구줄 아래 2열, 상태·범례는 왼쪽 아래, 잰 값은 오른쪽
* 아래. 횡단 두 판은 지도 오른쪽을 덮는 판(아래 종단 판이 그 위).
+ * 도구줄 차례(366-2) — [?] | ↶ ↷ | 3D | ⟲ ⟳ · 1m 등고선 · 절/성토선 · 거리 재기 | 측점 스냅 · 분석 지형.
*
* 자리(345-3) — 모달이 아니라 종단 보기 가운데 위 본문(옛 3D 자리)에 붙는다. 덮개 · 전체 화면 ·
* 닫기 단추는 걷었다 · [취소] · [확인] · [노선 반영] · [저장 전으로]는 없앰(346-3 · 352-2 — 노선은 페이지
@@ -60,8 +61,31 @@ export function createRouteEditChrome(
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
노드 끌기 = 옮기기노드 클릭 = R 라벨
선 두 번 클릭 = 노드 추가노드 오른쪽 클릭 = 삭제
@@ -97,12 +102,6 @@ export function createRouteEditChrome(
가운데(휠) 버튼 끌기 = 지도 이동휠 = 확대
-
-
-
-
@@ -142,7 +141,7 @@ export function createRouteEditChrome(
// 도움말 = 기본 접힘 · [?] 한 번에 펼침(345-5 덧 3).
const hint = overlay.querySelector
(".b05-routeedit__hint")!;
- const hintToggle = hint.querySelector('[data-act="hint-toggle"]')!;
+ const hintToggle = overlay.querySelector('[data-act="hint-toggle"]')!;
const setHint = (open: boolean): void => {
hintOpen = open;
hint.classList.toggle("is-open", open);
diff --git a/B05_Profile/B05_Profile_UI_Style_RouteEdit.css b/B05_Profile/B05_Profile_UI_Style_RouteEdit.css
index 1e6c5420b..2698017ad 100644
--- a/B05_Profile/B05_Profile_UI_Style_RouteEdit.css
+++ b/B05_Profile/B05_Profile_UI_Style_RouteEdit.css
@@ -15,9 +15,9 @@
--b05-side-open: 460px;
}
-/* 도구줄 — 3D 도구줄 규격 그대로 · 오른쪽 회전 단추 · 횡단 판을 비켜 줄바꿈. */
+/* 도구줄 — 3D 도구줄 규격 그대로 · 회전 단추도 이 줄(366-2) · 넘치면 줄바꿈. */
.b05-routeedit__tools {
- right: calc(var(--spacing-12) + 112px); /* 오른쪽 위 회전 단추 자리 */
+ right: var(--spacing-12);
flex-wrap: wrap;
pointer-events: none; /* 빈 자리는 지도 조작을 통과 */
}
diff --git a/resources/tester/test_345_5b_plan_visible_area.py b/resources/tester/test_345_5b_plan_visible_area.py
index 0c81d8523..5ebf869b8 100644
--- a/resources/tester/test_345_5b_plan_visible_area.py
+++ b/resources/tester/test_345_5b_plan_visible_area.py
@@ -125,16 +125,14 @@ def test_판은_덮이기만_따라_안_옮김() -> None:
assert ".b05-route-profile.is-collapsed {\n height: 0;" in style
-def test_처음_열기와_맞춤_단추_같은_셈() -> None:
+def test_처음_열기_맞춤_그대로_맞춤_단추_없음() -> None:
+ """366-2 — [맞춤] 단추는 지움 · 처음 열 때 등고 영역 맞춤(fitView)은 그대로."""
view = (B05 / "B05_Profile_UI_RouteEdit_View.ts").read_text(encoding="utf-8")
assert "return { view: fitView(meta, view, nodes, contours), rotationRad: 0 };" in view
assert "unionArea([route, ...(contours?.features ?? [])])" in view
chrome = (B05 / "B05_Profile_UI_RouteEdit_Chrome.ts").read_text(encoding="utf-8")
- assert 'data-act="fit"' in chrome and ">맞춤" in chrome
+ assert 'data-act="fit"' not in chrome and ">맞춤" not in chrome
editor = (B05 / "B05_Profile_UI_RouteEdit.ts").read_text(encoding="utf-8")
assert "openingView(projectId, meta, view, planned, contours?.layer ?? null)" in editor
- at = editor.index("""overlay.querySelector('[data-act="fit"]')!""")
- handler = editor[at : at + 260]
- assert "view = fitView(meta, view, planned, contours?.layer ?? null);" in handler
- assert "rotation.set(0);" in handler
+ assert 'data-act="fit"' not in editor and "fitView" not in editor
assert len(editor.splitlines()) <= 700
diff --git a/resources/tester/test_b05_routeedit_initial.py b/resources/tester/test_b05_routeedit_initial.py
index 7cce14368..43647248b 100644
--- a/resources/tester/test_b05_routeedit_initial.py
+++ b/resources/tester/test_b05_routeedit_initial.py
@@ -208,11 +208,34 @@ def test_노선_추천_다듬기_23_3():
return open(os.path.join(page, name), encoding="utf-8").read()
chrome = read("B05_Profile_UI_RouteEdit_Chrome.ts")
- # 345-4 — [노선 추천]은 좌측 칸 · 머리 구분선은 [3D](tools) 뒤 · 되돌리기 앞 둘 그대로
- tools = chrome.index('data-slot="tools"')
- divider = chrome.index("b05-route__view-separator", tools) # 352-1 — 3D 도구줄 구분선 그대로
- assert tools < divider < chrome.index('data-act="contour-minor"')
- assert chrome.count("b05-route__view-separator") == 2
+ # 366-2 — [?] | ↶ ↷ | 3D | ⟲ ⟳ · 1m 등고선 · 절/성토선 · 거리 재기 | 측점 스냅 · 분석 지형(맨 오른쪽)
+ bar = chrome[
+ chrome.index("b05-routeedit__tools") : chrome.index('')
+ ]
+ order = [
+ 'data-act="hint-toggle"',
+ "|",
+ 'data-act="undo"',
+ 'data-act="redo"',
+ "|",
+ 'data-slot="tools"',
+ "|",
+ 'data-act="rotate-ccw"',
+ 'data-act="rotate-cw"',
+ 'data-act="contour-minor"',
+ 'data-act="footprint"',
+ 'data-act="measure"',
+ "|",
+ 'data-act="station-snap"',
+ 'class="b05-routeedit__terrain"',
+ ]
+ at = 0
+ for mark in order:
+ key = "b05-route__view-separator" if mark == "|" else mark
+ at = bar.index(key, at) + 1
+ assert bar.count("b05-route__view-separator") == 4
+ assert chrome.count("b05-route__view-separator") == 4
+ assert "b05-routeedit__spin" not in chrome # 회전 = 도구줄(추천 모달 CSS 는 남음)
shared = read("B05_Profile_UI_RouteEdit_Recommend_Map.ts")
for name in ("bindRouteEditNavigation", "createMapRotation", "fitCanvas", "metricToScreen"):
assert f"{name}(" in shared