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

Function readPixel

src/traces/parcoords/lines.js:639–648  ·  view source on GitHub ↗
(canvasX, canvasY)

Source from the content-addressed store, hash-verified

637 }
638
639 function readPixel(canvasX, canvasY) {
640 regl.read({
641 x: canvasX,
642 y: canvasY,
643 width: 1,
644 height: 1,
645 data: dataPixel
646 });
647 return dataPixel;
648 }
649
650 function readPixels(canvasX, canvasY, width, height) {
651 var pixelArray = new Uint8Array(4 * width * height);

Callers 7

scattergl_test.jsFile · 0.85
totalPixelsFunction · 0.85
getAvgPixelByChannelFunction · 0.85
_assertVisibleDataFunction · 0.85
_readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…