fix(rebar): turn the S1 layout dimension to run along the 교각축 beside the block
- The S1 layout runs along the 교각축 (vertical in the plan), so its text sits beside the block, turned to match, instead of across the gap between blocks. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fa1ec3e864
commit
f1b2a0241d
1 file changed
+2
-1
@@ -63,7 +63,8 @@ export function blockRebarPlanSvg(m: PierModel, pairIndex = 0): string {
|
||||
const [bx, by] = P(wA / 2 + 0.22, 0);
|
||||
parts.push(`<text x="${bx}" y="${by}" text-anchor="middle" font-size="80" fill="#0F5C66">${layout(a2d.count, a2d.spacing, a2d.firstEnd)}</text>`);
|
||||
const [rx, ry] = P(0, wC / 2 + 0.22);
|
||||
parts.push(`<text x="${rx}" y="${ry}" text-anchor="start" font-size="80" fill="#B4531F">${layout(a1d.count, a1d.spacing, a1d.firstEnd)}</text>`);
|
||||
// The S1 layout runs along the 교각축 (vertical in the plan), so its text is turned to read along that dimension line.
|
||||
parts.push(`<text x="${rx}" y="${ry}" transform="rotate(-90 ${rx} ${ry})" text-anchor="middle" font-size="80" fill="#B4531F">${layout(a1d.count, a1d.spacing, a1d.firstEnd)}</text>`);
|
||||
const [wx, wy] = P(-wA / 2 - 0.2, 0);
|
||||
parts.push(`<text x="${wx}" y="${wy}" text-anchor="end" font-size="90" fill="#18212B">${Math.round(wC * 1000)}</text>`);
|
||||
return P;
|
||||
|
||||
Reference in new issue
Block a user