src/tiledimage.js
function(current) {
        var bounds = this.getBoundsNoRotate(current);
        if (this._clip) {
            var worldWidth = current ?
                this._worldWidthCurrent : this._worldWidthTarget;
            var ratio = worldWidth / this.source.dimensions.x;
            var clip = this._clip.times(ratio);
            bounds = new $.Rect(
                bounds.x + clip.x,
                bounds.y + clip.y,
                clip.width,
                clip.height);
        }
        return bounds.rotate(this.getRotation(current), this._getRotationPoint(current));
    }
function(current) {
        var bounds = this.getBoundsNoRotate(current);
        if (this._clip) {
            var worldWidth = current ?
                this._worldWidthCurrent : this._worldWidthTarget;
            var ratio = worldWidth / this.source.dimensions.x;
            var clip = this._clip.times(ratio);
            bounds = new $.Rect(
                bounds.x + clip.x,
                bounds.y + clip.y,
                clip.width,
                clip.height);
        }
        return bounds.rotate(this.getRotation(current), this._getRotationPoint(current));
    }
function ( current ) { var bounds = this . getBoundsNoRotate ( current ) ; if ( this . _clip ) { var worldWidth = current ? this . _worldWidthCurrent : this . _worldWidthTarget ; var ratio = worldWidth / this . source . dimensions . x ; var clip = this . _clip . times ( ratio ) ; bounds = new $ . Rect ( bounds . x + clip . x , bounds . y + clip . y , clip . width , clip . height ) ; } return bounds . rotate ( this . getRotation ( current ) , this . _getRotationPoint ( current ) ) ; }
Get the bounds of the displayed part of the tiled image.
@param {Boolean} [current=false] Pass true for the current location,
false for the target location.
@returns {$.Rect} The clipped bounds in viewport coordinates.
Get the bounds of the displayed part of the tiled image .