diff --git a/B05_Profile/B05_Profile_UI_Drainage_Facility.ts b/B05_Profile/B05_Profile_UI_Drainage_Facility.ts index 89b86d98..6a9c33ad 100644 --- a/B05_Profile/B05_Profile_UI_Drainage_Facility.ts +++ b/B05_Profile/B05_Profile_UI_Drainage_Facility.ts @@ -287,8 +287,8 @@ export function createFacilityOptionsForm( extraGroup.root.hidden = true; // ── 독립 기슭막이(2026-08-28 이관: 배관처럼 pipe_points 관리) ───────────── - // 설치 측은 **컨테이너 밖**(배관의 관종·관경과 같은 층), 벽 제원과 **단 수**는 좌·우 - // 두 칸이 각자 갖는다(2026-08-30 사용자). 설치 측이 한쪽이면 그 칸만 뜬다. + // 설치 측은 **컨테이너 밖**(배관의 관종·관경과 같은 층), 벽 제원은 좌·우 두 칸으로 + // 나눈다(2026-08-30 사용자). 설치 측이 한쪽이면 그 칸만 뜬다. // 좌·우가 저장 채널(유입/유출) 중 어느 쪽인지는 측점 지형이 정하므로 이름표만 // 바꿔 단다(`setRevetSideLabels`) — 값은 언제나 그 채널 키로 오간다. const revetSide = optionalSelect("양쪽", ["양쪽", "좌", "우"]); @@ -511,9 +511,7 @@ export function createFacilityOptionsForm( outletRevet.onChange(emit); revetInlet.fields.onChange(emit); revetOutlet.fields.onChange(emit); - [revetSide, revetInlet.tiers, revetOutlet.tiers].forEach((input) => - input.addEventListener("change", emit), - ); + revetSide.addEventListener("change", emit); [ pipeMaterial, pipeDiameter, @@ -609,10 +607,6 @@ export function createFacilityOptionsForm( fordHeight.value = text("ford_height_m"); fordSlope.value = text("ford_slope_pct"); revetSide.value = text("side") || "양쪽"; - // 단 수 — 좌·우 각자 키가 먼저고, 옛 한 벌 값(`tiers`)이 폴백이다. - const legacyTiers = text("tiers") || "1"; - revetInlet.tiers.value = text("inlet_revet_tiers") || legacyTiers; - revetOutlet.tiers.value = text("outlet_revet_tiers") || legacyTiers; const spread = legacyRevetOptions(options); revetInlet.fields.write(spread); revetOutlet.fields.write(spread); @@ -667,16 +661,8 @@ export function createFacilityOptionsForm( wingOutFields.read(options); } else if (current === "revetment") { options.side = revetSide.value; - const tierOf = (input: HTMLInputElement): number | null => { - const value = Number.parseInt(input.value, 10); - return Number.isFinite(value) && value >= 1 ? value : null; - }; - const inletTiers = tierOf(revetInlet.tiers); - const outletTiers = tierOf(revetOutlet.tiers); - if (inletTiers !== null) options.inlet_revet_tiers = inletTiers; - if (outletTiers !== null) options.outlet_revet_tiers = outletTiers; - // 옛 한 벌 키도 남긴다 — 서버 `_revet_set`이 아직 이 값을 읽는다. - options.tiers = Math.max(inletTiers ?? 1, outletTiers ?? 1); + // 단 수는 폼이 갖지 않는다 — 횡단 설계 patch(extra_wall_counts)가 정본이고 + // 조작은 [추가 기슭막이(단)] 행이 한다(2026-08-30 사용자: 중복이라 삭제). // 좌·우가 각자 값을 갖는다 — 저장 채널은 유입/유출 키 그대로다(2026-08-30). revetInlet.fields.read(options); revetOutlet.fields.read(options); diff --git a/B05_Profile/B05_Profile_UI_Drainage_Facility_Fields.ts b/B05_Profile/B05_Profile_UI_Drainage_Facility_Fields.ts index 0877a2b7..803c24a8 100644 --- a/B05_Profile/B05_Profile_UI_Drainage_Facility_Fields.ts +++ b/B05_Profile/B05_Profile_UI_Drainage_Facility_Fields.ts @@ -211,8 +211,6 @@ export interface RevetSideGroup { root: HTMLFieldSetElement; legend: HTMLLegendElement; fields: RevetmentFields; - /** 단 수(다단) — 좌·우가 각자 갖는다(2026-08-30 사용자). */ - tiers: HTMLInputElement; /** 조정창 행이 옮겨 붙는 자리 — 배관 유입구·유출구 칸과 같은 규칙. */ slot: HTMLElement; } @@ -222,20 +220,19 @@ export function createRevetSideGroup(keys: RevetmentKeys, formDefault: string): const kind = document.createElement("select"); kind.replaceChildren(new Option("기슭막이", "기슭막이")); const fields = createRevetmentFields(keys, { ...REVET_COMMON_DEFAULTS, form: formDefault }); - const tiers = numberInput("1", "1"); - tiers.value = "1"; const slot = document.createElement("div"); slot.className = "b05-structure__adjust-slot"; box.body.append( grid(labeled("구조", kind), fields.formField), ...fields.rows, - grid(labeled("단 수(다단)", stepper(tiers, 1))), + // 단 수는 여기 두지 않는다 — 조정창에서 옮겨 오는 [추가 기슭막이(단)] 행과 + // 같은 값이라 두 벌이면 헷갈린다(2026-08-30 사용자). slot, ); const legend = box.root.querySelector("legend")!; // 이름표는 좌·우가 정해 준다 — 고른 구조물 이름을 덧붙이지 않는다(2026-08-30). legend.dataset.fixedLabel = "1"; - return { root: box.root, legend, fields, tiers, slot }; + return { root: box.root, legend, fields, slot }; } export interface RevetmentFields { diff --git a/B06_Section/B06_Section_UI_Page.ts b/B06_Section/B06_Section_UI_Page.ts index c0c9343a..8f1dc02a 100644 --- a/B06_Section/B06_Section_UI_Page.ts +++ b/B06_Section/B06_Section_UI_Page.ts @@ -173,22 +173,6 @@ export async function renderB06ProfileCross(root: HTMLElement): Promise { const inletLeft = (owner.uphill_side ?? "left") === "left"; return inletLeft ? { inlet: "좌", outlet: "우" } : { inlet: "우", outlet: "좌" }; }, - // 폼 단 수 ↔ 다단 채널(유출 벽 = extra, 유입·계류측 = bextra) — 좌·우가 각자 쓴다. - setTierCount: (chainageM, role, tiers) => { - const extras = Math.max(0, Math.round(tiers) - 1); - stationControls.extraWalls.setCount( - chainageM, - extras, - role === "outlet" ? "outlet" : "basin", - ); - }, - tierCount: (chainageM, role) => { - const owner = sectionDetail?.cross_sections.find( - (section) => Math.abs(section.chainage_m - chainageM) < 0.51, - ); - if (!owner) return null; - return stationControls.extraWalls.countFor(owner, role === "outlet" ? "outlet" : "basin") + 1; - }, stationInterval: () => stationInterval ?? 20, focusChainage: focusStationAt, queuePipeOptions: (chainageM, patch) => stationControls.queueCulvertOptions(chainageM, patch), diff --git a/B06_Section/B06_Section_UI_Page_Structures_Panel.ts b/B06_Section/B06_Section_UI_Page_Structures_Panel.ts index 54868d13..60543377 100644 --- a/B06_Section/B06_Section_UI_Page_Structures_Panel.ts +++ b/B06_Section/B06_Section_UI_Page_Structures_Panel.ts @@ -52,10 +52,6 @@ export interface B06StructuresPanelDeps { wallForm?: (chainageM: number, role: "inlet" | "outlet") => string | null; /** 그 측점에서 유입·유출 벽이 각각 좌·우 어느 쪽인가(독립 기슭막이 칸 이름표). */ wallSideLabels?: (chainageM: number) => { inlet: "좌" | "우"; outlet: "좌" | "우" } | null; - /** 폼의 단 수를 다단 채널에 반영한다 — 조정창에서 세우던 것과 같은 자리. */ - setTierCount?: (chainageM: number, role: "inlet" | "outlet", tiers: number) => void; - /** 지금 선 단 수(기준벽 포함) — 폼이 도면과 같은 값을 보이게 한다. */ - tierCount?: (chainageM: number, role: "inlet" | "outlet") => number | null; /** 측점 간격(m) — 측점번호+잔여거리 환산용. */ stationInterval: () => number; /** 목록·폼에서 고른 시설의 측점 카드를 선택·스크롤한다. */ @@ -117,7 +113,6 @@ function withSpecDefaults( chainageM: number, wallHeight?: (chainageM: number, role: "inlet" | "outlet") => number | null, wallForm?: (chainageM: number, role: "inlet" | "outlet") => string | null, - tierCount?: (chainageM: number, role: "inlet" | "outlet") => number | null, ): Record | undefined { const owner = detail?.cross_sections.find( (section) => Math.abs(section.chainage_m - chainageM) < PIPE_MATCH_M, @@ -144,9 +139,6 @@ function withSpecDefaults( const drawnHeight = wallHeight?.(chainageM, prefix); if (drawnHeight != null) merged[`${prefix}_revet_height_m`] = Number(drawnHeight.toFixed(1)); else put(`${prefix}_revet_height_m`, side.revet_height_m); - // 단 수는 다단 채널이 정본이다 — 폼이 그 값을 그대로 보인다. - const tiers = tierCount?.(chainageM, prefix); - if (tiers != null) merged[`${prefix}_revet_tiers`] = tiers; put(`${prefix}_revet_length_m`, side.revet_length_m); put(`${prefix}_revet_before_m`, side.revet_before_m); put(`${prefix}_revet_after_m`, side.revet_after_m); @@ -210,10 +202,6 @@ export function createB06StructuresPanel(deps: B06StructuresPanelDeps): B06Struc } // 단 수는 옵션이자 **조작 채널**이다 — 조정창에서 세우던 그 자리로 보내야 // 횡단도에 단이 선다(2026-08-30 사용자 지시 3: 배수관 측점과 동일하게). - for (const role of ["inlet", "outlet"] as const) { - const tiers = Number(patch[`${role}_revet_tiers`]); - if (Number.isFinite(tiers)) deps.setTierCount?.(fromChainageM, role, tiers); - } // 옵션은 **옮기기 전 자리**로 예약한다 — 저장 시점의 관 목록이 그 자리 기준이다. deps.queuePipeOptions(fromChainageM, patch as Record); deps.applyPipeOptions?.(fromChainageM, patch as Record); @@ -277,7 +265,6 @@ export function createB06StructuresPanel(deps: B06StructuresPanelDeps): B06Struc pipe.chainage_m, deps.wallHeight, deps.wallForm, - deps.tierCount, ), design_flow_m3s: null, })); @@ -309,7 +296,6 @@ export function createB06StructuresPanel(deps: B06StructuresPanelDeps): B06Struc hit.chainage_m, deps.wallHeight, deps.wallForm, - deps.tierCount, ); section.setPipeFacilities(pipeFacilities); }