()
| 52 | } |
| 53 | |
| 54 | function createStatsPanel() { |
| 55 | stats = new Stats(); |
| 56 | stats.customFpsPanel = stats.addPanel(new Stats.Panel('FPS', '#0ff', '#002')); |
| 57 | stats.showPanel(stats.domElement.children.length - 1); |
| 58 | |
| 59 | statusEl.appendChild(stats.domElement); |
| 60 | |
| 61 | const statsPanes = statusEl.querySelectorAll('canvas'); |
| 62 | |
| 63 | for (let i = 0; i < statsPanes.length; ++i) { |
| 64 | statsPanes[i].style.width = '140px'; |
| 65 | statsPanes[i].style.height = '80px'; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | async function createModel() { |
| 70 | const segmenterConfig = { |