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

Function Su

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

Source from the content-addressed store, hash-verified

6817 : yu(e, t, { defaultPos: i });
6818 }
6819 function Su(e, t, n) {
6820 let { defaultPos: i, defaultPos2: r } = n;
6821 const { markDef: o, config: a } = t,
6822 s = at(e),
6823 l = st(e),
6824 c = (function (e, t, n) {
6825 const { encoding: i, mark: r, markDef: o, stack: a, config: s } = e,
6826 l = rt(n),
6827 c = st(n),
6828 u = ot(n),
6829 f = i[l],
6830 d = e.scaleName(l),
6831 m = e.getScaleComponent(l),
6832 { offset: p } = hu(
6833 n in i || n in o
6834 ? { channel: n, markDef: o, encoding: i, model: e }
6835 : { channel: l, markDef: o, encoding: i, model: e },
6836 );
6837 if (!f && ("x2" === n || "y2" === n) && (i.latitude || i.longitude)) {
6838 const t = st(n),
6839 i = e.markDef[t];
6840 return null != i
6841 ? { [t]: { value: i } }
6842 : { [u]: { field: e.getName(n) } };
6843 }
6844 const g = (function (e) {
6845 let {
6846 channel: t,
6847 channelDef: n,
6848 channel2Def: i,
6849 markDef: r,
6850 config: o,
6851 scaleName: a,
6852 scale: s,
6853 stack: l,
6854 offset: c,
6855 defaultRef: u,
6856 } = e;
6857 if (oa(n) && l && t.charAt(0) === l.fieldChannel.charAt(0))
6858 return xo(n, a, { suffix: "start" }, { offset: c });
6859 return bo({
6860 channel: t,
6861 channelDef: i,
6862 scaleName: a,
6863 scale: s,
6864 stack: l,
6865 markDef: r,
6866 config: o,
6867 offset: c,
6868 defaultRef: u,
6869 });
6870 })({
6871 channel: n,
6872 channelDef: f,
6873 channel2Def: i[n],
6874 markDef: o,
6875 config: s,
6876 scaleName: d,

Callers 2

kuFunction · 0.70
FuFunction · 0.70

Calls 15

RnFunction · 0.85
vuFunction · 0.85
yuFunction · 0.85
scaleNameMethod · 0.80
getScaleComponentMethod · 0.80
getNameMethod · 0.80
atFunction · 0.70
stFunction · 0.70
rtFunction · 0.70
otFunction · 0.70
huFunction · 0.70
oaFunction · 0.70

Tested by

no test coverage detected