From 252a49e916874d74eea48724209c9debc50ea91a Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sun, 11 Oct 2026 01:00:26 +0900 Subject: [PATCH] =?UTF-8?q?fix(b08):=20=EA=B1=B0=EB=A6=AC=EC=9D=B4?= =?UTF-8?q?=EC=A0=95=ED=91=9C=20[=EC=9E=90=EB=8F=99=20=EC=A0=95=EB=A0=AC]?= =?UTF-8?q?=20=E2=86=92=20[=EB=B0=A9=EC=9C=84=20=EB=B0=B0=EC=B9=98]=20?= =?UTF-8?q?=C2=B7=20=EB=8A=98=20=EB=B3=B4=EC=9E=84=20(159-1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LLCk2y5xE8YGVgjbTntWsY --- B08_Quantity/B08_Quantity_UI_Milestone.css | 2 +- B08_Quantity/B08_Quantity_UI_Milestone_Diagram.ts | 5 ++--- resources/tester/test_250_1_b08_milestone_roads_width.py | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/B08_Quantity/B08_Quantity_UI_Milestone.css b/B08_Quantity/B08_Quantity_UI_Milestone.css index 6f1c7fd0a..2a210aa61 100644 --- a/B08_Quantity/B08_Quantity_UI_Milestone.css +++ b/B08_Quantity/B08_Quantity_UI_Milestone.css @@ -56,7 +56,7 @@ } /* 244-2 다이어그램 — 상자 · 선 · km 글(테마 변수) · 스크롤 없음(244-8 · 그림 = 틀 안 맞춤) */ -/* 153 · 155 · 157 [자동 정렬](끌어 놓은 자리 있을 때만) · [요소 추가] — 다이어그램 왼쪽 아래 · 단추 = 메인 탭 크기 */ +/* 153 · 155 · 157 · 159 [방위 배치] · [요소 추가] — 다이어그램 왼쪽 아래 · 단추 = 메인 탭 크기 */ .b08-milestone__tools { position: absolute; bottom: 8px; diff --git a/B08_Quantity/B08_Quantity_UI_Milestone_Diagram.ts b/B08_Quantity/B08_Quantity_UI_Milestone_Diagram.ts index 282856e60..dc44b57f7 100644 --- a/B08_Quantity/B08_Quantity_UI_Milestone_Diagram.ts +++ b/B08_Quantity/B08_Quantity_UI_Milestone_Diagram.ts @@ -264,9 +264,9 @@ export function createDiagram( return dot; }; - // 153 [자동 정렬] — 끌어 놓은 자리 모두 지우고 방위 자동 자리로 + // 153 · 159 [방위 배치] — 끌어 놓은 자리 모두 지우고 방위(소재지 좌표) 자동 자리로 · 늘 보임 const arrange = createButton({ - label: "자동 정렬", + label: "방위 배치", variant: "ghost", onClick: () => { const fresh = liveMilestone(projectId); @@ -406,7 +406,6 @@ export function createDiagram( }); shift.append(text); } - arrange.hidden = !data.base.pos && !data.routes.some((r) => r.pos); host.replaceChildren(root, tools); attachSvgZoomPan({ svg: root, diff --git a/resources/tester/test_250_1_b08_milestone_roads_width.py b/resources/tester/test_250_1_b08_milestone_roads_width.py index 9ff09d1d8..d444804b8 100644 --- a/resources/tester/test_250_1_b08_milestone_roads_width.py +++ b/resources/tester/test_250_1_b08_milestone_roads_width.py @@ -87,7 +87,7 @@ def test_153_지도_보기_유지_상자_색_끌어_옮김(): assert var in block[: block.index("}")], kind ui = _read("B08_Quantity/B08_Quantity_UI_Milestone_Diagram.ts") assert 'if (box.kind === "route" || box.kind === "base") dragBox(g, box, shift);' in ui - assert 'label: "자동 정렬"' in ui and "fresh.routes.forEach((r) => (r.pos = null));" in ui + assert 'label: "방위 배치"' in ui and "fresh.routes.forEach((r) => (r.pos = null));" in ui # 159 이름 def test_153_끌어_놓은_자리_레이아웃(): @@ -155,7 +155,7 @@ def test_157_도구_왼쪽_아래_경로_탭_지도_그림_변경_초기화(): ui = _read("B08_Quantity/B08_Quantity_UI_Milestone_Diagram.ts") assert ( 'label: "요소 추가",\n size: "sm"' not in ui - and 'label: "자동 정렬",\n size: "sm"' not in ui + and 'label: "방위 배치",\n size: "sm"' not in ui ) route = _read("B08_Quantity/B08_Quantity_UI_Milestone_Route.ts") assert 'label: "그림 변경"' in route and 'label: "초기화"' in route