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

Function filterByDirectory

renderer.js:8098–8105  ·  view source on GitHub ↗
(directoryPath)

Source from the content-addressed store, hash-verified

8096 const newConcurrentRenders = parseInt(document.getElementById('concurrent-renders').value);
8097 const newMaxFileSize = parseMaxFileSizeMBInput(document.getElementById('max-file-size').value);
8098 const newThumbnailBatchSize = parseInt(document.getElementById('thumbnail-batch-size').value);
8099 const newRenderDelay = parseInt(document.getElementById('render-delay').value);
8100
8101 // Validate inputs
8102 if (isNaN(newBatchSize) || newBatchSize < 1 || newBatchSize > 100) {
8103 throw new Error('Invalid batch size. Must be between 1 and 100.');
8104 }
8105 if (isNaN(newConcurrentRenders) || newConcurrentRenders < 1 || newConcurrentRenders > 10) {
8106 throw new Error('Invalid concurrent renders. Must be between 1 and 10.');
8107 }
8108 if (newMaxFileSize == null) {

Callers

nothing calls this directly

Calls 1

displayModelsFunction · 0.85

Tested by

no test coverage detected