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

Function chord

explainshell/web/static/js/d3.v3.js:6973–6976  ·  view source on GitHub ↗
(d, i)

Source from the content-addressed store, hash-verified

6971 d3.svg.chord = function() {
6972 var source = d3_source, target = d3_target, radius = d3_svg_chordRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;
6973 function chord(d, i) {
6974 var s = subgroup(this, source, d, i), t = subgroup(this, target, d, i);
6975 return "M" + s.p0 + arc(s.r, s.p1, s.a1 - s.a0) + (equals(s, t) ? curve(s.r, s.p1, s.r, s.p0) : curve(s.r, s.p1, t.r, t.p0) + arc(t.r, t.p1, t.a1 - t.a0) + curve(t.r, t.p1, s.r, s.p0)) + "Z";
6976 }
6977 function subgroup(self, f, d, i) {
6978 var subgroup = f.call(self, d, i), r = radius.call(self, subgroup, i), a0 = startAngle.call(self, subgroup, i) + d3_svg_arcOffset, a1 = endAngle.call(self, subgroup, i) + d3_svg_arcOffset;
6979 return {

Callers

nothing calls this directly

Calls 4

subgroupFunction · 0.85
arcFunction · 0.85
equalsFunction · 0.85
curveFunction · 0.85

Tested by

no test coverage detected