← Commit history

Fix: the Ground button rebuilt the ground opaque, so the grey rectangle returned when toggling it off and on. Re-apply Colby's radial-fade circle (matchColby) right after setGroundVisible so the ground stays his soft circle. Updates the characterization-page hero viewer and the README embed.

AravK ·4a6af180f8 ·3mo ago ·parent 874c0bf
2 files changed +2−2
IN-S42ATR-viewer.html+1−1
@@ -399,7 +399,7 @@   // 7) Buttons — Ground / Bottom light call HIS API; Layers is our menu.   document.getElementById('mode-static').onclick = () => setMode('static');   document.getElementById('mode-pnp').onclick    = () => setMode('pnp');-  document.getElementById('btn-ground').onclick = function(){ this.classList.toggle('on'); viewer.setGroundVisible(this.classList.contains('on')); };+  document.getElementById('btn-ground').onclick = function(){ this.classList.toggle('on'); viewer.setGroundVisible(this.classList.contains('on')); matchColby(); };   // setGroundVisible rebuilds the ground opaque — re-apply his fade circle   document.getElementById('btn-bottom').onclick = function(){ this.classList.toggle('on'); if (bottomFill) bottomFill.intensity = this.classList.contains('on') ? 0.6 : 0; };   document.getElementById('btn-layers').onclick = function(){ document.getElementById('layer-menu').classList.toggle('open'); this.classList.toggle('on'); }; 
README.html+1−1
@@ -433,7 +433,7 @@   // 7) Buttons — Ground / Bottom light call HIS API; Layers is our menu.   document.getElementById('mode-static').onclick = () => setMode('static');   document.getElementById('mode-pnp').onclick    = () => setMode('pnp');-  document.getElementById('btn-ground').onclick = function(){ this.classList.toggle('on'); viewer.setGroundVisible(this.classList.contains('on')); };+  document.getElementById('btn-ground').onclick = function(){ this.classList.toggle('on'); viewer.setGroundVisible(this.classList.contains('on')); matchColby(); };   // setGroundVisible rebuilds the ground opaque — re-apply his fade circle   document.getElementById('btn-bottom').onclick = function(){ this.classList.toggle('on'); if (bottomFill) bottomFill.intensity = this.classList.contains('on') ? 0.6 : 0; };   document.getElementById('btn-layers').onclick = function(){ document.getElementById('layer-menu').classList.toggle('open'); this.classList.toggle('on'); };