MCPcopy
hub / github.com/jipegit/OSXAuditor / path

Function path

d3-3.2.8/d3.js:3423–3430  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

3421 d3.geo.path = function() {
3422 var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream;
3423 function path(object) {
3424 if (object) {
3425 if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
3426 if (!cacheStream || !cacheStream.valid) cacheStream = projectStream(contextStream);
3427 d3.geo.stream(object, cacheStream);
3428 }
3429 return contextStream.result();
3430 }
3431 path.area = function(object) {
3432 d3_geo_pathAreaSum = 0;
3433 d3.geo.stream(object, projectStream(d3_geo_pathArea));

Callers 2

benchmark.jsFile · 0.85
path-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected