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

Function Kx

resources/vega.min.js:16254–16300  ·  view source on GitHub ↗
(t, e, n, r, i, o, a, s, u, l, c, f, h, d)

Source from the content-addressed store, hash-verified

16252 return t.bounds[e];
16253 }
16254 function Kx(t, e, n, r, i, o, a, s, u, l, c, f, h, d) {
16255 var p,
16256 g,
16257 m,
16258 y,
16259 v,
16260 _,
16261 x,
16262 b,
16263 w,
16264 k = n.length,
16265 A = 0,
16266 M = 0;
16267 if (!k) return A;
16268 for (p = c; p < k; p += f) n[p] && (A = a(A, u(n[p], l)));
16269 if (!e.length) return A;
16270 for (
16271 e.length > i &&
16272 (t.warn("Grid headers exceed limit: " + i), (e = e.slice(0, i))),
16273 A += o,
16274 g = 0,
16275 y = e.length;
16276 g < y;
16277 ++g
16278 )
16279 (t.dirty(e[g]), e[g].mark.bounds.clear());
16280 for (p = c, g = 0, y = e.length; g < y; ++g, p += f) {
16281 for (
16282 v = (_ = e[g]).mark.bounds, m = p;
16283 m >= 0 && null == (x = n[m]);
16284 m -= h
16285 );
16286 (s
16287 ? ((b =
16288 null == d ? x.x : Math.round(x.bounds.x1 + d * x.bounds.width())),
16289 (w = A))
16290 : ((b = A),
16291 (w =
16292 null == d ? x.y : Math.round(x.bounds.y1 + d * x.bounds.height()))),
16293 v.union(_.bounds.translate(b - (_.x || 0), w - (_.y || 0))),
16294 (_.x = b),
16295 (_.y = w),
16296 t.dirty(_),
16297 (M = a(M, v[l])));
16298 }
16299 return M;
16300 }
16301 function tb(t, e, n, r, i, o) {
16302 if (e) {
16303 t.dirty(e);

Callers 1

JxFunction · 0.85

Calls 6

clearMethod · 0.80
widthMethod · 0.80
heightMethod · 0.80
aFunction · 0.70
uFunction · 0.70
dirtyMethod · 0.45

Tested by

no test coverage detected