@@ -1950,21 +1950,21 @@ d3.scale.linear = function() {
19501950 ky = 1 , // (x1 - x0) / (y1 - y0)
19511951 interpolate = d3 . interpolate ,
19521952 i = interpolate ( y0 , y1 ) ,
1953- clamp = false ;
1953+ clamped = false ;
19541954
19551955 function scale ( x ) {
19561956 x = ( x - x0 ) * kx ;
1957- return i ( clamp ? Math . max ( 0 , Math . min ( 1 , x ) ) : x ) ;
1957+ return i ( clamped ? Math . max ( 0 , Math . min ( 1 , x ) ) : x ) ;
19581958 }
19591959
19601960 // Note: requires range is coercible to number!
19611961 scale . invert = function ( y ) {
19621962 return ( y - y0 ) * ky + x0 ;
19631963 } ;
19641964
1965- scale . clamped = function ( x ) {
1966- if ( ! arguments . length ) return clamp ;
1967- clamp = x ;
1965+ scale . clamp = function ( x ) {
1966+ if ( ! arguments . length ) return clamped ;
1967+ clamped = x ;
19681968 return scale ;
19691969 } ;
19701970
@@ -2053,7 +2053,7 @@ d3.scale.log = function() {
20532053 scale . range = d3 . rebind ( scale , linear . range ) ;
20542054 scale . rangeRound = d3 . rebind ( scale , linear . rangeRound ) ;
20552055 scale . interpolate = d3 . rebind ( scale , linear . interpolate ) ;
2056- scale . clamped = d3 . rebind ( scale , linear . clamped ) ;
2056+ scale . clamp = d3 . rebind ( scale , linear . clamp ) ;
20572057
20582058 scale . ticks = function ( ) {
20592059 var d = linear . domain ( ) ,
@@ -2127,7 +2127,7 @@ d3.scale.pow = function() {
21272127 scale . range = d3 . rebind ( scale , linear . range ) ;
21282128 scale . rangeRound = d3 . rebind ( scale , linear . rangeRound ) ;
21292129 scale . interpolate = d3 . rebind ( scale , linear . interpolate ) ;
2130- scale . clamped = d3 . rebind ( scale , linear . clamped ) ;
2130+ scale . clamp = d3 . rebind ( scale , linear . clamp ) ;
21312131 scale . ticks = tick . ticks ;
21322132 scale . tickFormat = tick . tickFormat ;
21332133
0 commit comments