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

Function warp

src/traces/surface/convert.js:331–342  ·  view source on GitHub ↗
(dest, src, func, X)

Source from the content-addressed store, hash-verified

329// see https://github.com/scijs/ndarray-warp
330
331function warp(dest, src, func, X) {
332 var warped = [0, 0];
333 var ni = dest.shape[0];
334 var nj = dest.shape[1];
335 for(var i = 0; i < ni; i++) {
336 for(var j = 0; j < nj; j++) {
337 func(warped, [i, j], X);
338 dest.set(i, j, ndarrayInterp2d(src, warped[0], warped[1]));
339 }
340 }
341 return dest;
342}
343
344proto.refineCoords = function(coords) {
345 var scaleW = this.dataScaleX;

Callers 1

homographyFunction · 0.85

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…