From 4b29d4b012c6469075648bc0bef45ce490c38e55 Mon Sep 17 00:00:00 2001
From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com>
Date: Fri, 4 Oct 2024 14:42:03 +0530
Subject: [PATCH] Update function and translation
---
.../components/main-content/lens-view.tsx | 64 +++++++++++--------
renderer/locales/ru.json | 4 +-
renderer/locales/zh.json | 4 +-
3 files changed, 42 insertions(+), 30 deletions(-)
diff --git a/renderer/components/main-content/lens-view.tsx b/renderer/components/main-content/lens-view.tsx
index 002fb98..ac27949 100644
--- a/renderer/components/main-content/lens-view.tsx
+++ b/renderer/components/main-content/lens-view.tsx
@@ -1,5 +1,31 @@
import React, { useRef, useState } from "react";
+const LensImage = ({
+ src,
+ alt,
+ lensPosition,
+ zoomAmount,
+}: {
+ src: string;
+ alt: string;
+ lensPosition: { x: number; y: number };
+ zoomAmount: number;
+}) => (
+
+

+
+);
+
const LensViewer = ({
zoomAmount,
lensSize,
@@ -53,32 +79,18 @@ const LensViewer = ({
}}
>
-
-

-
-
-

-
+
+
Original
diff --git a/renderer/locales/ru.json b/renderer/locales/ru.json
index 3a4a62c..00e58ce 100644
--- a/renderer/locales/ru.json
+++ b/renderer/locales/ru.json
@@ -127,8 +127,8 @@
"FROM_TITLE": "Увеличить с ",
"TO_TITLE": " до ",
"NO_OUTPUT_FOLDER_ALERT": "Пожалуйста, сначала выберите папку вывода",
- "START_BUTTON_TITLE": "Увеличить",
- "IN_PROGRESS_BUTTON_TITLE": "Увеличение⏳"
+ "START_BUTTON_TITLE": "Увеличить 🚀",
+ "IN_PROGRESS_BUTTON_TITLE": "Увеличение ⏳"
},
"IMAGE_OPTIONS": {
"RESET_BUTTON_TITLE": "Сбросить изображение",
diff --git a/renderer/locales/zh.json b/renderer/locales/zh.json
index ac0cffb..4cb4d7d 100644
--- a/renderer/locales/zh.json
+++ b/renderer/locales/zh.json
@@ -127,8 +127,8 @@
"FROM_TITLE": "从 ",
"TO_TITLE": " 升图到 ",
"NO_OUTPUT_FOLDER_ALERT": "请先选择一个输出文件夹",
- "START_BUTTON_TITLE": "升图!",
- "IN_PROGRESS_BUTTON_TITLE": "正在升图⏳"
+ "START_BUTTON_TITLE": "升图!🚀",
+ "IN_PROGRESS_BUTTON_TITLE": "正在升图 ⏳"
},
"IMAGE_OPTIONS": {
"RESET_BUTTON_TITLE": "重置图片",