MCPcopy
hub / github.com/plotly/plotly.js / updateReglSelectedState

Function updateReglSelectedState

src/components/selections/select.js:994–1017  ·  view source on GitHub ↗
(gd, searchTraces)

Source from the content-addressed store, hash-verified

992}
993
994function updateReglSelectedState(gd, searchTraces) {
995 var hasRegl = false;
996
997 for(var i = 0; i < searchTraces.length; i++) {
998 var searchInfo = searchTraces[i];
999 var cd = searchInfo.cd;
1000
1001 if(Registry.traceIs(cd[0].trace, 'regl')) {
1002 hasRegl = true;
1003 }
1004
1005 var _module = searchInfo._module;
1006 var fn = _module.styleOnSelect || _module.style;
1007 if(fn) {
1008 fn(gd, cd, cd[0].node3);
1009 if(cd[0].nodeRangePlot3) fn(gd, cd, cd[0].nodeRangePlot3);
1010 }
1011 }
1012
1013 if(hasRegl) {
1014 clearGlCanvases(gd);
1015 redrawReglTraces(gd);
1016 }
1017}
1018
1019function mergePolygons(list, poly, subtract) {
1020 var fn = subtract ?

Callers 1

updateSelectedStateFunction · 0.85

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…