Update pinInteractions.ts

This commit is contained in:
Daniel Fiuk 2026-04-21 17:30:44 -06:00
parent 664fdb3235
commit ca5e18345c

View file

@ -440,8 +440,8 @@ class PinInteractionManager implements PinInteractionController {
return `viewBox="${vb}"`;
}
const [x, y, w, h] = parts;
return `viewBox="${(x ??= 500) - pad} ${(y ??= 500) - pad} ${(w ??= 500) + pad * 2} ${(h ??= 500) + pad * 2}"`;
const [x, y, w, h] = parts ??= [0, 0, 500, 500];
return `viewBox="${x - pad} ${y - pad} ${w + pad * 2} ${h + pad * 2}"`;
});
}