修复疏密数据计算错误导致的错误

This commit is contained in:
shefengchun 2023-02-28 10:29:17 +08:00
parent 039d2d2de3
commit 593323a934
1 changed files with 1 additions and 9 deletions

View File

@ -339,15 +339,7 @@ export default defineComponent({
let tmp = { value_h: value_h.value, value_v: value_v.value, value_v_point_amount: value_v_point_amount.value, value_h_point_amount: value_h_point_amount.value, value_v_point: value_v_point.value, value_h_point: value_h_point.value }
set_cache.value[selectedprojector.value] = JSON.stringify(tmp);
}
const auxiliary_line = ref(false)
watch(
() => configselsect,
(newVal, oldVal) => {
@ -516,7 +508,7 @@ export default defineComponent({
*/
const coordinate_transformation_xy_to_value = (x: number, y: number): { x: number, y: number } => {
x = x * Proportion.value.x
y = (max.value.y - y) * Proportion.value.y
y = (max.value.y - y - point.value.h) * Proportion.value.y
return { x, y }
}