ol/geom/flate/inflate exports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import _ol_geom_flat_inflate_ from '../../../../../src/ol/geom/flat/inflate.js';
|
||||
import {inflateCoordinates, inflateCoordinatesArray} from '../../../../../src/ol/geom/flat/inflate.js';
|
||||
|
||||
|
||||
describe('ol.geom.flat.inflate', function() {
|
||||
@@ -6,7 +6,7 @@ describe('ol.geom.flat.inflate', function() {
|
||||
describe('ol.geom.flat.inflate.coordinates', function() {
|
||||
|
||||
it('inflates coordinates', function() {
|
||||
const coordinates = _ol_geom_flat_inflate_.coordinates([1, 2, 3, 4], 0, 4, 2);
|
||||
const coordinates = inflateCoordinates([1, 2, 3, 4], 0, 4, 2);
|
||||
expect(coordinates).to.eql([[1, 2], [3, 4]]);
|
||||
});
|
||||
|
||||
@@ -15,7 +15,7 @@ describe('ol.geom.flat.inflate', function() {
|
||||
describe('ol.geom.flat.inflate.coordinatess', function() {
|
||||
|
||||
it('inflates arrays of coordinates', function() {
|
||||
const coordinatess = _ol_geom_flat_inflate_.coordinatess(
|
||||
const coordinatess = inflateCoordinatesArray(
|
||||
[1, 2, 3, 4, 5, 6, 7, 8], 0, [4, 8], 2);
|
||||
expect(coordinatess).to.eql([[[1, 2], [3, 4]], [[5, 6], [7, 8]]]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user