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

Function pi

chart/js/chart.js:8822–8848  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

8820 },
8821 };
8822 function pi(t, e, n) {
8823 var i,
8824 a = t._model || {},
8825 r = a.fill;
8826 if ((void 0 === r && (r = !!a.backgroundColor), !1 === r || null === r))
8827 return !1;
8828 if (!0 === r) return "origin";
8829 if (((i = parseFloat(r, 10)), isFinite(i) && Math.floor(i) === i))
8830 return (
8831 ("-" !== r[0] && "+" !== r[0]) || (i = e + i),
8832 !(i === e || i < 0 || i >= n) && i
8833 );
8834 switch (r) {
8835 case "bottom":
8836 return "start";
8837 case "top":
8838 return "end";
8839 case "zero":
8840 return "origin";
8841 case "origin":
8842 case "start":
8843 case "end":
8844 return r;
8845 default:
8846 return !1;
8847 }
8848 }
8849 function mi(t) {
8850 return (t.el._scale || {}).getPointPositionForValue
8851 ? (function (t) {

Callers 1

chart.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected