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

Function dp

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

Source from the content-addressed store, hash-verified

12856 } else o.setWithExplicit(t, { explicit: !1, value: void 0 });
12857 }
12858 function dp(e, t) {
12859 const n = "width" === t ? "x" : "y",
12860 i = e.config,
12861 r = e.getScaleComponent(n);
12862 if (r) {
12863 const e = r.get("type"),
12864 n = r.get("range");
12865 if (kr(e)) {
12866 const e = Is(i.view, t);
12867 return kn(n) || Rs(e) ? "step" : e;
12868 }
12869 return Us(i.view, t);
12870 }
12871 if (e.hasProjection || "arc" === e.mark) return Us(i.view, t);
12872 {
12873 const e = Is(i.view, t);
12874 return Rs(e) ? e.step : e;
12875 }
12876 }
12877 function mp(e, t, n) {
12878 return ma(t, { suffix: `by_${ma(e)}`, ...n });
12879 }

Callers 1

parseLayoutSizeMethod · 0.70

Calls 7

krFunction · 0.85
knFunction · 0.85
getScaleComponentMethod · 0.80
IsFunction · 0.70
RsFunction · 0.70
UsFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected