Sha256: 04d70ed7a708a40bfd9c6f28dfca2457e9bf6cce2aa3226afc4f3fb96f8a9e15
Contents?: true
Size: 568 Bytes
Versions: 4
Compression:
Stored size: 568 Bytes
Contents
import "projection"; import "mollweide"; import "sinusoidal"; var sinuMollweideφ = .7109889596207567, sinuMollweideY = .0528035274542; function sinuMollweide(λ, φ) { return φ > -sinuMollweideφ ? (λ = mollweide(λ, φ), λ[1] += sinuMollweideY, λ) : sinusoidal(λ, φ); } sinuMollweide.invert = function(x, y) { return y > -sinuMollweideφ ? mollweide.invert(x, y - sinuMollweideY) : sinusoidal.invert(x, y); }; (d3.geo.sinuMollweide = function() { return projection(sinuMollweide).rotate([-20, -55]); }).raw = sinuMollweide;
Version data entries
4 entries across 4 versions & 1 rubygems