Skip to content

Commit ee2e784

Browse files
committed
Coerce d3.geo.path.pointRadius functions, too.
1 parent b085292 commit ee2e784

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

d3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6241,7 +6241,7 @@
62416241
d3.geo.path = function() {
62426242
var pointRadius = 4.5, projection = d3.geo.albersUsa(), context, stream = new d3_geo_pathBuffer();
62436243
function path(object) {
6244-
if (object) d3.geo.stream(object, projection.stream(stream.pointRadius(typeof pointRadius === "function" ? pointRadius.apply(this, arguments) : pointRadius)));
6244+
if (object) d3.geo.stream(object, projection.stream(stream.pointRadius(typeof pointRadius === "function" ? +pointRadius.apply(this, arguments) : pointRadius)));
62456245
return stream.result();
62466246
}
62476247
path.area = function(object) {

0 commit comments

Comments
 (0)