Merge pull request #6998 from openlayers/greenkeeper/eslint-4.2.0
Update eslint to the latest version 🚀
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@
|
|||||||
"clean-css-cli": "4.1.6",
|
"clean-css-cli": "4.1.6",
|
||||||
"coveralls": "2.13.1",
|
"coveralls": "2.13.1",
|
||||||
"debounce": "^1.0.0",
|
"debounce": "^1.0.0",
|
||||||
"eslint": "4.1.1",
|
"eslint": "4.2.0",
|
||||||
"eslint-config-openlayers": "7.0.0",
|
"eslint-config-openlayers": "7.0.0",
|
||||||
"eslint-plugin-openlayers-internal": "^3.1.0",
|
"eslint-plugin-openlayers-internal": "^3.1.0",
|
||||||
"expect.js": "0.3.1",
|
"expect.js": "0.3.1",
|
||||||
|
|||||||
@@ -277,10 +277,9 @@ ol.renderer.canvas.VectorLayer.prototype.prepareFrame = function(frameState, lay
|
|||||||
|
|
||||||
this.dirty_ = false;
|
this.dirty_ = false;
|
||||||
|
|
||||||
var replayGroup =
|
var replayGroup = new ol.render.canvas.ReplayGroup(
|
||||||
new ol.render.canvas.ReplayGroup(
|
ol.renderer.vector.getTolerance(resolution, pixelRatio), extent,
|
||||||
ol.renderer.vector.getTolerance(resolution, pixelRatio), extent,
|
resolution, vectorSource.getOverlaps(), vectorLayer.getRenderBuffer());
|
||||||
resolution, vectorSource.getOverlaps(), vectorLayer.getRenderBuffer());
|
|
||||||
vectorSource.loadFeatures(extent, resolution, projection);
|
vectorSource.loadFeatures(extent, resolution, projection);
|
||||||
/**
|
/**
|
||||||
* @param {ol.Feature} feature Feature.
|
* @param {ol.Feature} feature Feature.
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ describe('ol.interaction.Translate', function() {
|
|||||||
features = [new ol.Feature({
|
features = [new ol.Feature({
|
||||||
geometry: new ol.geom.Point([10, -20])
|
geometry: new ol.geom.Point([10, -20])
|
||||||
}), new ol.Feature({
|
}), new ol.Feature({
|
||||||
geometry: new ol.geom.Point([20, -30])
|
geometry: new ol.geom.Point([20, -30])
|
||||||
})];
|
})];
|
||||||
source.addFeatures(features);
|
source.addFeatures(features);
|
||||||
var layer = new ol.layer.Vector({source: source});
|
var layer = new ol.layer.Vector({source: source});
|
||||||
map = new ol.Map({
|
map = new ol.Map({
|
||||||
|
|||||||
@@ -72,8 +72,8 @@ describe('ol.rendering.style.LineString', function() {
|
|||||||
feature.setStyle([new ol.style.Style({
|
feature.setStyle([new ol.style.Style({
|
||||||
stroke: new ol.style.Stroke({color: '#F2F211', width: 5})
|
stroke: new ol.style.Stroke({color: '#F2F211', width: 5})
|
||||||
}), new ol.style.Style({
|
}), new ol.style.Style({
|
||||||
stroke: new ol.style.Stroke({color: '#292921', width: 1})
|
stroke: new ol.style.Stroke({color: '#292921', width: 1})
|
||||||
})]);
|
})]);
|
||||||
vectorSource.addFeature(feature);
|
vectorSource.addFeature(feature);
|
||||||
|
|
||||||
feature = new ol.Feature({
|
feature = new ol.Feature({
|
||||||
|
|||||||
Reference in New Issue
Block a user