From 8d13757c4d81add1d05340704fff8070825f716e Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 9 May 2026 09:03:11 +0000 Subject: [PATCH] Viewer: add clash visibility mode (ifcurl-982) viewer.html: add 'clash' option to the visibility diff --git a/forgejo/custom/public/assets/viewer.js b/forgejo/custom/public/assets/viewer.js index b33edfb..049f82f 100644 --- a/forgejo/custom/public/assets/viewer.js +++ b/forgejo/custom/public/assets/viewer.js @@ -501,6 +501,8 @@ async function applySelector(components, model, selectorStr, srcUrl, visibility new THREE.Color(0x888888), 0.15); } else if (visibility === "isolate") { await hider.isolate(matching); + } else if (visibility === "clash") { + await applyFragmentStyle(components, matching, new THREE.Color(0xdc3232), 1); } else { // highlight (default): colour-overlay the selected elements, all others visible. await applyFragmentStyle(components, matching, new THREE.Color(0xff8800), 1); @@ -536,6 +538,8 @@ async function applySelector(components, model, selectorStr, srcUrl, visibility new THREE.Color(0x888888), 0.15); } else if (visibility === "isolate") { await hider.isolate(matchingMap); + } else if (visibility === "clash") { + await applyFragmentStyle(components, matchingMap, new THREE.Color(0xdc3232), 1); } else { await applyFragmentStyle(components, matchingMap, new THREE.Color(0xff8800), 1); }