|
6296 | 6296 | })(); |
6297 | 6297 | } |
6298 | 6298 | function d3_geo_projectionMutator(projectAt) { |
6299 | | - var project, rotate, rotation, projectRotate, k = 150, x = 480, y = 250, λ = 0, φ = 0, δλ = 0, δφ = 0, δγ = 0, δx, δy, clip = d3_geo_cut, clipAngle = null; |
| 6299 | + var project, rotate, rotation, projectRotate, k = 150, x = 480, y = 250, λ = 0, φ = 0, δλ = 0, δφ = 0, δγ = 0, δx, δy, δ2 = .5, maxDepth = 16, clip = d3_geo_cut, clipAngle = null; |
6300 | 6300 | function projection(coordinates) { |
6301 | 6301 | coordinates = projectRotate(coordinates[0] * d3_radians, coordinates[1] * d3_radians); |
6302 | 6302 | return [ coordinates[0] * k + δx, δy - coordinates[1] * k ]; |
|
6351 | 6351 | δy = y + center[1] * k; |
6352 | 6352 | return projection; |
6353 | 6353 | } |
6354 | | - var λ00, φ00, λ0, sinφ0, cosφ0, x0, y0, δ2 = .5, maxDepth = 16; |
6355 | 6354 | var resample = d3_geo_type({ |
6356 | 6355 | Point: function(o) { |
6357 | 6356 | o.coordinates = resamplePoint(o.coordinates); |
|
6385 | 6384 | function resamplePoint(point) { |
6386 | 6385 | return projectPoint(point[0], point[1]); |
6387 | 6386 | } |
| 6387 | + var λ00, φ00, λ0, sinφ0, cosφ0, x0, y0; |
6388 | 6388 | function resampleLine(coordinates) { |
6389 | 6389 | if (!(n = coordinates.length)) return coordinates; |
6390 | 6390 | var n, i = 0, p = coordinates[0], λ, φ, line; |
|
0 commit comments