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,59 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.lagrange");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"lagrange": {
|
9
|
-
topic: load("lagrange"),
|
10
|
-
"spacing(.5)": {
|
11
|
-
topic: function(geo) { return geo.lagrange(); },
|
12
|
-
"projections and inverse projections": function(lagrange) {
|
13
|
-
assert.equalInverse(lagrange, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(lagrange, [ 0, -45], [480, 315.053600]);
|
15
|
-
assert.equalInverse(lagrange, [ 0, 45], [480, 184.946399]);
|
16
|
-
assert.equalInverse(lagrange, [ 0, 90], [480, -50]);
|
17
|
-
assert.equalInverse(lagrange, [ 0, 80], [480, 86.960158]);
|
18
|
-
assert.equalInverse(lagrange, [-90, 0], [355.735931, 250]);
|
19
|
-
assert.equalInverse(lagrange, [ 90, 0], [604.264068, 250]);
|
20
|
-
assert.equalInverse(lagrange, [-80, 15], [371.349124, 227.551283]);
|
21
|
-
assert.equalInverse(lagrange, [ 1, 1], [481.308980, 248.690919]);
|
22
|
-
assert.equalInverse(lagrange, [ 15, 45], [498.734660, 184.680127]);
|
23
|
-
assert.equalInverse(lagrange, [ 15, 80], [493.837895, 86.467244]);
|
24
|
-
assert.equalInverse(lagrange, [ 15, 89], [486.127550, 0.928863]);
|
25
|
-
assert.equalInverse(lagrange, [ 45, 89], [498.157041, -1.732667]);
|
26
|
-
assert.equalInverse(lagrange, [150, 89], [531.217097, -31.323054]);
|
27
|
-
assert.equalInverse(lagrange, [-150, 89], [428.782902, -31.323054]);
|
28
|
-
assert.equalInverse(lagrange, [-179, 89], [424.526070, -44.333441]);
|
29
|
-
assert.equalInverse(lagrange, [0, 89.9], [480, -32.784034]);
|
30
|
-
}
|
31
|
-
},
|
32
|
-
"spacing(.25)": {
|
33
|
-
topic: function(geo) {
|
34
|
-
return geo.lagrange().spacing(.25);
|
35
|
-
},
|
36
|
-
"projections and inverse projections": function(lagrange) {
|
37
|
-
assert.equalInverse(lagrange, [ 0, 0], [480, 250]);
|
38
|
-
assert.equalInverse(lagrange, [ 0, -45], [480, 282.918431]);
|
39
|
-
assert.equalInverse(lagrange, [ 0, 45], [480, 217.081568]);
|
40
|
-
assert.equalInverse(lagrange, [ 0, 90], [480, -50]);
|
41
|
-
assert.equalInverse(lagrange, [ 0, 80], [480, 161.363985]);
|
42
|
-
assert.equalInverse(lagrange, [-90, 0], [420.326289, 250]);
|
43
|
-
assert.equalInverse(lagrange, [ 90, 0], [539.673710, 250]);
|
44
|
-
assert.equalInverse(lagrange, [-80, 15], [427.161636, 239.763718]);
|
45
|
-
assert.equalInverse(lagrange, [ 1, 1], [480.654496, 249.345466]);
|
46
|
-
assert.equalInverse(lagrange, [ 15, 45], [489.702610, 217.046715]);
|
47
|
-
assert.equalInverse(lagrange, [ 15, 80], [488.962844, 161.277295]);
|
48
|
-
assert.equalInverse(lagrange, [ 15, 89], [487.041237, 90.333761]);
|
49
|
-
assert.equalInverse(lagrange, [ 45, 89], [501.132716, 89.349438]);
|
50
|
-
assert.equalInverse(lagrange, [150, 89], [550.729469, 77.687845]);
|
51
|
-
assert.equalInverse(lagrange, [-150, 89], [409.270530, 77.687845]);
|
52
|
-
assert.equalInverse(lagrange, [-179, 89], [395.481107, 71.952986]);
|
53
|
-
assert.equalInverse(lagrange, [0, 89.9], [480, 37.999854]);
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
57
|
-
});
|
58
|
-
|
59
|
-
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.larrivee");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"larrivee": {
|
9
|
-
topic: load("larrivee"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.larrivee(); },
|
12
|
-
"projections and inverse projections": function(larrivee) {
|
13
|
-
assert.equalInverse(larrivee, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(larrivee, [ 0, -90], [480, 583.216220]);
|
15
|
-
assert.equalInverse(larrivee, [ 0, 90], [480, -83.216220]);
|
16
|
-
assert.equalInverse(larrivee, [ 0, -45], [480, 377.516326]);
|
17
|
-
assert.equalInverse(larrivee, [ 0, 45], [480, 122.483673]);
|
18
|
-
assert.equalInverse(larrivee, [-180, 0], [ 8.761101, 250]);
|
19
|
-
assert.equalInverse(larrivee, [ 180, 0], [951.238898, 250]);
|
20
|
-
assert.equalInverse(larrivee, [-179, 15], [ 15.405661, 204.340225]);
|
21
|
-
assert.equalInverse(larrivee, [ 1, 1], [482.617894, 247.381895]);
|
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.laskowski");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"laskowski": {
|
9
|
-
topic: load("laskowski"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.laskowski(); },
|
12
|
-
"projections and inverse projections": function(laskowski) {
|
13
|
-
assert.equalInverse(laskowski, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(laskowski, [ 0, -90], [480, 474.160635]);
|
15
|
-
assert.equalInverse(laskowski, [ 0, 90], [480, 25.839364]);
|
16
|
-
assert.equalInverse(laskowski, [ 0, -45], [480, 373.320127]);
|
17
|
-
assert.equalInverse(laskowski, [ 0, 45], [480, 126.679872]);
|
18
|
-
assert.equalInverse(laskowski, [-180, 0], [ 20.290432, 250]);
|
19
|
-
assert.equalInverse(laskowski, [ 180, 0], [939.709567, 250]);
|
20
|
-
assert.equalInverse(laskowski, [-179, 15], [ 31.276812, 179.551316]);
|
21
|
-
assert.equalInverse(laskowski, [ 1, 1], [482.553846, 247.371809]);
|
22
|
-
assert.equalInverse(laskowski, [ 45, 87], [525.904925, 26.307624]);
|
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.littrow");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"littrow": {
|
9
|
-
topic: load("littrow"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.littrow(); },
|
12
|
-
"projections and inverse projections": function(littrow) {
|
13
|
-
assert.equalInverse(littrow, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(littrow, [ 0, -45], [480, 400]);
|
15
|
-
assert.equalInverse(littrow, [ 0, 45], [480, 100]);
|
16
|
-
assert.equalInverse(littrow, [-90, 0], [330, 250]);
|
17
|
-
assert.equalInverse(littrow, [ 90, 0], [630, 250]);
|
18
|
-
assert.equalInverse(littrow, [-80, 15], [327.067798, 243.020666]);
|
19
|
-
assert.equalInverse(littrow, [ 1, 1], [482.618259, 247.382139]);
|
20
|
-
assert.equalInverse(littrow, [ 15, 45], [534.903810, 105.111126]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
});
|
25
|
-
|
26
|
-
suite.export(module);
|
@@ -1,20 +0,0 @@
|
|
1
|
-
var smash = require("smash"),
|
2
|
-
d3 = require("d3");
|
3
|
-
|
4
|
-
module.exports = function() {
|
5
|
-
var files = [].slice.call(arguments).map(function(d) { return "geo/projection/" + d; }),
|
6
|
-
sandbox = {d3: d3};
|
7
|
-
files.unshift("geo/projection/start");
|
8
|
-
files.push("geo/projection/end");
|
9
|
-
|
10
|
-
function topic() {
|
11
|
-
smash.load(files, "d3.geo", sandbox, this.callback);
|
12
|
-
}
|
13
|
-
|
14
|
-
topic.sandbox = function(_) {
|
15
|
-
sandbox = _;
|
16
|
-
return topic;
|
17
|
-
};
|
18
|
-
|
19
|
-
return topic;
|
20
|
-
};
|
@@ -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.loximuthal");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"loximuthal": {
|
9
|
-
topic: load("loximuthal"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.loximuthal(); },
|
12
|
-
"projections and inverse projections": function(loximuthal) {
|
13
|
-
assert.equalInverse(loximuthal, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(loximuthal, [ 0, -90], [480, 485.619449]);
|
15
|
-
assert.equalInverse(loximuthal, [ 0, 90], [480, 14.380550]);
|
16
|
-
assert.equalInverse(loximuthal, [ 0, -45], [480, 367.809724]);
|
17
|
-
assert.equalInverse(loximuthal, [ 0, 45], [480, 132.190275]);
|
18
|
-
assert.equalInverse(loximuthal, [-180, 0], [ 48.773559, 250]);
|
19
|
-
assert.equalInverse(loximuthal, [ 180, 0], [911.226440, 250]);
|
20
|
-
assert.equalInverse(loximuthal, [-179, 15], [ 69.464314, 210.730091]);
|
21
|
-
assert.equalInverse(loximuthal, [ 1, 1], [482.390500, 247.382006]);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
});
|
26
|
-
|
27
|
-
suite.export(module);
|
data/vendor/assets/javascripts/d3/plugins/geo/projection/test/modified-stereographic-test.js
DELETED
@@ -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.modifiedStereographic");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"modifiedStereographic": {
|
9
|
-
topic: load("modified-stereographic"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.modifiedStereographic(); },
|
12
|
-
"projections and inverse projections": function(modifiedStereographic) {
|
13
|
-
assert.equalInverse(modifiedStereographic, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(modifiedStereographic, [ 0, -45], [480, 363.225114]);
|
15
|
-
assert.equalInverse(modifiedStereographic, [ 0, 45], [480, 136.774885]);
|
16
|
-
assert.equalInverse(modifiedStereographic, [-90, 0], [179.334000, 250]);
|
17
|
-
assert.equalInverse(modifiedStereographic, [ 90, 0], [780.666000, 250]);
|
18
|
-
assert.equalInverse(modifiedStereographic, [-80, 15], [244.261692, 178.493228]);
|
19
|
-
assert.equalInverse(modifiedStereographic, [ 1, 1], [482.420181, 247.579387]);
|
20
|
-
assert.equalInverse(modifiedStereographic, [ 15, 45], [508.846677, 134.854913]);
|
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.mollweide");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"mollweide": {
|
9
|
-
topic: load("mollweide"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.mollweide(); },
|
12
|
-
"projections and inverse projections": function(mollweide) {
|
13
|
-
assert.equalInverse(mollweide, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(mollweide, [ 0, -90], [480, 462.132034]);
|
15
|
-
assert.equalInverse(mollweide, [ 0, 90], [480, 37.867965]);
|
16
|
-
assert.equalInverse(mollweide, [ 0, -45], [480, 375.591020]);
|
17
|
-
assert.equalInverse(mollweide, [ 0, 45], [480, 124.408979]);
|
18
|
-
assert.equalInverse(mollweide, [-180, 0], [ 55.735931, 250]);
|
19
|
-
assert.equalInverse(mollweide, [ 180, 0], [904.264068, 250]);
|
20
|
-
assert.equalInverse(mollweide, [-179, 15], [ 67.028260, 206.573390]);
|
21
|
-
assert.equalInverse(mollweide, [ 1, 1], [482.356801, 247.092196]);
|
22
|
-
assert.equalInverse(mollweide, [ 45, 87], [495.642877, 40.187699]);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
27
|
-
|
28
|
-
suite.export(module);
|
data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-parabolic-test.js
DELETED
@@ -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.mtFlatPolarParabolic");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"mtFlatPolarParabolic": {
|
9
|
-
topic: load("mt-flat-polar-parabolic"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.mtFlatPolarParabolic(); },
|
12
|
-
"projections and inverse projections": function(mtFlatPolarParabolic) {
|
13
|
-
assert.equalInverse(mtFlatPolarParabolic, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(mtFlatPolarParabolic, [ 0, -90], [480, 458.309522]);
|
15
|
-
assert.equalInverse(mtFlatPolarParabolic, [ 0, 90], [480, 41.690477]);
|
16
|
-
assert.equalInverse(mtFlatPolarParabolic, [ 0, -45], [480, 374.430617]);
|
17
|
-
assert.equalInverse(mtFlatPolarParabolic, [ 0, 45], [480, 125.569382]);
|
18
|
-
assert.equalInverse(mtFlatPolarParabolic, [-180, 0], [ 43.717556, 250]);
|
19
|
-
assert.equalInverse(mtFlatPolarParabolic, [ 180, 0], [916.282443, 250]);
|
20
|
-
assert.equalInverse(mtFlatPolarParabolic, [-179, 15], [ 58.080254, 207.678319]);
|
21
|
-
assert.equalInverse(mtFlatPolarParabolic, [ 1, 1], [482.423493, 247.172271]);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
});
|
26
|
-
|
27
|
-
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.mtFlatPolarQuartic");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"mtFlatPolarQuartic": {
|
9
|
-
topic: load("mt-flat-polar-quartic"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.mtFlatPolarQuartic(); },
|
12
|
-
"projections and inverse projections": function(mtFlatPolarQuartic) {
|
13
|
-
assert.equalInverse(mtFlatPolarQuartic, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(mtFlatPolarQuartic, [ 0, -90], [480, 448.848144]);
|
15
|
-
assert.equalInverse(mtFlatPolarQuartic, [ 0, 90], [480, 51.151855]);
|
16
|
-
assert.equalInverse(mtFlatPolarQuartic, [ 0, -45], [480, 371.001020]);
|
17
|
-
assert.equalInverse(mtFlatPolarQuartic, [ 0, 45], [480, 128.998979]);
|
18
|
-
assert.equalInverse(mtFlatPolarQuartic, [-180, 0], [146.783779, 250]);
|
19
|
-
assert.equalInverse(mtFlatPolarQuartic, [ 180, 0], [813.216220, 250]);
|
20
|
-
assert.equalInverse(mtFlatPolarQuartic, [-179, 15], [155.997702, 208.275733]);
|
21
|
-
assert.equalInverse(mtFlatPolarQuartic, [ 1, 1], [481.851018, 247.207163]);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
});
|
26
|
-
|
27
|
-
suite.export(module);
|
data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-sinusoidal-test.js
DELETED
@@ -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.mtFlatPolarSinusoidal");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"mtFlatPolarSinusoidal": {
|
9
|
-
topic: load("mt-flat-polar-sinusoidal"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.mtFlatPolarSinusoidal(); },
|
12
|
-
"projections and inverse projections": function(mtFlatPolarSinusoidal) {
|
13
|
-
assert.equalInverse(mtFlatPolarSinusoidal, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(mtFlatPolarSinusoidal, [ 0, -90], [480, 465.967909]);
|
15
|
-
assert.equalInverse(mtFlatPolarSinusoidal, [ 0, 90], [480, 34.032090]);
|
16
|
-
assert.equalInverse(mtFlatPolarSinusoidal, [ 0, -45], [480, 377.345812]);
|
17
|
-
assert.equalInverse(mtFlatPolarSinusoidal, [ 0, 45], [480, 122.654187]);
|
18
|
-
assert.equalInverse(mtFlatPolarSinusoidal, [-180, 0], [ 48.064181, 250]);
|
19
|
-
assert.equalInverse(mtFlatPolarSinusoidal, [ 180, 0], [911.935818, 250]);
|
20
|
-
assert.equalInverse(mtFlatPolarSinusoidal, [-179, 15], [ 64.236235, 207.185461]);
|
21
|
-
assert.equalInverse(mtFlatPolarSinusoidal, [ 1, 1], [482.399298, 247.143795]);
|
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.naturalEarth");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"naturalEarth": {
|
9
|
-
topic: load("natural-earth"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.naturalEarth(); },
|
12
|
-
"projections and inverse projections": function(naturalEarth) {
|
13
|
-
assert.equalInverse(naturalEarth, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(naturalEarth, [ 0, -90], [480, 463.358576]);
|
15
|
-
assert.equalInverse(naturalEarth, [ 0, 90], [480, 36.641423]);
|
16
|
-
assert.equalInverse(naturalEarth, [ 0, -45], [480, 368.957709]);
|
17
|
-
assert.equalInverse(naturalEarth, [ 0, 45], [480, 131.042290]);
|
18
|
-
assert.equalInverse(naturalEarth, [-180, 0], [ 69.692291, 250]);
|
19
|
-
assert.equalInverse(naturalEarth, [ 180, 0], [890.307708, 250]);
|
20
|
-
assert.equalInverse(naturalEarth, [-179, 15], [ 76.241138, 210.406263]);
|
21
|
-
assert.equalInverse(naturalEarth, [ 1, 1], [482.279382, 247.363076]);
|
22
|
-
assert.equalInverse(naturalEarth, [ 45, 87], [541.511740, 38.772664]);
|
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.peirceQuincuncial");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"peirceQuincuncial": {
|
9
|
-
topic: load("peirce-quincuncial"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.peirceQuincuncial(); },
|
12
|
-
"projections and inverse projections": function(peirceQuincuncial) {
|
13
|
-
assert.inDelta(peirceQuincuncial([0, 90]), [480, 250], 1e-6);
|
14
|
-
assert.equalInverse(peirceQuincuncial, [ 0, 0], [480, 585.709], 1e-2);
|
15
|
-
assert.equalInverse(peirceQuincuncial, [-90, 0], [144.290082, 250], 1e-5);
|
16
|
-
assert.equalInverse(peirceQuincuncial, [ 90, 0], [815.709915, 250], 1e-1);
|
17
|
-
assert.equalInverse(peirceQuincuncial, [ 45, 0], [647.854958, 417.854958]);
|
18
|
-
assert.equalInverse(peirceQuincuncial, [-80, 15], [282.302142, 290.470613]);
|
19
|
-
assert.equalInverse(peirceQuincuncial, [ 1, 1], [495.393500, 548.541114]);
|
20
|
-
assert.equalInverse(peirceQuincuncial, [ 15, 45], [507.756185, 352.529945]);
|
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.polyconic");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"polyconic": {
|
9
|
-
topic: load("polyconic"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.polyconic(); },
|
12
|
-
"projections and inverse projections": function(polyconic) {
|
13
|
-
assert.equalInverse(polyconic, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(polyconic, [ 0, -45], [480, 367.809724]);
|
15
|
-
assert.equalInverse(polyconic, [ 0, 45], [480, 132.190275]);
|
16
|
-
assert.equalInverse(polyconic, [-90, 0], [244.380550, 250]);
|
17
|
-
assert.equalInverse(polyconic, [ 90, 0], [715.619449, 250]);
|
18
|
-
assert.equalInverse(polyconic, [-80, 15], [282.071605, 174.572089]);
|
19
|
-
assert.equalInverse(polyconic, [120, 15], [768.810227, 130.477707]);
|
20
|
-
assert.equalInverse(polyconic, [ 1, 1], [482.617595, 247.381607]);
|
21
|
-
assert.equalInverse(polyconic, [ 15, 45], [507.609690, 129.627397]);
|
22
|
-
assert.equalInverse(polyconic,[-179, 45], [359.533865,-107.184834]);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
});
|
27
|
-
|
28
|
-
suite.export(module);
|
File without changes
|
@@ -1,48 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.rectangularPolyconic");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"rectangularPolyconic": {
|
9
|
-
topic: load("rectangular-polyconic"),
|
10
|
-
"0° parallel": {
|
11
|
-
topic: function(geo) { return geo.rectangularPolyconic(); },
|
12
|
-
"projections and inverse projections": function(rectangularPolyconic) {
|
13
|
-
assert.equalInverse(rectangularPolyconic, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(rectangularPolyconic, [ 0, -45], [480, 367.809724]);
|
15
|
-
assert.equalInverse(rectangularPolyconic, [ 0, 45], [480, 132.190275]);
|
16
|
-
assert.equalInverse(rectangularPolyconic, [-90, 0], [244.380550, 250]);
|
17
|
-
assert.equalInverse(rectangularPolyconic, [ 90, 0], [715.619449, 250]);
|
18
|
-
assert.equalInverse(rectangularPolyconic, [-80, 15], [284.093092, 175.331715]);
|
19
|
-
assert.equalInverse(rectangularPolyconic, [ 1, 1], [482.617595, 247.381607]);
|
20
|
-
assert.equalInverse(rectangularPolyconic, [ 15, 45], [507.532140, 129.641898]);
|
21
|
-
assert.equalInverse(rectangularPolyconic, [120, 45], [623.475113, 25.949753]);
|
22
|
-
assert.equalInverse(rectangularPolyconic, [150, 5], [866.178341, 192.852256]);
|
23
|
-
assert.equalInverse(rectangularPolyconic, [179, 5], [938.342281, 174.509780]);
|
24
|
-
assert.equalInverse(rectangularPolyconic, [179, 85], [491.937069, 8.894941]);
|
25
|
-
}
|
26
|
-
},
|
27
|
-
"30° parallel": {
|
28
|
-
topic: function(geo) {
|
29
|
-
return geo.rectangularPolyconic().parallel(30);
|
30
|
-
},
|
31
|
-
"projections and inverse projections": function(rectangularPolyconic) {
|
32
|
-
assert.equalInverse(rectangularPolyconic, [ 0, 0], [480, 250]);
|
33
|
-
assert.equalInverse(rectangularPolyconic, [ 0, -45], [480, 367.809724]);
|
34
|
-
assert.equalInverse(rectangularPolyconic, [ 0, 45], [480, 132.190275]);
|
35
|
-
assert.equalInverse(rectangularPolyconic, [-90, 0], [231.471862, 250]);
|
36
|
-
assert.equalInverse(rectangularPolyconic, [ 90, 0], [728.528137, 250]);
|
37
|
-
assert.equalInverse(rectangularPolyconic, [-80, 15], [276.290019, 172.350142]);
|
38
|
-
assert.equalInverse(rectangularPolyconic, [ 1, 1], [482.617611, 247.381607]);
|
39
|
-
assert.equalInverse(rectangularPolyconic, [ 15, 45], [507.570850, 129.634665]);
|
40
|
-
assert.equalInverse(rectangularPolyconic, [120, 45], [626.969384, 12.190275]);
|
41
|
-
assert.equalInverse(rectangularPolyconic, [150, 5], [930.583263, 176.642758]);
|
42
|
-
assert.equalInverse(rectangularPolyconic, [179, 5],[1055.344304, 137.492301]);
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
});
|
47
|
-
|
48
|
-
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.robinson");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"robinson": {
|
9
|
-
topic: load("robinson"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.robinson(); },
|
12
|
-
"projections and inverse projections": function(robinson) {
|
13
|
-
assert.equalInverse(robinson, [ 1, 1], [482.617847, 247.036246]);
|
14
|
-
assert.equalInverse(robinson, [ 45, 87], [545.397120, 14.047945]);
|
15
|
-
assert.equalInverse(robinson, [ 0, 0], [480, 250]);
|
16
|
-
assert.equalInverse(robinson, [ 0, -90], [480, 489.012369]);
|
17
|
-
assert.equalInverse(robinson, [ 0, 90], [480, 10.987630]);
|
18
|
-
assert.equalInverse(robinson, [ 0, -45], [480, 383.153790]);
|
19
|
-
assert.equalInverse(robinson, [ 0, 45], [480, 116.846209]);
|
20
|
-
assert.equalInverse(robinson, [-180, 0], [ 8.761101, 250]);
|
21
|
-
assert.equalInverse(robinson, [ 180, 0], [951.238898, 250]);
|
22
|
-
assert.equalInverse(robinson, [-179, 15], [ 16.065304, 205.543699]);
|
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.times");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"times": {
|
9
|
-
topic: load("times"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.times(); },
|
12
|
-
"projections and inverse projections": function(times) {
|
13
|
-
assert.equalInverse(times, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(times, [ 0, -45], [480, 356.066217]);
|
15
|
-
assert.equalInverse(times, [ 0, 45], [480, 143.933782]);
|
16
|
-
assert.equalInverse(times, [-90, 0], [304.505921, 250]);
|
17
|
-
assert.equalInverse(times, [ 90, 0], [655.494078, 250]);
|
18
|
-
assert.equalInverse(times, [-80, 15], [324.777008, 216.288205]);
|
19
|
-
assert.equalInverse(times, [ 1, 1], [481.949891, 247.765341]);
|
20
|
-
assert.equalInverse(times, [ 15, 45], [507.861496, 143.933782]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
});
|
25
|
-
|
26
|
-
suite.export(module);
|
@@ -1,24 +0,0 @@
|
|
1
|
-
var vows = require("vows"),
|
2
|
-
assert = require("./assert"),
|
3
|
-
load = require("./load");
|
4
|
-
|
5
|
-
var suite = vows.describe("d3.geo.twoPointAzimuthal");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"twoPointAzimuthal": {
|
9
|
-
topic: load("two-point-azimuthal"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.twoPointAzimuthal(); },
|
12
|
-
"projections and inverse projections": function(twoPointAzimuthal) {
|
13
|
-
assert.equalInverse(twoPointAzimuthal, [ 0, 0], [ 480, 250]);
|
14
|
-
assert.equalInverse(twoPointAzimuthal, [ 0, -45], [ 480, 400]);
|
15
|
-
assert.equalInverse(twoPointAzimuthal, [ 0, 45], [ 480, 100]);
|
16
|
-
assert.equalInverse(twoPointAzimuthal, [-80, 15], [-370.692272, 18.541314]);
|
17
|
-
assert.equalInverse(twoPointAzimuthal, [ 1, 1], [ 482.618259, 247.381341]);
|
18
|
-
assert.equalInverse(twoPointAzimuthal, [ 15, 45], [ 520.192378, 94.708572]);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
});
|
23
|
-
|
24
|
-
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.twoPointEquidistant");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"twoPointEquidistant": {
|
9
|
-
topic: load("two-point-equidistant"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) {
|
12
|
-
return geo.twoPointEquidistant().points([[-158, 21.5], [-77, 39]]);
|
13
|
-
},
|
14
|
-
"projections and inverse projections": function(twoPointEquidistant) {
|
15
|
-
assert.equalInverse(twoPointEquidistant, [ 0, 0], [779.584187, 227.923736]);
|
16
|
-
assert.equalInverse(twoPointEquidistant, [ 0, -45], [681.938143, 512.400576]);
|
17
|
-
assert.equalInverse(twoPointEquidistant, [ 0, 45], [651.469553, 129.175958]);
|
18
|
-
assert.equalInverse(twoPointEquidistant, [-80, 15], [570.636740, 313.204406]);
|
19
|
-
assert.equalInverse(twoPointEquidistant, [ 1, 1], [778.820119, 219.170442]);
|
20
|
-
assert.equalInverse(twoPointEquidistant, [ 15, 45], [641.328901, 95.403073]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
});
|
25
|
-
|
26
|
-
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.vanDerGrinten2");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"vanDerGrinten2": {
|
9
|
-
topic: load("van-der-grinten2"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.vanDerGrinten2(); },
|
12
|
-
"projections and inverse projections": function(vanDerGrinten2) {
|
13
|
-
assert.equalInverse(vanDerGrinten2, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(vanDerGrinten2, [ 0, -45], [480, 376.268082]);
|
15
|
-
assert.equalInverse(vanDerGrinten2, [ 0, 45], [480, 123.731917]);
|
16
|
-
assert.equalInverse(vanDerGrinten2, [-90, 0], [244.380550, 250]);
|
17
|
-
assert.equalInverse(vanDerGrinten2, [ 90, 0], [715.619449, 250]);
|
18
|
-
assert.equalInverse(vanDerGrinten2, [-80, 15], [272.324393, 202.707670]);
|
19
|
-
assert.equalInverse(vanDerGrinten2, [ 1, 1], [482.617913, 247.381844]);
|
20
|
-
assert.equalInverse(vanDerGrinten2, [ 15, 45], [516.432290, 122.918417]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
});
|
25
|
-
|
26
|
-
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.vanDerGrinten3");
|
6
|
-
|
7
|
-
suite.addBatch({
|
8
|
-
"vanDerGrinten3": {
|
9
|
-
topic: load("van-der-grinten3"),
|
10
|
-
"default": {
|
11
|
-
topic: function(geo) { return geo.vanDerGrinten3(); },
|
12
|
-
"projections and inverse projections": function(vanDerGrinten3) {
|
13
|
-
assert.equalInverse(vanDerGrinten3, [ 0, 0], [480, 250]);
|
14
|
-
assert.equalInverse(vanDerGrinten3, [ 0, -45], [480, 376.268082]);
|
15
|
-
assert.equalInverse(vanDerGrinten3, [ 0, 45], [480, 123.731917]);
|
16
|
-
assert.equalInverse(vanDerGrinten3, [-90, 0], [244.380550, 250]);
|
17
|
-
assert.equalInverse(vanDerGrinten3, [ 90, 0], [715.619449, 250]);
|
18
|
-
assert.equalInverse(vanDerGrinten3, [-80, 15], [271.793387, 210.453529]);
|
19
|
-
assert.equalInverse(vanDerGrinten3, [ 1, 1], [482.617913, 247.381925]);
|
20
|
-
assert.equalInverse(vanDerGrinten3, [ 15, 45], [516.468521, 123.731917]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
});
|
25
|
-
|
26
|
-
suite.export(module);
|