diff --git a/shepherd.js/src/utils/overlay-path.ts b/shepherd.js/src/utils/overlay-path.ts index 89cc3f9ee..88e565d87 100644 --- a/shepherd.js/src/utils/overlay-path.ts +++ b/shepherd.js/src/utils/overlay-path.ts @@ -39,19 +39,19 @@ export function makeOverlayPath({ ? { topLeft: r, topRight: r, bottomRight: r, bottomLeft: r } : r; - return `M${w},${h}\ -H0\ -V0\ -H${w}\ -V${h}\ -Z\ -M${x + topLeft},${y}\ -a${topLeft},${topLeft},0,0,0-${topLeft},${topLeft}\ -V${height + y - bottomLeft}\ -a${bottomLeft},${bottomLeft},0,0,0,${bottomLeft},${bottomLeft}\ -H${width + x - bottomRight}\ -a${bottomRight},${bottomRight},0,0,0,${bottomRight}-${bottomRight}\ -V${y + topRight}\ -a${topRight},${topRight},0,0,0-${topRight}-${topRight}\ + return `M${w},${h} +H0 +V0 +H${w} +V${h} +Z +M${x + topLeft},${y} +a${topLeft},${topLeft},0,0,0-${topLeft},${topLeft} +V${height + y - bottomLeft} +a${bottomLeft},${bottomLeft},0,0,0,${bottomLeft},${bottomLeft} +H${width + x - bottomRight} +a${bottomRight},${bottomRight},0,0,0,${bottomRight}-${bottomRight} +V${y + topRight} +a${topRight},${topRight},0,0,0-${topRight}-${topRight} Z`; }