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

Function syncSelectedModelsWithDOM

renderer.js:13326–13333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13324 async function loadAndRenderModels(modelRefs, batchSize = 20) {
13325 if (!modelRefs || !Array.isArray(modelRefs)) {
13326 console.warn('Invalid model references provided to loadAndRenderModels');
13327 return;
13328 }
13329
13330 try {
13331 // Process in batches for better performance
13332 for (let i = 0; i < modelRefs.length; i += batchSize) {
13333 const batch = modelRefs.slice(i, i + batchSize);
13334
13335 // Load detailed model data for each model in the batch
13336 for (const modelRef of batch) {

Callers 1

handleFileClickFunction · 0.85

Calls 2

isInSelectedModelsFunction · 0.85
addToSelectedModelsFunction · 0.85

Tested by

no test coverage detected