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

Function iM

resources/vega.min.js:18966–18979  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

18964 );
18965 }
18966 function iM(t, e, n) {
18967 return rM(
18968 t,
18969 function (n) {
18970 var r = e[1][0] - e[0][0],
18971 i = e[1][1] - e[0][1],
18972 o = Math.min(r / (n[1][0] - n[0][0]), i / (n[1][1] - n[0][1])),
18973 a = +e[0][0] + (r - o * (n[1][0] + n[0][0])) / 2,
18974 s = +e[0][1] + (i - o * (n[1][1] + n[0][1])) / 2;
18975 t.scale(150 * o).translate([a, s]);
18976 },
18977 n,
18978 );
18979 }
18980 function oM(t, e, n) {
18981 return iM(t, [[0, 0], e], n);
18982 }

Callers 3

oMFunction · 0.85
pMFunction · 0.85
vega.min.jsFile · 0.85

Calls 1

rMFunction · 0.85

Tested by

no test coverage detected