Named exports from ol/geom/flat/segments

This commit is contained in:
Frederic Junod
2018-01-26 16:29:40 +01:00
parent d64b5c52a2
commit d15c4ce511
4 changed files with 14 additions and 19 deletions
+2 -4
View File
@@ -1,7 +1,6 @@
/**
* @module ol/geom/flat/segments
*/
const _ol_geom_flat_segments_ = {};
/**
@@ -19,7 +18,7 @@ const _ol_geom_flat_segments_ = {};
* @return {T|boolean} Value.
* @template T,S
*/
_ol_geom_flat_segments_.forEach = function(flatCoordinates, offset, end, stride, callback, opt_this) {
export function forEach(flatCoordinates, offset, end, stride, callback, opt_this) {
const point1 = [flatCoordinates[offset], flatCoordinates[offset + 1]];
const point2 = [];
let ret;
@@ -34,5 +33,4 @@ _ol_geom_flat_segments_.forEach = function(flatCoordinates, offset, end, stride,
point1[1] = point2[1];
}
return false;
};
export default _ol_geom_flat_segments_;
}