修复疏密校正点不同步
This commit is contained in:
parent
08c19d630d
commit
13d71b2a6b
|
@ -261,6 +261,20 @@ export default defineComponent({
|
|||
const ste_status = ref(0);
|
||||
//为了加载 缓存的配置时 同步点的位置
|
||||
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++) {
|
||||
isactivearray.value[index] = false;
|
||||
}
|
||||
|
@ -450,6 +464,7 @@ export default defineComponent({
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
initialization();
|
||||
Proportion.value.x = config.width / (div.value.offsetWidth - 40);
|
||||
|
@ -470,6 +485,8 @@ export default defineComponent({
|
|||
Width * (index - 5);
|
||||
}
|
||||
}
|
||||
use_server_config();
|
||||
syncpoint();
|
||||
});
|
||||
|
||||
//窗口变动重新渲染
|
||||
|
|
|
@ -441,7 +441,7 @@ export default {
|
|||
"Please select an override":"Please select an override",
|
||||
"confirm delete":"confirm delete",
|
||||
"delete or not":"delete or not",
|
||||
"debugging":"debugging",
|
||||
"debugging":"Debugging",
|
||||
"disable_blending":"disable blending",
|
||||
"disable_clip":"disable clip",
|
||||
"show_mask":"hide desktop",
|
||||
|
|
Loading…
Reference in New Issue