Rename _ol_geom_Polygon_ to Polygon
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import _ol_Feature_ from '../../../../src/ol/Feature.js';
|
||||
import _ol_geom_Polygon_ from '../../../../src/ol/geom/Polygon.js';
|
||||
import Polygon from '../../../../src/ol/geom/Polygon.js';
|
||||
import _ol_Map_ from '../../../../src/ol/Map.js';
|
||||
import _ol_View_ from '../../../../src/ol/View.js';
|
||||
import _ol_layer_Vector_ from '../../../../src/ol/layer/Vector.js';
|
||||
@@ -49,7 +49,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
var feature;
|
||||
// rectangle
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[-20, 10], [-20, 20], [-5, 20], [-5, 10], [-20, 10]]
|
||||
])
|
||||
});
|
||||
@@ -60,7 +60,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
|
||||
// rectangle with 1 hole
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[0, 10], [0, 20], [15, 20], [15, 10], [0, 10]],
|
||||
[[5, 13], [10, 13], [10, 17], [5, 17], [5, 13]]
|
||||
|
||||
@@ -73,7 +73,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
|
||||
// rectangle with 2 holes
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[-20, -20], [-20, 5], [15, 5], [15, -20], [-20, -20]],
|
||||
[[-18, -18], [-12, -18], [-12, -12], [-18, -12], [-18, -18]],
|
||||
[[5, -18], [12, -18], [12, -12], [5, -12], [5, -18]]
|
||||
@@ -114,7 +114,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
var feature;
|
||||
// rectangle
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[-20, 10], [-20, 20], [-5, 20], [-5, 10], [-20, 10]]
|
||||
])
|
||||
});
|
||||
@@ -125,7 +125,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
|
||||
// rectangle with 1 hole
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[0, 10], [0, 20], [20, 20], [20, 10], [0, 10]],
|
||||
[[5, 13], [10, 13], [10, 17], [5, 17], [5, 13]]
|
||||
|
||||
@@ -138,7 +138,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
|
||||
// rectangle with 2 holes
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[-20, -20], [-20, 5], [20, 5], [20, -20], [-20, -20]],
|
||||
[[-12, -3], [-12, -12], [-8, -12], [-8, -3], [-12, -3]],
|
||||
[[0, -12], [13, -12], [13, -3], [0, -3], [0, -12]]
|
||||
@@ -174,7 +174,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
var feature;
|
||||
// rectangle with z-index 2
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[-20, 10], [-20, 20], [-0, 20], [-0, 10], [-20, 10]]
|
||||
])
|
||||
});
|
||||
@@ -186,7 +186,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
|
||||
// rectangle with z-index 3
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[-15, 5], [-15, 15], [5, 15], [5, 5], [-15, 5]]
|
||||
])
|
||||
});
|
||||
@@ -198,7 +198,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
|
||||
// rectangle with z-index 1
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[-10, 0], [-10, 10], [10, 10], [10, 0], [-10, 0]]
|
||||
])
|
||||
});
|
||||
@@ -231,7 +231,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
var feature;
|
||||
// rectangle
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[-20, 10], [-20, 20], [-5, 20], [-5, 10], [-20, 10]]
|
||||
])
|
||||
});
|
||||
@@ -243,7 +243,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
|
||||
// rectangle with 1 hole
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[0, 10], [0, 20], [15, 20], [15, 10], [0, 10]]
|
||||
])
|
||||
});
|
||||
@@ -255,7 +255,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
|
||||
// rectangle with 2 holes
|
||||
feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[-20, -20], [-20, 5], [15, 5], [15, -20], [-20, -20]]
|
||||
])
|
||||
});
|
||||
@@ -317,7 +317,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
|
||||
function createFeatures() {
|
||||
var feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Polygon_([
|
||||
geometry: new Polygon([
|
||||
[[-20, -20], [-20, 20], [18, 20], [-20, -20]]
|
||||
])
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user