Remove padding from spur label — wide end has plenty of room
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ff952c5cb1
commit
9197697129
@ -556,11 +556,11 @@ function drawConveyanceLabel(ctx: CanvasRenderingContext2D, sym: PlacedSymbol) {
|
|||||||
let cx: number, cy: number, availW: number, availH: number;
|
let cx: number, cy: number, availW: number, availH: number;
|
||||||
if (isSpurType(sym.symbolId)) {
|
if (isSpurType(sym.symbolId)) {
|
||||||
const w2 = sym.w2 ?? sym.w;
|
const w2 = sym.w2 ?? sym.w;
|
||||||
// Place text at the wide end corner of the trapezoid
|
// Place text at the wide end corner — no horizontal padding needed
|
||||||
cx = sym.x + sym.w / 2;
|
cx = sym.x + sym.w / 2;
|
||||||
cy = sym.y + sym.h / 2;
|
cy = sym.y + sym.h / 2;
|
||||||
availW = sym.w - pad * 2;
|
availW = sym.w;
|
||||||
availH = sym.h - pad * 2;
|
availH = sym.h;
|
||||||
} else {
|
} else {
|
||||||
cx = sym.x + sym.w / 2;
|
cx = sym.x + sym.w / 2;
|
||||||
cy = sym.y + sym.h / 2;
|
cy = sym.y + sym.h / 2;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user