MCPcopy Create free account
hub / github.com/codemistic/Web-Development / at

Function at

chart/js/chart.js:2671–2686  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

2669 var nt = et,
2670 it = 2 * Math.PI;
2671 function at(t, e) {
2672 var n = e.startAngle,
2673 i = e.endAngle,
2674 a = e.pixelMargin,
2675 r = a / e.outerRadius,
2676 o = e.x,
2677 s = e.y;
2678 t.beginPath(),
2679 t.arc(o, s, e.outerRadius, n - r, i + r),
2680 e.innerRadius > a
2681 ? ((r = a / e.innerRadius),
2682 t.arc(o, s, e.innerRadius - a, i + r, n - r, !0))
2683 : t.arc(o, s, a, i + Math.PI / 2, n - Math.PI / 2),
2684 t.closePath(),
2685 t.clip();
2686 }
2687 function rt(t, e, n) {
2688 var i = "inner" === e.borderAlign;
2689 i

Callers 1

rtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected