Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Print layer improvements
- Loading branch information
Showing
with
8 additions
and
2 deletions.
-
+8
−2
framer/Layer.coffee
|
@@ -795,6 +795,12 @@ class exports.Layer extends BaseClass |
|
|
## DESCRIPTOR |
|
|
|
|
|
toString: -> |
|
|
|
|
|
round = (value) -> |
|
|
if parseInt(value) == value |
|
|
return parseInt(value) |
|
|
return Utils.round(value, 1) |
|
|
|
|
|
if @name |
|
|
return "<Layer id:#{@id} name:#{@name} (#{@x},#{@y}) #{@width}x#{@height}>" |
|
|
return "<Layer id:#{@id} (#{@x},#{@y}) #{@width}x#{@height}>" |
|
|
return "<Layer id:#{@id} name:#{@name} (#{round(@x)},#{round(@y)}) #{round(@width)}x#{round(@height)}>" |
|
|
return "<Layer id:#{@id} (#{round(@x)},#{round(@y)}) #{round(@width)}x#{round(@height)}>" |
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.