diff --git a/src/components/FusionSettings/FourPointCalibration.vue b/src/components/FusionSettings/FourPointCalibration.vue index a70a2dc..a05ca16 100644 --- a/src/components/FusionSettings/FourPointCalibration.vue +++ b/src/components/FusionSettings/FourPointCalibration.vue @@ -134,6 +134,7 @@ export default defineComponent({ value.value = [] value_point.value = [] for (let index = 0; index < config.point4.length; index++) { + let tmp: DensityCorrectionPoint = config.point4[index]; value.value.push(tmp) let x_y = coordinate_transformation_value_to_xy(tmp.x, tmp.y) @@ -334,10 +335,9 @@ export default defineComponent({ Proportion.value.x = allconfig.projector_width / (div.value.offsetWidth - point.value.w) Proportion.value.y = allconfig.projector_height / (div.value.offsetHeight - point.value.h) set?.GetBlendingConfig("").then((res) => { - allconfig=JSON.parse(res?.config??"") - }) + config=JSON.parse(res?.config??"").projectors[selectedprojector.value]; start_point() - start() + //start() use_server_config() if ( sessionStorage.FourPointCalibration && @@ -345,7 +345,7 @@ export default defineComponent({ ) { set_cache.value = JSON.parse(sessionStorage.FourPointCalibration); use_set_cache(); - } + }}) window.onresize = () => { return (() => { if (div != null) {