MCPcopy
hub / github.com/jipegit/OSXAuditor / segment

Function segment

d3-3.2.8/d3.js:3998–4000  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3996 function line(data) {
3997 var segments = [], points = [], i = -1, n = data.length, d, fx = d3_functor(x), fy = d3_functor(y);
3998 function segment() {
3999 segments.push("M", interpolate(projection(points), tension));
4000 }
4001 while (++i < n) {
4002 if (defined.call(this, d = data[i], i)) {
4003 points.push([ +fx.call(this, d, i), +fy.call(this, d, i) ]);

Callers 2

lineFunction · 0.85
areaFunction · 0.85

Calls 2

projectionFunction · 0.85
interpolateFunction · 0.70

Tested by

no test coverage detected