From f979f47658a03640cc81e729e3cf88d80f8ec366 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Mon, 13 Feb 2012 13:44:37 -0800 Subject: appended function : toViewportCoordinates in stage Signed-off-by: Armen Kesablyan --- js/stage/stage.reel/stage.js | 6 ++++++ 1 file changed, 6 insertions(+) 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, { } }, + toViewportCoordinates: { + value: function(x,y) { + return [x + this._userContentLeft, y + this._userContentTop]; + } + }, + setZoom: { value: function(value) { if(!this._firstDraw) -- cgit v1.2.3