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

Function hu

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

Source from the content-addressed store, hash-verified

6641 : {};
6642 }
6643 function hu(e) {
6644 let {
6645 channel: t,
6646 markDef: n,
6647 encoding: i = {},
6648 model: r,
6649 bandPosition: o,
6650 } = e;
6651 const a = `${t}Offset`,
6652 s = n[a],
6653 l = i[a];
6654 if (("xOffset" === a || "yOffset" === a) && l) {
6655 return {
6656 offsetType: "encoding",
6657 offset: wo({
6658 channel: a,
6659 channelDef: l,
6660 markDef: n,
6661 config: r?.config,
6662 scaleName: r.scaleName(a),
6663 scale: r.getScaleComponent(a),
6664 stack: null,
6665 defaultRef: Pn(s),
6666 bandPosition: o,
6667 }),
6668 };
6669 }
6670 const c = n[a];
6671 return c ? { offsetType: "visual", offset: c } : {};
6672 }
6673 function yu(e, t, n) {
6674 let { defaultPos: i, vgChannel: r } = n;
6675 const { encoding: o, markDef: a, config: s, stack: l } = t,

Callers 3

yuFunction · 0.70
SuFunction · 0.70
FuFunction · 0.70

Calls 4

PnFunction · 0.85
scaleNameMethod · 0.80
getScaleComponentMethod · 0.80
woFunction · 0.70

Tested by

no test coverage detected