feat(457 묶음 페이지): 노선 초안 follow 뒤 추가 측점 초안도 따라감 · 초안 버리면 초안 전 값(459 followPlusDraft 부름)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-18 22:53:57 +09:00
co-authored by Claude Opus 5.5
parent b993d91e1f
commit 25684f2bbc
+3 -1
View File
@@ -56,7 +56,7 @@ import {
readAlignmentDraft,
} from "../../B05_Profile/B05_Profile_UI_Profile_Edit";
import { readAlignment } from "../../B05_Profile/logic/B05_Profile_UI_Profile_Data";
import { plusStationsOf } from "../../B05_Profile/B05_Profile_Api_PlusStations";
import { followPlusDraft, plusStationsOf } from "../../B05_Profile/B05_Profile_Api_PlusStations";
import { pageReplaying } from "../../B05_Profile/B05_Profile_UI_Profile_History";
import {
analysisTerrain,
@@ -450,6 +450,7 @@ function createPagePipeline(
queueMicrotask(() => {
if (event.generation !== pipe.generation) return;
if (!pipe.input("route")) {
followPlusDraft(projectId, null); // 추가 측점도 초안 전 값으로(459)
if (!beforeDraft) return;
writeFacilities(beforeDraft);
beforeDraft = null;
@@ -461,6 +462,7 @@ function createPagePipeline(
pipes: (patch.pipes as Facilities["pipes"]) ?? now.pipes,
structures: (patch.structures as Facilities["structures"]) ?? now.structures,
});
followPlusDraft(projectId, patch.plusStations); // 추가 측점 = 좌표 따라감(459)
const line = pipe.output("route")?.line ?? [];
const far = Array.isArray(patch.structures)
? followStructures(