MCPcopy Index your code
hub / github.com/plotly/plotly.js / _doSelect

Function _doSelect

src/components/selections/select.js:1080–1098  ·  view source on GitHub ↗
(selectionTesters, searchTraces)

Source from the content-addressed store, hash-verified

1078}
1079
1080function _doSelect(selectionTesters, searchTraces) {
1081 var allSelections = [];
1082
1083 var thisSelection;
1084 var traceSelections = [];
1085 var traceSelection;
1086 for(var i = 0; i < searchTraces.length; i++) {
1087 var searchInfo = searchTraces[i];
1088
1089 traceSelection = searchInfo._module.selectPoints(searchInfo, selectionTesters);
1090 traceSelections.push(traceSelection);
1091
1092 thisSelection = fillSelectionItem(traceSelection, searchInfo);
1093
1094 allSelections = allSelections.concat(thisSelection);
1095 }
1096
1097 return allSelections;
1098}
1099
1100function reselect(gd, mayEmitSelected, selectionTesters, searchTraces, dragOptions) {
1101 var hadSearchTraces = !!searchTraces;

Callers 2

prepSelectFunction · 0.85
reselectFunction · 0.85

Calls 1

fillSelectionItemFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…