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

Function updateEdgesForReentry

src/traces/scatter/line_points.js:271–280  ·  view source on GitHub ↗
(pt)

Source from the content-addressed store, hash-verified

269 }
270
271 function updateEdgesForReentry(pt) {
272 // if we're outside the nearby region and going back in,
273 // we may need to loop around a corner point
274 if(pts[pti - 1][0] !== pt[0] && pts[pti - 1][1] !== pt[1]) {
275 updateEdge([lastXEdge, lastYEdge]);
276 }
277 updateEdge(pt);
278 lastFarPt = null;
279 lastXEdge = lastYEdge = 0;
280 }
281
282 var arrayMarker = Lib.isArrayOrTypedArray(marker);
283

Callers 1

addPtFunction · 0.85

Calls 1

updateEdgeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…