shx-3d-render
parent
ca7fa47a59
commit
e2f9c16ce3
|
@ -403,6 +403,15 @@
|
|||
}
|
||||
|
||||
renderView() {
|
||||
let currentTimeout = this.renderViewDebounce;
|
||||
if(currentTimeout) {
|
||||
clearTimeout(currentTimeout);
|
||||
}
|
||||
|
||||
this.renderViewDebounce = setTimeout(this._renderView.bind(this), 500);
|
||||
}
|
||||
|
||||
_renderView() {
|
||||
// request data from server
|
||||
let tJS = this.tJS;
|
||||
|
||||
|
@ -453,18 +462,6 @@
|
|||
|
||||
this.loadingSpinner.show();
|
||||
|
||||
|
||||
|
||||
/*fetch('https://render.shinnex.de/render/' + this.currentVariant, { method: 'POST', body: JSON.stringify(globalInputFormsObjValues[this.currentVariant]) })
|
||||
.then((response) => {
|
||||
// stl file
|
||||
return response.blob();
|
||||
}).then((blob) => {
|
||||
// log size in kB
|
||||
console.log(blob.size / 1024 + 'kB');
|
||||
|
||||
});*/
|
||||
|
||||
}
|
||||
|
||||
updateSelectSwatch(event) {
|
||||
|
|
Loading…
Reference in New Issue