Rename _ol_geom_LineString_ to LineString

This commit is contained in:
Tim Schaub
2017-12-14 08:54:53 -07:00
parent ad5806c29d
commit f7b3876c1b
55 changed files with 270 additions and 270 deletions

View File

@@ -3,7 +3,7 @@ import _ol_Map_ from '../../../../src/ol/Map.js';
import _ol_View_ from '../../../../src/ol/View.js';
import _ol_format_GeoJSON_ from '../../../../src/ol/format/GeoJSON.js';
import _ol_geom_Circle_ from '../../../../src/ol/geom/Circle.js';
import _ol_geom_LineString_ from '../../../../src/ol/geom/LineString.js';
import LineString from '../../../../src/ol/geom/LineString.js';
import Point from '../../../../src/ol/geom/Point.js';
import _ol_geom_Polygon_ from '../../../../src/ol/geom/Polygon.js';
import _ol_layer_Vector_ from '../../../../src/ol/layer/Vector.js';
@@ -58,7 +58,7 @@ describe('ol.rendering.layer.Vector', function() {
}
function addLineString(r) {
source.addFeature(new _ol_Feature_(new _ol_geom_LineString_([
source.addFeature(new _ol_Feature_(new LineString([
[center[0] - r, center[1] - r],
[center[0] + r, center[1] - r],
[center[0] + r, center[1] + r],
@@ -75,7 +75,7 @@ describe('ol.rendering.layer.Vector', function() {
it('renders opacity correctly with the canvas renderer', function(done) {
createMap('canvas');
var smallLine = new _ol_Feature_(new _ol_geom_LineString_([
var smallLine = new _ol_Feature_(new LineString([
[center[0], center[1] - 1],
[center[0], center[1] + 1]
]));
@@ -101,7 +101,7 @@ describe('ol.rendering.layer.Vector', function() {
it('renders opacity correctly with renderMode: \'image\'', function(done) {
createMap('canvas');
var smallLine = new _ol_Feature_(new _ol_geom_LineString_([
var smallLine = new _ol_Feature_(new LineString([
[center[0], center[1] - 1],
[center[0], center[1] + 1]
]));
@@ -128,7 +128,7 @@ describe('ol.rendering.layer.Vector', function() {
it('renders transparent layers correctly with the canvas renderer', function(done) {
createMap('canvas');
var smallLine = new _ol_Feature_(new _ol_geom_LineString_([
var smallLine = new _ol_Feature_(new LineString([
[center[0], center[1] - 1],
[center[0], center[1] + 1]
]));
@@ -141,7 +141,7 @@ describe('ol.rendering.layer.Vector', function() {
})
]);
source.addFeature(smallLine);
var smallLine2 = new _ol_Feature_(new _ol_geom_LineString_([
var smallLine2 = new _ol_Feature_(new LineString([
[center[0], center[1] - 1000],
[center[0], center[1] + 1000]
]));
@@ -167,7 +167,7 @@ describe('ol.rendering.layer.Vector', function() {
it('renders transparent layers correctly with renderMode: \'image\'', function(done) {
createMap('canvas');
var smallLine = new _ol_Feature_(new _ol_geom_LineString_([
var smallLine = new _ol_Feature_(new LineString([
[center[0], center[1] - 1],
[center[0], center[1] + 1]
]));
@@ -180,7 +180,7 @@ describe('ol.rendering.layer.Vector', function() {
})
]);
source.addFeature(smallLine);
var smallLine2 = new _ol_Feature_(new _ol_geom_LineString_([
var smallLine2 = new _ol_Feature_(new LineString([
[center[0], center[1] - 1000],
[center[0], center[1] + 1000]
]));
@@ -881,7 +881,7 @@ describe('ol.rendering.layer.Vector', function() {
})
})
}));
var line = new _ol_Feature_(new _ol_geom_LineString_([
var line = new _ol_Feature_(new LineString([
[center[0] - 650, center[1] - 200],
[center[0] + 650, center[1] - 200]
]));
@@ -924,7 +924,7 @@ describe('ol.rendering.layer.Vector', function() {
})
})
}));
var line = new _ol_Feature_(new _ol_geom_LineString_([
var line = new _ol_Feature_(new LineString([
[center[0] - 650, center[1] - 200],
[center[0] + 650, center[1] - 200]
]));
@@ -968,7 +968,7 @@ describe('ol.rendering.layer.Vector', function() {
})
})
}));
var line = new _ol_Feature_(new _ol_geom_LineString_([
var line = new _ol_Feature_(new LineString([
[center[0] - 650, center[1] - 200],
[center[0] + 650, center[1] - 200]
]));

View File

@@ -1,4 +1,4 @@
import _ol_geom_LineString_ from '../../../src/ol/geom/LineString.js';
import LineString from '../../../src/ol/geom/LineString.js';
import Point from '../../../src/ol/geom/Point.js';
import _ol_geom_Polygon_ from '../../../src/ol/geom/Polygon.js';
import _ol_render_ from '../../../src/ol/render.js';
@@ -65,7 +65,7 @@ describe('ol.render', function() {
});
vectorContext.setStyle(style);
vectorContext.drawGeometry(new _ol_geom_LineString_([
vectorContext.drawGeometry(new LineString([
[10, 60], [30, 40], [50, 60], [70, 40], [90, 60]
]));
@@ -90,7 +90,7 @@ describe('ol.render', function() {
});
vectorContext.setStyle(style);
vectorContext.drawGeometry(new _ol_geom_LineString_([
vectorContext.drawGeometry(new LineString([
[10, 60], [30, 40], [50, 60], [70, 40], [90, 60]
]));
@@ -115,7 +115,7 @@ describe('ol.render', function() {
});
vectorContext.setStyle(style);
vectorContext.drawGeometry(new _ol_geom_LineString_([
vectorContext.drawGeometry(new LineString([
[10, 60], [30, 40], [50, 60], [70, 40], [90, 60]
]));

View File

@@ -1,5 +1,5 @@
import _ol_Feature_ from '../../../../src/ol/Feature.js';
import _ol_geom_LineString_ from '../../../../src/ol/geom/LineString.js';
import LineString from '../../../../src/ol/geom/LineString.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';
@@ -44,7 +44,7 @@ describe('ol.rendering.style.LineString', function() {
var feature;
feature = new _ol_Feature_({
geometry: new _ol_geom_LineString_(
geometry: new LineString(
[[-20, 20], [15, 20]]
)
});
@@ -54,7 +54,7 @@ describe('ol.rendering.style.LineString', function() {
vectorSource.addFeature(feature);
feature = new _ol_Feature_({
geometry: new _ol_geom_LineString_(
geometry: new LineString(
[[-20, 15], [15, 15]]
)
});
@@ -64,7 +64,7 @@ describe('ol.rendering.style.LineString', function() {
vectorSource.addFeature(feature);
feature = new _ol_Feature_({
geometry: new _ol_geom_LineString_(
geometry: new LineString(
[[-20, 10], [15, 10]]
)
});
@@ -76,7 +76,7 @@ describe('ol.rendering.style.LineString', function() {
vectorSource.addFeature(feature);
feature = new _ol_Feature_({
geometry: new _ol_geom_LineString_(
geometry: new LineString(
[[-20, -20], [-2, 0], [15, -20]]
)
});
@@ -92,7 +92,7 @@ describe('ol.rendering.style.LineString', function() {
vectorSource.addFeature(feature);
feature = new _ol_Feature_({
geometry: new _ol_geom_LineString_(
geometry: new LineString(
[[-20, -15], [-2, 5], [15, -15]]
)
});

View File

@@ -1,5 +1,5 @@
import _ol_Feature_ from '../../../../src/ol/Feature.js';
import _ol_geom_LineString_ from '../../../../src/ol/geom/LineString.js';
import LineString from '../../../../src/ol/geom/LineString.js';
import _ol_geom_MultiLineString_ from '../../../../src/ol/geom/MultiLineString.js';
import _ol_geom_MultiPolygon_ from '../../../../src/ol/geom/MultiPolygon.js';
import Point from '../../../../src/ol/geom/Point.js';
@@ -105,7 +105,7 @@ describe('ol.rendering.style.Text', function() {
var polygon = [151, 17, 163, 22, 159, 30, 150, 30, 143, 24, 151, 17];
function createLineString(coords, textAlign, maxAngle, strokeColor, strokeWidth, scale) {
var geom = new _ol_geom_LineString_();
var geom = new LineString();
geom.setFlatCoordinates('XY', coords);
var style = new _ol_style_Style_({
stroke: new _ol_style_Stroke_({
@@ -262,7 +262,7 @@ describe('ol.rendering.style.Text', function() {
it('renders text along a MultiLineString', function(done) {
createMap('canvas');
var line = new _ol_geom_LineString_();
var line = new LineString();
line.setFlatCoordinates('XY', nicePath);
var geom = new _ol_geom_MultiLineString_(null);
geom.appendLineString(line);