modules/modes/select_ai_features.js
// class the data as selected, or return to browse mode if the data is gone
class the data as selected, or return to browse mode if the data is gone
class the data as selected or return to browse mode if the data is gone
function selectData(drawn) {
        var selection = context.surface().selectAll('.layer-ai-features .data' + selectedDatum.__fbid__);
        if (selection.empty()) {
            var source = d3_event && d3_event.type === 'zoom' && d3_event.sourceEvent;
            if (drawn && source && (source.type === 'mousemove' || source.type === 'touchmove')) {
                context.enter(modeBrowse(context));
            }
        } else {
            selection.classed('selected', true);
        }
    }
function selectData ( drawn ) { var selection = context . surface ( ) . selectAll ( '.layer-ai-features .data' + selectedDatum . __fbid__ ) ; if ( selection . empty ( ) ) { var source = d3_event && d3_event . type === 'zoom' && d3_event . sourceEvent ; if ( drawn && source && ( source . type === 'mousemove' || source . type === 'touchmove' ) ) { context . enter ( modeBrowse ( context ) ) ; } } else { selection . classed ( 'selected' , true ) ; } }
class the data as selected, or return to browse mode if the data is gone
class the data as selected or return to browse mode if the data is gone
// Return to browse mode if selected DOM elements have // disappeared because the user moved them out of view..