fix(b06): 안 골라진 카드 첫 누름 = 눌린 대상 — 카드 고름이 연동 관으로 폼을 옮기지 않음 · 폼 여는 동안 선 도수로 상자를 새 상자로 안 고름 (294-8 · 295-4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014utrjfoW831Vc5wJUd13kL
This commit is contained in:
@@ -57,6 +57,7 @@ import {
|
||||
import { createB06StructuresPanel } from "../../B06_Section/B06_Section_UI_Page_Structures_Panel";
|
||||
import {
|
||||
isWallSelecting,
|
||||
wallOwnerM,
|
||||
wireStructureSelection,
|
||||
} from "../../B06_Section/B06_Section_UI_Page_Structures_Selection";
|
||||
import "../../B06_Section/B06_Section_UI_Style.css";
|
||||
@@ -392,9 +393,12 @@ export async function mountCrossView(
|
||||
releaseCross(); // 카드 다시 누름 = 풀기 한 길(범위 테두리 · 형상까지 · 233-2)
|
||||
return;
|
||||
}
|
||||
const owner = isWallSelecting() ? stationControls.structureSpan.ownerOf(target) : null;
|
||||
// 찍은 부재가 이미 연 시설이 먼저 — 물넘이 콘크리트가 걸친 연동 관으로 안 감(294-8)
|
||||
const owner = isWallSelecting()
|
||||
? (wallOwnerM() ?? stationControls.structureSpan.ownerOf(target)?.chainage_m)
|
||||
: undefined;
|
||||
const preferred = structuresPanel.preferred() !== null;
|
||||
const opened = structuresPanel.showAtChainage(owner?.chainage_m ?? target.chainage_m);
|
||||
const opened = structuresPanel.showAtChainage(owner ?? target.chainage_m);
|
||||
// 카드 하나 고름 = 그 측점(구조물 id 는 목록 · 알약 · 넘김이 고른 것만 · 189-1)
|
||||
const picked = preferred ? opened : { chainageM: opened.chainageM, structureId: null };
|
||||
if (!isWallSelecting()) selectDesign(projectId, picked, { from: "b06" });
|
||||
|
||||
Reference in New Issue
Block a user