shx-3d-render

main
Jan Umbach 2024-06-15 01:15:31 +02:00
parent ebf22d55e5
commit d4e5a72f26
1 changed files with 10 additions and 1 deletions

View File

@ -153,7 +153,16 @@
// request data from server
let tJS = this.tJS;
console.log("msg sent");
// update globalInputFormsObjValues from input fields
for(let key in globalInputFormsObj) {
if(key === this.currentVariant) {
let inputs = this.content.querySelectorAll('input');
for(let i = 0; i < inputs.length; i++) {
globalInputFormsObjValues[key][inputs[i].name] = inputs[i].value;
}
}
}
this.Viewer3D.contentWindow.postMessage(JSON.stringify({"changeView":{"currentVariant": this.currentVariant, values: globalInputFormsObjValues[this.currentVariant]}}), "*");