diff --git a/src/view/bearing-plan-svg.ts b/src/view/bearing-plan-svg.ts index 0dc4b62..acb5664 100644 --- a/src/view/bearing-plan-svg.ts +++ b/src/view/bearing-plan-svg.ts @@ -84,9 +84,14 @@ export function bearingPlanSvg(m: PierModel, pairIndex: number, overlay?: Bearin parts.push(dimLine(X(k.n), xRight, y1, `C1 ${Math.round(d(k.no).rightMm ?? 600)}`)); parts.push(dimLine(xLeft, xRight, y2, `C3 ${Math.round((xRight - xLeft))}`)); - // C4 and C5: the outer margins along the 교축, shown at the outer block edges. - parts.push(`C4 ${Math.round(d(f.no).leftMm ?? 0)}`); - parts.push(`C5 ${Math.round(d(k.no).rightMm ?? 0)}`); + // C4 and C5 as in the 시안: vertical dimensions on the left of the blocks, from the top edge to the bearing row (C4) and + // from the bearing row to the bottom edge (C5). Values: the model's C4 and C5 (outer margins). + const xv = xLeft - 300; + const halfDepth = 600; + const vdim = (y1: number, y2: number, label: string) => + `${label}`; + parts.push(vdim(-halfDepth, 0, `C4 ${Math.round(d(f.no).leftMm ?? 0)}`)); + parts.push(vdim(0, halfDepth, `C5 ${Math.round(d(k.no).rightMm ?? 0)}`)); return `${parts.join('')}`; }