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

Function hp

resources/vega-lite.min.js:13164–13341  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

13162 return null;
13163 }
13164 function hp(e) {
13165 let t = (function (e, t) {
13166 if (e.data || !e.parent) {
13167 if (null === e.data) {
13168 const e = new Ad({ values: [] });
13169 return (t.push(e), e);
13170 }
13171 const n = gp(e.data, t);
13172 if (n)
13173 return (
13174 gc(e.data) || (n.data.format = y({}, e.data.format, n.data.format)),
13175 !n.hasName() && e.data.name && (n.dataName = e.data.name),
13176 n
13177 );
13178 {
13179 const n = new Ad(e.data);
13180 return (t.push(n), n);
13181 }
13182 }
13183 return e.parent.component.data.facetRoot
13184 ? e.parent.component.data.facetRoot
13185 : e.parent.component.data.main;
13186 })(e, e.component.data.sources);
13187 const { outputNodes: n, outputNodeRefCounts: i } = e.component.data,
13188 r = e.data,
13189 o =
13190 !(r && (gc(r) || dc(r) || mc(r))) && e.parent
13191 ? e.parent.component.data.ancestorParse.clone()
13192 : new fc();
13193 (gc(r)
13194 ? (hc(r)
13195 ? (t = new Nd(t, r.sequence))
13196 : vc(r) && (t = new Pd(t, r.graticule)),
13197 (o.parseNothing = !0))
13198 : null === r?.format?.parse && (o.parseNothing = !0),
13199 (t = Cd.makeExplicit(t, e, o) ?? t),
13200 (t = new _d(t)));
13201 const a = e.parent && Im(e.parent);
13202 ((qm(e) || Um(e)) && a && (t = wd.makeFromEncoding(t, e) ?? t),
13203 e.transforms.length > 0 &&
13204 (t = (function (e, t, n) {
13205 let i = 0;
13206 for (const r of t.transforms) {
13207 let o, a;
13208 if (Rl(r)) ((a = e = new Df(e, r)), (o = "derived"));
13209 else if (Ol(r)) {
13210 const i = Od(r);
13211 ((a = e = Cd.makeWithAncestors(e, {}, i, n) ?? e),
13212 (e = new uf(e, t, r.filter)));
13213 } else if (Ll(r))
13214 ((a = e = wd.makeFromTransform(e, r, t)), (o = "number"));
13215 else if (Ul(r))
13216 ((o = "date"),
13217 void 0 === n.getWithExplicit(r.field).value &&
13218 ((e = new Cd(e, { [r.field]: o })), n.set(r.field, o, !1)),
13219 (a = e = Dc.makeFromTransform(e, r)));
13220 else if (Wl(r))
13221 ((a = e = Sd.makeFromTransform(e, r)),

Callers 4

parseDataMethod · 0.70
parseDataMethod · 0.70
parseDataMethod · 0.70
parseDataMethod · 0.70

Calls 15

hasNameMethod · 0.95
gpFunction · 0.85
mcFunction · 0.85
vcFunction · 0.85
OdFunction · 0.85
ElFunction · 0.85
BlFunction · 0.85
MlFunction · 0.85
ClFunction · 0.85
TlFunction · 0.85
_lFunction · 0.85
NlFunction · 0.85

Tested by

no test coverage detected