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

Function ipx

src/traces/image/plot.js:97–97  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

95 var context = canvas.getContext('2d', {willReadFrequently: true});
96
97 var ipx = function(i) {return Lib.constrain(Math.round(xa.c2p(x0 + i * dx) - left), 0, imageWidth);};
98 var jpx = function(j) {return Lib.constrain(Math.round(ya.c2p(y0 + j * dy) - top), 0, imageHeight);};
99
100 var cr = constants.colormodel[trace.colormodel];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected