shx-3d-render

main
Jan Umbach 2024-06-22 17:55:16 +02:00
parent 1a8fe4203e
commit d3935c9dbe
1 changed files with 3 additions and 3 deletions

View File

@ -531,13 +531,13 @@
// Clean up the element when it is removed from the DOM. // Clean up the element when it is removed from the DOM.
} }
renderView() { renderView(debounteTime = 1500) {
let currentTimeout = this.renderViewDebounce; let currentTimeout = this.renderViewDebounce;
if(currentTimeout) { if(currentTimeout) {
clearTimeout(currentTimeout); clearTimeout(currentTimeout);
} }
this.renderViewDebounce = setTimeout(this._renderView.bind(this), 500); this.renderViewDebounce = setTimeout(this._renderView.bind(this), debounteTime);
} }
_renderView() { _renderView() {
@ -610,7 +610,7 @@
document.querySelector('.shx-ifc-form_label_selected_' + inputID).innerHTML = filament.name; document.querySelector('.shx-ifc-form_label_selected_' + inputID).innerHTML = filament.name;
this.renderView(); this.renderView(50);
} }
reloadCurrentVariant(id, openAnimation = false) { reloadCurrentVariant(id, openAnimation = false) {