fix(461 B05 종단 직선화): 다른 도구로 넘어가면 쉬프트 붉은 강조 바로 뗌

- 쉬프트로 고른 뒤 직선화 · 자유지정으로 바꾸면 다음 다시 그림까지 붉은 강조가 남던 것

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-18 22:57:41 +09:00
co-authored by Claude Opus 5.5
parent 182de3b2e3
commit c75e1c173d
@@ -136,6 +136,8 @@ export function createPanelTools(ctx: PanelToolsContext): PanelTools {
return start !== null ? [start, hoverM] : sub ? [sub.fromM, sub.toM] : null;
});
const mountViews = (mode: string): void => {
// [쉬프트] 붉은 강조는 그래프를 다시 그릴 때만 지워짐 — 다른 도구로 넘어가면 바로 뗌(271-1)
if (mode !== "shift") lastGeom?.chart.querySelector(".b05-profile-runmark")?.remove();
freeView.mount(lastGeom, mode === "free");
bandView.mount(lastGeom, mode === "straighten");
};