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

Function QM

resources/vega.min.js:19705–19736  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

19703 "tilt",
19704 ];
19705 function QM(t, e) {
19706 if (!t || "string" != typeof t)
19707 throw new Error("Projection type must be a name string.");
19708 return (
19709 (t = t.toLowerCase()),
19710 arguments.length > 1
19711 ? ((tE[t] = (function (t, e) {
19712 return function n() {
19713 const r = e();
19714 return (
19715 (r.type = t),
19716 (r.path = tM().projection(r)),
19717 (r.copy =
19718 r.copy ||
19719 function () {
19720 const t = n();
19721 return (
19722 ZM.forEach((e) => {
19723 r[e] && t[e](r[e]());
19724 }),
19725 t.path.pointRadius(r.path.pointRadius()),
19726 t
19727 );
19728 }),
19729 ip(r)
19730 );
19731 };
19732 })(t, e)),
19733 this)
19734 : tE[t] || null
19735 );
19736 }
19737 function KM(t) {
19738 return (t && t.path) || JM;
19739 }

Callers 2

vega.min.jsFile · 0.85
transformFunction · 0.85

Calls 5

eFunction · 0.85
tMFunction · 0.85
pointRadiusMethod · 0.80
nFunction · 0.70
ipFunction · 0.70

Tested by

no test coverage detected