Permalink
Browse files

Fix center() on shapes

  • Loading branch information...
nvh committed Jan 24, 2018
1 parent a2342fc commit 8744c3e6a0bed953a2892d7cee6a8227edbe6998
Showing with 4 additions and 2 deletions.
  1. +4 −2 framer/Layer.coffee
View
@@ -503,14 +503,16 @@ class exports.Layer extends BaseClass
# If this is a number, we set everything to that number
if _.isNumber(input)
for k in keys
@[k] = input
if @[k] isnt input
@[k] = input
else
# If there is nothing to work with we exit
return unless input
# Set every numeric value for eacht key
for k in keys
@[k] = input[k] if _.isNumber(input[k])
if _.isNumber(input[k]) and @[k] isnt input[k]
@[k] = input[k]
@define "point",
importable: true

0 comments on commit 8744c3e

Please sign in to comment.