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

Function _floor

resources/vega.min.js:7119–7138  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

7117 );
7118 },
7119 _floor(t, e) {
7120 const n = "utc" === t.timezone,
7121 { units: r, step: i } = t.units
7122 ? { units: t.units, step: t.step || 1 }
7123 : Xr({
7124 extent: t.extent || at(e.materialize(e.SOURCE).source, t.field),
7125 maxbins: t.maxbins,
7126 }),
7127 o = tr(r),
7128 a = this.value || {},
7129 s = (n ? Ar : br)(o, i);
7130 return (
7131 (s.unit = F(o)),
7132 (s.units = o),
7133 (s.step = i),
7134 (s.start = a.start),
7135 (s.stop = a.stop),
7136 (this.value = s)
7137 );
7138 },
7139 }),
7140 ht(al, Xa, {
7141 transform(t, e) {

Callers

nothing calls this directly

Calls 4

XrFunction · 0.85
FFunction · 0.85
atFunction · 0.70
trFunction · 0.70

Tested by

no test coverage detected