Skip to content
Permalink
Browse files

Merge branch 'master' of github.com:koenbok/Framer

  • Loading branch information...
koenbok committed Jul 15, 2015
2 parents 6438f75 + 2177a7d commit c2f006630da2f3f0a1b4a191122f6764c3e1e72e
Showing with 1,627 additions and 1 deletion.
  1. +2 −0 framer/Config.coffee
  2. +5 −1 framer/Utils.coffee
  3. +1,091 −0 framer/Utils.js
  4. +7 −0 test/tests/LayerTest.coffee
  5. +8 −0 test/tests/UtilsTest.coffee
  6. +514 −0 test/tests/UtilsTest.js
@@ -18,6 +18,8 @@ body {
.framerLayer {
display: block;
position: absolute;
left: 0;
top: 0;
background-repeat: no-repeat;
background-size: cover;
-webkit-overflow-scrolling: touch;
@@ -351,7 +351,11 @@ Utils.round = (value, decimals=0) ->
d = Math.pow 10, decimals
Math.round(value * d) / d

Utils.clamp = (value, min, max) ->
Utils.clamp = (value, a, b) ->

min = Math.min(a, b)
max = Math.max(a, b)

value = min if value < min
value = max if value > max
return value
Oops, something went wrong.

0 comments on commit c2f0066

Please sign in to comment.
You can’t perform that action at this time.