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

Function pu

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

Source from the content-addressed store, hash-verified

6596 });
6597 }
6598 function pu(e) {
6599 let t =
6600 arguments.length > 1 && void 0 !== arguments[1]
6601 ? arguments[1]
6602 : { filled: void 0 };
6603 const { markDef: n, encoding: i, config: r } = e,
6604 { type: o } = n,
6605 a = t.filled ?? En("filled", n, r),
6606 s = p(["bar", "point", "circle", "square", "geoshape"], o)
6607 ? "transparent"
6608 : void 0,
6609 l =
6610 En(!0 === a ? "color" : void 0, n, r, { vgChannel: "fill" }) ??
6611 r.mark[!0 === a && "color"] ??
6612 s,
6613 c =
6614 En(!1 === a ? "color" : void 0, n, r, { vgChannel: "stroke" }) ??
6615 r.mark[!1 === a && "color"],
6616 u = a ? "fill" : "stroke",
6617 f = { ...(l ? { fill: Pn(l) } : {}), ...(c ? { stroke: Pn(c) } : {}) };
6618 return (
6619 n.color &&
6620 (a ? n.fill : n.stroke) &&
6621 Si(ai("property", { fill: "fill" in n, stroke: "stroke" in n })),
6622 {
6623 ...f,
6624 ...mu("color", e, { vgChannel: u, defaultValue: a ? l : c }),
6625 ...mu("fill", e, { defaultValue: i.fill ? l : void 0 }),
6626 ...mu("stroke", e, { defaultValue: i.stroke ? c : void 0 }),
6627 }
6628 );
6629 }
6630 function gu(e) {
6631 const { encoding: t, mark: n } = e,
6632 i = t.order;

Callers 2

PuFunction · 0.85
vega-lite.min.jsFile · 0.85

Calls 6

EnFunction · 0.85
PnFunction · 0.85
aiFunction · 0.85
pFunction · 0.70
SiFunction · 0.70
muFunction · 0.70

Tested by

no test coverage detected