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

Function reclip

external/.d3.js:12634–12641  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12632 };
12633
12634 function reclip() {
12635 var k = pi$1 * scale(),
12636 t = m(rotation(m.rotate()).invert([0, 0]));
12637 return clipExtent(x0 == null
12638 ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw
12639 ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]
12640 : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);
12641 }
12642
12643 return reclip();
12644}

Callers 1

mercatorProjectionFunction · 0.85

Calls 6

scaleFunction · 0.85
rotationFunction · 0.85
invertMethod · 0.80
maxMethod · 0.80
minMethod · 0.80
mFunction · 0.70

Tested by

no test coverage detected