src/graphics/layers.js
function(rect, outRect, useCached) {
            var view = this._viewportRect(useCached),
                scale = view._scale;

            outRect = outRect || {};
            outRect._x = rect._x * scale + Math.round(-view._x * scale);
            outRect._y = rect._y * scale + Math.round(-view._y * scale);
            outRect._w = rect._w * scale;
            outRect._h = rect._h * scale;

            return outRect;
        }
function(rect, outRect, useCached) {
            var view = this._viewportRect(useCached),
                scale = view._scale;

            outRect = outRect || {};
            outRect._x = rect._x * scale + Math.round(-view._x * scale);
            outRect._y = rect._y * scale + Math.round(-view._y * scale);
            outRect._w = rect._w * scale;
            outRect._h = rect._h * scale;

            return outRect;
        }
function ( rect , outRect , useCached ) { var view = this . _viewportRect ( useCached ) , scale = view . _scale ; outRect = outRect || { } ; outRect . _x = rect . _x * scale + Math . round ( - view . _x * scale ) ; outRect . _y = rect . _y * scale + Math . round ( - view . _y * scale ) ; outRect . _w = rect . _w * scale ; outRect . _h = rect . _h * scale ; return outRect ; }
transform a given rect to view space, depending on this layers' total transform
transform a given rect to view space depending on this layers total transform