feat(514-1 알약 우클릭 삭제): 측점선 없는 구조물(대피로 · 노출형 횡단수로 등)도 종단 알약 · 평면 마커 우클릭 「구조물 삭제」 — 513-3 주인 가르기를 알약 id 로(removeMarkOwner · 관 알약 = 관 지점 정본 · 그 밖 = 좌측 칸 [삭제]와 같은 길) · B05 종단 보기 · B06 횡단 보기 같은 길(onStructureMarkRemove) · 캐시에만 · [저장] 때 나감 · 우클릭 삭제 글 = 관 · 세월교 · BOX 도 「구조물 삭제」 하나 · 시험 test_514_1 · test_513_1 글 기대 고침 — 요구 328-1 · 328-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,7 @@ import {
|
||||
} from "../A00_Common/design/design_selection";
|
||||
import { paintMapPick } from "../A00_Common/design/design_pick_profile";
|
||||
import { ESCAPE_FROM } from "../A00_Common/design/design_pick_escape";
|
||||
import { removeStationOwner } from "../A00_Common/design/design_pipe_ids";
|
||||
import { removeMarkOwner, removeStationOwner } from "../A00_Common/design/design_pipe_ids";
|
||||
import { plantsStation } from "../B05_Profile/B05_Profile_UI_Profile_Structures";
|
||||
import {
|
||||
fetchLatestRoute,
|
||||
@@ -164,6 +164,14 @@ export function createSectionProfile(
|
||||
structure: edit.removeStructure,
|
||||
});
|
||||
},
|
||||
onStructureMarkRemove: (structureId) => {
|
||||
const edit = host.edit();
|
||||
if (edit)
|
||||
removeMarkOwner(structureId, {
|
||||
pipe: edit.removePipe,
|
||||
structure: edit.removeStructure,
|
||||
});
|
||||
},
|
||||
onPipeAdd: (chainage) => host.edit()?.addPipe(chainage),
|
||||
onStructureAdd: (chainage, type) =>
|
||||
host.edit()?.addStructureType(chainage, LEGACY_TYPE_IDS[type] ?? "etc"),
|
||||
|
||||
Reference in New Issue
Block a user