src/shapes/poly.js
function (x, y) {
            y = typeof (y) !== "undefined" ? y : x;

            var points = this.points;
            var len = points.length;
            for (var i = 0; i < len; i++) {
                points[i].scale(x, y);
            }
            this.recalc();
            this.updateBounds();
            return this;
        }
function (x, y) {
            y = typeof (y) !== "undefined" ? y : x;

            var points = this.points;
            var len = points.length;
            for (var i = 0; i < len; i++) {
                points[i].scale(x, y);
            }
            this.recalc();
            this.updateBounds();
            return this;
        }
function ( x , y ) { y = typeof ( y ) !== "undefined" ? y : x ; var points = this . points ; var len = points . length ; for ( var i = 0 ; i < len ; i ++ ) { points [ i ] . scale ( x , y ) ; } this . recalc ( ) ; this . updateBounds ( ) ; return this ; }
Scale this Polygon by the given scalar.
@name scale
@memberOf me.Polygon.prototype
@function
@param {Number} x
@param {Number} [y=x]
@return {me.Polygon} Reference to this object for method chaining
Scale this Polygon by the given scalar .