diff --git a/A00_Common/design/design_pipeline_cross.ts b/A00_Common/design/design_pipeline_cross.ts index 0cd2ea14b..4ef809138 100644 --- a/A00_Common/design/design_pipeline_cross.ts +++ b/A00_Common/design/design_pipeline_cross.ts @@ -12,7 +12,10 @@ * ========================================================================== */ import type { CrossSection, SectionDetailResponse } from "../../B06_Section/B06_Section_Api_Fetch"; -import { effectiveStandardCross } from "../../B06_Section/B06_Section_UI_Standard_Panel"; +import { + effectiveStandardCross, + readRockBoundaryDefault, +} from "../../B06_Section/B06_Section_UI_Standard_Panel"; import type { CrossInput, SectionSpecs } from "../../B05_Profile/logic/B05_Profile_Pipeline_Detail"; import type { PipelineStation } from "./logic/design_pipeline_types"; @@ -91,5 +94,9 @@ export function pipelineCrossSource( for (const name of SPEC_KEYS) if (section[name] !== undefined) own[name] = section[name]; specs.set(best.key, own as SectionSpecs); } - return { input: { standard, byKey }, specs }; + return { + // 암 경계 기본값 = 서버 config(화면이 문맥에서 기억) — 입력 없는 측점(초안 새 측점)도 서버처럼(349-0p) + input: { standard, byKey, rockBoundaryDefaultM: readRockBoundaryDefault(projectId) }, + specs, + }; } diff --git a/resources/tester/helper_346_1_pipeline_page.cjs b/resources/tester/helper_346_1_pipeline_page.cjs index 9fb09f6a0..7f177fc8b 100644 --- a/resources/tester/helper_346_1_pipeline_page.cjs +++ b/resources/tester/helper_346_1_pipeline_page.cjs @@ -73,7 +73,10 @@ STUBS["B05_Profile_Api_TerrainGrid"] = { }; // 346-2 붙임 뒤 창구(관 목록 · 표준단면 · 흙 배분) — 이 시험은 노선 · 종단만 봄 STUBS["B04_PreProcess_Api_Fetch"] = { fetchDetailPipePoints: async () => ({ pipe_points: [] }) }; -STUBS["B06_Section_UI_Standard_Panel"] = { effectiveStandardCross: () => null }; +STUBS["B06_Section_UI_Standard_Panel"] = { + effectiveStandardCross: () => null, + readRockBoundaryDefault: () => -0.5, +}; STUBS["B05_Profile_Api_HaulPlan"] = { createHaulStage: () => async () => null }; const pipeMod = load("A00_Common", "design", "logic", "design_pipeline.ts"); diff --git a/resources/tester/helper_346_2_pipeline_cross_page.cjs b/resources/tester/helper_346_2_pipeline_cross_page.cjs index 0c5bc551e..9699139ba 100644 --- a/resources/tester/helper_346_2_pipeline_cross_page.cjs +++ b/resources/tester/helper_346_2_pipeline_cross_page.cjs @@ -98,7 +98,10 @@ STUBS["B04_PreProcess_Api_Fetch"] = { pipe_points: job.pipes.map((pipe) => ({ ...pipe, lonlat: [0, 0] })), }), }; -STUBS["B06_Section_UI_Standard_Panel"] = { effectiveStandardCross: () => job.standard }; +STUBS["B06_Section_UI_Standard_Panel"] = { + effectiveStandardCross: () => job.standard, + readRockBoundaryDefault: () => -0.5, +}; const pipeMod = load("A00_Common", "design", "logic", "design_pipeline.ts"); const pageMod = load("A00_Common", "design", "design_pipeline_page.ts"); diff --git a/resources/tester/helper_349_0d_follow_store.cjs b/resources/tester/helper_349_0d_follow_store.cjs index e850be837..59c345d2c 100644 --- a/resources/tester/helper_349_0d_follow_store.cjs +++ b/resources/tester/helper_349_0d_follow_store.cjs @@ -95,7 +95,10 @@ STUBS["B04_PreProcess_Api_Fetch"] = { pipe_points: job.pipes.map((pipe) => ({ ...pipe, lonlat: [0, 0] })), }), }; -STUBS["B06_Section_UI_Standard_Panel"] = { effectiveStandardCross: () => job.standard }; +STUBS["B06_Section_UI_Standard_Panel"] = { + effectiveStandardCross: () => job.standard, + readRockBoundaryDefault: () => -0.5, +}; const pageMod = load("A00_Common", "design", "design_pipeline_page.ts"); const storeMod = load("A00_Common", "design", "design_store.ts"); diff --git a/resources/tester/helper_349_0f_draft_stale.cjs b/resources/tester/helper_349_0f_draft_stale.cjs index ac6197ebe..312e6fa0b 100644 --- a/resources/tester/helper_349_0f_draft_stale.cjs +++ b/resources/tester/helper_349_0f_draft_stale.cjs @@ -98,7 +98,10 @@ STUBS["B04_PreProcess_Api_Fetch"] = { pipe_points: job.pipes.map((pipe) => ({ ...pipe, lonlat: [0, 0] })), }), }; -STUBS["B06_Section_UI_Standard_Panel"] = { effectiveStandardCross: () => job.standard }; +STUBS["B06_Section_UI_Standard_Panel"] = { + effectiveStandardCross: () => job.standard, + readRockBoundaryDefault: () => -0.5, +}; STUBS["B06_Section_Cross_Refresh"] = { holdScreenAlignment: () => () => undefined, refreshCrossDesigns: async () => [], diff --git a/resources/tester/helper_349_0g_draft_b06_loop.cjs b/resources/tester/helper_349_0g_draft_b06_loop.cjs index f077f72bf..c5f3a20be 100644 --- a/resources/tester/helper_349_0g_draft_b06_loop.cjs +++ b/resources/tester/helper_349_0g_draft_b06_loop.cjs @@ -96,7 +96,10 @@ STUBS["B04_PreProcess_Api_Fetch"] = { pipe_points: job.pipes.map((pipe) => ({ ...pipe, lonlat: [0, 0] })), }), }; -STUBS["B06_Section_UI_Standard_Panel"] = { effectiveStandardCross: () => job.standard }; +STUBS["B06_Section_UI_Standard_Panel"] = { + effectiveStandardCross: () => job.standard, + readRockBoundaryDefault: () => -0.5, +}; const pageMod = load("A00_Common", "design", "design_pipeline_page.ts"); const storeMod = load("A00_Common", "design", "design_store.ts"); diff --git a/resources/tester/helper_349_0j_draft_vs_saved.cjs b/resources/tester/helper_349_0j_draft_vs_saved.cjs index f1b6f6eec..7880ccf0f 100644 --- a/resources/tester/helper_349_0j_draft_vs_saved.cjs +++ b/resources/tester/helper_349_0j_draft_vs_saved.cjs @@ -98,7 +98,10 @@ STUBS["B04_PreProcess_Api_Fetch"] = { pipe_points: job.pipes.map((pipe) => ({ ...pipe, lonlat: [0, 0] })), }), }; -STUBS["B06_Section_UI_Standard_Panel"] = { effectiveStandardCross: () => job.standard }; +STUBS["B06_Section_UI_Standard_Panel"] = { + effectiveStandardCross: () => job.standard, + readRockBoundaryDefault: () => -0.5, +}; STUBS["B06_Section_Cross_Refresh"] = { holdScreenAlignment: () => () => undefined, refreshCrossDesigns: async () => [], diff --git a/resources/tester/helper_349_0k_undo_saved.cjs b/resources/tester/helper_349_0k_undo_saved.cjs index 9ab428160..77ee1981b 100644 --- a/resources/tester/helper_349_0k_undo_saved.cjs +++ b/resources/tester/helper_349_0k_undo_saved.cjs @@ -101,7 +101,10 @@ STUBS["B04_PreProcess_Api_Fetch"] = { pipe_points: job.pipes.map((pipe) => ({ ...pipe, lonlat: [0, 0] })), }), }; -STUBS["B06_Section_UI_Standard_Panel"] = { effectiveStandardCross: () => job.standard }; +STUBS["B06_Section_UI_Standard_Panel"] = { + effectiveStandardCross: () => job.standard, + readRockBoundaryDefault: () => -0.5, +}; // 구조물 초안 얹기(측점 계획 · 형상) — 이 시험 밖 · 아무 일 없음 STUBS["B06_Section_Section_Drafts"] = { diff --git a/resources/tester/helper_349_0l_undo_draw.cjs b/resources/tester/helper_349_0l_undo_draw.cjs index d8b3ba90e..39fac1a00 100644 --- a/resources/tester/helper_349_0l_undo_draw.cjs +++ b/resources/tester/helper_349_0l_undo_draw.cjs @@ -135,7 +135,10 @@ STUBS["B04_PreProcess_Api_Fetch"] = { pipe_points: job.pipes.map((pipe) => ({ ...pipe, lonlat: [0, 0] })), }), }; -STUBS["B06_Section_UI_Standard_Panel"] = { effectiveStandardCross: () => job.standard }; +STUBS["B06_Section_UI_Standard_Panel"] = { + effectiveStandardCross: () => job.standard, + readRockBoundaryDefault: () => -0.5, +}; // 구조물 초안 얹기(측점 계획 · 형상) — 이 시험 밖 · 아무 일 없음 STUBS["B06_Section_Section_Drafts"] = { withDraftStations: async () => undefined, diff --git a/resources/tester/helper_349_0o_redo_same.cjs b/resources/tester/helper_349_0o_redo_same.cjs index 8c5ae5c85..36b51e087 100644 --- a/resources/tester/helper_349_0o_redo_same.cjs +++ b/resources/tester/helper_349_0o_redo_same.cjs @@ -135,7 +135,10 @@ STUBS["B04_PreProcess_Api_Fetch"] = { pipe_points: job.pipes.map((pipe) => ({ ...pipe, lonlat: [0, 0] })), }), }; -STUBS["B06_Section_UI_Standard_Panel"] = { effectiveStandardCross: () => job.standard }; +STUBS["B06_Section_UI_Standard_Panel"] = { + effectiveStandardCross: () => job.standard, + readRockBoundaryDefault: () => -0.5, +}; // 구조물 초안 얹기(측점 계획 · 형상) — 이 시험 밖 · 아무 일 없음 STUBS["B06_Section_Section_Drafts"] = { withDraftStations: async () => undefined, diff --git a/resources/tester/helper_349_pipeline_once.cjs b/resources/tester/helper_349_pipeline_once.cjs index 88d747be7..868ab78be 100644 --- a/resources/tester/helper_349_pipeline_once.cjs +++ b/resources/tester/helper_349_pipeline_once.cjs @@ -96,7 +96,10 @@ STUBS["B04_PreProcess_Api_Fetch"] = { pipe_points: job.pipes.map((pipe) => ({ ...pipe, lonlat: [0, 0] })), }), }; -STUBS["B06_Section_UI_Standard_Panel"] = { effectiveStandardCross: () => job.standard }; +STUBS["B06_Section_UI_Standard_Panel"] = { + effectiveStandardCross: () => job.standard, + readRockBoundaryDefault: () => -0.5, +}; const pageMod = load("A00_Common", "design", "design_pipeline_page.ts"); const storeMod = load("A00_Common", "design", "design_store.ts");