修复疏密数据计算错误导致的错误
This commit is contained in:
parent
039d2d2de3
commit
593323a934
|
@ -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 }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue