Rename misnamed functions in geom/flat/orient
- Rename linearRingIsOriented => linearRingsAreOriented The function checks all linear rings of a Polygon, so the plural "rings" is more appropriate - Rename linearRingsAreOriented => linearRingssAreOriented The double s is appropriate because the check is done for all Polygons of a MultiPolygon This commit restores the function names from OpenLayers v4, they were changed (wrongly IMHO) in #7820.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {linearRingIsClockwise, linearRingIsOriented,
|
||||
linearRingsAreOriented, orientLinearRings, orientLinearRingsArray} from '../../../../../src/ol/geom/flat/orient.js';
|
||||
import {linearRingIsClockwise, linearRingsAreOriented,
|
||||
linearRingssAreOriented, orientLinearRings, orientLinearRingsArray} from '../../../../../src/ol/geom/flat/orient.js';
|
||||
|
||||
|
||||
describe('ol.geom.flat.orient', function() {
|
||||
@@ -22,8 +22,8 @@ describe('ol.geom.flat.orient', function() {
|
||||
|
||||
});
|
||||
|
||||
describe('ol.geom.flat.orient.linearRingIsOriented', function() {
|
||||
const oriented = linearRingIsOriented;
|
||||
describe('ol.geom.flat.orient.linearRingsAreOriented', function() {
|
||||
const oriented = linearRingsAreOriented;
|
||||
|
||||
const rightCoords = [
|
||||
-180, -90, 180, -90, 180, 90, -180, 90, -180, -90,
|
||||
@@ -49,8 +49,8 @@ describe('ol.geom.flat.orient', function() {
|
||||
|
||||
});
|
||||
|
||||
describe('ol.geom.flat.orient.linearRingsAreOriented', function() {
|
||||
const oriented = linearRingsAreOriented;
|
||||
describe('ol.geom.flat.orient.linearRingssAreOriented', function() {
|
||||
const oriented = linearRingssAreOriented;
|
||||
|
||||
const rightCoords = [
|
||||
-180, -90, 180, -90, 180, 90, -180, 90, -180, -90,
|
||||
|
||||
Reference in New Issue
Block a user