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

Function linearFn

src/components/drawing/index.js:580–582  ·  view source on GitHub ↗
(x, x0, x1, y0, y1)

Source from the content-addressed store, hash-verified

578
579 // linear interpolation
580 var linearFn = function (x, x0, x1, y0, y1) {
581 return y0 + ((y1 - y0) * (x - x0)) / (x1 - x0);
582 };
583
584 var path, linewidth, radius;
585 var patternTag;

Callers 1

index.jsFile · 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…