From ca5e18345c77ca291bfd8cf52d9c96c75876b928 Mon Sep 17 00:00:00 2001 From: Daniel Fiuk Date: Tue, 21 Apr 2026 17:30:44 -0600 Subject: [PATCH] Update pinInteractions.ts --- src/pinInteractions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pinInteractions.ts b/src/pinInteractions.ts index 795a0ca..cdbd27d 100644 --- a/src/pinInteractions.ts +++ b/src/pinInteractions.ts @@ -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}"`; }); }