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

Function activateLastSelection

src/components/selections/draw.js:173–180  ·  view source on GitHub ↗
(gd)

Source from the content-addressed store, hash-verified

171}
172
173function activateLastSelection(gd) {
174 if(!couldHaveActiveSelection(gd)) return;
175
176 var id = gd._fullLayout.selections.length - 1;
177 gd._fullLayout._activeSelectionIndex = id;
178 gd._fullLayout._deactivateSelection = deactivateSelection;
179 draw(gd);
180}
181
182function deactivateSelection(gd) {
183 if(!couldHaveActiveSelection(gd)) return;

Callers 1

clearSelectionsCacheFunction · 0.85

Calls 2

couldHaveActiveSelectionFunction · 0.85
drawFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…