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

Function Rp

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

Source from the content-addressed store, hash-verified

14091 const Ep = "faceted_path_";
14092 const Mp = "stack_group_";
14093 function Rp(e) {
14094 let n =
14095 arguments.length > 1 && void 0 !== arguments[1]
14096 ? arguments[1]
14097 : { fromPrefix: "" };
14098 const { mark: i, markDef: r, encoding: o, config: a } = e,
14099 s = U(
14100 r.clip,
14101 (function (e) {
14102 const t = e.getScaleComponent("x"),
14103 n = e.getScaleComponent("y");
14104 return (
14105 !(!t?.get("selectionExtent") && !n?.get("selectionExtent")) ||
14106 void 0
14107 );
14108 })(e),
14109 (function (e) {
14110 const t = e.component.projection;
14111 return !(!t || t.isFit) || void 0;
14112 })(e),
14113 ),
14114 l = jn(r),
14115 c = o.key,
14116 u = (function (e) {
14117 const { encoding: n, stack: i, mark: r, markDef: o, config: a } = e,
14118 s = n.order;
14119 if (
14120 !(
14121 (!t.isArray(s) && sa(s) && m(s.value)) ||
14122 (!s && m(En("order", o, a)))
14123 )
14124 ) {
14125 if ((t.isArray(s) || Zo(s)) && !i) return qn(s, { expr: "datum" });
14126 if (Zr(r)) {
14127 const e = "horizontal" === o.orient ? "y" : "x";
14128 if (Zo(n[e])) return { field: e };
14129 }
14130 }
14131 })(e),
14132 f = (function (e) {
14133 if (!e.component.selection) return null;
14134 const t = D(e.component.selection).length;
14135 let n = t,
14136 i = e.parent;
14137 for (; i && 0 === n; )
14138 ((n = D(i.component.selection).length), (i = i.parent));
14139 return n
14140 ? {
14141 interactive:
14142 t > 0 ||
14143 "geoshape" === e.mark ||
14144 !!e.encoding.tooltip ||
14145 !!e.markDef.tooltip,
14146 }
14147 : null;
14148 })(e),
14149 d = En("aria", r, a),
14150 p = Tp[i].postEncodingTransform ? Tp[i].postEncodingTransform(e) : null;

Callers 1

jpFunction · 0.70

Calls 13

jnFunction · 0.85
EnFunction · 0.85
ZoFunction · 0.85
qnFunction · 0.85
DFunction · 0.85
getScaleComponentMethod · 0.80
getNameMethod · 0.80
requestDataNameMethod · 0.80
UFunction · 0.70
saFunction · 0.70
mFunction · 0.70
ZrFunction · 0.70

Tested by

no test coverage detected