From 34a8abe1f69788b0564751498c6d1c60e7275f33 Mon Sep 17 00:00:00 2001 From: zk-phi Date: Thu, 17 Oct 2024 01:05:37 +0900 Subject: [PATCH] Fix linter issues --- src/utils/canvas.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils/canvas.ts b/src/utils/canvas.ts index a497ce79..3c77c38e 100644 --- a/src/utils/canvas.ts +++ b/src/utils/canvas.ts @@ -26,20 +26,20 @@ export const fixDrawImage = ( if (params.sLeft < 0) { params = { ...params, - sLeft: params.sLeft + (- params.sLeft), // = 0 - tLeft: params.tLeft + (- params.sLeft) * xScale, - sWidth: params.sWidth - (- params.sLeft), - tWidth: params.tWidth - (- params.sLeft) * xScale, + sLeft: params.sLeft + (-params.sLeft), // = 0 + tLeft: params.tLeft + (-params.sLeft) * xScale, + sWidth: params.sWidth - (-params.sLeft), + tWidth: params.tWidth - (-params.sLeft) * xScale, }; } if (params.sTop < 0) { params = { ...params, - sTop: params.sTop + (- params.sTop), // = 0 - tTop: params.tTop + (- params.sTop) * yScale, - sHeight: params.sHeight - (- params.sTop), - tHeight: params.tHeight - (- params.sTop) * yScale, + sTop: params.sTop + (-params.sTop), // = 0 + tTop: params.tTop + (-params.sTop) * yScale, + sHeight: params.sHeight - (-params.sTop), + tHeight: params.tHeight - (-params.sTop) * yScale, }; }