Skip to content

Commit 1bf7f7b

Browse files
committed
changed lockfile
1 parent 49606ce commit 1bf7f7b

File tree

4 files changed

+1030
-624
lines changed

4 files changed

+1030
-624
lines changed

src/app/tool/art/monochrome-merge/client.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,13 @@ export default function MonochromeMergeClient() {
5050

5151
const processImageData = (
5252
imageData: ImageData,
53-
isLight: boolean
53+
isLight: boolean,
5454
): ImageData => {
5555
const { data, width, height } = imageData;
5656

5757
const histogram = new Array(256).fill(0);
5858
for (let i = 0; i < data.length; i += 4) {
59-
const grayscale = Math.round(
60-
(data[i] + data[i + 1] + data[i + 2]) / 3
61-
);
59+
const grayscale = Math.round((data[i] + data[i + 1] + data[i + 2]) / 3);
6260
histogram[grayscale]++;
6361
}
6462

@@ -121,7 +119,7 @@ export default function MonochromeMergeClient() {
121119
if (!lightCtx) return;
122120
const lightScale = Math.min(
123121
maxWidth / lightImg.width,
124-
maxHeight / lightImg.height
122+
maxHeight / lightImg.height,
125123
);
126124
const lightNewWidth = lightImg.width * lightScale;
127125
const lightNewHeight = lightImg.height * lightScale;
@@ -132,7 +130,7 @@ export default function MonochromeMergeClient() {
132130
lightX,
133131
lightY,
134132
lightNewWidth,
135-
lightNewHeight
133+
lightNewHeight,
136134
);
137135
const lightScaledData = lightCtx.getImageData(0, 0, maxWidth, maxHeight);
138136

@@ -144,7 +142,7 @@ export default function MonochromeMergeClient() {
144142
if (!darkCtx) return;
145143
const darkScale = Math.min(
146144
maxWidth / darkImg.width,
147-
maxHeight / darkImg.height
145+
maxHeight / darkImg.height,
148146
);
149147
const darkNewWidth = darkImg.width * darkScale;
150148
const darkNewHeight = darkImg.height * darkScale;

src/app/tool/art/monochrome-merge/img.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React from "react";
22

33
export const PlaceholderImage = () => {
44
return (

src/app/tool/art/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ export default function ArtToolPage() {
1111
<section className="tool-list-section">
1212
<h1>{t("title")}</h1>
1313
<div className="tool-categories">
14-
<Link href="/tool/art/monochrome-merge" className="tool-category-card">
14+
<Link
15+
href="/tool/art/monochrome-merge"
16+
className="tool-category-card"
17+
>
1518
<div className="tool-category-info">
1619
<h2>{t("monochrome-merge.title")}</h2>
1720
<p>{t("monochrome-merge.description")}</p>

0 commit comments

Comments
 (0)