/** * Scales the width and height of this Rectangle by the given amounts. */ var Scale = function (rect, x, y) { if (y === undefined) { y = x; } rect.width *= x; rect.height *= y; return rect; }; module.exports = Scale;