fix(b06): 횡단 보기 반폭 [적용] = 요청값만 — 교차점 맞춤 폭으로 누를 때마다 재생성하던 옛 줄 지움(173-6)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F3mdb91125mPoC6tpsQx4P
This commit is contained in:
2026-10-10 08:47:40 +09:00
co-authored by Claude Opus 5.5
parent 3f82ea259f
commit 3e20341810
4 changed files with 102 additions and 47 deletions
+1 -5
View File
@@ -35,7 +35,6 @@ import {
crossSaveParts,
type SectionPersistContext,
} from "../../B06_Section/B06_Section_UI_Page_Persist";
import { maxToeFitHalfWidth } from "../../B06_Section/B06_Section_UI_Cross_Fit";
import { readStructurePick } from "../../B05_Profile/B05_Profile_UI_Structure_Pick_Session";
import { NO_SELECTION, PIPE_MATCH_M, selectDesign } from "./design_selection";
import { readPendingPipes } from "../../B05_Profile/B05_Profile_Api_Pipes_Draft";
@@ -256,11 +255,8 @@ export async function mountCrossView(
*/
async function applyCrossHalfWidth(): Promise<void> {
if (!sectionDetail) return;
// 교차점이 샘플 밖인 측점이 있으면 그 폭까지 넓힌다(카드가 자동 줌아웃할 지반 확보).
const requested = crossHalfWidth();
const needed = maxToeFitHalfWidth(sectionDetail.cross_sections);
const target = Math.max(requested ?? 0, needed);
if (target > 0 && !(await ensureSampledWidth(target))) return;
if (requested && !(await ensureSampledWidth(requested))) return;
if (!sectionDetail) return;
stationControls.applyGlobalWidth(
requested,