Named exports from ol/geom/flat/reverse

This commit is contained in:
Frederic Junod
2018-01-26 15:45:17 +01:00
parent 297fd14507
commit 47015eba0c
3 changed files with 20 additions and 37 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* @module ol/geom/flat/orient
*/
import _ol_geom_flat_reverse_ from '../flat/reverse.js';
import {coordinates as reverseCoordinates} from '../flat/reverse.js';
const _ol_geom_flat_orient_ = {};
@@ -110,7 +110,7 @@ _ol_geom_flat_orient_.orientLinearRings = function(flatCoordinates, offset, ends
(right && isClockwise) || (!right && !isClockwise) :
(right && !isClockwise) || (!right && isClockwise);
if (reverse) {
_ol_geom_flat_reverse_.coordinates(flatCoordinates, offset, end, stride);
reverseCoordinates(flatCoordinates, offset, end, stride);
}
offset = end;
}