Rename ol.Rectangle scale to scaleFromCenter

This commit is contained in:
Éric Lemoine
2013-02-15 17:43:27 +01:00
parent 3d0682a4d4
commit e1505abe0d
3 changed files with 5 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ ol.Rectangle.prototype.toString = function() {
/**
* @param {number} value Value.
*/
ol.Rectangle.prototype.scale = function(value) {
ol.Rectangle.prototype.scaleFromCenter = function(value) {
var deltaX = (this.getWidth() / 2.0) * (value - 1);
var deltaY = (this.getHeight() / 2.0) * (value - 1);
this.minX -= deltaX;