Permalink
Browse files

Merge pull request #402 from gk3/patch-1

add mid x & y to screen
  • Loading branch information...
koenbok committed Aug 23, 2016
2 parents 852cfe5 + 0e14d7f commit a33d1bebf84bc6f3f110cb8795e0775ada4156a7
Showing with 2 additions and 1 deletion.
  1. +2 −1 framer/Screen.coffee
View
@@ -11,7 +11,8 @@ class ScreenClass extends BaseClass
@define "canvasFrame", get: ->
return @device.context.canvasFrame if @device
return @frame
@define "midX", get: -> Utils.frameGetMidX @
@define "midY", get: -> Utils.frameGetMidY @
@define "size", get: -> Utils.size(@)
@define "frame", get: -> Utils.frame(@)
@define "device", get: -> Framer.CurrentContext.device

0 comments on commit a33d1be

Please sign in to comment.