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

Function jp

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

Source from the content-addressed store, hash-verified

13957 },
13958 };
13959 function jp(e) {
13960 if (p([Ir, qr, Xr], e.mark)) {
13961 const t = Ja(e.mark, e.encoding);
13962 if (t.length > 0)
13963 return (function (e, t) {
13964 return [
13965 {
13966 name: e.getName("pathgroup"),
13967 type: "group",
13968 from: {
13969 facet: {
13970 name: Ep + e.requestDataName(bc.Main),
13971 data: e.requestDataName(bc.Main),
13972 groupby: t,
13973 },
13974 },
13975 encode: {
13976 update: {
13977 width: { field: { group: "width" } },
13978 height: { field: { group: "height" } },
13979 },
13980 },
13981 marks: Rp(e, { fromPrefix: Ep }),
13982 },
13983 ];
13984 })(e, t);
13985 } else if (e.mark === Ur) {
13986 const t = On.some((t) => En(t, e.markDef, e.config));
13987 if (e.stack && !e.fieldDef("size") && t)
13988 return (function (e) {
13989 const [t] = Rp(e, { fromPrefix: Mp }),
13990 n = e.scaleName(e.stack.fieldChannel),
13991 i = function () {
13992 let t =
13993 arguments.length > 0 && void 0 !== arguments[0]
13994 ? arguments[0]
13995 : {};
13996 return e.vgField(e.stack.fieldChannel, t);
13997 },
13998 r = (e, t) =>
13999 `${e}(${[i({ prefix: "min", suffix: "start", expr: t }), i({ prefix: "max", suffix: "start", expr: t }), i({ prefix: "min", suffix: "end", expr: t }), i({ prefix: "max", suffix: "end", expr: t })].map((e) => `scale('${n}',${e})`).join(",")})`;
14000 let o, a;
14001 "x" === e.stack.fieldChannel
14002 ? ((o = {
14003 ...u(t.encode.update, ["y", "yc", "y2", "height", ...On]),
14004 x: { signal: r("min", "datum") },
14005 x2: { signal: r("max", "datum") },
14006 clip: { value: !0 },
14007 }),
14008 (a = {
14009 x: { field: { group: "x" }, mult: -1 },
14010 height: { field: { group: "height" } },
14011 }),
14012 (t.encode.update = {
14013 ...f(t.encode.update, ["y", "yc", "y2"]),
14014 height: { field: { group: "height" } },
14015 }))
14016 : ((o = {

Callers 1

parseMarkGroupMethod · 0.70

Calls 15

JaFunction · 0.85
EnFunction · 0.85
MnFunction · 0.85
PnFunction · 0.85
getNameMethod · 0.80
requestDataNameMethod · 0.80
scaleNameMethod · 0.80
pFunction · 0.70
RpFunction · 0.70
uFunction · 0.70
rFunction · 0.70
fFunction · 0.70

Tested by

no test coverage detected