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.
Files changed (136) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/Gemfile +3 -1
  5. data/README.md +11 -0
  6. data/certs/bai.pem +20 -0
  7. data/d3js-plugins-rails.gemspec +4 -0
  8. data/lib/d3js-plugins-rails/version.rb +2 -2
  9. data/vendor/assets/javascripts/d3/plugins/Makefile +10 -87
  10. data/vendor/assets/javascripts/d3/plugins/geo/projection/README.md +1 -0
  11. data/vendor/assets/javascripts/d3/plugins/geo/projection/aitoff.js +2 -0
  12. data/vendor/assets/javascripts/d3/plugins/geo/projection/armadillo.js +2 -0
  13. data/vendor/assets/javascripts/d3/plugins/geo/projection/august.js +3 -0
  14. data/vendor/assets/javascripts/d3/plugins/geo/projection/baker.js +2 -0
  15. data/vendor/assets/javascripts/d3/plugins/geo/projection/berghaus.js +2 -0
  16. data/vendor/assets/javascripts/d3/plugins/geo/projection/boggs.js +2 -1
  17. data/vendor/assets/javascripts/d3/plugins/geo/projection/bonne.js +3 -2
  18. data/vendor/assets/javascripts/d3/plugins/geo/projection/bromley.js +2 -1
  19. data/vendor/assets/javascripts/d3/plugins/geo/projection/collignon.js +2 -0
  20. data/vendor/assets/javascripts/d3/plugins/geo/projection/conic-conformal.js +2 -1
  21. data/vendor/assets/javascripts/d3/plugins/geo/projection/conic-equal-area.js +29 -0
  22. data/vendor/assets/javascripts/d3/plugins/geo/projection/conic-equidistant.js +2 -1
  23. data/vendor/assets/javascripts/d3/plugins/geo/projection/craig.js +2 -1
  24. data/vendor/assets/javascripts/d3/plugins/geo/projection/craster.js +2 -0
  25. data/vendor/assets/javascripts/d3/plugins/geo/projection/cylindrical-equal-area.js +2 -1
  26. data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert1.js +2 -0
  27. data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert2.js +2 -0
  28. data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert3.js +2 -0
  29. data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert4.js +2 -0
  30. data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert5.js +2 -0
  31. data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert6.js +2 -0
  32. data/vendor/assets/javascripts/d3/plugins/geo/projection/eisenlohr.js +2 -1
  33. data/vendor/assets/javascripts/d3/plugins/geo/projection/elliptic.js +3 -0
  34. data/vendor/assets/javascripts/d3/plugins/geo/projection/fahey.js +2 -0
  35. data/vendor/assets/javascripts/d3/plugins/geo/projection/gringorten.js +2 -1
  36. data/vendor/assets/javascripts/d3/plugins/geo/projection/guyou.js +3 -2
  37. data/vendor/assets/javascripts/d3/plugins/geo/projection/hammer-retroazimuthal.js +2 -0
  38. data/vendor/assets/javascripts/d3/plugins/geo/projection/hammer.js +2 -0
  39. data/vendor/assets/javascripts/d3/plugins/geo/projection/hatano.js +2 -0
  40. data/vendor/assets/javascripts/d3/plugins/geo/projection/healpix.js +4 -0
  41. data/vendor/assets/javascripts/d3/plugins/geo/projection/hill.js +2 -0
  42. data/vendor/assets/javascripts/d3/plugins/geo/projection/homolosine.js +4 -3
  43. data/vendor/assets/javascripts/d3/plugins/geo/projection/hyperbolic.js +22 -0
  44. data/vendor/assets/javascripts/d3/plugins/geo/projection/index.js +68 -0
  45. data/vendor/assets/javascripts/d3/plugins/geo/projection/interrupt.js +2 -0
  46. data/vendor/assets/javascripts/d3/plugins/geo/projection/kavrayskiy7.js +2 -0
  47. data/vendor/assets/javascripts/d3/plugins/geo/projection/lagrange.js +2 -0
  48. data/vendor/assets/javascripts/d3/plugins/geo/projection/larrivee.js +2 -0
  49. data/vendor/assets/javascripts/d3/plugins/geo/projection/laskowski.js +2 -0
  50. data/vendor/assets/javascripts/d3/plugins/geo/projection/littrow.js +2 -0
  51. data/vendor/assets/javascripts/d3/plugins/geo/projection/loximuthal.js +2 -1
  52. data/vendor/assets/javascripts/d3/plugins/geo/projection/math.js +26 -0
  53. data/vendor/assets/javascripts/d3/plugins/geo/projection/miller.js +2 -0
  54. data/vendor/assets/javascripts/d3/plugins/geo/projection/modified-stereographic.js +2 -0
  55. data/vendor/assets/javascripts/d3/plugins/geo/projection/mollweide.js +2 -0
  56. data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-parabolic.js +2 -0
  57. data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-quartic.js +2 -0
  58. data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-sinusoidal.js +2 -0
  59. data/vendor/assets/javascripts/d3/plugins/geo/projection/natural-earth.js +2 -0
  60. data/vendor/assets/javascripts/d3/plugins/geo/projection/nell-hammer.js +2 -0
  61. data/vendor/assets/javascripts/d3/plugins/geo/projection/parallel1.js +2 -0
  62. data/vendor/assets/javascripts/d3/plugins/geo/projection/parallel2.js +2 -0
  63. data/vendor/assets/javascripts/d3/plugins/geo/projection/peirce-quincuncial.js +3 -2
  64. data/vendor/assets/javascripts/d3/plugins/geo/projection/polyconic.js +2 -0
  65. data/vendor/assets/javascripts/d3/plugins/geo/projection/projection.js +1 -47
  66. data/vendor/assets/javascripts/d3/plugins/geo/projection/quincuncial.js +2 -0
  67. data/vendor/assets/javascripts/d3/plugins/geo/projection/rectangular-polyconic.js +2 -1
  68. data/vendor/assets/javascripts/d3/plugins/geo/projection/robinson.js +2 -0
  69. data/vendor/assets/javascripts/d3/plugins/geo/projection/satellite.js +2 -0
  70. data/vendor/assets/javascripts/d3/plugins/geo/projection/sinu-mollweide.js +3 -2
  71. data/vendor/assets/javascripts/d3/plugins/geo/projection/sinusoidal.js +2 -0
  72. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/aitoff-test.js +17 -15
  73. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/armadillo-test.js +19 -17
  74. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/{env.js → assert.js} +2 -3
  75. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/august-test.js +18 -16
  76. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/baker-test.js +17 -15
  77. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/berghaus-test.js +17 -15
  78. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/boggs-test.js +17 -15
  79. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/bonne-test.js +9 -9
  80. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/craig-test.js +6 -6
  81. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/craster-test.js +16 -14
  82. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/eisenlohr-test.js +25 -23
  83. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/equirectangular-test.js +2 -3
  84. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/fahey-test.js +16 -14
  85. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/gringorten-test.js +15 -13
  86. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/guyou-test.js +17 -15
  87. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hammer-retroazimuthal-test.js +6 -6
  88. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hammer-test.js +5 -5
  89. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hatano-test.js +16 -14
  90. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/healpix-test.js +15 -13
  91. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hill-test.js +17 -15
  92. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/lagrange-test.js +6 -6
  93. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/larrivee-test.js +16 -14
  94. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/laskowski-test.js +17 -15
  95. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/littrow-test.js +15 -13
  96. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/load.js +20 -0
  97. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/loximuthal-test.js +16 -14
  98. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/modified-stereographic-test.js +15 -13
  99. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mollweide-test.js +17 -15
  100. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-parabolic-test.js +16 -14
  101. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-quartic-test.js +16 -14
  102. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-sinusoidal-test.js +16 -14
  103. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/natural-earth-test.js +17 -15
  104. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/peirce-quincuncial-test.js +15 -13
  105. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/polyconic-test.js +17 -15
  106. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/rectangular-polyconic-test.js +6 -6
  107. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/robinson-test.js +17 -15
  108. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/times-test.js +15 -13
  109. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/transverse-mercator-test.js +29 -0
  110. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/two-point-azimuthal-test.js +13 -11
  111. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/two-point-equidistant-test.js +15 -13
  112. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/van-der-grinten2-test.js +15 -13
  113. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/van-der-grinten3-test.js +15 -13
  114. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/van-der-grinten4-test.js +21 -19
  115. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/wagner6-test.js +16 -14
  116. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/wiechel-test.js +15 -13
  117. data/vendor/assets/javascripts/d3/plugins/geo/projection/test/winkel3-test.js +17 -15
  118. data/vendor/assets/javascripts/d3/plugins/geo/projection/times.js +2 -0
  119. data/vendor/assets/javascripts/d3/plugins/geo/projection/transverse-mercator.js +19 -0
  120. data/vendor/assets/javascripts/d3/plugins/geo/projection/two-point-azimuthal.js +2 -1
  121. data/vendor/assets/javascripts/d3/plugins/geo/projection/two-point-equidistant.js +2 -0
  122. data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten.js +2 -0
  123. data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten2.js +2 -0
  124. data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten3.js +2 -0
  125. data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten4.js +2 -0
  126. data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner4.js +2 -1
  127. data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner6.js +2 -0
  128. data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner7.js +2 -0
  129. data/vendor/assets/javascripts/d3/plugins/geo/projection/wiechel.js +2 -0
  130. data/vendor/assets/javascripts/d3/plugins/geo/projection/winkel3.js +2 -1
  131. data/vendor/assets/javascripts/d3/plugins/hexbin/hexbin.js +9 -4
  132. data/vendor/assets/javascripts/d3/plugins/package.json +4 -2
  133. data/vendor/assets/javascripts/d3/plugins/simplify/simplify-test.js +1 -1
  134. data/vendor/assets/javascripts/d3/plugins/urlencode/urlencode-test.js +1 -1
  135. metadata +42 -16
  136. 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
@@ -1,4 +1,6 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'jruby-openssl', :platforms => :jruby
2
4
 
3
5
  # Specify your gem's dependencies in gemspec
4
6
  gemspec
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-----
@@ -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,8 +1,8 @@
1
1
  module D3js
2
2
  module Plugins
3
3
  module Rails
4
- VERSION = "0.0.4"
5
- D3_PLUGINS_VERSION = "a3c809c32282be9980f24a1c7a08f7be6a3460c7"
4
+ VERSION = "0.0.5"
5
+ D3_PLUGINS_VERSION = "639c06c61d02d35028749c12b61c3f6c84b17409"
6
6
  end
7
7
  end
8
8
  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
- @cat $(filter %.js,$^) > $@.tmp
92
- $(JS_UGLIFY) $@.tmp -b indent-level=2 -o $@
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)
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function aitoff(λ, φ) {
2
4
  var cosφ = Math.cos(φ),
3
5
  sinciα = sinci(acos(cosφ * Math.cos(λ /= 2)));
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function armadillo(φ0) {
2
4
  var sinφ0 = Math.sin(φ0),
3
5
  cosφ0 = Math.cos(φ0),
@@ -1,3 +1,6 @@
1
+ import "projection";
2
+ import "hyperbolic";
3
+
1
4
  function august(λ, φ) {
2
5
  var tanφ = Math.tan(φ / 2),
3
6
  k = asqrt(1 - tanφ * tanφ),
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  var bakerφ = Math.log(1 + Math.SQRT2);
2
4
 
3
5
  function baker(λ, φ) {
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  var berghausAzimuthalEquidistant = d3.geo.azimuthalEquidistant.raw;
2
4
 
3
5
  function berghaus(n) {
@@ -1,4 +1,5 @@
1
- // @import mollweide
1
+ import "projection";
2
+ import "mollweide";
2
3
 
3
4
  function boggs(λ, φ) {
4
5
  var k = 2.00276,
@@ -1,5 +1,6 @@
1
- // @import parallel1
2
- // @import sinusoidal
1
+ import "projection";
2
+ import "parallel1";
3
+ import "sinusoidal";
3
4
 
4
5
  function bonne(φ0) {
5
6
  if (!φ0) return sinusoidal;
@@ -1,4 +1,5 @@
1
- // @import mollweide
1
+ import "projection";
2
+ import "mollweide";
2
3
 
3
4
  var bromley = mollweideBromley(1, 4 / π, π);
4
5
 
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function collignon(λ, φ) {
2
4
  var α = asqrt(1 - Math.sin(φ));
3
5
  return [
@@ -1,4 +1,5 @@
1
- // @import parallel2
1
+ import "projection";
2
+ import "parallel2";
2
3
 
3
4
  function conicConformal(φ0, φ1) {
4
5
  var cosφ0 = Math.cos(φ0),
@@ -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;
@@ -1,4 +1,5 @@
1
- // @import parallel2
1
+ import "projection";
2
+ import "parallel2";
2
3
 
3
4
  function conicEquidistant(φ0, φ1) {
4
5
  var cosφ0 = Math.cos(φ0),
@@ -1,4 +1,5 @@
1
- // @import parallel1
1
+ import "projection";
2
+ import "parallel1";
2
3
 
3
4
  function craig(φ0) {
4
5
  var tanφ0 = Math.tan(φ0);
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function craster(λ, φ) {
2
4
  var sqrt3 = Math.sqrt(3);
3
5
  return [
@@ -1,4 +1,5 @@
1
- // @import parallel1
1
+ import "projection";
2
+ import "parallel1";
2
3
 
3
4
  function cylindricalEqualArea(φ0) {
4
5
  var cosφ0 = Math.cos(φ0);
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function eckert1(λ, φ) {
2
4
  var α = Math.sqrt(8 / (3 * π));
3
5
  return [
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function eckert2(λ, φ) {
2
4
  var α = Math.sqrt(4 - 3 * Math.sin(Math.abs(φ)));
3
5
  return [
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function eckert3(λ, φ) {
2
4
  var k = Math.sqrt(π * (4 + π));
3
5
  return [
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function eckert4(λ, φ) {
2
4
  var k = (2 + π / 2) * Math.sin(φ);
3
5
  φ /= 2;
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function eckert5(λ, φ) {
2
4
  return [
3
5
  λ * (1 + Math.cos(φ)) / Math.sqrt(2 + π),
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function eckert6(λ, φ) {
2
4
  var k = (1 + π / 2) * Math.sin(φ);
3
5
  for (var i = 0, δ = Infinity; i < 10 && Math.abs(δ) > ε; i++) {
@@ -1,4 +1,5 @@
1
- // @import august
1
+ import "projection";
2
+ import "august";
2
3
 
3
4
  function eisenlohr(λ, φ) {
4
5
  var s0 = Math.sin(λ /= 2),
@@ -1,3 +1,6 @@
1
+ import "math";
2
+ import "hyperbolic";
3
+
1
4
  // Returns [sn, cn, dn](u + iv|m).
2
5
  function ellipticJi(u, v, m) {
3
6
  if (!u) {
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function fahey(λ, φ) {
2
4
  var t = Math.tan(φ / 2);
3
5
  return [
@@ -1,4 +1,5 @@
1
- // @import quincuncial
1
+ import "projection";
2
+ import "quincuncial";
2
3
 
3
4
  function gringorten(λ, φ) {
4
5
  var sλ = sgn(λ),
@@ -1,5 +1,6 @@
1
- // @import elliptic
2
- // @import quincuncial
1
+ import "projection";
2
+ import "elliptic";
3
+ import "quincuncial";
3
4
 
4
5
  // √k' tn(½K - w) = exp(-ζ).
5
6
  function guyou(λ, φ) {
@@ -1,3 +1,5 @@
1
+ import "projection";
2
+
1
3
  function hammerRetroazimuthal(φ0) {
2
4
  var sinφ0 = Math.sin(φ0),
3
5
  cosφ0 = Math.cos(φ0),