From 496fde5ddd76cb10be7193cd9f9ccbdb5aeb3325 Mon Sep 17 00:00:00 2001 From: j-mendez Date: Mon, 18 Sep 2023 15:56:28 -0400 Subject: [PATCH] chore(clip): fix rect type --- kayle/lib/common.ts | 7 +------ kayle/lib/runner.ts | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/kayle/lib/common.ts b/kayle/lib/common.ts index 658ad02..9972d48 100644 --- a/kayle/lib/common.ts +++ b/kayle/lib/common.ts @@ -18,12 +18,7 @@ export type Issue = { recurrence: number; selector: string; // the position on the dom to use for screenshots, targets, and etc. - clip?: { - x: number; - y: number; - width: number; - height: number; - }; + clip?: DOMRect; // base64 image to display in browser. clipBase64?: string; }; diff --git a/kayle/lib/runner.ts b/kayle/lib/runner.ts index da319e0..482f178 100644 --- a/kayle/lib/runner.ts +++ b/kayle/lib/runner.ts @@ -45,7 +45,7 @@ let hiddenElements = null; // shape the issue - const shapeIssue = (issue, cliped?: boolean) => { + const shapeIssue = (issue, cliped) => { let context = ""; let selector = ""; let clip;