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

Function runScan

renderer.js:8398–8405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8396 try {
8397 const models = await window.electron.getModelsByDirectory(directoryPath);
8398 await displayModels(models);
8399 } catch (error) {
8400 console.error('Error filtering by directory:', error);
8401 }
8402 }
8403
8404 // Add these constants at the top with other constants
8405 const ROULETTE_SPINS = 10; // Number of models to highlight before stopping
8406 const ROULETTE_INITIAL_DELAY = 100; // Initial delay between highlights in ms
8407 const ROULETTE_DELAY_INCREMENT = 20; // How much to slow down each spin
8408

Callers

nothing calls this directly

Calls 2

performSTLHomeScanFunction · 0.85
stopPeriodicSTLHomeScanFunction · 0.85

Tested by

no test coverage detected