From 59af3f94efcfa16770dcac3d58a85e784c793d50 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 1 Oct 2026 11:49:32 +0900 Subject: [PATCH] =?UTF-8?q?feat(m01-lb):=20Entry=20=EC=98=88=EC=8B=9C?= =?UTF-8?q?=EA=B0=92=20=EA=B3=84=EC=82=B0=EC=9D=84=20lbCalcLater=20?= =?UTF-8?q?=EB=A1=9C=20=C2=B7=20=EC=9E=84=EC=8B=9C=20=EB=8C=80=EC=8B=A0=20?= =?UTF-8?q?=EA=B8=B8=20=EA=B1=B7=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016PSXsvyDxjNmufteN5bqmt --- M01_MasterData/LogicBuilder/M01_LB_Entry.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/M01_MasterData/LogicBuilder/M01_LB_Entry.ts b/M01_MasterData/LogicBuilder/M01_LB_Entry.ts index 0ceb0e6cd..e68ed3189 100644 --- a/M01_MasterData/LogicBuilder/M01_LB_Entry.ts +++ b/M01_MasterData/LogicBuilder/M01_LB_Entry.ts @@ -20,7 +20,6 @@ import type { CalcAnswer, LogicInput, LogicRow } from "../M01_MasterData_UI_Logi import { formatMoney } from "../M01_MasterData_UI_Logic_Money"; import { formatNumber } from "../M01_MasterData_UI_Logic_Edit"; import { - calcLater, copyEasy, listEasy, openEasy, @@ -117,7 +116,7 @@ interface Paper { tables: LbTables; } -/* ponytail: Blocks(sub7) · LB Api(sub4) 속이 「준비 중」 인 동안만 대신함 — 채워지면 두 catch 를 지움 */ +/** 블록 읽기 — 못 읽는 꼴이면 null(세 칸은 원래 줄로 보임) */ const blocksOf = (row: LogicRow, key: string, version: string, isBase: boolean): LbLogic | null => { try { return readLogic(row, { key, version, isBase }); @@ -125,16 +124,6 @@ const blocksOf = (row: LogicRow, key: string, version: string, isBase: boolean): return null; } }; -const calcWith = ( - p: Paper, - onDone: (ans: CalcAnswer | null, plain: string | null) => void, -): void => { - try { - lbCalcLater(p.row, p.trial, p.tables, onDone); - } catch { - calcLater(p.row, p.trial, onDone); - } -}; /** 「쉬운 단가산출(시험)」 옆에 놓는 단추 — 누르면 큰 창 */ export function createLogicBuilderButton(): HTMLButtonElement { @@ -306,7 +295,7 @@ function openLogicBuilder(): void { const calc = (): void => { drawResult(true); - calcWith(p, (next, plain) => { + lbCalcLater(p.row, p.trial, p.tables, (next, plain) => { ans = next; note.textContent = plain ?? ""; drawResult(false);