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;