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

Method hasMatchingType

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

Source from the content-addressed store, hash-verified

4716 class hl {
4717 name = "path-overlay";
4718 hasMatchingType(e, t) {
4719 if (Ua(e)) {
4720 const { mark: n, encoding: i } = e,
4721 r = no(n) ? n : { type: n };
4722 switch (r.type) {
4723 case "line":
4724 case "rule":
4725 case "trail":
4726 return !!pl(r, t[r.type], i);
4727 case "area":
4728 return !!pl(r, t[r.type], i) || !!gl(r, t[r.type]);
4729 }
4730 }
4731 return !1;
4732 }
4733 run(e, t, n) {
4734 const { config: i } = t,
4735 { params: r, projection: o, mark: a, name: s, encoding: l, ...c } = e,

Callers

nothing calls this directly

Calls 4

UaFunction · 0.70
noFunction · 0.70
plFunction · 0.70
glFunction · 0.70

Tested by

no test coverage detected