Revert "fix(rebar): warn when the pile spacing along a 열 is above the 2250 mm maximum"
This reverts commit d61e5d082f.
This commit is contained in:
1 parent
d61e5d082f
commit
304b350481
3 files changed
+3
-34
No files matched your search
+2
-11
@@ -3,7 +3,7 @@ import * as THREE from 'three';
|
||||
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
||||
import * as XLSX from 'xlsx';
|
||||
import { parseWorkbook, type SheetReport } from './core/parseWorkbook';
|
||||
import { buildPier, footingDims, type PierModel } from './core/geometry';
|
||||
import { buildPier, type PierModel } from './core/geometry';
|
||||
import { NOT_IMPLEMENTED_RULES, validateInput, validatePier } from './core/validate';
|
||||
import { buildTemplateWorkbook } from './core/template';
|
||||
import { EDITABLE_FIELDS, FIELD_LABELS, overrideKeys, pendingKeys, revertDraft, type EditableKey, type PierValues } from './core/changes';
|
||||
@@ -230,14 +230,6 @@ function buildEntry(rawInput: PierInput, checked: boolean): Pier {
|
||||
try {
|
||||
model = buildPier(modelInput);
|
||||
validatePier(input, model, issues);
|
||||
// Pile rows above the 2250 mm maximum spacing (승인 2026-10-23): a warning in 알림.
|
||||
if (input.foundationType === '말뚝기초' && model.footings[0]) {
|
||||
const g = pileGeometry(model.footings[0].length, footingDims(modelInput).W);
|
||||
const layouts = rowLayout(resolveRowCounts(input.pileRows, g), g);
|
||||
layouts.forEach((row, j) => {
|
||||
if (row.aboveMaximum) issues.push({ code: 'P02', level: 'W', pier: input.name, message: `열 ${j + 1}: 말뚝 간격 ${Math.round(row.spacing * 1000)} mm가 최대 2250 mm를 넘습니다. 본수를 늘리세요.` });
|
||||
});
|
||||
}
|
||||
for (const message of columnDiameterIssues(modelInput.columnDiameterMm ?? 2000, model)) {
|
||||
issues.push({ code: 'D01', level: 'E', pier: input.name, message });
|
||||
}
|
||||
@@ -809,7 +801,7 @@ function renderPileRows(box: HTMLDivElement, pier: Pier): void {
|
||||
const wrap = el('div', undefined, 'pile-rows');
|
||||
wrap.appendChild(el('p', `열별 본수 · 합계 ${totalPiles(counts)}본`, 'lbl'));
|
||||
counts.forEach((count, j) => {
|
||||
const row = el('div', undefined, layout[j].belowMinimum || layout[j].aboveMaximum ? 'pile-row warn' : 'pile-row');
|
||||
const row = el('div', undefined, layout[j].belowMinimum ? 'pile-row warn' : 'pile-row');
|
||||
const minus = el('button', '−', 'btn small');
|
||||
minus.type = 'button';
|
||||
minus.setAttribute('aria-label', `열 ${j + 1} 본수 줄이기`);
|
||||
@@ -820,7 +812,6 @@ function renderPileRows(box: HTMLDivElement, pier: Pier): void {
|
||||
plus.addEventListener('click', () => setPileRow(pier.input.name, j, 1));
|
||||
row.append(el('span', `열 ${j + 1}`), minus, el('span', `${count}본`, 'num'), plus, el('span', `간격 ${Math.round(layout[j].spacing * 1000)} mm`, 'num'));
|
||||
if (layout[j].belowMinimum) row.append(el('span', `최소 ${Math.round(g.minSpacing * 1000)} mm보다 좁습니다`, 'warn-text'));
|
||||
if (layout[j].aboveMaximum) row.append(el('span', `최대 2250 mm를 넘습니다. 본수를 늘리세요`, 'warn-text'));
|
||||
wrap.appendChild(row);
|
||||
});
|
||||
wrap.appendChild(el('p', layoutText(counts, g), 'num'));
|
||||
|
||||
Reference in new issue
Block a user