example.js
// show the selected data, hide the rest
show the selected data, hide the rest
show the selected data hide the rest
function showFileInfo(fileInfos, fileInfo) {
            fileInfos.forEach((info) => {
                const visible = fileInfo === info;
                info.elem.className = visible ? 'selected' : '';
                const targets = {};
                fileInfos.forEach((info, i) => {
                    targets[i] = info === fileInfo ? 1 : 0;
                });
                const durationInMs = 1000;
                tweenManager
                    .createTween(mesh.morphTargetInfluences)
                    .to(targets, durationInMs)
                    .start();
            });
            requestRenderIfNotRequested();
        }
function showFileInfo ( fileInfos , fileInfo ) { fileInfos . forEach ( ( info ) => { const visible = fileInfo === info ; info . elem . className = visible ? 'selected' : '' ; const targets = { } ; fileInfos . forEach ( ( info , i ) => { targets [ i ] = info === fileInfo ? 1 : 0 ; } ) ; const durationInMs = 1000 ; tweenManager . createTween ( mesh . morphTargetInfluences ) . to ( targets , durationInMs ) . start ( ) ; } ) ; requestRenderIfNotRequested ( ) ; }
show the selected data, hide the rest
show the selected data hide the rest