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

Function parseZipPath

renderer.js:887–893  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

885let pendingThumbnails = new Set(); // Track files currently being rendered
886/** Soft cap so fast scrolling cannot enqueue thousands of 3MF extract/WebGL jobs. */
887const RENDER_QUEUE_SOFT_CAP = 120;
888
889function enqueueRenderTask(task) {
890 if (!task || !task.filePath) return false;
891 pruneDisconnectedRenderTasks();
892 if (renderQueue.length >= RENDER_QUEUE_SOFT_CAP) {
893 // Drop lowest-priority (usually off-screen) tasks first.
894 renderQueue.sort((a, b) => (a.thumbPriority ?? 1e9) - (b.thumbPriority ?? 1e9));
895 while (renderQueue.length >= RENDER_QUEUE_SOFT_CAP) {
896 const dropped = renderQueue.pop();

Callers 4

loadModelFunction · 0.70
getZipArchiveGroupLabelFunction · 0.70
getZipArchiveGroupKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected