()
| 3336 | }; |
| 3337 | } |
| 3338 | function d3_geo_pathBuffer() { |
| 3339 | var pointCircle = d3_geo_pathCircle(4.5), buffer = []; |
| 3340 | var stream = { |
| 3341 | point: point, |
| 3342 | lineStart: function() { |
| 3343 | stream.point = pointLineStart; |
| 3344 | }, |
| 3345 | lineEnd: lineEnd, |
| 3346 | polygonStart: function() { |
| 3347 | stream.lineEnd = lineEndPolygon; |
| 3348 | }, |
| 3349 | polygonEnd: function() { |
| 3350 | stream.lineEnd = lineEnd; |
| 3351 | stream.point = point; |
| 3352 | }, |
| 3353 | pointRadius: function(_) { |
| 3354 | pointCircle = d3_geo_pathCircle(_); |
| 3355 | return stream; |
| 3356 | }, |
| 3357 | result: function() { |
| 3358 | if (buffer.length) { |
| 3359 | var result = buffer.join(""); |
| 3360 | buffer = []; |
| 3361 | return result; |
| 3362 | } |
| 3363 | } |
| 3364 | }; |
| 3365 | function point(x, y) { |
| 3366 | buffer.push("M", x, ",", y, pointCircle); |
| 3367 | } |
| 3368 | function pointLineStart(x, y) { |
| 3369 | buffer.push("M", x, ",", y); |
| 3370 | stream.point = pointLine; |
| 3371 | } |
| 3372 | function pointLine(x, y) { |
| 3373 | buffer.push("L", x, ",", y); |
| 3374 | } |
| 3375 | function lineEnd() { |
| 3376 | stream.point = point; |
| 3377 | } |
| 3378 | function lineEndPolygon() { |
| 3379 | buffer.push("Z"); |
| 3380 | } |
| 3381 | return stream; |
| 3382 | } |
| 3383 | var d3_geo_pathCentroid = { |
| 3384 | point: d3_geo_pathCentroidPoint, |
| 3385 | lineStart: d3_geo_pathCentroidLineStart, |
nothing calls this directly
no test coverage detected