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

Function snapToVertexAngle

src/plots/polar/polar.js:1575–1579  ·  view source on GitHub ↗
(a, vangles)

Source from the content-addressed store, hash-verified

1573}
1574
1575function snapToVertexAngle(a, vangles) {
1576 var fn = function(v) { return Lib.angleDist(a, v); };
1577 var ind = Lib.findIndexOfMin(vangles, fn);
1578 return vangles[ind];
1579}
1580
1581function updateElement(sel, showAttr, attrs) {
1582 if(showAttr) {

Callers 2

polar.jsFile · 0.85
rotateMoveFunction · 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…