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

Function vu

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

Source from the content-addressed store, hash-verified

6734 return h ? { [r || e]: h } : void 0;
6735 }
6736 function vu(e) {
6737 let { model: t, defaultPos: n, channel: i, scaleName: r, scale: o } = e;
6738 const { markDef: a, config: s } = t;
6739 return () => {
6740 const e = rt(i),
6741 l = ot(i),
6742 c = En(i, a, s, { vgChannel: l });
6743 if (void 0 !== c) return ko(i, c);
6744 switch (n) {
6745 case "zeroOrMin":
6746 return bu({
6747 scaleName: r,
6748 scale: o,
6749 mode: "zeroOrMin",
6750 mainChannel: e,
6751 config: s,
6752 });
6753 case "zeroOrMax":
6754 return bu({
6755 scaleName: r,
6756 scale: o,
6757 mode: {
6758 zeroOrMax: {
6759 widthSignal: t.width.signal,
6760 heightSignal: t.height.signal,
6761 },
6762 },
6763 mainChannel: e,
6764 config: s,
6765 });
6766 case "mid":
6767 return { ...t[st(i)], mult: 0.5 };
6768 }
6769 };
6770 }
6771 function bu(e) {
6772 let { mainChannel: t, config: n, ...i } = e;
6773 const r = ho(i),

Callers 3

yuFunction · 0.85
SuFunction · 0.85
FuFunction · 0.85

Calls 6

EnFunction · 0.85
rtFunction · 0.70
otFunction · 0.70
koFunction · 0.70
buFunction · 0.70
stFunction · 0.70

Tested by

no test coverage detected