d3js-plugins-rails 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Gemfile +3 -1
- data/README.md +11 -0
- data/certs/bai.pem +20 -0
- data/d3js-plugins-rails.gemspec +4 -0
- data/lib/d3js-plugins-rails/version.rb +2 -2
- data/vendor/assets/javascripts/d3/plugins/Makefile +10 -87
- data/vendor/assets/javascripts/d3/plugins/geo/projection/README.md +1 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/aitoff.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/armadillo.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/august.js +3 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/baker.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/berghaus.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/boggs.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/bonne.js +3 -2
- data/vendor/assets/javascripts/d3/plugins/geo/projection/bromley.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/collignon.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/conic-conformal.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/conic-equal-area.js +29 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/conic-equidistant.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/craig.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/craster.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/cylindrical-equal-area.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert1.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert2.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert3.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert4.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert5.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert6.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eisenlohr.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/elliptic.js +3 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/fahey.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/gringorten.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/guyou.js +3 -2
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hammer-retroazimuthal.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hammer.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hatano.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/healpix.js +4 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hill.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/homolosine.js +4 -3
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hyperbolic.js +22 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/index.js +68 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/interrupt.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/kavrayskiy7.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/lagrange.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/larrivee.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/laskowski.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/littrow.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/loximuthal.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/math.js +26 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/miller.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/modified-stereographic.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mollweide.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-parabolic.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-quartic.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-sinusoidal.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/natural-earth.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/nell-hammer.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/parallel1.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/parallel2.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/peirce-quincuncial.js +3 -2
- data/vendor/assets/javascripts/d3/plugins/geo/projection/polyconic.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/projection.js +1 -47
- data/vendor/assets/javascripts/d3/plugins/geo/projection/quincuncial.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/rectangular-polyconic.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/robinson.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/satellite.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/sinu-mollweide.js +3 -2
- data/vendor/assets/javascripts/d3/plugins/geo/projection/sinusoidal.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/aitoff-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/armadillo-test.js +19 -17
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/{env.js → assert.js} +2 -3
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/august-test.js +18 -16
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/baker-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/berghaus-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/boggs-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/bonne-test.js +9 -9
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/craig-test.js +6 -6
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/craster-test.js +16 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/eisenlohr-test.js +25 -23
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/equirectangular-test.js +2 -3
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/fahey-test.js +16 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/gringorten-test.js +15 -13
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/guyou-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hammer-retroazimuthal-test.js +6 -6
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hammer-test.js +5 -5
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hatano-test.js +16 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/healpix-test.js +15 -13
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hill-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/lagrange-test.js +6 -6
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/larrivee-test.js +16 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/laskowski-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/littrow-test.js +15 -13
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/load.js +20 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/loximuthal-test.js +16 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/modified-stereographic-test.js +15 -13
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mollweide-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-parabolic-test.js +16 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-quartic-test.js +16 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-sinusoidal-test.js +16 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/natural-earth-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/peirce-quincuncial-test.js +15 -13
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/polyconic-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/rectangular-polyconic-test.js +6 -6
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/robinson-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/times-test.js +15 -13
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/transverse-mercator-test.js +29 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/two-point-azimuthal-test.js +13 -11
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/two-point-equidistant-test.js +15 -13
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/van-der-grinten2-test.js +15 -13
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/van-der-grinten3-test.js +15 -13
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/van-der-grinten4-test.js +21 -19
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/wagner6-test.js +16 -14
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/wiechel-test.js +15 -13
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/winkel3-test.js +17 -15
- data/vendor/assets/javascripts/d3/plugins/geo/projection/times.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/transverse-mercator.js +19 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/two-point-azimuthal.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/two-point-equidistant.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten2.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten3.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten4.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner4.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner6.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner7.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wiechel.js +2 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/winkel3.js +2 -1
- data/vendor/assets/javascripts/d3/plugins/hexbin/hexbin.js +9 -4
- data/vendor/assets/javascripts/d3/plugins/package.json +4 -2
- data/vendor/assets/javascripts/d3/plugins/simplify/simplify-test.js +1 -1
- data/vendor/assets/javascripts/d3/plugins/urlencode/urlencode-test.js +1 -1
- metadata +42 -16
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d21d9eec5f27fbb276f57e53cdaf0fa10d61fa49
|
4
|
+
data.tar.gz: 617d3178f43e5574b4ae0469c2a92ce781179e8b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 67f172fb7f739f52c76795e98cdf2496ff97efa0ef36b2e754827d18c873d929b75cd684e11ab75ab0b00919f56b5166b50b7d850953d19b4c679106b9cf1709
|
7
|
+
data.tar.gz: d8e21bba6f71a6199c890cf4bdce955b9f229c42751bdfdffc4c988791b3e3e7a1a29f280f3ea0dde99a2070150416ec676fd2785d3297592bb9d41557e82cb7
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -19,6 +19,17 @@ Add the *needed* directives to your JavaScript manifest file (application.js):
|
|
19
19
|
|
20
20
|
It's unlikely you will need to include all plugins globally.
|
21
21
|
|
22
|
+
## HighSecurity
|
23
|
+
|
24
|
+
To ensure that you're including a gem with original code, you can install this gem using a HighSecurity policy.
|
25
|
+
|
26
|
+
gem cert --add <(curl -Ls https://gist.github.com/bai/5150087/raw/public_cert.pem)
|
27
|
+
bundle install --trust-policy HighSecurity
|
28
|
+
|
29
|
+
Or, if you don't use bundler:
|
30
|
+
|
31
|
+
gem install d3js-plugins-rails -P HighSecurity
|
32
|
+
|
22
33
|
## Contributing
|
23
34
|
|
24
35
|
1. Fork it
|
data/certs/bai.pem
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDSDCCAjCgAwIBAgIBATANBgkqhkiG9w0BAQUFADA1MQowCAYDVQQDDAF2MRMw
|
3
|
+
EQYKCZImiZPyLGQBGRYDZ29yMRIwEAYKCZImiZPyLGQBGRYCaW8wHhcNMTMwMzEz
|
4
|
+
MDczNzI0WhcNMTQwMzEzMDczNzI0WjA1MQowCAYDVQQDDAF2MRMwEQYKCZImiZPy
|
5
|
+
LGQBGRYDZ29yMRIwEAYKCZImiZPyLGQBGRYCaW8wggEiMA0GCSqGSIb3DQEBAQUA
|
6
|
+
A4IBDwAwggEKAoIBAQCnr70Rfpsp1mlp4dV3AdM0FamdBlZTjIg+Rye8soDEpmtp
|
7
|
+
UODBWiBfQ0LVwEGH2I1hyVBHkmWvz8EOKSYw++HAsEt3WgSKDV8Gmn+o9NIR3pJq
|
8
|
+
Zwk880MxuCHYnwnk5zo+sM4KhlbCEKI8wIebOH5vAA4bwvZ7T/0IJyBYUGjy6zw5
|
9
|
+
cZHCibjAPJBHbls8M9FAAa7/n7AwRvJJtwtaCUAIU1W29dJkI1xBcoHL9Td5Brxz
|
10
|
+
absm8Y8YUArA6dbM4Rt5W4KBuo2U3wSVauEyb6ypwNzG0gnqAXqt+M0y52X106jf
|
11
|
+
iD3eGcheae2B0lZ8keU5agsAP2pt0AekikxweXstAgMBAAGjYzBhMAkGA1UdEwQC
|
12
|
+
MAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSNYpI9iA+mmZNI9Sbi8rRD6SBpnjAT
|
13
|
+
BgNVHREEDDAKgQh2QGdvci5pbzATBgNVHRIEDDAKgQh2QGdvci5pbzANBgkqhkiG
|
14
|
+
9w0BAQUFAAOCAQEAcgfuY83VQ5AX7rHOkjdAPE/KsPNEH1zs5yJWDJ9b4RsVYD48
|
15
|
+
iRxu9K6FkiPil4caYVa5poK6Tenj8aO/lqWl98eguKzR0plvmCi0SL9y8N0+7Jyd
|
16
|
+
R7Rwt2gNKZ9wLP7HCDiSGICJHfZKVq5QrAVV6b8jkWUUHCpXnf+gISi1PP0JkHfa
|
17
|
+
osJU57Mjij2bfkXpXLAHY1inEss8Cn4M8IFcnPS2tN9f69V7fbPUUwyVaey2fDQj
|
18
|
+
huM3+aQFhf3ji44P0XipQ3GsiF39ZRDA3MUe8jeuiHoq1vbmLrw0muYOH9jlTmCN
|
19
|
+
soY91zInZJIkyNXJub8NKDuoUBKLvE5Ij89OFA==
|
20
|
+
-----END CERTIFICATE-----
|
data/d3js-plugins-rails.gemspec
CHANGED
@@ -11,11 +11,15 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.description = %q{Shared plugins for d3js library.}
|
12
12
|
gem.summary = %q{Gemified d3js-plugins asset for Rails}
|
13
13
|
gem.homepage = "http://github.com/bai/d3js-plugins-rails"
|
14
|
+
gem.licenses = ["MIT"]
|
14
15
|
|
15
16
|
gem.files = `git ls-files`.split($/)
|
16
17
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
19
|
gem.require_paths = ["lib"]
|
19
20
|
|
21
|
+
gem.signing_key = File.expand_path("~/.gem/private_key.pem") if $0 =~ /gem\z/
|
22
|
+
gem.cert_chain = ["certs/bai.pem"]
|
23
|
+
|
20
24
|
gem.add_dependency "railties", ">= 3.0", "< 5.0"
|
21
25
|
end
|
@@ -1,97 +1,20 @@
|
|
1
|
-
NODE_PATH ?= ./node_modules
|
2
|
-
JS_UGLIFY = uglifyjs
|
3
|
-
JS_TESTER = $(NODE_PATH)/vows/bin/vows
|
4
|
-
|
5
1
|
all: \
|
6
2
|
d3.geo.projection.js \
|
7
3
|
d3.geo.projection.min.js
|
8
4
|
|
9
|
-
d3.geo.projection.js:
|
10
|
-
geo/projection/start.js \
|
11
|
-
geo/projection/projection.js \
|
12
|
-
geo/projection/parallel1.js \
|
13
|
-
geo/projection/parallel2.js \
|
14
|
-
geo/projection/quincuncial.js \
|
15
|
-
geo/projection/interrupt.js \
|
16
|
-
geo/projection/elliptic.js \
|
17
|
-
geo/projection/aitoff.js \
|
18
|
-
geo/projection/guyou.js \
|
19
|
-
geo/projection/mollweide.js \
|
20
|
-
geo/projection/sinusoidal.js \
|
21
|
-
geo/projection/sinu-mollweide.js \
|
22
|
-
geo/projection/armadillo.js \
|
23
|
-
geo/projection/august.js \
|
24
|
-
geo/projection/baker.js \
|
25
|
-
geo/projection/berghaus.js \
|
26
|
-
geo/projection/boggs.js \
|
27
|
-
geo/projection/bonne.js \
|
28
|
-
geo/projection/bromley.js \
|
29
|
-
geo/projection/collignon.js \
|
30
|
-
geo/projection/conic-conformal.js \
|
31
|
-
geo/projection/conic-equidistant.js \
|
32
|
-
geo/projection/craig.js \
|
33
|
-
geo/projection/craster.js \
|
34
|
-
geo/projection/cylindrical-equal-area.js \
|
35
|
-
geo/projection/eckert1.js \
|
36
|
-
geo/projection/eckert2.js \
|
37
|
-
geo/projection/eckert3.js \
|
38
|
-
geo/projection/eckert4.js \
|
39
|
-
geo/projection/eckert5.js \
|
40
|
-
geo/projection/eckert6.js \
|
41
|
-
geo/projection/eisenlohr.js \
|
42
|
-
geo/projection/fahey.js \
|
43
|
-
geo/projection/gringorten.js \
|
44
|
-
geo/projection/hammer-retroazimuthal.js \
|
45
|
-
geo/projection/hammer.js \
|
46
|
-
geo/projection/hatano.js \
|
47
|
-
geo/projection/healpix.js \
|
48
|
-
geo/projection/hill.js \
|
49
|
-
geo/projection/homolosine.js \
|
50
|
-
geo/projection/kavrayskiy7.js \
|
51
|
-
geo/projection/lagrange.js \
|
52
|
-
geo/projection/larrivee.js \
|
53
|
-
geo/projection/laskowski.js \
|
54
|
-
geo/projection/littrow.js \
|
55
|
-
geo/projection/loximuthal.js \
|
56
|
-
geo/projection/miller.js \
|
57
|
-
geo/projection/modified-stereographic.js \
|
58
|
-
geo/projection/mt-flat-polar-parabolic.js \
|
59
|
-
geo/projection/mt-flat-polar-quartic.js \
|
60
|
-
geo/projection/mt-flat-polar-sinusoidal.js \
|
61
|
-
geo/projection/natural-earth.js \
|
62
|
-
geo/projection/nell-hammer.js \
|
63
|
-
geo/projection/peirce-quincuncial.js \
|
64
|
-
geo/projection/polyconic.js \
|
65
|
-
geo/projection/rectangular-polyconic.js \
|
66
|
-
geo/projection/robinson.js \
|
67
|
-
geo/projection/satellite.js \
|
68
|
-
geo/projection/times.js \
|
69
|
-
geo/projection/two-point-azimuthal.js \
|
70
|
-
geo/projection/two-point-equidistant.js \
|
71
|
-
geo/projection/van-der-grinten.js \
|
72
|
-
geo/projection/van-der-grinten2.js \
|
73
|
-
geo/projection/van-der-grinten3.js \
|
74
|
-
geo/projection/van-der-grinten4.js \
|
75
|
-
geo/projection/wagner4.js \
|
76
|
-
geo/projection/wagner6.js \
|
77
|
-
geo/projection/wagner7.js \
|
78
|
-
geo/projection/wiechel.js \
|
79
|
-
geo/projection/winkel3.js \
|
80
|
-
geo/projection/end.js
|
81
|
-
|
82
|
-
test: all
|
83
|
-
@$(JS_TESTER) $(shell find . -name "*-test.js" \! -path "./node_modules/*")
|
84
|
-
|
85
|
-
%.min.js: %.js Makefile
|
86
|
-
@rm -f $@
|
87
|
-
$(JS_UGLIFY) $< -c -m -o $@
|
88
|
-
|
89
|
-
d3%js: Makefile
|
5
|
+
d3.geo.projection.js: $(shell node_modules/.bin/smash --list geo/projection/index.js)
|
90
6
|
@rm -f $@
|
91
|
-
|
92
|
-
|
7
|
+
node_modules/.bin/smash geo/projection/index.js > $@.tmp
|
8
|
+
node_modules/.bin/uglifyjs $@.tmp -b indent-level=2 -o $@
|
93
9
|
@rm $@.tmp
|
94
10
|
@chmod a-w $@
|
95
11
|
|
12
|
+
d3.geo.projection.min.js: d3.geo.projection.js
|
13
|
+
@rm -f $@
|
14
|
+
node_modules/.bin/uglifyjs $< -c -m -o $@
|
15
|
+
|
16
|
+
test: all
|
17
|
+
@node_modules/.bin/vows $(shell find . -name "*-test.js" \! -path "./node_modules/*")
|
18
|
+
|
96
19
|
clean:
|
97
20
|
rm -f d3.*.js
|
@@ -61,6 +61,7 @@ Projections:
|
|
61
61
|
* d3.geo.sinuMollweide - [Sinu-Mollweide](http://bl.ocks.org/mbostock/4319903)
|
62
62
|
* d3.geo.stereographic - [stereographic](http://bl.ocks.org/mbostock/3757137)
|
63
63
|
* d3.geo.times - Times
|
64
|
+
* d3.geo.transverseMercator - Transverse Mercator
|
64
65
|
* d3.geo.twoPointAzimuthal - Two-Point Azimuthal
|
65
66
|
* d3.geo.twoPointEquidistant - Two-Point Equidistant
|
66
67
|
* d3.geo.vanDerGrinten - [Van der Grinten](http://bl.ocks.org/mbostock/3796831)
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import "projection";
|
2
|
+
import "parallel2";
|
3
|
+
|
4
|
+
function conicEqualArea(φ0, φ1) {
|
5
|
+
var sinφ0 = Math.sin(φ0),
|
6
|
+
n = (sinφ0 + Math.sin(φ1)) / 2,
|
7
|
+
C = 1 + sinφ0 * (2 * n - sinφ0),
|
8
|
+
ρ0 = Math.sqrt(C) / n;
|
9
|
+
|
10
|
+
function conicEqualArea(λ, φ) {
|
11
|
+
var ρ = Math.sqrt(C - 2 * n * Math.sin(φ)) / n;
|
12
|
+
return [
|
13
|
+
ρ * Math.sin(λ *= n),
|
14
|
+
ρ0 - ρ * Math.cos(λ)
|
15
|
+
];
|
16
|
+
}
|
17
|
+
|
18
|
+
conicEqualArea.invert = function(x, y) {
|
19
|
+
var ρ0_y = ρ0 - y;
|
20
|
+
return [
|
21
|
+
Math.atan2(x, ρ0_y) / n,
|
22
|
+
Math.asin((C - (x * x + ρ0_y * ρ0_y) * n * n) / (2 * n))
|
23
|
+
];
|
24
|
+
};
|
25
|
+
|
26
|
+
return albers;
|
27
|
+
}
|
28
|
+
|
29
|
+
(d3.geo.conicEqualArea = function() { return parallel2Projection(conicEqualArea); }).raw = conicEqualArea;
|