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

Function lines

external/.d3.js:11500–11505  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11498 }
11499
11500 function lines() {
11501 return range$2(ceil(X0 / DX) * DX, X1, DX).map(X)
11502 .concat(range$2(ceil(Y0 / DY) * DY, Y1, DY).map(Y))
11503 .concat(range$2(ceil(x0 / dx) * dx, x1, dx).filter(function(x) { return abs$1(x % DX) > epsilon$1; }).map(x))
11504 .concat(range$2(ceil(y0 / dy) * dy, y1, dy).filter(function(y) { return abs$1(y % DY) > epsilon$1; }).map(y));
11505 }
11506
11507 graticule.lines = function() {
11508 return lines().map(function(coordinates) { return {type: "LineString", coordinates: coordinates}; });

Callers 1

graticuleFunction · 0.85

Calls 4

range$2Function · 0.85
concatMethod · 0.80
mapMethod · 0.80
filterMethod · 0.45

Tested by

no test coverage detected