Граф коммитов

13 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock b9eff658a3 Stereographic & orthographic projections!
These now have arbitrary origins, as well. Still need to clip, though.
2011-05-28 00:13:53 -07:00
Jason Davies f216c18db8 Rename "stereographic" -> "azimuthal".
The aim is to support azimuthal stereographic as one possible azimuthal
projection.  Others are listed here:
http://www.progonos.com/furuti/MapProj/Dither/ProjAz/projAz.html
2011-04-25 12:14:47 +01:00
Jason Davies 8e3f8104ad Merge branch 'mbostock-master'
Conflicts:
	d3.geo.min.js
2011-04-22 22:28:03 +01:00
Jason Davies 1dfd3350dc Replace Google's closure compiler with UglifyJS.
UglifyJS requires Node.js to run, but it's a lot faster than Google's
compiler and produces smaller gzipped sizes.  Some of the non-gzipped
sizes are a bit larger than Google's but I think the gzipped size is
more important.  Faster runtime is also good when we start testing the
minified versions too.
2011-03-25 10:28:41 +00:00
Jason Davies ae0cddd9f4 Update google-compiler to 20110119. 2011-03-12 11:32:20 +00:00
Jason Davies 92ad7c065c Add polar stereographic projection 2011-03-02 21:10:32 +00:00
Michael Bostock 3ecb7534ef Non-contiguous cartogram example.
Also includes new d3.geom.polygon.centroid method. Props to Zachary Johnson for
the inspiration!
2011-02-23 12:33:18 -08:00
Mike Bostock 0e1c1fad17 Add d3.geo.bounds.
This method can be used for computing the bounding box of arbitrary GeoJSON
objects. This commit also fixes a bug in d3.geo.path, such that it will accept
any GeoJSON object, rather than requiring GeoJSON feature objects.
2011-02-11 19:42:52 -08:00
Michael Bostock 6a4a2d1cc6 Allow d3.geo.albersUsa to be rescaled. 2011-01-11 14:25:25 -08:00
Michael Bostock bdcb648849 Turn off the compiler's "advanced" optimizations.
The renaming of attributes is totally not worth the hassle of maintaining an
externs file (or using the awkward `foo["bar"]` syntax). The file size
reduction from the advanced optimizations was negligible, besides!
2011-01-05 11:35:39 -08:00
Michael Bostock 085eb2fcd0 Add path.area().
This computes the projected area (in square pixels) of the given GeoJSON
object. This is useful for producing choropleth maps that area normalized to
the visible area.
2011-01-04 14:14:53 -08:00
Michael Bostock 138fd92978 Add Mercator projection. 2010-11-09 14:45:31 -08:00
Michael Bostock 6494412aee Don't include geo in the default build. 2010-11-05 00:25:24 -07:00