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

Function fillRangeItems

src/plots/geo/geo.js:498–509  ·  view source on GitHub ↗
(eventData, poly)

Source from the content-addressed store, hash-verified

496 }
497
498 var fillRangeItems = function(eventData, poly) {
499 if(poly.isRect) {
500 var ranges = eventData.range = {};
501 ranges[_this.id] = [
502 invert([poly.xmin, poly.ymin]),
503 invert([poly.xmax, poly.ymax])
504 ];
505 } else {
506 var dataPts = eventData.lassoPoints = {};
507 dataPts[_this.id] = poly.map(invert);
508 }
509 };
510
511 // Note: dragOptions is needed to be declared for all dragmodes because
512 // it's the object that holds persistent selection state.

Callers 2

prepSelectFunction · 0.85
reselectFunction · 0.85

Calls 1

invertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…