MCPcopy Create free account
hub / github.com/idank/explainshell / segment

Function segment

explainshell/web/static/js/d3.v3.js:3685–3687  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3683 function line(data) {
3684 var segments = [], points = [], i = -1, n = data.length, d, fx = d3_functor(x), fy = d3_functor(y);
3685 function segment() {
3686 segments.push("M", interpolate(projection(points), tension));
3687 }
3688 while (++i < n) {
3689 if (defined.call(this, d = data[i], i)) {
3690 points.push([ +fx.call(this, d, i), +fy.call(this, d, i) ]);

Callers 2

lineFunction · 0.85
areaFunction · 0.85

Calls 2

interpolateFunction · 0.85
projectionFunction · 0.85

Tested by

no test coverage detected