MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / initializeListButtons

Function initializeListButtons

renderer.js:16562–16578  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16560 camera.position.set(cameraZ, cameraZ * 0.7, cameraZ);
16561 camera.lookAt(0, 0, 0);
16562 renderer.render(scene, camera);
16563 imgData = renderer.domElement.toDataURL('image/png');
16564 }
16565
16566 const img = document.createElement('img');
16567 img.src = imgData;
16568 img.style.width = '250px';
16569 img.style.height = '250px';
16570 container.innerHTML = '';
16571 container.appendChild(img);
16572
16573 return imgData;
16574
16575 } catch (error) {
16576 console.error('Error rendering model:', error);
16577 const corruptedDataUrl = generateCorruptedPlaceholder();
16578 const img = document.createElement('img');
16579 img.src = corruptedDataUrl;
16580 img.style.width = '250px';
16581 img.style.height = '250px';

Callers 2

renderer.jsFile · 0.85
showMultiEditPanelFunction · 0.85

Calls 1

showSearchableListDialogFunction · 0.85

Tested by

no test coverage detected