Rename _ol_geom_Point_ to Point

This commit is contained in:
Tim Schaub
2017-12-14 08:49:10 -07:00
parent 75c5a8b246
commit eadec38ae2
76 changed files with 365 additions and 365 deletions
+12 -12
View File
@@ -1,11 +1,11 @@
import _ol_geom_Point_ from '../../../../src/ol/geom/Point.js';
import Point from '../../../../src/ol/geom/Point.js';
describe('ol.geom.Point', function() {
it('can be constructed with a null geometry', function() {
expect(function() {
return new _ol_geom_Point_(null);
return new Point(null);
}).not.to.throwException();
});
@@ -13,7 +13,7 @@ describe('ol.geom.Point', function() {
var point;
beforeEach(function() {
point = new _ol_geom_Point_([1, 2]);
point = new Point([1, 2]);
});
it('has the expected layout', function() {
@@ -50,7 +50,7 @@ describe('ol.geom.Point', function() {
var point;
beforeEach(function() {
point = new _ol_geom_Point_([1, 2, 3], 'XYM');
point = new Point([1, 2, 3], 'XYM');
});
it('has the expected layout', function() {
@@ -87,7 +87,7 @@ describe('ol.geom.Point', function() {
var point;
beforeEach(function() {
point = new _ol_geom_Point_([1, 2, 3, 4]);
point = new Point([1, 2, 3, 4]);
});
it('has the expected layout', function() {
@@ -132,21 +132,21 @@ describe('ol.geom.Point', function() {
describe('#scale()', function() {
it('scales a point', function() {
var geom = new _ol_geom_Point_([1, 2]);
var geom = new Point([1, 2]);
geom.scale(10e6);
var coordinates = geom.getCoordinates();
expect(coordinates).to.eql([1, 2]);
});
it('accepts sx and sy', function() {
var geom = new _ol_geom_Point_([1, 2]);
var geom = new Point([1, 2]);
geom.scale(1e6, -42);
var coordinates = geom.getCoordinates();
expect(coordinates).to.eql([1, 2]);
});
it('accepts an anchor', function() {
var geom = new _ol_geom_Point_([1, 2]);
var geom = new Point([1, 2]);
geom.scale(10, 15, [0, 0]);
var coordinates = geom.getCoordinates();
expect(coordinates).to.eql([10, 30]);
@@ -158,7 +158,7 @@ describe('ol.geom.Point', function() {
var point, transform;
beforeEach(function() {
point = new _ol_geom_Point_([1, 2]);
point = new Point([1, 2]);
transform = sinon.spy();
});
@@ -193,10 +193,10 @@ describe('ol.geom.Point', function() {
describe('#transform()', function() {
it('transforms a geometry given CRS identifiers', function() {
var point = new _ol_geom_Point_([-111, 45]).transform(
var point = new Point([-111, 45]).transform(
'EPSG:4326', 'EPSG:3857');
expect(point).to.be.a(_ol_geom_Point_);
expect(point).to.be.a(Point);
var coords = point.getCoordinates();
@@ -205,7 +205,7 @@ describe('ol.geom.Point', function() {
});
it('modifies the original', function() {
var point = new _ol_geom_Point_([-111, 45]);
var point = new Point([-111, 45]);
point.transform('EPSG:4326', 'EPSG:3857');
var coords = point.getCoordinates();