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

Function _read

test/jasmine/tests/scattergl_select_test.js:417–421  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

415 var pad = 20;
416
417 function _read(query) {
418 var canvas = gd.querySelector(query);
419 return readPixel(canvas, 0, 0, gd.layout.width, gd.layout.height)
420 .reduce(function(acc, v) { return acc + v; }, 0);
421 }
422
423 function readContext() { return _read('.gl-canvas-context'); }
424

Callers 2

readContextFunction · 0.85
readFocusFunction · 0.85

Calls 1

readPixelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…