Skip to content

Commit

Permalink
chore(clip): fix rect type
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Sep 18, 2023
1 parent c87eaf7 commit 496fde5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions kayle/lib/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
2 changes: 1 addition & 1 deletion kayle/lib/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 496fde5

Please sign in to comment.