Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions
+8 -10
View File
@@ -1,7 +1,5 @@
goog.require('ol.geom.flat.center');
goog.require('ol.geom.MultiPolygon');
import _ol_geom_flat_center_ from '../../../../../src/ol/geom/flat/center.js';
import _ol_geom_MultiPolygon_ from '../../../../../src/ol/geom/MultiPolygon.js';
describe('ol.geom.flat.center', function() {
@@ -9,10 +7,10 @@ describe('ol.geom.flat.center', function() {
describe('ol.geom.flat.center.linearRingss', function() {
it('calculates the center of a square', function() {
var squareMultiPoly = new ol.geom.MultiPolygon([[
var squareMultiPoly = new _ol_geom_MultiPolygon_([[
[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]
]]);
var got = ol.geom.flat.center.linearRingss(
var got = _ol_geom_flat_center_.linearRingss(
squareMultiPoly.flatCoordinates,
0,
squareMultiPoly.endss_,
@@ -22,7 +20,7 @@ describe('ol.geom.flat.center', function() {
});
it('calculates the centers of two squares', function() {
var squareMultiPoly = new ol.geom.MultiPolygon([
var squareMultiPoly = new _ol_geom_MultiPolygon_([
[
[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]
],
@@ -30,7 +28,7 @@ describe('ol.geom.flat.center', function() {
[[3, 0], [3, 1], [4, 1], [4, 0], [3, 0]]
]
]);
var got = ol.geom.flat.center.linearRingss(
var got = _ol_geom_flat_center_.linearRingss(
squareMultiPoly.flatCoordinates,
0,
squareMultiPoly.endss_,
@@ -40,11 +38,11 @@ describe('ol.geom.flat.center', function() {
});
it('does not care about holes', function() {
var polywithHole = new ol.geom.MultiPolygon([[
var polywithHole = new _ol_geom_MultiPolygon_([[
[[0, 0], [0, 5], [5, 5], [5, 0], [0, 0]],
[[1, 1], [1, 4], [4, 4], [4, 1], [1, 1]]
]]);
var got = ol.geom.flat.center.linearRingss(
var got = _ol_geom_flat_center_.linearRingss(
polywithHole.flatCoordinates,
0,
polywithHole.endss_,