(project)
| 3523 | return "m0," + radius + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius + "a" + radius + "," + radius + " 0 1,1 0," + +2 * radius + "z"; |
| 3524 | } |
| 3525 | function d3_geo_pathProjectStream(project) { |
| 3526 | var resample = d3_geo_resample(function(λ, φ) { |
| 3527 | return project([ λ * d3_degrees, φ * d3_degrees ]); |
| 3528 | }); |
| 3529 | return function(stream) { |
| 3530 | stream = resample(stream); |
| 3531 | return { |
| 3532 | point: function(λ, φ) { |
| 3533 | stream.point(λ * d3_radians, φ * d3_radians); |
| 3534 | }, |
| 3535 | sphere: function() { |
| 3536 | stream.sphere(); |
| 3537 | }, |
| 3538 | lineStart: function() { |
| 3539 | stream.lineStart(); |
| 3540 | }, |
| 3541 | lineEnd: function() { |
| 3542 | stream.lineEnd(); |
| 3543 | }, |
| 3544 | polygonStart: function() { |
| 3545 | stream.polygonStart(); |
| 3546 | }, |
| 3547 | polygonEnd: function() { |
| 3548 | stream.polygonEnd(); |
| 3549 | } |
| 3550 | }; |
| 3551 | }; |
| 3552 | } |
| 3553 | d3.geo.albers = function() { |
| 3554 | return d3.geo.conicEqualArea().parallels([ 29.5, 45.5 ]).rotate([ 98, 0 ]).center([ 0, 38 ]).scale(1e3); |
| 3555 | }; |
no test coverage detected