From 35158efbf0b25f9574cd14a58f494c24a75f5062 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 12 Mar 2018 15:18:13 +0100 Subject: [PATCH] Fix spelling --- changelog/upgrade-notes.md | 2 +- src/ol/View.js | 2 +- src/ol/format/KML.js | 2 +- src/ol/format/MVT.js | 2 +- src/ol/interaction/Modify.js | 2 +- src/ol/interaction/Pointer.js | 2 +- src/ol/typedefs.js | 2 +- src/ol/webgl/Context.js | 4 ++-- test/spec/ol/interaction/draw.test.js | 2 +- test/spec/ol/interaction/mousewheelzoom.test.js | 2 +- test/spec/ol/structs/linkedlist.test.js | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index ab91055ef7..ce70cc9b22 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -4,7 +4,7 @@ #### Removal of ol.FeatureStyleFunction -The signature of the vector style function passed to the feature has changed. The function now always takes the `feature` and the `resolution` as aguments, the `feature` is no longer bound to `this`. +The signature of the vector style function passed to the feature has changed. The function now always takes the `feature` and the `resolution` as arguments, the `feature` is no longer bound to `this`. Old code: ```js diff --git a/src/ol/View.js b/src/ol/View.js index 0103a9d6cd..f4e7f503fc 100644 --- a/src/ol/View.js +++ b/src/ol/View.js @@ -344,7 +344,7 @@ View.prototype.applyOptions_ = function(options) { /** * Get an updated version of the view options used to construct the view. The * current resolution (or zoom), center, and rotation are applied to any stored - * options. The provided options can be uesd to apply new min/max zoom or + * options. The provided options can be used to apply new min/max zoom or * resolution limits. * @param {module:ol/View~ViewOptions} newOptions New options to be applied. * @return {module:ol/View~ViewOptions} New options updated with the current view state. diff --git a/src/ol/format/KML.js b/src/ol/format/KML.js index 10ff2878eb..2094f55d39 100644 --- a/src/ol/format/KML.js +++ b/src/ol/format/KML.js @@ -1849,7 +1849,7 @@ KML.prototype.readFeaturesFromNode = function(node, opt_options) { /** * Read the name of the KML. * - * @param {Document|Node|string} source Souce. + * @param {Document|Node|string} source Source. * @return {string|undefined} Name. * @api */ diff --git a/src/ol/format/MVT.js b/src/ol/format/MVT.js index 9047aa2d09..de46ee21fc 100644 --- a/src/ol/format/MVT.js +++ b/src/ol/format/MVT.js @@ -186,7 +186,7 @@ function readRawFeature(pbf, layer, i) { /** * Read the raw geometry from the pbf offset stored in a raw feature's geometry - * proeprty. + * property. * @suppress {missingProperties} * @param {ol.ext.PBF} pbf PBF. * @param {Object} feature Raw feature. diff --git a/src/ol/interaction/Modify.js b/src/ol/interaction/Modify.js index 173003041b..683c1c3432 100644 --- a/src/ol/interaction/Modify.js +++ b/src/ol/interaction/Modify.js @@ -284,7 +284,7 @@ inherits(Modify, PointerInteraction); /** * The segment index assigned to a circle's center when - * breaking up a cicrle into ModifySegmentDataType segments. + * breaking up a circle into ModifySegmentDataType segments. * @type {number} */ const CIRCLE_CENTER_INDEX = 0; diff --git a/src/ol/interaction/Pointer.js b/src/ol/interaction/Pointer.js index dcedb79f6b..7c6b5d3896 100644 --- a/src/ol/interaction/Pointer.js +++ b/src/ol/interaction/Pointer.js @@ -207,7 +207,7 @@ export function handleEvent(mapBrowserEvent) { * * The method receives the return code of the "handleDownEvent" function. * - * By default this function is the "identity" function. It's overidden in + * By default this function is the "identity" function. It's overridden in * child classes. * * @param {boolean} handled Was the event handled by the interaction? diff --git a/src/ol/typedefs.js b/src/ol/typedefs.js index d4e346bc4a..865ca0a9b0 100644 --- a/src/ol/typedefs.js +++ b/src/ol/typedefs.js @@ -253,7 +253,7 @@ ol.PreRenderFunction; /** * A function that takes an array of input data, performs some operation, and - * returns an array of ouput data. + * returns an array of output data. * For `pixel` type operations, the function will be called with an array of * pixels, where each pixel is an array of four numbers (`[r, g, b, a]`) in the * range of 0 - 255. It should return a single pixel array. diff --git a/src/ol/webgl/Context.js b/src/ol/webgl/Context.js index b9cca14be0..81430f05e5 100644 --- a/src/ol/webgl/Context.js +++ b/src/ol/webgl/Context.js @@ -241,7 +241,7 @@ WebGLContext.prototype.getProgram = function(fragmentShaderObject, vertexShaderO /** - * FIXME empy description for jsdoc + * FIXME empty description for jsdoc */ WebGLContext.prototype.handleWebGLContextLost = function() { clear(this.bufferCache_); @@ -255,7 +255,7 @@ WebGLContext.prototype.handleWebGLContextLost = function() { /** - * FIXME empy description for jsdoc + * FIXME empty description for jsdoc */ WebGLContext.prototype.handleWebGLContextRestored = function() { }; diff --git a/test/spec/ol/interaction/draw.test.js b/test/spec/ol/interaction/draw.test.js index da4598a89f..b2497c166f 100644 --- a/test/spec/ol/interaction/draw.test.js +++ b/test/spec/ol/interaction/draw.test.js @@ -886,7 +886,7 @@ describe('ol.interaction.Draw', function() { draw.freehand_ = true; draw.freehandCondition_ = always; - // no feture created when not moved + // no feature created when not moved simulateEvent('pointermove', 10, 20); simulateEvent('pointerdown', 10, 20); simulateEvent('pointerup', 10, 20); diff --git a/test/spec/ol/interaction/mousewheelzoom.test.js b/test/spec/ol/interaction/mousewheelzoom.test.js index 4488e95120..a75f0080a7 100644 --- a/test/spec/ol/interaction/mousewheelzoom.test.js +++ b/test/spec/ol/interaction/mousewheelzoom.test.js @@ -41,7 +41,7 @@ describe('ol.interaction.MouseWheelZoom', function() { interaction.handleWheelZoom_.restore(); }); - it('works with the defaut value', function(done) { + it('works with the default value', function(done) { const event = new MapBrowserEvent('mousewheel', map, { type: 'mousewheel', target: map.getViewport(), diff --git a/test/spec/ol/structs/linkedlist.test.js b/test/spec/ol/structs/linkedlist.test.js index 6bcf133c92..702f8f2ffb 100644 --- a/test/spec/ol/structs/linkedlist.test.js +++ b/test/spec/ol/structs/linkedlist.test.js @@ -58,7 +58,7 @@ describe('ol.structs.LinkedList', function() { expect(ll.head_.data).to.be(item); }); - it('otherwise sets the cursor to the prevous item', function() { + it('otherwise sets the cursor to the previous item', function() { ll = new LinkedList(false); ll.insertItem(item); ll.insertItem(item2);