refactor(rebar): 확대기초 단면의 풍선 클릭 강조 기능 제거

- 풍선 클릭 리스너와 강조 함수 제거, 풍선은 라벨로만 표시
- 캡션에서 "풍선을 누르면" 문구 제거

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
ypshimandClaude Haiku 5.5 committed 2026-10-27 09:44:08 +09:00
1 parent 752de2fd9d
commit a026d52799
2 files changed
+2 -12

No files matched your search

+1 -11
View File
@@ -1390,21 +1390,11 @@ function renderFootingSettings(box: HTMLDivElement, pier: Pier): void {
// 교각축 직각 단면 (폭 W): a bubble click highlights that bar family; a second click clears it.
const sectionFig = el('figure', undefined, 'ground-fig');
sectionFig.innerHTML = footingSectionSvg(pier.model);
sectionFig.appendChild(el('figcaption', '교각축 직각 단면 (폭 W) · 풍선을 누르면 그 철근만 강조 · 실제 비율 · 다리 생략', 'muted small'));
sectionFig.querySelectorAll<SVGGElement>('[data-bubble]').forEach((g) => g.addEventListener('click', () => highlightFootingBar(sectionFig, g.dataset.bubble ?? '')));
sectionFig.appendChild(el('figcaption', '교각축 직각 단면 (폭 W) · 실제 비율 · 다리 생략', 'muted small'));
wrap.appendChild(sectionFig);
box.appendChild(wrap);
}
/** Highlights the marks of one bar family in a footing section (data-bar); the others dim. A second click on the same family clears it. */
function highlightFootingBar(fig: HTMLElement, name: string): void {
const active = fig.dataset.active === name ? '' : name;
fig.dataset.active = active;
fig.querySelectorAll<SVGElement>('[data-bar]').forEach((m) => {
m.style.opacity = active === '' || m.dataset.bar === active ? '1' : '0.2';
});
}
function renderCopingDrawings(box: HTMLDivElement, pier: Pier): void {
if (!pier.model || !rebar3d) return;
const L = pier.model.copingL;