Permalink
Browse files

Print layer improvements

  • Loading branch information...
koenbok committed Oct 27, 2014
1 parent 62e18b8 commit d147a232d790847ca6128969cb135deb5be52d7b
Showing with 8 additions and 2 deletions.
  1. +8 −2 framer/Layer.coffee
View
@@ -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)}>"

0 comments on commit d147a23

Please sign in to comment.