fix(B06): ⤢(오토핏) 기본값을 전역 횡단 반폭 보기값으로

⤢가 항상 교차점 맞춤 폭으로 가서 전역 보기값보다 좁아지기도 했다. 이제 초기화는
전역 보기값이 기본이고, 그 폭에서 절·성토선과 원지반 교차점이 안 보이는 측점만
교차점이 보이는 폭(그 측점의 기본값)으로 되돌린다(2026-08-23 사용자 지시).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-23 18:34:50 +09:00
co-authored by Claude Opus 5
parent b344ffe60e
commit 5ac61cb4cc
2 changed files with 11 additions and 4 deletions
+6 -2
View File
@@ -613,9 +613,13 @@ export function createCrossSectionCard(
section.chainage_m,
Math.round((effectiveHalfWidth ?? maxOffset) + deltaM),
),
// ⤢ = 초기화. 기본은 **전역 횡단 반폭 보기값**으로 되돌리고, 그 폭 안에서는
// 절·성토선과 원지반의 교차점이 안 보이는 측점만 교차점이 보이는 폭으로 되돌린다
// (2026-08-23 사용자 지시 — 그 측점의 기본값이 그 폭이라는 뜻).
fit: () => {
const fitted = toeFitHalfWidth(section);
if (fitted !== null) stationWidth.request(section.chainage_m, fitted);
const base = crossHalfWidth ?? maxOffset;
const needed = toeFitHalfWidth(section);
stationWidth.request(section.chainage_m, needed !== null && needed > base ? needed : base);
},
};
chartWrap.append(svg, readout.root, buildZoomControls(zoomPan, widthActions), panel.root);