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

Function extent

external/.d3.js:11308–11325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11306}
11307
11308function extent() {
11309 var x0 = 0,
11310 y0 = 0,
11311 x1 = 960,
11312 y1 = 500,
11313 cache,
11314 cacheStream,
11315 clip;
11316
11317 return clip = {
11318 stream: function(stream) {
11319 return cache && cacheStream === stream ? cache : cache = clipRectangle(x0, y0, x1, y1)(cacheStream = stream);
11320 },
11321 extent: function(_) {
11322 return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];
11323 }
11324 };
11325}
11326
11327var lengthSum$1,
11328 lambda0,

Callers

nothing calls this directly

Calls 1

clipRectangleFunction · 0.85

Tested by

no test coverage detected