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

Function analyzeModelFields

renderer.js:18927–18965  ·  view source on GitHub ↗
(models)

Source from the content-addressed store, hash-verified

18925 archiveStatusElement.style.zIndex = 'auto';
18926 archiveStatusElement.style.margin = '0';
18927 // Move the archive status from item to the column (appendChild automatically removes from old parent)
18928 archiveStatusColumn.appendChild(archiveStatusElement);
18929 } else {
18930 // Create archive status if it doesn't exist (shouldn't happen, but just in case)
18931 const archiveStatusText = document.createElement('span');
18932 archiveStatusText.textContent = 'Archive';
18933 archiveStatusText.style.fontSize = '11px';
18934 archiveStatusText.style.color = '#fff';
18935 archiveStatusText.style.padding = '2px 6px';
18936 archiveStatusText.style.borderRadius = '3px';
18937 archiveStatusText.style.background = 'rgba(255, 152, 0, 0.9)';
18938 archiveStatusColumn.appendChild(archiveStatusText);
18939 }
18940 }
18941 fileInfo.appendChild(archiveStatusColumn);
18942
18943 applyListViewColumnLayoutToSubtree(fileInfo);
18944 item.appendChild(fileInfo);
18945
18946 // Add click event handler for model selection
18947 item.addEventListener('click', (e) => {
18948 // Check if ctrl or cmd key is pressed for multi-select
18949 if (e.ctrlKey || e.metaKey) {
18950 handleFileClick(e, model.filePath);
18951 } else {
18952 toggleModelSelection(item, model.filePath);
18953 }
18954 });
18955
18956 // Add context menu handler for list view - works on entire element
18957 addContextMenuHandler(item, model.filePath);
18958
18959 return item;
18960 }
18961
18962 // Preview view: dense square wall (see preview-wall.css)
18963 if (view === 'preview') {
18964 const tilePx = getPreviewTileSizePx();
18965 item.classList.add('preview-tile');
18966 item.style.width = `${tilePx}px`;
18967 item.style.height = `${tilePx}px`;
18968 item.style.minHeight = `${tilePx}px`;

Callers 2

updateModelElementFunction · 0.85
renderVirtualGridFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected