Skip to content

Commit

Permalink
rho getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Jun 5, 2020
1 parent a4dd859 commit aa991e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zoom.js
Expand Up @@ -63,6 +63,7 @@ export default (function zoomRho(rho, rho2, rho4) {
}

zoom.rho = function(_) {
if (arguments.length === 0) return rho;
var _1 = Math.max(1e-3, +_), _2 = _1 * _1, _4 = _2 * _2;
return zoomRho(_1, _2, _4);
};
Expand Down

0 comments on commit aa991e4

Please sign in to comment.