Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix center() on shapes
- Loading branch information
Showing
with
4 additions
and
2 deletions.
-
+4
−2
framer/Layer.coffee
|
@@ -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 |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.