fix(D 예정노선): 받기 꼴 이름 TerrainAim 맞춤 — 595 합침 뒤 typecheck 0 (PLAN 596-2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 15:02:01 +09:00
co-authored by Claude Opus 5.5
parent 50929ef24f
commit 36750b380f
+3 -3
View File
@@ -44,7 +44,7 @@ import {
type PlanJob,
type PlanNetworkView,
type PlanSurface,
type TerrainCenter,
type TerrainAim,
type TerrainStart,
} from "./D03_PlanAnalysis_Api";
import { openPlan3d } from "./D03_PlanAnalysis_UI_3D";
@@ -251,7 +251,7 @@ export async function renderD03PlanAnalysis(root: HTMLElement): Promise<void> {
const allVertices = (): Vertex[] => network.lines.flatMap((line) => line.vertices);
const snap = (): Snap => ({ network, points, pointNames, site });
/** 위치를 옮기고 [저장] 전 — 받기 · 범위 물음에 새 기준점을 실음. */
const moved = (): TerrainCenter["center"] =>
const moved = (): TerrainAim["center"] =>
site && JSON.stringify(site) !== JSON.stringify(savedSite)
? { lon: site.lon, lat: site.lat }
: null;
@@ -381,7 +381,7 @@ export async function renderD03PlanAnalysis(root: HTMLElement): Promise<void> {
* 아니오 = 안 받음(거짓). 이미 도는 일(다른 창)이면 그것을 지켜봄. */
async function download(extra: Vertex[]): Promise<boolean> {
busy = true; // 요청이 가는 동안 다른 받기를 막음(지켜보기가 이어 받음)
const where: TerrainCenter = { center: moved() };
const where: TerrainAim = { center: moved() };
try {
let answer: TerrainStart = await startTerrain(projectId, null, extra, where);
if (answer.status === "far" || answer.status === "band") {