mirror of
https://github.com/daniel-fiuk/simple-map.git
synced 2026-07-22 06:54:24 +00:00
Update pinInteractions.ts
This commit is contained in:
parent
664fdb3235
commit
ca5e18345c
1 changed files with 2 additions and 2 deletions
|
|
@ -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}"`;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue