MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / d3_geo_pathProjectStream

Function d3_geo_pathProjectStream

d3-3.2.8/d3.js:3468–3495  ·  view source on GitHub ↗
(project)

Source from the content-addressed store, hash-verified

3466 return path.projection(d3.geo.albersUsa()).context(null);
3467 };
3468 function d3_geo_pathProjectStream(project) {
3469 var resample = d3_geo_resample(function(λ, φ) {
3470 return project([ λ * d3_degrees, φ * d3_degrees ]);
3471 });
3472 return function(stream) {
3473 stream = resample(stream);
3474 return {
3475 point: function(λ, φ) {
3476 stream.point(λ * d3_radians, φ * d3_radians);
3477 },
3478 sphere: function() {
3479 stream.sphere();
3480 },
3481 lineStart: function() {
3482 stream.lineStart();
3483 },
3484 lineEnd: function() {
3485 stream.lineEnd();
3486 },
3487 polygonStart: function() {
3488 stream.polygonStart();
3489 },
3490 polygonEnd: function() {
3491 stream.polygonEnd();
3492 }
3493 };
3494 };
3495 }
3496 d3.geo.projection = d3_geo_projection;
3497 d3.geo.projectionMutator = d3_geo_projectionMutator;
3498 function d3_geo_projection(project) {

Callers 1

d3.jsFile · 0.85

Calls 2

d3_geo_resampleFunction · 0.85
resampleFunction · 0.85

Tested by

no test coverage detected