feat(viewer3d): atenuar a 5% pecas sem apontamento e exibir em solido apenas pecas com apontamento no modo Todos

This commit is contained in:
2026-09-21 18:50:17 +00:00
parent af6a258d28
commit 368ed74400
2 changed files with 114 additions and 86 deletions
+5 -3
View File
@@ -197,15 +197,17 @@ export default function Visualizador3D() {
if (qty > 0) {
existing.processPointedQtds[procNorm] = (existing.processPointedQtds[procNorm] || 0) + qty;
if (!existing.processesCompleted.includes(procNorm)) {
existing.processesCompleted.push(procNorm);
}
if (!isDetalhamento) {
existing.pointedQtd = Math.max(existing.pointedQtd, qty);
if (!existing.processesCompleted.includes(procNorm)) {
existing.processesCompleted.push(procNorm);
}
existing.currentProcessName = procRaw || existing.currentProcessName;
existing.processColor = ap.processo?.cor || PROCESS_COLORS[procRaw] || '#10b981';
existing.processOrdem = Math.max(existing.processOrdem, Number(ap.processo?.ordem || 0));
} else {
existing.hasDetalhamento = true;
}
}
}