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

Function repaint

src/traces/scattermap/plot.js:160–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 }
159
160 function repaint() {
161 var order = hasCluster ? ORDER.cluster : ORDER.nonCluster;
162 for(var i = 0; i < order.length; i++) {
163 var k = order[i];
164 var opts = optsAll[k];
165 if(!opts) continue;
166
167 subplot.setOptions(lThis.layerIds[k], 'setLayoutProperty', opts.layout);
168
169 if(opts.layout.visibility === 'visible') {
170 if(k !== 'cluster') {
171 lThis.setSourceData(k, opts);
172 }
173 subplot.setOptions(lThis.layerIds[k], 'setPaintProperty', opts.paint);
174 }
175 }
176 }
177
178 var wasHidden = this.isHidden;
179 var isHidden = trace.visible !== true;

Callers 1

plot.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…