(files)
| 13287 | } |
| 13288 | |
| 13289 | function handleContextRestored() { |
| 13290 | console.log('WebGL context restored'); |
| 13291 | // Renderer will be recreated on next render |
| 13292 | } |
| 13293 | |
| 13294 | // Update showSpinner function to show progress section instead |
| 13295 | function showProgressBars() { |
| 13296 | const progressSection = document.getElementById('progress-section'); |
| 13297 | const progressBar = document.getElementById('progress-bar'); |
| 13298 | const renderProgressBar = document.getElementById('render-progress-bar'); |
| 13299 | const progressText = document.getElementById('progress-text'); |
| 13300 | const renderProgressText = document.getElementById('render-progress-text'); |
| 13301 | |
| 13302 | progressSection.classList.remove('hidden'); |
| 13303 | progressBar.style.width = '0%'; |
| 13304 | renderProgressBar.style.width = '0%'; |
| 13305 | progressText.textContent = '0 / 0 files'; |
| 13306 | renderProgressText.textContent = '0 / 0 models'; |
| 13307 | } |
| 13308 | |
| 13309 | // Update hideSpinner function |
| 13310 | function hideProgressBars() { |
| 13311 | const progressSection = document.getElementById('progress-section'); |
| 13312 | progressSection.classList.add('hidden'); |
| 13313 | } |
| 13314 |
no test coverage detected