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

Function draw

src/components/annotations/draw.js:38–50  ·  view source on GitHub ↗
(gd)

Source from the content-addressed store, hash-verified

36 * draw: draw all annotations without any new modifications
37 */
38function draw(gd) {
39 var fullLayout = gd._fullLayout;
40
41 fullLayout._infolayer.selectAll('.annotation').remove();
42
43 for(var i = 0; i < fullLayout.annotations.length; i++) {
44 if(fullLayout.annotations[i].visible) {
45 drawOne(gd, i);
46 }
47 }
48
49 return Plots.previousPromises(gd);
50}
51
52/*
53 * drawOne: draw a single cartesian or paper-ref annotation, potentially with modifications

Callers

nothing calls this directly

Calls 1

drawOneFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…