This commit is contained in:
kron
2025-07-03 11:05:31 +08:00
parent 7fb72c9b1e
commit 9f7ef906bd
2 changed files with 7 additions and 10 deletions

View File

@@ -107,12 +107,12 @@ watch(
);
function calcRealX(num) {
const len = 20 + num;
return `calc(${(len / 40) * 100}% - 8px)`;
const len = 20.4 + num;
return `calc(${(len / 40.8) * 100}% - 8px)`;
}
function calcRealY(num) {
const len = num < 0 ? Math.abs(num) + 20 : 20 - num;
return `calc(${(len / 40) * 100}% - 8px)`;
const len = num < 0 ? Math.abs(num) + 20.4 : 20.4 - num;
return `calc(${(len / 40.8) * 100}% - 8px)`;
}
const simulShoot = async () => {
if (device.value.deviceId) await simulShootAPI(device.value.deviceId);