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

Function AM

resources/vega.min.js:19416–19495  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

19414 return [t, tw(ow((jb + e) / 2))];
19415 }
19416 function AM(t) {
19417 var e,
19418 n,
19419 r,
19420 i = dM(t),
19421 o = i.center,
19422 a = i.scale,
19423 s = i.translate,
19424 u = i.clipExtent,
19425 l = null;
19426 function c() {
19427 var o = Pb * a(),
19428 s = i(
19429 (function (t) {
19430 function e(e) {
19431 return (
19432 ((e = t(e[0] * Yb, e[1] * Yb))[0] *= Hb),
19433 (e[1] *= Hb),
19434 e
19435 );
19436 }
19437 return (
19438 (t = $k(t[0] * Yb, t[1] * Yb, t.length > 2 ? t[2] * Yb : 0)),
19439 (e.invert = function (e) {
19440 return (
19441 ((e = t.invert(e[0] * Yb, e[1] * Yb))[0] *= Hb),
19442 (e[1] *= Hb),
19443 e
19444 );
19445 }),
19446 e
19447 );
19448 })(i.rotate()).invert([0, 0]),
19449 );
19450 return u(
19451 null == l
19452 ? [
19453 [s[0] - o, s[1] - o],
19454 [s[0] + o, s[1] + o],
19455 ]
19456 : t === kM
19457 ? [
19458 [Math.max(s[0] - o, l), e],
19459 [Math.min(s[0] + o, n), r],
19460 ]
19461 : [
19462 [l, Math.max(s[1] - o, e)],
19463 [n, Math.min(s[1] + o, r)],
19464 ],
19465 );
19466 }
19467 return (
19468 (i.scale = function (t) {
19469 return arguments.length ? (a(t), c()) : a();
19470 }),
19471 (i.translate = function (t) {
19472 return arguments.length ? (s(t), c()) : s();
19473 }),

Callers 1

vega.min.jsFile · 0.85

Calls 5

dMFunction · 0.85
aFunction · 0.70
cFunction · 0.70
sFunction · 0.70
oFunction · 0.70

Tested by

no test coverage detected