-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to D3 4.0. #32
Comments
|
my recipe for setting up the dev environment, in case it can help others: https://gist.github.com/Fil/5f8c92efadd183670ae8c63a060f03b8 |
The difference in size is expected. I run the output images through optipng ( |
Also re. your Gist, you can simplify slightly and just |
I've just pushed a PR claiming winkel3. Incomplete but up for comments. tests were failing on my Mac due to an old version of Re: One question: how do you choose and specify the default scale? Just so that it fits well in the 960/500 reference canvas? |
Yes; typically with a 5-10px margin. Also pick suitable clipping, since not every projection wants antimeridian clipping. |
I’ve started trying to do a mass translation over here: |
The game looks simpler now 🤖. Please give the new rules. |
The rules are the same. It’s just that I have now applied an indeterminate
number of them via regex to the 4-broken branch, so it is up to the player
to figure out what is left to do!
I’d probably still recommend pulling them out of the 4-broken branch one by
one and merging them into 4 when they work. (You can use 'git cat-file blob
4-broken:src/foo.js' to extract individual files into the current branch.)
|
Hmm. I can see the appeal in that, but I also think it’s best to stick with the exact standard aspect by default. Better to just suggest that as a better default aspect in the README, say in the top introduction (which needs pictures anyway!). |
OK. I'd keep it in a funky projection such as Wiechel (where you had put it in v3) |
Yep!
|
The visual tests are probably sufficient to test projections, but what about inverse projections? Can we use a systematic method? Maybe test a given or random set of points? |
A standard set of test points would be nice for testing inverse
projections, say, some major cities plus maybe some odd things like McMurdo
in Antarctica. (Though I’d refrain from testing exact edge cases like the
poles and the antimeridian since those are often discontinuities.)
I’d also want to test projection.rotate and projection.center for all the
projections and inverse projections, or at least for the ones with custom
streams like Gilbert.
|
I’ve decided that rather than try to apply some variable padding to each projection, to just fit them exactly into 960×500 using the new test/compute-scale. |
HowIHateCamelCase |
I'm leaving the game now, not seeing straight and I think these are too difficult:
|
Thanks for all your work! 👍 I merged as many as I could, but I’m on vacation now and want to spend some time with family. I’ll take another pass sometime later… |
I merged to master. Still have to implement the two-point and interrupted projections, but that should happen soon. And then 1.0! |
🎉 |
The text was updated successfully, but these errors were encountered: