@@ 4531-4538 (lines=8) @@ | ||
4528 | if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _; |
|
4529 | return graticule.precision(precision); |
|
4530 | }; |
|
4531 | graticule.minorExtent = function(_) { |
|
4532 | if (!arguments.length) return [ [ x0, y0 ], [ x1, y1 ] ]; |
|
4533 | x0 = +_[0][0], x1 = +_[1][0]; |
|
4534 | y0 = +_[0][1], y1 = +_[1][1]; |
|
4535 | if (x0 > x1) _ = x0, x0 = x1, x1 = _; |
|
4536 | if (y0 > y1) _ = y0, y0 = y1, y1 = _; |
|
4537 | return graticule.precision(precision); |
|
4538 | }; |
|
4539 | graticule.step = function(_) { |
|
4540 | if (!arguments.length) return graticule.minorStep(); |
|
4541 | return graticule.majorStep(_).minorStep(_); |
|
@@ 4523-4530 (lines=8) @@ | ||
4520 | if (!arguments.length) return graticule.minorExtent(); |
|
4521 | return graticule.majorExtent(_).minorExtent(_); |
|
4522 | }; |
|
4523 | graticule.majorExtent = function(_) { |
|
4524 | if (!arguments.length) return [ [ X0, Y0 ], [ X1, Y1 ] ]; |
|
4525 | X0 = +_[0][0], X1 = +_[1][0]; |
|
4526 | Y0 = +_[0][1], Y1 = +_[1][1]; |
|
4527 | if (X0 > X1) _ = X0, X0 = X1, X1 = _; |
|
4528 | if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _; |
|
4529 | return graticule.precision(precision); |
|
4530 | }; |
|
4531 | graticule.minorExtent = function(_) { |
|
4532 | if (!arguments.length) return [ [ x0, y0 ], [ x1, y1 ] ]; |
|
4533 | x0 = +_[0][0], x1 = +_[1][0]; |