diff --git a/src/main.ts b/src/main.ts index 0e2283e..bd67b13 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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('[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('[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; diff --git a/src/view/footing-section-svg.ts b/src/view/footing-section-svg.ts index fd9e0ac..7a91b9f 100644 --- a/src/view/footing-section-svg.ts +++ b/src/view/footing-section-svg.ts @@ -155,7 +155,7 @@ export function footingSectionSvg(model: PierModel): string { // Bubbles outside the outline, spread apart, each with a leader to its bar (the leader carries the same data-bar, so it highlights too). const bubble = (name: string, bx: number, by: number, tx: number, ty: number) => { const edgeY = by < ty ? by + 11 : by - 11; - return `${name}`; + return `${name}`; }; const zB11 = js.length > 0 ? fs.cBottom + js[0] * fs.sV : fs.cBottom; const yTop = 40;