MCPcopy Create free account
hub / github.com/alignoth/alignoth / ap

Function ap

resources/vega.min.js:10796–10861  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

10794 return t && !0 === t[rp];
10795 }
10796 function ap(t, e, n) {
10797 return arguments.length > 1
10798 ? (np.set(
10799 t,
10800 (function (t, e, n) {
10801 const r = function () {
10802 const n = e();
10803 return (
10804 n.invertRange ||
10805 (n.invertRange = n.invert
10806 ? (function (t) {
10807 return function (e) {
10808 let n,
10809 r = e[0],
10810 i = e[1];
10811 return (
10812 i < r && ((n = r), (r = i), (i = n)),
10813 [t.invert(r), t.invert(i)]
10814 );
10815 };
10816 })(n)
10817 : n.invertExtent
10818 ? (function (t) {
10819 return function (e) {
10820 const n = t.range();
10821 let r,
10822 i,
10823 o,
10824 a,
10825 s = e[0],
10826 u = e[1],
10827 l = -1;
10828 for (
10829 u < s && ((i = s), (s = u), (u = i)),
10830 o = 0,
10831 a = n.length;
10832 o < a;
10833 ++o
10834 )
10835 n[o] >= s &&
10836 n[o] <= u &&
10837 (l < 0 && (l = o), (r = o));
10838 if (!(l < 0))
10839 return (
10840 (s = t.invertExtent(n[l])),
10841 (u = t.invertExtent(n[r])),
10842 [
10843 void 0 === s[0] ? s[1] : s[0],
10844 void 0 === u[1] ? u[0] : u[1],
10845 ]
10846 );
10847 };
10848 })(n)
10849 : void 0),
10850 (n.type = t),
10851 ip(n)
10852 );
10853 };

Callers 3

vega.min.jsFile · 0.70
_pFunction · 0.70
transformFunction · 0.70

Calls 5

TtFunction · 0.85
VFunction · 0.70
spFunction · 0.70
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected