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

Function draw

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

Source from the content-addressed store, hash-verified

29};
30
31function draw(gd) {
32 var fullLayout = gd._fullLayout;
33
34 clearOutlineControllers(gd);
35
36 // Remove previous selections before drawing new selections in fullLayout.selections
37 fullLayout._selectionLayer.selectAll('path').remove();
38
39 for(var k in fullLayout._plots) {
40 var selectionLayer = fullLayout._plots[k].selectionLayer;
41 if(selectionLayer) selectionLayer.selectAll('path').remove();
42 }
43
44 for(var i = 0; i < fullLayout.selections.length; i++) {
45 drawOne(gd, i);
46 }
47}
48
49function couldHaveActiveSelection(gd) {
50 return gd._context.editSelection;

Callers 3

activateSelectionFunction · 0.70
activateLastSelectionFunction · 0.70
deactivateSelectionFunction · 0.70

Calls 2

clearOutlineControllersFunction · 0.85
drawOneFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…