Rename transform to applyTransform for geometries
This commit is contained in:
@@ -217,4 +217,4 @@ ol.geom.Circle.prototype.setRadius = function(radius) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.geom.Circle.prototype.transform = goog.abstractMethod;
|
||||
ol.geom.Circle.prototype.applyTransform = goog.abstractMethod;
|
||||
|
||||
@@ -159,10 +159,11 @@ ol.geom.Geometry.prototype.getType = goog.abstractMethod;
|
||||
|
||||
|
||||
/**
|
||||
* Apply a transform function to the geometry. Modifies the geometry in place.
|
||||
* @function
|
||||
* @param {ol.TransformFunction} transformFn Transform.
|
||||
*/
|
||||
ol.geom.Geometry.prototype.transform = goog.abstractMethod;
|
||||
ol.geom.Geometry.prototype.applyTransform = goog.abstractMethod;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -247,11 +247,11 @@ ol.geom.GeometryCollection.prototype.setGeometriesArray = function(geometries) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.geom.GeometryCollection.prototype.transform = function(transformFn) {
|
||||
ol.geom.GeometryCollection.prototype.applyTransform = function(transformFn) {
|
||||
var geometries = this.geometries_;
|
||||
var i, ii;
|
||||
for (i = 0, ii = geometries.length; i < ii; ++i) {
|
||||
geometries[i].transform(transformFn);
|
||||
geometries[i].applyTransform(transformFn);
|
||||
}
|
||||
this.dispatchChangeEvent();
|
||||
};
|
||||
|
||||
@@ -244,7 +244,7 @@ ol.geom.SimpleGeometry.prototype.setLayout =
|
||||
* @inheritDoc
|
||||
* @todo api
|
||||
*/
|
||||
ol.geom.SimpleGeometry.prototype.transform = function(transformFn) {
|
||||
ol.geom.SimpleGeometry.prototype.applyTransform = function(transformFn) {
|
||||
if (!goog.isNull(this.flatCoordinates)) {
|
||||
transformFn(this.flatCoordinates, this.flatCoordinates, this.stride);
|
||||
this.dispatchChangeEvent();
|
||||
|
||||
Reference in New Issue
Block a user