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

Function Nm

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

Source from the content-addressed store, hash-verified

11364 : Math.min(i, r);
11365 }
11366 function Nm(e, t) {
11367 qm(e)
11368 ? (function (e, t) {
11369 const n = e.component.scales,
11370 { config: i, encoding: r, markDef: o, specifiedScales: a } = e;
11371 for (const s of D(n)) {
11372 const l = a[s],
11373 c = n[s],
11374 u = e.getScaleComponent(s),
11375 f = ka(r[s]),
11376 d = l[t],
11377 m = u.get("type"),
11378 p = u.get("padding"),
11379 g = u.get("paddingInner"),
11380 h = Er(m, t),
11381 y = Mr(s, t);
11382 if (
11383 (void 0 !== d && (h ? y && Si(y) : Si(gi(m, t, s))),
11384 h && void 0 === y)
11385 )
11386 if (void 0 !== d) {
11387 const e = f.timeUnit,
11388 n = f.type;
11389 switch (t) {
11390 case "domainMax":
11391 case "domainMin":
11392 Di(l[t]) || "temporal" === n || e
11393 ? c.set(
11394 t,
11395 { signal: _a(l[t], { type: n, timeUnit: e }) },
11396 !0,
11397 )
11398 : c.set(t, l[t], !0);
11399 break;
11400 default:
11401 c.copyKeyFromObject(t, l);
11402 }
11403 } else {
11404 const n = J(Am, t)
11405 ? Am[t]({
11406 model: e,
11407 channel: s,
11408 fieldOrDatumDef: f,
11409 scaleType: m,
11410 scalePadding: p,
11411 scalePaddingInner: g,
11412 domain: l.domain,
11413 domainMin: l.domainMin,
11414 domainMax: l.domainMax,
11415 markDef: o,
11416 config: i,
11417 hasNestedOffsetScale: Va(r, s),
11418 hasSecondaryRangeChannel: !!r[at(s)],
11419 })
11420 : i.scale[t];
11421 void 0 !== n && c.set(t, n, !1);
11422 }
11423 }

Callers 2

jmFunction · 0.85
parseScaleMethod · 0.85

Calls 15

DFunction · 0.85
ErFunction · 0.85
MrFunction · 0.85
getScaleComponentMethod · 0.80
copyKeyFromObjectMethod · 0.80
qmFunction · 0.70
kaFunction · 0.70
SiFunction · 0.70
giFunction · 0.70
DiFunction · 0.70
_aFunction · 0.70
JFunction · 0.70

Tested by

no test coverage detected