MCPcopy Index your code
hub / github.com/microsoft/SandDance / arc

Function arc

docs/app/js/sanddance-app.js:109474–109478  ·  view source on GitHub ↗
(i, points)

Source from the content-addressed store, hash-verified

109472function object(topology, o2) {
109473 var transformPoint = (0, _transformJsDefault.default)(topology.transform), arcs1 = topology.arcs;
109474 function arc(i, points) {
109475 if (points.length) points.pop();
109476 for(var a = arcs1[i < 0 ? ~i : i], k = 0, n = a.length; k < n; ++k)points.push(transformPoint(a[k], k));
109477 if (i < 0) (0, _reverseJsDefault.default)(points, n);
109478 }
109479 function point(p) {
109480 return transformPoint(p);
109481 }

Callers 2

lineFunction · 0.70
arcRFunction · 0.70

Calls 9

transformPointFunction · 0.70
addFunction · 0.70
updateFunction · 0.70
intersectFunction · 0.70
cornerTangentsFunction · 0.70
moveToMethod · 0.45
arcMethod · 0.45
lineToMethod · 0.45
closePathMethod · 0.45

Tested by

no test coverage detected