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

Function fp

resources/vega-lite.min.js:12830–12857  ·  view source on GitHub ↗
(e, t)

Source from the content-addressed store, hash-verified

12828 for (const t of e.children) t.parseLayoutSize();
12829 }
12830 function fp(e, t) {
12831 const n = Hf(t),
12832 i = At(n),
12833 r = e.component.resolve,
12834 o = e.component.layoutSize;
12835 let a;
12836 for (const t of e.children) {
12837 const o = t.component.layoutSize.getWithExplicit(n),
12838 s = r.scale[i] ?? Yf(i, e);
12839 if ("independent" === s && "step" === o.value) {
12840 a = void 0;
12841 break;
12842 }
12843 if (a) {
12844 if ("independent" === s && a.value !== o.value) {
12845 a = void 0;
12846 break;
12847 }
12848 a = uc(a, o, n, "");
12849 } else a = o;
12850 }
12851 if (a) {
12852 for (const i of e.children)
12853 (e.renameSignal(i.getName(n), e.getName(t)),
12854 i.component.layoutSize.set(n, "merged", !1));
12855 o.setWithExplicit(t, a);
12856 } else o.setWithExplicit(t, { explicit: !1, value: void 0 });
12857 }
12858 function dp(e, t) {
12859 const n = "width" === t ? "x" : "y",
12860 i = e.config,

Callers 2

parseLayoutSizeMethod · 0.70
parseLayoutSizeMethod · 0.70

Calls 9

HfFunction · 0.85
getWithExplicitMethod · 0.80
renameSignalMethod · 0.80
getNameMethod · 0.80
setWithExplicitMethod · 0.80
AtFunction · 0.70
YfFunction · 0.70
ucFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected