Skip to content

Commit

Permalink
Merge pull request #14704 from openlayers/typos
Browse files Browse the repository at this point in the history
Fix several typos
  • Loading branch information
marcjansen committed Apr 26, 2023
2 parents 57521c1 + a6a8a37 commit cf081fd
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/ol/format/WKB.js
Expand Up @@ -565,13 +565,13 @@ class WkbWriter {
/**
* @param {import("../geom/Geometry.js").default} geom geometry
* @param {import("../geom/Geometry.js").GeometryLayout} [layout] layout
* @return {import("../geom/Geometry.js").GeometryLayout} minumum layout made by common axes
* @return {import("../geom/Geometry.js").GeometryLayout} minimum layout made by common axes
*/
findMinimumLayout(geom, layout = 'XYZM') {
/**
* @param {import("../geom/Geometry.js").GeometryLayout} a A
* @param {import("../geom/Geometry.js").GeometryLayout} b B
* @return {import("../geom/Geometry.js").GeometryLayout} minumum layout made by common axes
* @return {import("../geom/Geometry.js").GeometryLayout} minimum layout made by common axes
*/
const GeometryLayout_min = (a, b) => {
if (a === b) {
Expand Down
2 changes: 1 addition & 1 deletion src/ol/format/filter/Or.js
Expand Up @@ -5,7 +5,7 @@ import LogicalNary from './LogicalNary.js';

/**
* @classdesc
* Represents a logical `<Or>` operator between two ore more filter conditions.
* Represents a logical `<Or>` operator between two or more filter conditions.
* @api
*/
class Or extends LogicalNary {
Expand Down
2 changes: 1 addition & 1 deletion src/ol/geom/flat/orient.js
Expand Up @@ -182,7 +182,7 @@ export function orientLinearRingsArray(
* @param {Array<number>} flatCoordinates Flat coordinates
* @param {Array<number>} ends Linear ring end indexes
* @return {Array<Array<number>>} Two dimensional endss array that can
* be used to contruct a MultiPolygon
* be used to construct a MultiPolygon
*/
export function inflateEnds(flatCoordinates, ends) {
const endss = [];
Expand Down
4 changes: 2 additions & 2 deletions src/ol/proj.js
Expand Up @@ -699,8 +699,8 @@ export function fromUserResolution(resolution, destProjection) {
* clamped to the validity range.
* @param {Projection} sourceProj Source projection.
* @param {Projection} destProj Destination projection.
* @param {function(import("./coordinate.js").Coordinate): import("./coordinate.js").Coordinate} transform Transform function (source to destiation).
* @return {function(import("./coordinate.js").Coordinate): import("./coordinate.js").Coordinate} Safe transform function (source to destiation).
* @param {function(import("./coordinate.js").Coordinate): import("./coordinate.js").Coordinate} transform Transform function (source to destination).
* @return {function(import("./coordinate.js").Coordinate): import("./coordinate.js").Coordinate} Safe transform function (source to destination).
*/
export function createSafeCoordinateTransform(sourceProj, destProj, transform) {
return function (coord) {
Expand Down
2 changes: 1 addition & 1 deletion src/ol/proj/proj4.js
Expand Up @@ -24,7 +24,7 @@ export function isRegistered() {
}

/**
* Unsets the shared proj4 previsouly set with register.
* Unsets the shared proj4 previously set with register.
*/
export function unregister() {
registered = null;
Expand Down
2 changes: 1 addition & 1 deletion src/ol/render/webgl/BatchRenderer.js
Expand Up @@ -126,7 +126,7 @@ class AbstractBatchRenderer {

/**
* Rebuild internal webgl buffers for rendering based on the current rendering instructions;
* This is asynchronous: webgl buffers wil _not_ be updated right away
* This is asynchronous: webgl buffers will _not_ be updated right away
* @param {import("./MixedGeometryBatch.js").GeometryBatch} batch Geometry batch
* @param {import("../../geom/Geometry.js").Type} geometryType Geometry type
* @param {function(): void} callback Function called once the render buffers are updated
Expand Down
2 changes: 1 addition & 1 deletion src/ol/render/webgl/MixedGeometryBatch.js
Expand Up @@ -78,7 +78,7 @@ import {linearRingIsClockwise} from '../../geom/flat/orient.js';
* from the batch, these inner batches are modified accordingly in order to keep them up-to-date.
*
* A feature can be present in several inner batches, for example a polygon geometry will be present in the polygon batch
* and its linar rings will be present in the line batch. Multi geometries are also broken down into individual geometries
* and its linear rings will be present in the line batch. Multi geometries are also broken down into individual geometries
* and added to the corresponding batches in a recursive manner.
*
* Corresponding {@link module:ol/render/webgl/BatchRenderer} instances are then used to generate the render instructions
Expand Down
2 changes: 1 addition & 1 deletion src/ol/reproj/Triangulation.js
Expand Up @@ -156,7 +156,7 @@ class Triangulation {
/*
* The maxSubdivision controls how many splittings of the target area can
* be done. The idea here is to do a linear mapping of the target areas
* but the actual overal reprojection (can be) extremely non-linear. The
* but the actual overall reprojection (can be) extremely non-linear. The
* default value of MAX_SUBDIVISION was chosen based on mapping a 256x256
* tile size. However this function is also called to remap canvas rendered
* layers which can be much larger. This calculation increases the maxSubdivision
Expand Down
2 changes: 1 addition & 1 deletion src/ol/source/DataTile.js
Expand Up @@ -45,7 +45,7 @@ import {toSize} from '../size.js';
* @property {boolean} [opaque=false] Whether the layer is opaque.
* @property {import("./Source.js").State} [state] The source state.
* @property {boolean} [wrapX=false] Render tiles beyond the antimeridian.
* @property {number} [transition] Transition time when fading in new tiles (in miliseconds).
* @property {number} [transition] Transition time when fading in new tiles (in milliseconds).
* @property {number} [bandCount=4] Number of bands represented in the data.
* @property {boolean} [interpolate=false] Use interpolated values when resampling. By default,
* the nearest neighbor is used when resampling.
Expand Down
2 changes: 1 addition & 1 deletion src/ol/style/RegularShape.js
Expand Up @@ -407,7 +407,7 @@ class RegularShape extends ImageStyle {
if (lineJoin === 'miter' && miterRatio <= miterLimit) {
return miterRatio * strokeWidth;
}
// Calculate the distnce from center to the stroke corner where
// Calculate the distance from center to the stroke corner where
// it was cut short because of the miter limit.
// l
// ----+---- <= distance from center to here is maxr
Expand Down

0 comments on commit cf081fd

Please sign in to comment.