Skip to content

Commit

Permalink
added whitespace for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbjames committed Jul 13, 2014
1 parent de75672 commit ec75645
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/D3/Scale.elm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ from the Reals and map it to the Reals
-}
import Native.D3.Scale


data Scale a = Scale


{-| Make a linear scale. Nothing fancy here. The default is the identity mapping.
-}
linear : Scale Float
Expand All @@ -38,6 +41,7 @@ log : Float -> Scale Float
log = Native.D3.Scale.log



{-| Change the domain of the function. You may pass in any number of values into
the list and they will be interpolated between.
Expand Down Expand Up @@ -68,6 +72,7 @@ clamp : Bool -> Scale Float -> Scale Float
clamp = Native.D3.Scale.clamp



{-| Apply the scale to a value and it will map the input value to the output range.
linear |> domain [0,1] |> range [0,100] |> convert 0.5 == 50
Expand Down

0 comments on commit ec75645

Please sign in to comment.