Named exports from ol/geom/SimpleGeometry

This commit is contained in:
Tim Schaub
2018-02-19 10:05:30 -07:00
parent 2abc524147
commit fba4d82bdb
3 changed files with 7 additions and 7 deletions

View File

@@ -321,7 +321,7 @@ SimpleGeometry.prototype.translate = function(deltaX, deltaY) {
* @param {Array.<number>=} opt_dest Destination.
* @return {Array.<number>} Transformed flat coordinates.
*/
SimpleGeometry.transform2D = function(simpleGeometry, transform, opt_dest) {
export function transformGeom2D(simpleGeometry, transform, opt_dest) {
const flatCoordinates = simpleGeometry.getFlatCoordinates();
if (!flatCoordinates) {
return null;
@@ -331,5 +331,6 @@ SimpleGeometry.transform2D = function(simpleGeometry, transform, opt_dest) {
flatCoordinates, 0, flatCoordinates.length, stride,
transform, opt_dest);
}
};
}
export default SimpleGeometry;