From ce0bc7d234dc6e28a4ccf239c0b34ecb2346d9b4 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sat, 29 Aug 2026 16:49:37 +0900 Subject: [PATCH] =?UTF-8?q?fix(B06):=20=EA=B0=92=EB=A7=8C=20=EA=B3=A0?= =?UTF-8?q?=EC=B3=90=EB=8F=84=20=EB=9C=A8=EB=8D=98=20'=EA=B8=B0=EC=A4=80?= =?UTF-8?q?=20=EC=B8=A1=EC=A0=90=20=EC=9D=B4=EB=8F=99'=20=EC=95=88?= =?UTF-8?q?=EB=82=B4=EB=A5=BC=20=EC=97=86=EC=95=A4=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 원인: 이동 판정 기준이 0.005m였다. 폼의 측점 표기는 0.1m로 반올림되므로(관이 275.71m면 폼은 275.7m) 높이만 고쳐도 0.01m 차이가 나 이동으로 잡혔다. - 판정 기준을 관 매칭과 같은 0.51m로 맞춘다. - 실제로 옮긴 경우에도 함께 온 제원은 반영한다 — 위치만 못 옮길 뿐 B05·B06이 같은 데이터를 쓰는 한 화면이다. --- B06_Section/B06_Section_UI_Page_Structures_Panel.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/B06_Section/B06_Section_UI_Page_Structures_Panel.ts b/B06_Section/B06_Section_UI_Page_Structures_Panel.ts index 947fc02b..3cd853c4 100644 --- a/B06_Section/B06_Section_UI_Page_Structures_Panel.ts +++ b/B06_Section/B06_Section_UI_Page_Structures_Panel.ts @@ -104,10 +104,12 @@ export function createB06StructuresPanel(deps: B06StructuresPanelDeps): B06Struc // 값 수정은 B06에서도 받는다 — 조정창 구간값과 같은 저장 경로(캐시 예약 → // [저장]·[확정])로 보낸다. 기준점 이동만 배수유역 재분할이 걸려 B05 몫이다. onPipeUpdate: (fromChainageM, toChainageM, attributes) => { - if (Math.abs(fromChainageM - toChainageM) > 0.005) { - showToast(PIPE_MOVE_GUIDE, "error"); - return; - } + // 위치가 "옮겨졌다"고 볼 기준은 관 매칭과 같은 0.51m다 — 폼의 측점 표기는 + // 0.1m로 반올림되므로 0.005m 기준으로 보면 값만 고쳐도 이동으로 잡힌다 + // (2026-08-29 사용자 보고: 높이만 바꿨는데 이동 안내가 떴다). + const moved = Math.abs(fromChainageM - toChainageM) > PIPE_MATCH_M; + // 이동이라도 함께 온 제원은 반영한다 — 위치만 못 옮길 뿐 같은 데이터다. + if (moved) showToast(PIPE_MOVE_GUIDE, "error"); const patch = attributes.options; if (!patch || !Object.keys(patch).length) return; if (!deps.queuePipeOptions) {