Rename _ol_View_ to View

This commit is contained in:
Tim Schaub
2018-01-08 09:59:44 -07:00
parent a04144c3c2
commit 1c1f008238
207 changed files with 559 additions and 559 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import {inherits} from '../../../../src/ol/index.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import Event from '../../../../src/ol/events/Event.js';
import EventTarget from '../../../../src/ol/events/EventTarget.js';
import GeoJSON from '../../../../src/ol/format/GeoJSON.js';
@@ -16,7 +16,7 @@ where('FileReader').describe('ol.interaction.DragAndDrop', function() {
return viewport;
},
getView: function() {
return new _ol_View_();
return new View();
}
};
interaction = new DragAndDrop({
@@ -1,6 +1,6 @@
import Map from '../../../../src/ol/Map.js';
import MapBrowserPointerEvent from '../../../../src/ol/MapBrowserPointerEvent.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import DragRotateAndZoom from '../../../../src/ol/interaction/DragRotateAndZoom.js';
import Interaction from '../../../../src/ol/interaction/Interaction.js';
import _ol_layer_Vector_ from '../../../../src/ol/layer/Vector.js';
@@ -41,7 +41,7 @@ describe('ol.interaction.DragRotateAndZoom', function() {
target: target,
layers: [layer],
interactions: [interaction],
view: new _ol_View_({
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1
@@ -66,7 +66,7 @@ describe('ol.interaction.DragRotateAndZoom', function() {
interaction.handleDragEvent_(event);
expect(spy.callCount).to.be(1);
expect(interaction.lastAngle_).to.be(-0.8308214428190254);
map.setView(new _ol_View_({
map.setView(new View({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1,
+2 -2
View File
@@ -1,5 +1,5 @@
import Map from '../../../../src/ol/Map.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import * as _ol_extent_ from '../../../../src/ol/extent.js';
import {fromExtent as polygonFromExtent} from '../../../../src/ol/geom/Polygon.js';
import DragZoom from '../../../../src/ol/interaction/DragZoom.js';
@@ -29,7 +29,7 @@ describe('ol.interaction.DragZoom', function() {
map = new Map({
target: target,
layers: [layer],
view: new _ol_View_({
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1
+2 -2
View File
@@ -1,7 +1,7 @@
import Feature from '../../../../src/ol/Feature.js';
import Map from '../../../../src/ol/Map.js';
import MapBrowserPointerEvent from '../../../../src/ol/MapBrowserPointerEvent.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import {equals} from '../../../../src/ol/array.js';
import _ol_events_ from '../../../../src/ol/events.js';
import _ol_events_condition_ from '../../../../src/ol/events/condition.js';
@@ -39,7 +39,7 @@ describe('ol.interaction.Draw', function() {
map = new Map({
target: target,
layers: [layer],
view: new _ol_View_({
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1
+2 -2
View File
@@ -1,6 +1,6 @@
import Map from '../../../../src/ol/Map.js';
import MapBrowserPointerEvent from '../../../../src/ol/MapBrowserPointerEvent.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import _ol_interaction_Extent_ from '../../../../src/ol/interaction/Extent.js';
import _ol_pointer_PointerEvent_ from '../../../../src/ol/pointer/PointerEvent.js';
@@ -16,7 +16,7 @@ describe('ol.interaction.Extent', function() {
map = new Map({
target: target,
layers: [],
view: new _ol_View_({
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1
+4 -4
View File
@@ -1,5 +1,5 @@
import Map from '../../../../src/ol/Map.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import EventTarget from '../../../../src/ol/events/EventTarget.js';
import Interaction from '../../../../src/ol/interaction/Interaction.js';
@@ -59,7 +59,7 @@ describe('ol.interaction.Interaction', function() {
describe('zoomByDelta()', function() {
it('changes view resolution', function() {
var view = new _ol_View_({
var view = new View({
resolution: 1,
resolutions: [4, 2, 1, 0.5, 0.25]
});
@@ -78,7 +78,7 @@ describe('ol.interaction.Interaction', function() {
});
it('changes view resolution and center relative to the anchor', function() {
var view = new _ol_View_({
var view = new View({
center: [0, 0],
resolution: 1,
resolutions: [4, 2, 1, 0.5, 0.25]
@@ -98,7 +98,7 @@ describe('ol.interaction.Interaction', function() {
});
it('changes view resolution and center relative to the anchor, while respecting the extent', function() {
var view = new _ol_View_({
var view = new View({
center: [0, 0],
extent: [-2.5, -2.5, 2.5, 2.5],
resolution: 1,
+2 -2
View File
@@ -1,6 +1,6 @@
import Map from '../../../../src/ol/Map.js';
import MapBrowserEvent from '../../../../src/ol/MapBrowserEvent.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import Event from '../../../../src/ol/events/Event.js';
import Interaction from '../../../../src/ol/interaction/Interaction.js';
@@ -10,7 +10,7 @@ describe('ol.interaction.KeyboardPan', function() {
beforeEach(function() {
map = new Map({
target: createMapDiv(100, 100),
view: new _ol_View_({
view: new View({
center: [0, 0],
resolutions: [1],
zoom: 0
@@ -1,6 +1,6 @@
import Map from '../../../../src/ol/Map.js';
import MapBrowserEvent from '../../../../src/ol/MapBrowserEvent.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import Event from '../../../../src/ol/events/Event.js';
import Interaction from '../../../../src/ol/interaction/Interaction.js';
@@ -10,7 +10,7 @@ describe('ol.interaction.KeyboardZoom', function() {
beforeEach(function() {
map = new Map({
target: createMapDiv(100, 100),
view: new _ol_View_({
view: new View({
center: [0, 0],
resolutions: [1],
zoom: 0
+2 -2
View File
@@ -2,7 +2,7 @@ import _ol_Collection_ from '../../../../src/ol/Collection.js';
import Feature from '../../../../src/ol/Feature.js';
import Map from '../../../../src/ol/Map.js';
import MapBrowserPointerEvent from '../../../../src/ol/MapBrowserPointerEvent.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import _ol_events_ from '../../../../src/ol/events.js';
import _ol_events_condition_ from '../../../../src/ol/events/condition.js';
import Circle from '../../../../src/ol/geom/Circle.js';
@@ -50,7 +50,7 @@ describe('ol.interaction.Modify', function() {
map = new Map({
target: target,
layers: [layer],
view: new _ol_View_({
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1
@@ -1,6 +1,6 @@
import Map from '../../../../src/ol/Map.js';
import MapBrowserEvent from '../../../../src/ol/MapBrowserEvent.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import Event from '../../../../src/ol/events/Event.js';
import _ol_has_ from '../../../../src/ol/has.js';
import Interaction from '../../../../src/ol/interaction/Interaction.js';
@@ -15,7 +15,7 @@ describe('ol.interaction.MouseWheelZoom', function() {
map = new Map({
target: createMapDiv(100, 100),
interactions: [interaction],
view: new _ol_View_({
view: new View({
center: [0, 0],
resolutions: [2, 1, 0.5],
zoom: 1
+2 -2
View File
@@ -3,7 +3,7 @@ import Feature from '../../../../src/ol/Feature.js';
import Map from '../../../../src/ol/Map.js';
import MapBrowserEventType from '../../../../src/ol/MapBrowserEventType.js';
import MapBrowserPointerEvent from '../../../../src/ol/MapBrowserPointerEvent.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import Polygon from '../../../../src/ol/geom/Polygon.js';
import Interaction from '../../../../src/ol/interaction/Interaction.js';
import _ol_interaction_Select_ from '../../../../src/ol/interaction/Select.js';
@@ -62,7 +62,7 @@ describe('ol.interaction.Select', function() {
map = new Map({
target: target,
layers: [layer],
view: new _ol_View_({
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1
+2 -2
View File
@@ -1,7 +1,7 @@
import _ol_Collection_ from '../../../../src/ol/Collection.js';
import Feature from '../../../../src/ol/Feature.js';
import Map from '../../../../src/ol/Map.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import Circle from '../../../../src/ol/geom/Circle.js';
import Point from '../../../../src/ol/geom/Point.js';
import LineString from '../../../../src/ol/geom/LineString.js';
@@ -38,7 +38,7 @@ describe('ol.interaction.Snap', function() {
map = new Map({
target: target,
view: new _ol_View_({
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1
+2 -2
View File
@@ -2,7 +2,7 @@ import _ol_Collection_ from '../../../../src/ol/Collection.js';
import Feature from '../../../../src/ol/Feature.js';
import Map from '../../../../src/ol/Map.js';
import MapBrowserPointerEvent from '../../../../src/ol/MapBrowserPointerEvent.js';
import _ol_View_ from '../../../../src/ol/View.js';
import View from '../../../../src/ol/View.js';
import Point from '../../../../src/ol/geom/Point.js';
import _ol_interaction_Translate_ from '../../../../src/ol/interaction/Translate.js';
import Interaction from '../../../../src/ol/interaction/Interaction.js';
@@ -37,7 +37,7 @@ describe('ol.interaction.Translate', function() {
map = new Map({
target: target,
layers: [layer],
view: new _ol_View_({
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1