function handleModelSelect(evt)
    {
        if (evt.target.dataset.disabled !== 'true')
        {
            delegateSelect(evt);

            const id = parseInt(evt.target.dataset.value);
            activeVisualizer.setIsActive(false);
            visualizers[id].instance.setIsActive(true);
            activeVisualizer = visualizers[id].instance;
            updateControls();

            const inactive  = document.getElementById('window' + (((getCurrentActive() + 2) % 2) + 1));
            const active    = document.getElementById('window' + getCurrentActive());
            active.dataset.state   = 'active';
            inactive.dataset.state = 'inactive';
            resizeVisualizers();
        }
    }
/* ------------------------------------------------------------------------
     * handleModelSelect
     * ------------------------------------------------------------------------
     * param evt - Javascript evt
     *
     * Handler for switching between active visualizations.
     */


param evt - Javascript evt

Handler for switching between active visualizations.
param evt - Javascript evt Handler for switching between active visualizations .
function handleModelSelect(evt)
    {
        if (evt.target.dataset.disabled !== 'true')
        {
            delegateSelect(evt);
            const id = parseInt(evt.target.dataset.value);
            activeVisualizer.setIsActive(false);
            visualizers[id].instance.setIsActive(true);
            activeVisualizer = visualizers[id].instance;
            updateControls();
            const inactive  = document.getElementById('window' + (((getCurrentActive() + 2) % 2) + 1));
            const active    = document.getElementById('window' + getCurrentActive());
            active.dataset.state   = 'active';
            inactive.dataset.state = 'inactive';
            resizeVisualizers();
        }
    }
function handleModelSelect ( evt ) { if ( evt . target . dataset . disabled !== 'true' ) { delegateSelect ( evt ) ; const id = parseInt ( evt . target . dataset . value ) ; activeVisualizer . setIsActive ( false ) ; visualizers [ id ] . instance . setIsActive ( true ) ; activeVisualizer = visualizers [ id ] . instance ; updateControls ( ) ; const inactive = document . getElementById ( 'window' + ( ( ( getCurrentActive ( ) + 2 ) % 2 ) + 1 ) ) ; const active = document . getElementById ( 'window' + getCurrentActive ( ) ) ; active . dataset . state = 'active' ; inactive . dataset . state = 'inactive' ; resizeVisualizers ( ) ; } }
handleModelSelect
handleModelSelect