修复疏密校正点不同步

This commit is contained in:
shefengchun 2023-02-03 11:12:16 +08:00
parent 08c19d630d
commit 13d71b2a6b
2 changed files with 18 additions and 1 deletions

View File

@ -261,6 +261,20 @@ export default defineComponent({
const ste_status = ref(0); const ste_status = ref(0);
// //
const syncpoint = () => { const syncpoint = () => {
let x = 0
let y = 0
for (let index = 0; index < 5; index++) {
x = default_location[index].x;
y = Math.ceil((config.height - value[index].y) / Proportion.value.y);
setdianposin(index, x, y);
}
for (let index = 5; index < 10; index++) {
x = Math.ceil(value[index].x / Proportion.value.x);
y = default_location[5].y;
setdianposin(index, x, y);
}
for (let index = 0; index < value.length; index++) { for (let index = 0; index < value.length; index++) {
isactivearray.value[index] = false; isactivearray.value[index] = false;
} }
@ -450,6 +464,7 @@ export default defineComponent({
} }
}; };
onMounted(() => { onMounted(() => {
initialization(); initialization();
Proportion.value.x = config.width / (div.value.offsetWidth - 40); Proportion.value.x = config.width / (div.value.offsetWidth - 40);
@ -470,6 +485,8 @@ export default defineComponent({
Width * (index - 5); Width * (index - 5);
} }
} }
use_server_config();
syncpoint();
}); });
// //

View File

@ -441,7 +441,7 @@ export default {
"Please select an override":"Please select an override", "Please select an override":"Please select an override",
"confirm delete":"confirm delete", "confirm delete":"confirm delete",
"delete or not":"delete or not", "delete or not":"delete or not",
"debugging":"debugging", "debugging":"Debugging",
"disable_blending":"disable blending", "disable_blending":"disable blending",
"disable_clip":"disable clip", "disable_clip":"disable clip",
"show_mask":"hide desktop", "show_mask":"hide desktop",