From c3f7261058d784ffce1eb43422191cddcf7768f5 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 29 Oct 2026 19:02:51 +0900 Subject: [PATCH] =?UTF-8?q?fix(D03):=20=EA=B3=A0=EB=A6=84=20=EB=A7=9E?= =?UTF-8?q?=EC=B6=A4(sync)=EC=9D=B4=20=ED=8E=98=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EB=8B=A4=EC=8B=9C=20=EA=B7=B8=EB=A6=BC=EC=9D=84=20=EB=B6=88?= =?UTF-8?q?=EB=9F=AC=20=EB=8F=8C=EA=B3=A0=20=EB=8F=84=EB=8A=94=20=EA=B2=83?= =?UTF-8?q?=20=EB=A7=89=EC=9D=8C=20=E2=80=94=20=EC=86=8D=EC=84=B1=20?= =?UTF-8?q?=ED=8C=90=EC=9D=B4=20=EC=95=88=20=EB=9C=A8=EB=8D=98=20=ED=9D=A0?= =?UTF-8?q?=20(PLAN=20585-2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - refresh → edit.sync → onSelect → refresh 되풀이로 속성 판 그림이 끊김 · sync 는 고름만 맞추고 다시 그림은 부르는 쪽(refresh) Co-Authored-By: Claude Opus 5.5 --- D03_PlanAnalysis/D03_PlanAnalysis_UI_Edit.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/D03_PlanAnalysis/D03_PlanAnalysis_UI_Edit.ts b/D03_PlanAnalysis/D03_PlanAnalysis_UI_Edit.ts index 162ffb955..53ea0225f 100644 --- a/D03_PlanAnalysis/D03_PlanAnalysis_UI_Edit.ts +++ b/D03_PlanAnalysis/D03_PlanAnalysis_UI_Edit.ts @@ -193,8 +193,9 @@ export function createPlanEdit(params: PlanEditParams): PlanEdit { apply((net, i) => removeLine(net, i)); } + /** 사라진 구간 뺌 — 부르는 쪽(페이지 `refresh`)이 다시 그림(여기서 onSelect 를 부르면 돌고 돎). */ function sync(): void { - if (!selected) return params.onSelect(); + if (!selected) return; const ids = pieceIds(params.network()); const pieces = selected.pieces.filter((id) => ids.has(id)); selected = pieces.length @@ -205,7 +206,6 @@ export function createPlanEdit(params: PlanEditParams): PlanEdit { mark: selected.mark && ids.has(selected.mark) ? selected.mark : null, } : null; - params.onSelect(); } const pieceAt = (network: PlanNetwork, line: string, atM: number): string | null =>