From 2563c01196764bf06523bf8634fadf4e11805645 Mon Sep 17 00:00:00 2001 From: AishwaryaAgr Date: Wed, 2 Oct 2024 10:18:13 +0530 Subject: [PATCH] String continuations are not recommended --- shepherd.js/src/utils/overlay-path.ts | 28 +++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) 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`; }