| 4199 | d3.geo.path = function() { |
| 4200 | var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream; |
| 4201 | function path(object) { |
| 4202 | if (object) { |
| 4203 | if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments)); |
| 4204 | if (!cacheStream || !cacheStream.valid) cacheStream = projectStream(contextStream); |
| 4205 | d3.geo.stream(object, cacheStream); |
| 4206 | } |
| 4207 | return contextStream.result(); |
| 4208 | } |
| 4209 | path.area = function(object) { |
| 4210 | d3_geo_pathAreaSum = 0; |
| 4211 | d3.geo.stream(object, projectStream(d3_geo_pathArea)); |