(gd, traceJoin, plotinfo)
| 77 | }; |
| 78 | |
| 79 | function createFills(gd, traceJoin, plotinfo) { |
| 80 | traceJoin.each(function(d) { |
| 81 | var fills = ensureSingle(d3.select(this), 'g', 'fills'); |
| 82 | Drawing.setClipUrl(fills, plotinfo.layerClipId, gd); |
| 83 | |
| 84 | var trace = d[0].trace; |
| 85 | |
| 86 | // trace._ownFill and trace._nextFill may have leftover values |
| 87 | // from a previous call to createFills. They should always start as null. |
| 88 | // We clear both values in order to start with a clean slate. |
| 89 | // Note that these are DIFFERENT VARIABLES than |
| 90 | // trace._ownfill and trace._nexttrace referenced a few lines down. |
| 91 | trace._ownFill = null; |
| 92 | trace._nextFill = null; |
| 93 | |
| 94 | var fillData = []; |
| 95 | if(trace._ownfill) fillData.push('_ownFill'); |
| 96 | if(trace._nexttrace) fillData.push('_nextFill'); |
| 97 | |
| 98 | var fillJoin = fills.selectAll('g').data(fillData, identity); |
| 99 | |
| 100 | fillJoin.enter().append('g'); |
| 101 | |
| 102 | fillJoin.exit().remove(); |
| 103 | |
| 104 | fillJoin.order().each(function(d) { |
| 105 | // make a path element inside the fill group, just so |
| 106 | // we can give it its own data later on and the group can |
| 107 | // keep its simple '_*Fill' data |
| 108 | trace[d] = ensureSingle(d3.select(this), 'path', 'js-fill'); |
| 109 | }); |
| 110 | }); |
| 111 | } |
| 112 | |
| 113 | function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transitionOpts) { |
| 114 | var isStatic = gd._context.staticPlot; |
no outgoing calls
no test coverage detected
searching dependent graphs…