MCPcopy Create free account
hub / github.com/breck7/scroll / compose

Function compose

external/.d3.js:10340–10351  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

10338}
10339
10340function compose(a, b) {
10341
10342 function compose(x, y) {
10343 return x = a(x, y), b(x[0], x[1]);
10344 }
10345
10346 if (a.invert && b.invert) compose.invert = function(x, y) {
10347 return x = b.invert(x, y), x && a.invert(x[0], x[1]);
10348 };
10349
10350 return compose;
10351}
10352
10353function rotationIdentity(lambda, phi) {
10354 if (abs$1(lambda) > pi$1) lambda -= Math.round(lambda / tau$1) * tau$1;

Callers 2

rotateRadiansFunction · 0.85
recenterFunction · 0.85

Calls 3

invertMethod · 0.80
aFunction · 0.70
bFunction · 0.70

Tested by

no test coverage detected