diff options
author | Armen Kesablyan | 2012-02-13 13:44:37 -0800 |
---|---|---|
committer | Armen Kesablyan | 2012-02-13 13:44:37 -0800 |
commit | f979f47658a03640cc81e729e3cf88d80f8ec366 (patch) | |
tree | 68dc8e9162487455be670319bf13abd8f2860830 /js/stage | |
parent | da32190d5dd91fa2c26f8cabb746980c3d06035c (diff) | |
download | ninja-f979f47658a03640cc81e729e3cf88d80f8ec366.tar.gz |
appended function : toViewportCoordinates in stage
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/stage')
-rw-r--r-- | js/stage/stage.reel/stage.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index 9e2df5a2..77cd1936 100644 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -780,6 +780,12 @@ exports.Stage = Montage.create(Component, { | |||
780 | } | 780 | } |
781 | }, | 781 | }, |
782 | 782 | ||
783 | toViewportCoordinates: { | ||
784 | value: function(x,y) { | ||
785 | return [x + this._userContentLeft, y + this._userContentTop]; | ||
786 | } | ||
787 | }, | ||
788 | |||
783 | setZoom: { | 789 | setZoom: { |
784 | value: function(value) { | 790 | value: function(value) { |
785 | if(!this._firstDraw) | 791 | if(!this._firstDraw) |