d3js-plugins-rails 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/d3js-plugins-rails/version.rb +2 -2
- data/vendor/assets/javascripts/d3/plugins/LICENSE +1 -1
- data/vendor/assets/javascripts/d3/plugins/README.md +0 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/README.md +1 -252
- data/vendor/assets/javascripts/d3/plugins/interpolate-zoom/README.md +9 -0
- data/vendor/assets/javascripts/d3/plugins/interpolate-zoom/interpolate-zoom-test.js +27 -0
- data/vendor/assets/javascripts/d3/plugins/interpolate-zoom/interpolate-zoom.js +18 -32
- data.tar.gz.sig +0 -0
- metadata +4 -140
- metadata.gz.sig +2 -5
- data/vendor/assets/javascripts/d3/plugins/.gitignore +0 -1
- data/vendor/assets/javascripts/d3/plugins/Makefile +0 -18
- data/vendor/assets/javascripts/d3/plugins/geo/projection/airy.js +0 -55
- data/vendor/assets/javascripts/d3/plugins/geo/projection/aitoff.js +0 -42
- data/vendor/assets/javascripts/d3/plugins/geo/projection/armadillo.js +0 -81
- data/vendor/assets/javascripts/d3/plugins/geo/projection/august.js +0 -36
- data/vendor/assets/javascripts/d3/plugins/geo/projection/baker.js +0 -30
- data/vendor/assets/javascripts/d3/plugins/geo/projection/berghaus.js +0 -76
- data/vendor/assets/javascripts/d3/plugins/geo/projection/boggs.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/bonne.js +0 -30
- data/vendor/assets/javascripts/d3/plugins/geo/projection/bromley.js +0 -6
- data/vendor/assets/javascripts/d3/plugins/geo/projection/chamberlin.js +0 -116
- data/vendor/assets/javascripts/d3/plugins/geo/projection/collignon.js +0 -19
- data/vendor/assets/javascripts/d3/plugins/geo/projection/craig.js +0 -31
- data/vendor/assets/javascripts/d3/plugins/geo/projection/craster.js +0 -20
- data/vendor/assets/javascripts/d3/plugins/geo/projection/cylindrical-equal-area.js +0 -24
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert1.js +0 -20
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert2.js +0 -19
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert3.js +0 -19
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert4.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert5.js +0 -19
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert6.js +0 -24
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eisenlohr.js +0 -78
- data/vendor/assets/javascripts/d3/plugins/geo/projection/elliptic.js +0 -118
- data/vendor/assets/javascripts/d3/plugins/geo/projection/end.js +0 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/fahey.js +0 -21
- data/vendor/assets/javascripts/d3/plugins/geo/projection/gall-stereographic.js +0 -19
- data/vendor/assets/javascripts/d3/plugins/geo/projection/ginzburg-polyconic.js +0 -56
- data/vendor/assets/javascripts/d3/plugins/geo/projection/ginzburg4.js +0 -6
- data/vendor/assets/javascripts/d3/plugins/geo/projection/ginzburg5.js +0 -6
- data/vendor/assets/javascripts/d3/plugins/geo/projection/ginzburg6.js +0 -6
- data/vendor/assets/javascripts/d3/plugins/geo/projection/ginzburg8.js +0 -29
- data/vendor/assets/javascripts/d3/plugins/geo/projection/ginzburg9.js +0 -6
- data/vendor/assets/javascripts/d3/plugins/geo/projection/gringorten.js +0 -150
- data/vendor/assets/javascripts/d3/plugins/geo/projection/guyou.js +0 -55
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hammer-retroazimuthal.js +0 -106
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hammer.js +0 -53
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hatano.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/healpix.js +0 -85
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hill.js +0 -66
- data/vendor/assets/javascripts/d3/plugins/geo/projection/homolosine.js +0 -18
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hyperbolic.js +0 -22
- data/vendor/assets/javascripts/d3/plugins/geo/projection/index.js +0 -72
- data/vendor/assets/javascripts/d3/plugins/geo/projection/interrupt.js +0 -150
- data/vendor/assets/javascripts/d3/plugins/geo/projection/kavrayskiy7.js +0 -17
- data/vendor/assets/javascripts/d3/plugins/geo/projection/lagrange.js +0 -47
- data/vendor/assets/javascripts/d3/plugins/geo/projection/larrivee.js +0 -41
- data/vendor/assets/javascripts/d3/plugins/geo/projection/laskowski.js +0 -33
- data/vendor/assets/javascripts/d3/plugins/geo/projection/littrow.js +0 -23
- data/vendor/assets/javascripts/d3/plugins/geo/projection/loximuthal.js +0 -30
- data/vendor/assets/javascripts/d3/plugins/geo/projection/math.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/miller.js +0 -17
- data/vendor/assets/javascripts/d3/plugins/geo/projection/modified-stereographic.js +0 -106
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mollweide.js +0 -37
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-parabolic.js +0 -23
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-quartic.js +0 -25
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-sinusoidal.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/natural-earth.js +0 -24
- data/vendor/assets/javascripts/d3/plugins/geo/projection/nell-hammer.js +0 -22
- data/vendor/assets/javascripts/d3/plugins/geo/projection/parallel1.js +0 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/parallel2.js +0 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/peirce-quincuncial.js +0 -7
- data/vendor/assets/javascripts/d3/plugins/geo/projection/polyconic.js +0 -31
- data/vendor/assets/javascripts/d3/plugins/geo/projection/projection.js +0 -4
- data/vendor/assets/javascripts/d3/plugins/geo/projection/quincuncial.js +0 -73
- data/vendor/assets/javascripts/d3/plugins/geo/projection/rectangular-polyconic.js +0 -41
- data/vendor/assets/javascripts/d3/plugins/geo/projection/robinson.js +0 -85
- data/vendor/assets/javascripts/d3/plugins/geo/projection/satellite.js +0 -70
- data/vendor/assets/javascripts/d3/plugins/geo/projection/sinu-mollweide.js +0 -20
- data/vendor/assets/javascripts/d3/plugins/geo/projection/sinusoidal.js +0 -17
- data/vendor/assets/javascripts/d3/plugins/geo/projection/start.js +0 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/airy-test.js +0 -25
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/aitoff-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/armadillo-test.js +0 -30
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/assert.js +0 -32
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/august-test.js +0 -29
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/baker-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/berghaus-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/boggs-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/bonne-test.js +0 -45
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/craig-test.js +0 -40
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/craster-test.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/eckert4-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/eisenlohr-test.js +0 -36
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/equirectangular-test.js +0 -96
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/fahey-test.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/ginzburg4-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/ginzburg5-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/ginzburg6-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/ginzburg8-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/ginzburg9-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/gringorten-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/guyou-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hammer-retroazimuthal-test.js +0 -39
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hammer-test.js +0 -29
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hatano-test.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/healpix-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hill-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/lagrange-test.js +0 -59
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/larrivee-test.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/laskowski-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/littrow-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/load.js +0 -20
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/loximuthal-test.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/modified-stereographic-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mollweide-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-parabolic-test.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-quartic-test.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-sinusoidal-test.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/natural-earth-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/peirce-quincuncial-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/polyconic-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/quartic-authalic-test.js +0 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/rectangular-polyconic-test.js +0 -48
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/robinson-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/times-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/two-point-azimuthal-test.js +0 -24
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/two-point-equidistant-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/van-der-grinten2-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/van-der-grinten3-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/van-der-grinten4-test.js +0 -32
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/wagner6-test.js +0 -27
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/wiechel-test.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/winkel3-test.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/times.js +0 -21
- data/vendor/assets/javascripts/d3/plugins/geo/projection/two-point-azimuthal.js +0 -47
- data/vendor/assets/javascripts/d3/plugins/geo/projection/two-point-equidistant.js +0 -83
- data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten.js +0 -43
- data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten2.js +0 -30
- data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten3.js +0 -26
- data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten4.js +0 -56
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner4.js +0 -10
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner6.js +0 -17
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner7.js +0 -24
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wiechel.js +0 -28
- data/vendor/assets/javascripts/d3/plugins/geo/projection/winkel3.js +0 -41
- data/vendor/assets/javascripts/d3/plugins/package.json +0 -22
@@ -1,40 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.craig");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"craig": {
|
9
|
-
topic: load("craig"),
|
10
|
-
"0° parallel": {
|
11
|
-
topic: function(geo) { return geo.craig(); },
|
12
|
-
"projections and inverse projections": function(craig) {
|
13
|
-
assert.equalInverse(craig, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(craig, [ 0, -90], [480, 400]);
|
15
|
-
assert.equalInverse(craig, [ 0, 90], [480, 100]);
|
16
|
-
assert.equalInverse(craig, [ 0, -45], [480, 356.066017]);
|
17
|
-
assert.equalInverse(craig, [ 0, 45], [480, 143.933982]);
|
18
|
-
assert.equalInverse(craig, [-180, 0], [ 8.761101, 250]);
|
19
|
-
assert.equalInverse(craig, [ 180, 0], [951.238898, 250]);
|
20
|
-
assert.equalInverse(craig, [-179, 15], [ 11.3790958, 7198.585721]);
|
21
|
-
assert.equalInverse(craig, [ 1, 1], [482.617993, 247.382404]);
|
22
|
-
}
|
23
|
-
},
|
24
|
-
"30° parallel": {
|
25
|
-
topic: function(geo) {
|
26
|
-
return geo.craig().parallel(30);
|
27
|
-
},
|
28
|
-
"projections and inverse projections": function(craig) {
|
29
|
-
assert.equalInverse(craig, [ 0, 0], [480, 250]);
|
30
|
-
assert.equalInverse(craig, [ 0, -30], [480, 313.397459]);
|
31
|
-
assert.equalInverse(craig, [ 0, 30], [480, 163.397459]);
|
32
|
-
assert.equalInverse(craig, [ 0, -45], [480, 330.700720]);
|
33
|
-
assert.equalInverse(craig, [ 0, 45], [480, 118.568686]);
|
34
|
-
assert.equalInverse(craig, [ 1, 1], [482.617993, 247.373611]);
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
});
|
39
|
-
|
40
|
-
suite.export(module);
|
@@ -1,27 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.craster");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"craster": {
|
9
|
-
topic: load("craster"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.craster(); },
|
12
|
-
"projections and inverse projections": function(craster) {
|
13
|
-
assert.equalInverse(craster, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(craster, [ 0, -90], [480, 480.248509]);
|
15
|
-
assert.equalInverse(craster, [ 0, 90], [480, 19.751490]);
|
16
|
-
assert.equalInverse(craster, [ 0, -45], [480, 369.185398]);
|
17
|
-
assert.equalInverse(craster, [ 0, 45], [480, 130.814601]);
|
18
|
-
assert.equalInverse(craster, [-180, 0], [ 19.502981, 250]);
|
19
|
-
assert.equalInverse(craster, [ 180, 0], [940.497018, 250]);
|
20
|
-
assert.equalInverse(craster, [-179, 15], [ 35.975533, 209.865040]);
|
21
|
-
assert.equalInverse(craster, [ 1, 1], [482.557970, 247.320952]);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
});
|
26
|
-
|
27
|
-
suite.export(module);
|
@@ -1,26 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.eckert4");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"eckert4": {
|
9
|
-
topic: load("eckert4"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.eckert4(); },
|
12
|
-
"projections and inverse projections": function(eckert4) {
|
13
|
-
assert.equalInverse(eckert4, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(eckert4, [ 0, -45], [480, 380.658311]);
|
15
|
-
assert.equalInverse(eckert4, [ 0, 45], [480, 119.341688]);
|
16
|
-
assert.equalInverse(eckert4, [-90, 0], [281.024935, 250]);
|
17
|
-
assert.equalInverse(eckert4, [ 90, 0], [678.975064, 250]);
|
18
|
-
assert.equalInverse(eckert4, [-80, 15], [305.548179, 203.818280]);
|
19
|
-
assert.equalInverse(eckert4, [ 1, 1], [482.210699, 246.899956]);
|
20
|
-
assert.equalInverse(eckert4, [ 15, 45], [509.086665, 119.341688]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
});
|
25
|
-
|
26
|
-
suite.export(module);
|
@@ -1,36 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.eisenlohr");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"eisenlohr": {
|
9
|
-
topic: load("eisenlohr"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.eisenlohr(); },
|
12
|
-
"projections and inverse projections": function(eisenlohr) {
|
13
|
-
assert.equalInverse(eisenlohr, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(eisenlohr, [ 0, -45], [480, 377.392745]);
|
15
|
-
assert.equalInverse(eisenlohr, [ 0, 45], [480, 122.607254]);
|
16
|
-
assert.equalInverse(eisenlohr, [ 0, 90], [480, -125.237349]);
|
17
|
-
assert.equalInverse(eisenlohr, [ 0, 80], [480, -35.291289]);
|
18
|
-
assert.equalInverse(eisenlohr, [-90, 0], [211.729605, 250]);
|
19
|
-
assert.equalInverse(eisenlohr, [ 90, 0], [748.270394, 250]);
|
20
|
-
assert.equalInverse(eisenlohr, [-80, 15], [251.382362, 196.991404]);
|
21
|
-
assert.equalInverse(eisenlohr, [ 1, 1], [482.617916, 247.381795]);
|
22
|
-
assert.equalInverse(eisenlohr, [ 15, 80], [497.624439, -36.694591]);
|
23
|
-
assert.equalInverse(eisenlohr, [100, 50], [728.016830, 33.813625]);
|
24
|
-
assert.equalInverse(eisenlohr, [179, 80], [562.029382, -249.246945]);
|
25
|
-
assert.equalInverse(eisenlohr, [179, 89], [482.929745, -140.157928]);
|
26
|
-
assert.equalInverse(eisenlohr, [180, 0], [1411.685689, 250]);
|
27
|
-
assert.equalInverse(eisenlohr, [180, 60], [842.900816, -348.742594]);
|
28
|
-
assert.equalInverse(eisenlohr, [180, 80], [560.323951, -251.261143]);
|
29
|
-
assert.equalInverse(eisenlohr, [180, 89], [482.673656, -140.229826]);
|
30
|
-
assert.inDelta(eisenlohr.invert([480 + 6 * 3, 250 - 126 * 3]), [108.053239, 88.652617], 1e-6);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
34
|
-
});
|
35
|
-
|
36
|
-
suite.export(module);
|
@@ -1,96 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
d3 = require("d3");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.equirectangular");
|
6
|
-
|
7
|
-
var π = Math.PI;
|
8
|
-
|
9
|
-
suite.addBatch({
|
10
|
-
"equirectangular": {
|
11
|
-
"rotate": {
|
12
|
-
"identity": {
|
13
|
-
topic: function() {
|
14
|
-
return d3.geo.equirectangular().rotate([0, 0]).translate([0, 0]).scale(1);
|
15
|
-
},
|
16
|
-
"projections and inverse projections": function(projection) {
|
17
|
-
assert.equalInverse(projection, [ 0, 0], [ 0, 0]);
|
18
|
-
assert.equalInverse(projection, [-180, 0], [-π, 0]);
|
19
|
-
assert.equalInverse(projection, [ 180, 0], [ π, 0]);
|
20
|
-
assert.equalInverse(projection, [ 0, 30], [ 0, -π / 6]);
|
21
|
-
assert.equalInverse(projection, [ 0, -30], [ 0, π / 6]);
|
22
|
-
assert.equalInverse(projection, [ 30, 30], [ π / 6, -π / 6]);
|
23
|
-
assert.equalInverse(projection, [ 30, -30], [ π / 6, π / 6]);
|
24
|
-
assert.equalInverse(projection, [ -30, 30], [-π / 6, -π / 6]);
|
25
|
-
assert.equalInverse(projection, [ -30, -30], [-π / 6, π / 6]);
|
26
|
-
}
|
27
|
-
},
|
28
|
-
"[30, 0]": {
|
29
|
-
topic: function() {
|
30
|
-
return d3.geo.equirectangular().rotate([30, 0]).translate([0, 0]).scale(1);
|
31
|
-
},
|
32
|
-
"projections and inverse projections": function(projection) {
|
33
|
-
assert.equalInverse(projection, [ 0, 0], [ π / 6, 0]);
|
34
|
-
assert.equalInverse(projection, [-180, 0], [-5 / 6 * π, 0]);
|
35
|
-
assert.inDelta( projection( [ 180, 0]),[-5 / 6 * π, 0], 1e-6); // inverse is [-180, 0]
|
36
|
-
assert.equalInverse(projection, [ 0, 30], [ π / 6, -π / 6]);
|
37
|
-
assert.equalInverse(projection, [ 0, -30], [ π / 6, π / 6]);
|
38
|
-
assert.equalInverse(projection, [ 30, 30], [ π / 3, -π / 6]);
|
39
|
-
assert.equalInverse(projection, [ 30, -30], [ π / 3, π / 6]);
|
40
|
-
assert.equalInverse(projection, [ -30, 30], [ 0 , -π / 6]);
|
41
|
-
assert.equalInverse(projection, [ -30, -30], [ 0 , π / 6]);
|
42
|
-
}
|
43
|
-
},
|
44
|
-
"[30, 30]": {
|
45
|
-
topic: function() {
|
46
|
-
return d3.geo.equirectangular().rotate([30, 30]).translate([0, 0]).scale(1);
|
47
|
-
},
|
48
|
-
"projections and inverse projections": function(projection) {
|
49
|
-
assert.equalInverse(projection, [ 0, 0], [ 0.5880026035475674, -0.44783239692893245]);
|
50
|
-
assert.equalInverse(projection, [-180, 0], [-2.5535900500422257, 0.44783239692893245]);
|
51
|
-
assert.inDelta( projection( [ 180, 0]),[-2.5535900500422257, 0.44783239692893245], 1e-6); // inverse is [-180, 0]
|
52
|
-
assert.equalInverse(projection, [ 0, 30], [ 0.8256075561643480, -0.94077119517052080]);
|
53
|
-
assert.equalInverse(projection, [ 0, -30], [ 0.4486429615608479, 0.05804529130778048]);
|
54
|
-
assert.equalInverse(projection, [ 30, 30], [ 1.4056476493802694, -0.70695172788721770]);
|
55
|
-
assert.equalInverse(projection, [ 30, -30], [ 0.8760580505981933, 0.21823451436745955]);
|
56
|
-
assert.equalInverse(projection, [ -30, 30], [ 0, -1.04719755119659760]);
|
57
|
-
assert.equalInverse(projection, [ -30, -30], [ 0, 0]);
|
58
|
-
}
|
59
|
-
},
|
60
|
-
"[0, 0, 30]": {
|
61
|
-
topic: function() {
|
62
|
-
return d3.geo.equirectangular().rotate([0, 0, 30]).translate([0, 0]).scale(1);
|
63
|
-
},
|
64
|
-
"projections and inverse projections": function(projection) {
|
65
|
-
assert.equalInverse(projection, [ 0, 0], [ 0, 0]);
|
66
|
-
assert.equalInverse(projection, [-180, 0], [-π, 0]);
|
67
|
-
assert.equalInverse(projection, [ 180, 0], [ π, 0]);
|
68
|
-
assert.equalInverse(projection, [ 0, 30], [-0.2810349015028135, -0.44783239692893245]);
|
69
|
-
assert.equalInverse(projection, [ 0, -30], [ 0.2810349015028135, 0.44783239692893245]);
|
70
|
-
assert.equalInverse(projection, [ 30, 30], [ 0.1651486774146268, -0.70695172788721760]);
|
71
|
-
assert.equalInverse(projection, [ 30, -30], [ 0.6947382761967031, 0.21823451436745964]);
|
72
|
-
assert.equalInverse(projection, [ -30, 30], [-0.6947382761967031, -0.21823451436745964]);
|
73
|
-
assert.equalInverse(projection, [ -30, -30], [-0.1651486774146268, 0.70695172788721760]);
|
74
|
-
}
|
75
|
-
},
|
76
|
-
"[30, 30, 30]": {
|
77
|
-
topic: function() {
|
78
|
-
return d3.geo.equirectangular().rotate([30, 30, 30]).translate([0, 0]).scale(1);
|
79
|
-
},
|
80
|
-
"projections and inverse projections": function(projection) {
|
81
|
-
assert.equalInverse(projection, [ 0, 0], [ 0.2810349015028135, -0.67513153293703170]);
|
82
|
-
assert.equalInverse(projection, [-180, 0], [-2.8605577520869800, 0.67513153293703170]);
|
83
|
-
assert.inDelta( projection( [ 180, 0]),[-2.8605577520869800, 0.67513153293703170], 1e-6); // inverse is [-180, 0]
|
84
|
-
assert.equalInverse(projection, [ 0, 30], [-0.0724760059270816, -1.15865677086597720]);
|
85
|
-
assert.equalInverse(projection, [ 0, -30], [ 0.4221351552567053, -0.16704161863132252]);
|
86
|
-
assert.equalInverse(projection, [ 30, 30], [ 1.2033744221750944, -1.21537512510467320]);
|
87
|
-
assert.equalInverse(projection, [ 30, -30], [ 0.8811235701944905, -0.18861638617540410]);
|
88
|
-
assert.equalInverse(projection, [ -30, 30], [-0.7137243789447654, -0.84806207898148100]);
|
89
|
-
assert.equalInverse(projection, [ -30, -30], [ 0, 0]);
|
90
|
-
}
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
94
|
-
});
|
95
|
-
|
96
|
-
suite.export(module);
|
@@ -1,27 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.fahey");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"fahey": {
|
9
|
-
topic: load("fahey"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.fahey(); },
|
12
|
-
"projections and inverse projections": function(fahey) {
|
13
|
-
assert.equalInverse(fahey, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(fahey, [ 0, -90], [480, 522.872806]);
|
15
|
-
assert.equalInverse(fahey, [ 0, 90], [480, -22.872806]);
|
16
|
-
assert.equalInverse(fahey, [ 0, -45], [480, 363.027617]);
|
17
|
-
assert.equalInverse(fahey, [ 0, 45], [480, 136.972382]);
|
18
|
-
assert.equalInverse(fahey, [-180, 0], [ 93.983693, 250]);
|
19
|
-
assert.equalInverse(fahey, [ 180, 0], [866.016306, 250]);
|
20
|
-
assert.equalInverse(fahey, [-179, 15], [ 99.469475, 214.075613]);
|
21
|
-
assert.equalInverse(fahey, [ 1, 1], [482.144453, 247.618675]);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
});
|
26
|
-
|
27
|
-
suite.export(module);
|
@@ -1,28 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.ginzburg4");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"ginzburg4": {
|
9
|
-
topic: load("ginzburg4"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.ginzburg4(); },
|
12
|
-
"projections and inverse projections": function(ginzburg4) {
|
13
|
-
assert.equalInverse(ginzburg4, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(ginzburg4, [ 0, -90], [480, 485.619449]);
|
15
|
-
assert.equalInverse(ginzburg4, [ 0, 90], [480, 14.380550]);
|
16
|
-
assert.equalInverse(ginzburg4, [ 0, -45], [480, 367.809724]);
|
17
|
-
assert.equalInverse(ginzburg4, [ 0, 45], [480, 132.190275]);
|
18
|
-
assert.equalInverse(ginzburg4, [-180, 0], [ 55.74, 250]);
|
19
|
-
assert.equalInverse(ginzburg4, [ 180, 0], [904.26, 250]);
|
20
|
-
assert.equalInverse(ginzburg4, [-179, 15], [ 74.930232, 182.241971]);
|
21
|
-
assert.equalInverse(ginzburg4, [-179, 80], [324.146655, 6.768973]);
|
22
|
-
assert.equalInverse(ginzburg4, [ 1, 1], [482.356603, 247.381944]);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
27
|
-
|
28
|
-
suite.export(module);
|
@@ -1,28 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.ginzburg5");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"ginzburg5": {
|
9
|
-
topic: load("ginzburg5"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.ginzburg5(); },
|
12
|
-
"projections and inverse projections": function(ginzburg5) {
|
13
|
-
assert.equalInverse(ginzburg5, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(ginzburg5, [ 0, -90], [480, 485.619449]);
|
15
|
-
assert.equalInverse(ginzburg5, [ 0, 90], [480, 14.380550]);
|
16
|
-
assert.equalInverse(ginzburg5, [ 0, -45], [480, 367.809724]);
|
17
|
-
assert.equalInverse(ginzburg5, [ 0, 45], [480, 132.190275]);
|
18
|
-
assert.equalInverse(ginzburg5, [-180, 0], [92.4271500, 250]);
|
19
|
-
assert.equalInverse(ginzburg5, [ 180, 0], [867.572850, 250]);
|
20
|
-
assert.equalInverse(ginzburg5, [-179, 15], [103.000122, 190.710455]);
|
21
|
-
assert.equalInverse(ginzburg5, [-179, 80], [283.164027, 29.027751]);
|
22
|
-
assert.equalInverse(ginzburg5, [ 1, 1], [482.152989, 247.381962]);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
27
|
-
|
28
|
-
suite.export(module);
|
@@ -1,28 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.ginzburg6");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"ginzburg6": {
|
9
|
-
topic: load("ginzburg6"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.ginzburg6(); },
|
12
|
-
"projections and inverse projections": function(ginzburg6) {
|
13
|
-
assert.equalInverse(ginzburg6, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(ginzburg6, [ 0, -90], [480, 511.780994], 1e-4);
|
15
|
-
assert.equalInverse(ginzburg6, [ 0, 90], [480, -11.780994], 1e-4);
|
16
|
-
assert.equalInverse(ginzburg6, [ 0, -45], [480, 371.079917], 1e-5);
|
17
|
-
assert.equalInverse(ginzburg6, [ 0, 45], [480, 128.920082], 1e-5);
|
18
|
-
assert.equalInverse(ginzburg6, [-180, 0], [ 87.300918, 250]);
|
19
|
-
assert.equalInverse(ginzburg6, [ 180, 0], [872.699081, 250]);
|
20
|
-
assert.equalInverse(ginzburg6, [-179, 15], [ 95.906977, 197.310730]);
|
21
|
-
assert.equalInverse(ginzburg6, [-179, 80], [291.096338, -9.687754]);
|
22
|
-
assert.equalInverse(ginzburg6, [ 1, 1], [482.181510, 247.381942]);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
27
|
-
|
28
|
-
suite.export(module);
|
@@ -1,28 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.ginzburg8");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"ginzburg8": {
|
9
|
-
topic: load("ginzburg8"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.ginzburg8(); },
|
12
|
-
"projections and inverse projections": function(ginzburg8) {
|
13
|
-
assert.equalInverse(ginzburg8, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(ginzburg8, [ 0, -90], [480, 534.066756]);
|
15
|
-
assert.equalInverse(ginzburg8, [ 0, 90], [480, -34.066756]);
|
16
|
-
assert.equalInverse(ginzburg8, [ 0, -45], [480, 373.865637]);
|
17
|
-
assert.equalInverse(ginzburg8, [ 0, 45], [480, 126.134362]);
|
18
|
-
assert.equalInverse(ginzburg8, [-180, 0], [113.741324, 250]);
|
19
|
-
assert.equalInverse(ginzburg8, [ 180, 0], [846.258675, 250]);
|
20
|
-
assert.equalInverse(ginzburg8, [-179, 15], [118.882415, 210.505798], 1e-5);
|
21
|
-
assert.equalInverse(ginzburg8, [-179, 80], [230.428677, 6.534397]);
|
22
|
-
assert.equalInverse(ginzburg8, [ 1, 1], [482.277542, 247.381939]);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
27
|
-
|
28
|
-
suite.export(module);
|
@@ -1,28 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.ginzburg9");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"ginzburg9": {
|
9
|
-
topic: load("ginzburg9"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.ginzburg9(); },
|
12
|
-
"projections and inverse projections": function(ginzburg9) {
|
13
|
-
assert.equalInverse(ginzburg9, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(ginzburg9, [ 0, -90], [480, 485.619449]);
|
15
|
-
assert.equalInverse(ginzburg9, [ 0, 90], [480, 14.380550]);
|
16
|
-
assert.equalInverse(ginzburg9, [ 0, -45], [480, 367.809724]);
|
17
|
-
assert.equalInverse(ginzburg9, [ 0, 45], [480, 132.190275]);
|
18
|
-
assert.equalInverse(ginzburg9, [-180, 0], [ 82.26, 250]);
|
19
|
-
assert.equalInverse(ginzburg9, [ 180, 0], [877.74, 250]);
|
20
|
-
assert.equalInverse(ginzburg9, [-179, 15], [ 92.158925, 197.003182]);
|
21
|
-
assert.equalInverse(ginzburg9, [-179, 80], [250.610739, -3.220862]);
|
22
|
-
assert.equalInverse(ginzburg9, [ 1, 1], [482.209480, 247.381976]);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
27
|
-
|
28
|
-
suite.export(module);
|
@@ -1,26 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.gringorten");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"gringorten": {
|
9
|
-
topic: load("gringorten"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.gringorten(); },
|
12
|
-
"projections and inverse projections": function(gringorten) {
|
13
|
-
assert.equalInverse(gringorten, [120, 30], [687.902966, 184.525491], 1e-5);
|
14
|
-
assert.equalInverse(gringorten, [ 90, 80], [630, 112.748374]);
|
15
|
-
assert.equalInverse(gringorten, [ 0, 0], [480, 250], 1e-3);
|
16
|
-
assert.equalInverse(gringorten, [-80, 15], [350.494657, 218.619874]);
|
17
|
-
assert.equalInverse(gringorten, [ 0, -45], [480, 399.999928], 1e-3);
|
18
|
-
assert.equalInverse(gringorten, [ 0, 45], [480, 100.000071], 1e-3);
|
19
|
-
assert.equalInverse(gringorten, [ 15, 45], [499.360376, 117.149092], 1e-4);
|
20
|
-
assert.equalInverse(gringorten, [ 1, 1], [481.304784, 246.646234]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
});
|
25
|
-
|
26
|
-
suite.export(module);
|
@@ -1,28 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.guyou");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"guyou": {
|
9
|
-
topic: load("guyou"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.guyou(); },
|
12
|
-
"projections and inverse projections": function(guyou) {
|
13
|
-
assert.equalInverse(guyou, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(guyou, [ 0, -45], [480, 487.382], 1e-3);
|
15
|
-
assert.equalInverse(guyou, [ 0, 45], [480, 12.6172], 1e-4);
|
16
|
-
assert.equalInverse(guyou, [-90, 0], [242.617240, 250]);
|
17
|
-
assert.equalInverse(guyou, [ 90, 0], [717.382759, 250]);
|
18
|
-
assert.equalInverse(guyou, [ 45, 0], [611.625205, 250]);
|
19
|
-
assert.equalInverse(guyou, [-80, 15], [264.628233, 216.032299]);
|
20
|
-
assert.equalInverse(guyou, [ 1, 1], [483.160518, 246.839962]);
|
21
|
-
assert.equalInverse(guyou, [ 15, 45], [561.412842, 86.826667]);
|
22
|
-
assert.equalInverse(guyou, [180, -60], [823.140312, 487.382759], 1e-4);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
27
|
-
|
28
|
-
suite.export(module);
|
@@ -1,39 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.hammerRetroazimuthal");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"hammerRetroazimuthal": {
|
9
|
-
topic: load("hammer-retroazimuthal"),
|
10
|
-
"0° parallel": {
|
11
|
-
topic: function(geo) { return geo.hammerRetroazimuthal(); },
|
12
|
-
"projections and inverse projections": function(hammerRetroazimuthal) {
|
13
|
-
assert.equalInverse(hammerRetroazimuthal, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(hammerRetroazimuthal, [ 0, -45], [480, 367.809724]);
|
15
|
-
assert.equalInverse(hammerRetroazimuthal, [ 0, 45], [480, 132.190275]);
|
16
|
-
assert.equalInverse(hammerRetroazimuthal, [-80, 15], [269.878429, 240.410727]);
|
17
|
-
assert.equalInverse(hammerRetroazimuthal, [ 1, 1], [482.618126, 247.382271]);
|
18
|
-
assert.equalInverse(hammerRetroazimuthal, [ 15, 45], [523.527397, 135.133006]);
|
19
|
-
assert.equalInverse(hammerRetroazimuthal, [120, 30], [770.915361, 166.019968]);
|
20
|
-
}
|
21
|
-
},
|
22
|
-
"30° parallel": {
|
23
|
-
topic: function(geo) {
|
24
|
-
return geo.hammerRetroazimuthal().parallel(30);
|
25
|
-
},
|
26
|
-
"projections and inverse projections": function(hammerRetroazimuthal) {
|
27
|
-
assert.equalInverse(hammerRetroazimuthal, [ 0, 0], [480, 328.539816]);
|
28
|
-
assert.equalInverse(hammerRetroazimuthal, [ 0, -45], [480, 446.349540]);
|
29
|
-
assert.equalInverse(hammerRetroazimuthal, [ 0, 45], [480, 210.730091]);
|
30
|
-
assert.equalInverse(hammerRetroazimuthal, [-80, 15], [308.029420, 339.535421]);
|
31
|
-
assert.equalInverse(hammerRetroazimuthal, [ 1, 1], [482.367018, 325.925728]);
|
32
|
-
assert.equalInverse(hammerRetroazimuthal, [ 15, 45], [514.251164, 213.638684]);
|
33
|
-
assert.equalInverse(hammerRetroazimuthal, [120, 30], [672.322402, 83.443914]);
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
});
|
38
|
-
|
39
|
-
suite.export(module);
|
@@ -1,29 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.hammer");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"hammer": {
|
9
|
-
topic: load("hammer"),
|
10
|
-
"quarticAuthalic": {
|
11
|
-
topic: function(geo) {
|
12
|
-
return geo.hammer().coefficient(Infinity);
|
13
|
-
},
|
14
|
-
"projections and inverse projections": function(quarticAuthalic) {
|
15
|
-
assert.equalInverse(quarticAuthalic, [ 0, 0], [480, 250]);
|
16
|
-
assert.equalInverse(quarticAuthalic, [ 0, -90], [480, 462.132034]);
|
17
|
-
assert.equalInverse(quarticAuthalic, [ 0, 90], [480, 37.867965]);
|
18
|
-
assert.equalInverse(quarticAuthalic, [ 0, -45], [480, 364.805029]);
|
19
|
-
assert.equalInverse(quarticAuthalic, [ 0, 45], [480, 135.194970]);
|
20
|
-
assert.equalInverse(quarticAuthalic, [-180, 0], [ 8.761101, 250]);
|
21
|
-
assert.equalInverse(quarticAuthalic, [ 180, 0], [951.238898, 250]);
|
22
|
-
assert.equalInverse(quarticAuthalic, [-179, 15], [ 23.441040, 210.842142]);
|
23
|
-
assert.equalInverse(quarticAuthalic, [ 1, 1], [482.617694, 247.382039]);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
});
|
28
|
-
|
29
|
-
suite.export(module);
|
@@ -1,27 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.hatano");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"hatano": {
|
9
|
-
topic: load("hatano"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.hatano(); },
|
12
|
-
"projections and inverse projections": function(hatano) {
|
13
|
-
assert.equalInverse(hatano, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(hatano, [ 0, -90], [480, 441.538303]);
|
15
|
-
assert.equalInverse(hatano, [ 0, 90], [480, 53.383198]);
|
16
|
-
assert.equalInverse(hatano, [ 0, -45], [480, 379.209449]);
|
17
|
-
assert.equalInverse(hatano, [ 0, 45], [480, 119.704758]);
|
18
|
-
assert.equalInverse(hatano, [-180, 0], [ 79.446936, 250]);
|
19
|
-
assert.equalInverse(hatano, [ 180, 0], [880.553063, 250]);
|
20
|
-
assert.equalInverse(hatano, [-179, 15], [87.7505160, 204.093101]);
|
21
|
-
assert.equalInverse(hatano, [ 1, 1], [482.225143, 246.920082]);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
});
|
26
|
-
|
27
|
-
suite.export(module);
|
@@ -1,26 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.healpix");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"healpix": {
|
9
|
-
topic: load("healpix"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.healpix(); },
|
12
|
-
"projections and inverse projections": function(healpix) {
|
13
|
-
assert.equalInverse(healpix, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(healpix, [ 1, -45], [487.454782, 356.202278]);
|
15
|
-
assert.equalInverse(healpix, [ 1, 45], [487.454782, 143.797721]);
|
16
|
-
assert.equalInverse(healpix, [-90, 0], [362.190275, 250]);
|
17
|
-
assert.equalInverse(healpix, [ 90, 0], [597.809724, 250]);
|
18
|
-
assert.equalInverse(healpix, [-80, 15], [375.280244, 211.177143]);
|
19
|
-
assert.equalInverse(healpix, [ 1, 1], [481.308996, 247.382139]);
|
20
|
-
assert.equalInverse(healpix, [ 15, 45], [504.813987, 143.797721]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
});
|
25
|
-
|
26
|
-
suite.export(module);
|
@@ -1,28 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.hill");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"hill": {
|
9
|
-
topic: load("hill"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.hill(); },
|
12
|
-
"projections and inverse projections": function(hill) {
|
13
|
-
assert.equalInverse(hill, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(hill, [ 0, -90], [480, 416.823782]);
|
15
|
-
assert.equalInverse(hill, [ 0, 90], [480, 18.873653]);
|
16
|
-
assert.equalInverse(hill, [ 0, -45], [480, 364.499449]);
|
17
|
-
assert.equalInverse(hill, [ 0, 45], [480, 113.253357]);
|
18
|
-
assert.equalInverse(hill, [-180, 0], [122.993559, 59.760268]);
|
19
|
-
assert.equalInverse(hill, [ 180, 0], [837.006440, 59.760268]);
|
20
|
-
assert.equalInverse(hill, [-179, 15], [154.461200, 25.636205]);
|
21
|
-
assert.equalInverse(hill, [ 1, 1], [482.330467, 247.058682]);
|
22
|
-
assert.equalInverse(hill, [ 45, 87], [508.223694, 17.762871]);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
27
|
-
|
28
|
-
suite.export(module);
|