MCPcopy
hub / github.com/csev/py4e / path

Function path

code/gmane/d3.v3.js:4201–4208  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

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));

Callers

nothing calls this directly

Calls 1

streamMethod · 0.80

Tested by

no test coverage detected