Merge pull request #7974 from fredj/cleanup

Fix spelling
This commit is contained in:
Frédéric Junod
2018-03-12 16:10:22 +01:00
committed by GitHub
11 changed files with 12 additions and 12 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -1862,7 +1862,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
*/

View File

@@ -203,7 +203,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.

View File

@@ -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;

View File

@@ -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?

View File

@@ -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.

View File

@@ -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() {
};

View File

@@ -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);

View File

@@ -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(),

View File

@@ -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);