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

Function Kl

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

Source from the content-addressed store, hash-verified

5081 return e.name ? { ...t, path: (t.path ?? []).concat(e.name) } : t;
5082 }
5083 function Kl(e, t) {
5084 void 0 === t && (t = Js(e.config));
5085 const n = (function (e) {
5086 let t =
5087 arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
5088 const n = { config: t };
5089 return tc.map(Zl.map(ec.map(e, n), n), n);
5090 })(e, t),
5091 { width: i, height: r } = e,
5092 o = (function (e, t, n) {
5093 let { width: i, height: r } = t;
5094 const o = Ua(e) || il(e),
5095 a = {};
5096 o
5097 ? "container" == i && "container" == r
5098 ? ((a.type = "fit"), (a.contains = "padding"))
5099 : "container" == i
5100 ? ((a.type = "fit-x"), (a.contains = "padding"))
5101 : "container" == r &&
5102 ((a.type = "fit-y"), (a.contains = "padding"))
5103 : ("container" == i && (Si(Hn("width")), (i = void 0)),
5104 "container" == r && (Si(Hn("height")), (r = void 0)));
5105 const s = {
5106 type: "pad",
5107 ...a,
5108 ...(n ? nc(n.autosize) : {}),
5109 ...nc(e.autosize),
5110 };
5111 "fit" !== s.type || o || (Si(Vn), (s.type = "pad"));
5112 "container" == i &&
5113 "fit" != s.type &&
5114 "fit-x" != s.type &&
5115 Si(Gn("width"));
5116 "container" == r &&
5117 "fit" != s.type &&
5118 "fit-y" != s.type &&
5119 Si(Gn("height"));
5120 if (X(s, { type: "pad" })) return;
5121 return s;
5122 })(n, { width: i, height: r, autosize: e.autosize }, t);
5123 return { ...n, ...(o ? { autosize: o } : {}) };
5124 }
5125 const Zl = new (class extends rl {
5126 nonFacetUnitNormalizers = (() => [as, fs, ys, new hl(), new Sl()])();
5127 map(e, t) {

Callers 1

vega-lite.min.jsFile · 0.70

Calls 9

HnFunction · 0.85
GnFunction · 0.85
JsFunction · 0.70
UaFunction · 0.70
ilFunction · 0.70
SiFunction · 0.70
ncFunction · 0.70
XFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected