(context)
| 3444 | }; |
| 3445 | } |
| 3446 | function d3_geo_pathContext(context) { |
| 3447 | var pointRadius = 4.5; |
| 3448 | var stream = { |
| 3449 | point: point, |
| 3450 | lineStart: function() { |
| 3451 | stream.point = pointLineStart; |
| 3452 | }, |
| 3453 | lineEnd: lineEnd, |
| 3454 | polygonStart: function() { |
| 3455 | stream.lineEnd = lineEndPolygon; |
| 3456 | }, |
| 3457 | polygonEnd: function() { |
| 3458 | stream.lineEnd = lineEnd; |
| 3459 | stream.point = point; |
| 3460 | }, |
| 3461 | pointRadius: function(_) { |
| 3462 | pointRadius = _; |
| 3463 | return stream; |
| 3464 | }, |
| 3465 | result: d3_noop |
| 3466 | }; |
| 3467 | function point(x, y) { |
| 3468 | context.moveTo(x, y); |
| 3469 | context.arc(x, y, pointRadius, 0, 2 * π); |
| 3470 | } |
| 3471 | function pointLineStart(x, y) { |
| 3472 | context.moveTo(x, y); |
| 3473 | stream.point = pointLine; |
| 3474 | } |
| 3475 | function pointLine(x, y) { |
| 3476 | context.lineTo(x, y); |
| 3477 | } |
| 3478 | function lineEnd() { |
| 3479 | stream.point = point; |
| 3480 | } |
| 3481 | function lineEndPolygon() { |
| 3482 | context.closePath(); |
| 3483 | } |
| 3484 | return stream; |
| 3485 | } |
| 3486 | d3.geo.path = function() { |
| 3487 | var pointRadius = 4.5, projection, context, projectStream, contextStream; |
| 3488 | function path(object) { |
nothing calls this directly
no outgoing calls
no test coverage detected