Update pinInteractions.ts

This commit is contained in:
Daniel Fiuk 2026-04-21 17:35:12 -06:00
parent 5b2da38074
commit 2d0cf45253

View file

@ -439,7 +439,8 @@ class PinInteractionManager implements PinInteractionController {
if (parts.length !== 4 || parts.some(value => value === undefined || Number.isNaN(value))) {
return `viewBox="${vb}"`;
}
const [x, y, w, h] = parts;
x ??= 0;
y ??= 0;
w ??= 500;