function scaleAroundCenter(factor) {
            var center = this.getCenter(),
                boundsHalfWidth = this.width / 2,
                boundsHalfHeight = this.height / 2;
            this.x = center.x - boundsHalfWidth * factor;
            this.y = center.y - boundsHalfHeight * factor;
            this.width *= factor;
            this.height *= factor;
        }
/**
         * Enlarges the rectangle by the given factor while maintaining its center.
         *
         * @param {number} factor
         */
Enlarges the rectangle by the given factor while maintaining its center.
@param {number} factor
Enlarges the rectangle by the given factor while maintaining its center . @param { number } factor
function scaleAroundCenter(factor) {
            var center = this.getCenter(),
                boundsHalfWidth = this.width / 2,
                boundsHalfHeight = this.height / 2;
            this.x = center.x - boundsHalfWidth * factor;
            this.y = center.y - boundsHalfHeight * factor;
            this.width *= factor;
            this.height *= factor;
        }
function scaleAroundCenter ( factor ) { var center = this . getCenter ( ) , boundsHalfWidth = this . width / 2 , boundsHalfHeight = this . height / 2 ; this . x = center . x - boundsHalfWidth * factor ; this . y = center . y - boundsHalfHeight * factor ; this . width *= factor ; this . height *= factor ; }
Enlarges the rectangle by the given factor while maintaining its center.
Enlarges the rectangle by the given factor while maintaining its center .