Skip to content

Commit

Permalink
Fix a bunch of minor typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Jun 8, 2021
1 parent 78c67e8 commit f659d48
Show file tree
Hide file tree
Showing 46 changed files with 84 additions and 84 deletions.
2 changes: 1 addition & 1 deletion docs/developers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ All javascript source files included in the library for deployment are
checked against `ESLint <https://eslint.org/>`_ for uniform styling
and strict for common errors patterns. The style rules for geojs are
located in the ``.eslintrc`` file in the root of the repository. These
tests are preformed automatically for every file added to the build; no
tests are performed automatically for every file added to the build; no
additional configuration is required. You can check the code style
by running ``npm run lint``.

Expand Down
2 changes: 1 addition & 1 deletion examples/annotations/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(function () {
$('.annotationtype button').removeClass('lastused');
$('.annotationtype button#' + query.lastannotation).addClass('lastused');
}
// You can set the intiial annotations via a query parameter. If the query
// You can set the initial annotations via a query parameter. If the query
// parameter 'save=true' is specified, the query will be updated with the
// geojson. This can become too long for some browsers.
var initialGeoJSON = query.geojson;
Expand Down
4 changes: 2 additions & 2 deletions examples/blog-lines/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ function leafletLinesTest(opts) {
}

// There is no direct support for miterlimit, but if the map is using SVG,
// we can manully set it.
// we can manually set it.
$('svg path', node).attr('stroke-miterlimit', parseFloat(opts.miterLimit || 10));

// return references to the various objects
Expand Down Expand Up @@ -495,7 +495,7 @@ function mapboxglLinesTest(opts) {
var map = new mapboxgl.Map({
container: opts.node[0],
center: [opts.x || MapStart.x, opts.y || MapStart.y],
// mapboxgl uses a zoom levle that is 1 off from other libraries
// mapboxgl uses a zoom level that is 1 off from other libraries
zoom: (opts.zoom || MapStart.zoom) - 1 - (opts.scale || 0),
style: {version: 8, sources: {}, layers: []},
bearingSnap: 0,
Expand Down
2 changes: 1 addition & 1 deletion examples/color-legend/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Color legends",
"exampleJs": ["main.js"],
"about": {
"text": "This example shows how to create a discrete or continous color legends."
"text": "This example shows how to create a discrete or continuous color legends."
},
"disabled": false
}
2 changes: 1 addition & 1 deletion examples/heatmap/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ block append mainContent
.form-group(title="Radius of blur around points in pixels.")
label(for="blurRadius") Blur Radius
input#blurRadius(type="number", placeholder="15", min=0)
.form-group(title="Use either a Gaussian distribution or a solid circle with a blurred edge for each point. If a Guassian is used, the total radius is the sume of the radius and blur radius values.")
.form-group(title="Use either a Gaussian distribution or a solid circle with a blurred edge for each point. If a Gaussian is used, the total radius is the sume of the radius and blur radius values.")
label(for="gaussian") Gaussian Points
input#gaussian(type="checkbox", placeholder="true", checked="checked")
.form-group(title="Color Gradient. Entries with intensities of 0 and 1 are needed to form a valid color gradient.")
Expand Down
4 changes: 2 additions & 2 deletions examples/lines/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,12 @@ $(function () {
var tooltip = uiLayer.createWidget('dom', {position: {x: 0, y: 0}});
var tooltipElem = $(tooltip.canvas()).attr('id', 'tooltip').addClass(
'hidden');
// Ceate a line feature
// Create a line feature
lineFeature = layer.createFeature('line', lineOptions)
.line(lineAccessor)
.position(positionAccessor)
// add hover events -- use mouseon and mouseoff, since we only show one
// tootip. If we showed one tooltip per item we were over, use mouseover
// tooltip. If we showed one tooltip per item we were over, use mouseover
// and mouseout.
.geoOn(geo.event.feature.mouseon, function (evt) {
var text = (evt.data.name ? evt.data.name : '') +
Expand Down
2 changes: 1 addition & 1 deletion examples/measure/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if (query.lastannotation) {
if (query.hide) {
$('#controls').addClass('reduced');
}
// You can set the intiial annotations via a query parameter. If the query
// You can set the initial annotations via a query parameter. If the query
// parameter 'save=true' is specified, the query will be updated with the
// geojson. This can become too long for some browsers.
var initialGeoJSON = query.geojson;
Expand Down
2 changes: 1 addition & 1 deletion examples/pixelmap/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $(function () {
url: pixelmapUrl,
position: {ul: {x: -180, y: 71.471178}, lr: {x: -60, y: 13.759032}},
color: function (d, idx) {
// Always set index 0 to transparent. Other indicies are set based on
// Always set index 0 to transparent. Other indices are set based on
// the data value
var color = {r: 0, g: 0, b: 0, a: 0};
if (idx && d && d.value) {
Expand Down
2 changes: 1 addition & 1 deletion examples/rainfall/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ point = layer.createFeature('point', {
style: {
stroke: false,
radius: function (d, i) {
// If this point doesn't have any data for the current year, dont' give
// If this point doesn't have any data for the current year, don't give
// it a radius, either. This prevents the tooltip from interacting with
// it.
return d === null || d === undefined ? 0 : 5;
Expand Down
13 changes: 7 additions & 6 deletions src/annotationLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ var annotationLayer = function (arg) {
* @param {string|geo.transform|null} [gcs2] `undefined` to use the interface
* gcs, `null` to use the map gcs, `'display'` if the coordinates are
* already in display coordinates, or any other transform.
* @returns {number} the Euclidian distance between the two coordinates.
* @returns {number} the Euclidean distance between the two coordinates.
*/
this.displayDistance = function (coord1, gcs1, coord2, gcs2) {
var map = m_this.map();
Expand All @@ -391,7 +391,7 @@ var annotationLayer = function (arg) {
/**
* Add an annotation to the layer. The annotation could be in any state.
*
* @param {geo.annotation} annotation Te annotation to add.
* @param {geo.annotation} annotation The annotation to add.
* @param {string|geo.transform|null} [gcs] `undefined` to use the interface
* gcs, `null` to use the map gcs, or any other transform.
* @returns {this} The current layer.
Expand Down Expand Up @@ -425,7 +425,7 @@ var annotationLayer = function (arg) {
/**
* Remove an annotation from the layer.
*
* @param {geo.annoation} annotation The annotation to remove.
* @param {geo.annotation} annotation The annotation to remove.
* @param {boolean} update If `false`, don't update the layer after removing
* the annotation.
* @returns {boolean} `true` if an annotation was removed.
Expand Down Expand Up @@ -480,7 +480,7 @@ var annotationLayer = function (arg) {
/**
* Get the list of annotations on the layer.
*
* @returns {geo.annoation[]} An array of annotations.
* @returns {geo.annotation[]} An array of annotations.
*/
this.annotations = function () {
return m_annotations.slice();
Expand Down Expand Up @@ -605,7 +605,8 @@ var annotationLayer = function (arg) {
* @param {boolean|string} [clear] If `true`, when adding annotations, first
* remove all existing objects. If `'update'`, update existing
* annotations and remove annotations that no longer exist. If falsy,
* update existing annotations and leave annotations that have not chaged.
* update existing annotations and leave annotations that have not
* changed.
* @param {string|geo.transform|null} [gcs] `undefined` to use the interface
* gcs, `null` to use the map gcs, or any other transform.
* @param {boolean} [includeCrs] If truthy, include the coordinate system in
Expand Down Expand Up @@ -917,7 +918,7 @@ var annotationLayer = function (arg) {
if (m_this.timestamp() > m_buildTime.timestamp()) {
var labels = m_this.options('showLabels') ? [] : null,
editable = m_this.options('clickToEdit') || m_this.mode() === m_this.modes.edit;
/* Interally, we have a set of feature levels (to provide z-index
/* Internally, we have a set of feature levels (to provide z-index
* support), each of which can have data from multiple annotations. We
* clear the data on each of these features, then build it up from each
* annotation. Eventually, it may be necessary to optimize this and
Expand Down
2 changes: 1 addition & 1 deletion src/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ var camera = function (spec) {

/**
* Getter/setter for the render clipbounds. Opposite bounds must have
* different values. There are independant clipbounds for each projection
* different values. There are independent clipbounds for each projection
* (parallel and perspective); switching the projection will switch to the
* clipbounds. Individual values of the clipbounds can be set either via a
* command like `camera.clipbounds = {near: 3, far: 1}` or
Expand Down
4 changes: 2 additions & 2 deletions src/canvas/heatmapFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ var canvas_heatmapFeature = function (arg) {
* from scipy.stats import norm
* for r in [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1]:
* opacity = norm.pdf(r, scale=0.3) / norm.pdf(0, scale=0.3)
* Usng a 10-interval approximation is accurate to within 0.5% of the
* Using a 10-interval approximation is accurate to within 0.5% of the
* actual Gaussian magnitude. Switching to a 20-interval approximation
* would get within 0.1%, at which point there is more error from using
* a Gaussian truncated at the radius than from the approximation.
Expand Down Expand Up @@ -432,7 +432,7 @@ var canvas_heatmapFeature = function (arg) {
window.clearTimeout(m_heatMapPosition.timeout);
m_heatMapPosition.timeout = undefined;
}
/* This conditional can change if we compute the heatmap beyond the visable
/* This conditional can change if we compute the heatmap beyond the visible
* viewport so that we don't have to update on pans as often. If we are
* close to where the heatmap was originally computed, don't bother
* updating it. */
Expand Down
2 changes: 1 addition & 1 deletion src/graphFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ var graphFeature = function (arg) {
* @param {function|array} [arg] If specified, the list of links or a
* function that returns the list of links. If unspecified, return the
* existing value.
* @returns {fuction|this} Either a function that returns the list of links,
* @returns {function|this} Either a function that returns the list of links,
* or the feature.
*/
this.links = function (arg) {
Expand Down
6 changes: 3 additions & 3 deletions src/heatmapFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ var transform = require('./transform');
* @property {number} [style.radius=10] Radius of a point in pixels.
* @property {number} [style.blurRadius=10] Blur radius for each point in
* pixels.
* @property {boolean} [style.gaussian=true] If truthy, appoximate a gaussian
* @property {boolean} [style.gaussian=true] If truthy, approximate a gaussian
* distribution for each point using a multi-segment linear radial
* appoximation. The total weight of the gaussian area is approximately the
* approximation. The total weight of the gaussian area is approximately the
* `9/16 r^2`. The sum of `radius + blurRadius` is used as the radius for
* the gaussian distribution.
*/
Expand Down Expand Up @@ -246,7 +246,7 @@ var heatmapFeature = function (arg) {
};

/**
* Build the fetaure.
* Build the feature.
*
* @returns {this}
*/
Expand Down
8 changes: 4 additions & 4 deletions src/isolineFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ var util = require('./util');
* with `(geo.isolineFeature.valueEntry, index)`.
* @property {number|function} [labelOffset=0] Offset for labels along an
* isoline relative to where they would be placed by default on a scale of
* [-0.5, 0.5]. +/- 1 would move the text to the next repeated occurance of
* the label. If a function, this is called with
* [-0.5, 0.5]. +/- 1 would move the text to the next repeated occurrence
* of the label. If a function, this is called with
* `(geo.isolineFeature.valueEntry, index)`.
* @property {number|function} [labelViewport=10000] If the main position of a
* label would be further than this many pixels from the current viewport,
Expand Down Expand Up @@ -312,7 +312,7 @@ var isolineFeature = function (arg) {
}
} else {
if (!spacing) {
/* If no spacing is specfied, then this has a count with autofit.
/* If no spacing is specified, then this has a count with autofit.
* Generate at least 2/3rds as many lines as the count, but it could be
* 5/2 of that when adjusted to "nice values" (so between 2/3 and 5/3
* of the specified count). */
Expand Down Expand Up @@ -364,7 +364,7 @@ var isolineFeature = function (arg) {
* Add a new segment to a list of chains. Each chain is a list of vertices,
* each of which is an array of two values with the low/high mesh vertices
* for that chain vertex. There are then three possibilities: (a) The
* segment forms a new chain that doesn't attch to an existing chain. (b)
* segment forms a new chain that doesn't attach to an existing chain. (b)
* One endpoint of the segment matches the endpoint of an existing chain, and
* it gets added to that chain. (c) Both endpoints of the segment match
* endpoints of two different chains, and those two chains are combined via
Expand Down
4 changes: 2 additions & 2 deletions src/lineFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ var lineFeature = function (arg) {
* Returns an array of datum indices that contain the given point. This is a
* slow implementation with runtime order of the number of vertices. A point
* is considered on a line segment if it is close to the line or either end
* point. Closeness is based on the maximum width of the line segement, and
* point. Closeness is based on the maximum width of the line segment, and
* is `ceil(maxwidth / 2) + 2` pixels. This means that corner extensions
* due to mitering may be outside of the selection area and that variable-
* width lines will have a greater selection region than their visual size at
Expand All @@ -217,7 +217,7 @@ var lineFeature = function (arg) {
* @returns {object} An object with `index`: a list of line indices, `found`:
* a list of lines that contain the specified coordinate, and `extra`: an
* object with keys that are line indices and values that are the first
* segement index for which the line was matched.
* segment index for which the line was matched.
*/
this.pointSearch = function (p, gcs) {
var data = m_this.data(), indices = [], found = [], extra = {};
Expand Down
6 changes: 3 additions & 3 deletions src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ var map = function (arg) {
/**
* Get/set the autoResize flag.
*
* @param {boolean} [autoResize] Truthy to automaticaly resize the map when
* @param {boolean} [autoResize] Truthy to automatically resize the map when
* the size of the browser window changes.
* @returns {boolean|this} The current state of autoResize or the current map.
*/
Expand Down Expand Up @@ -1893,7 +1893,7 @@ var map = function (arg) {
*/
this.scheduleAnimationFrame = function (callback, action) {
if (!m_animationQueue.length) {
/* By refering to requestAnimationFrame as a property of window, versus
/* By referring to requestAnimationFrame as a property of window, versus
* explicitly using window.requestAnimationFrame, we prevent the
* stripping of 'window' off of the reference and allow our tests to
* override this if needed. */
Expand Down Expand Up @@ -1984,7 +1984,7 @@ var map = function (arg) {
}

/**
* Sevice the callback during an animation frame. This uses splice to modify
* Service the callback during an animation frame. This uses splice to modify
* the `animationQueue` to allow multiple map instances to share the queue.
* @private
*/
Expand Down
4 changes: 2 additions & 2 deletions src/meshFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var feature = require('./feature');

/**
* A mesh formed by a set of triangular or square elements or a
* squarely-connected grid that is of rectangular extent. The gird can be
* squarely-connected grid that is of rectangular extent. The grid can be
* regularly spaced or have arbitrary position coordinates for each node. All
* of these properties can be functions, which get passed `data`.
*
Expand Down Expand Up @@ -92,7 +92,7 @@ var feature = require('./feature');

/**
* Create a new instance of class meshFeature. This should be the parent of a
* more useable feature class.
* more usable feature class.
*
* @class
* @alias geo.meshFeature
Expand Down
6 changes: 3 additions & 3 deletions src/pixelmapFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var util = require('./util');
* @typedef {geo.feature.spec} geo.pixelmapFeature.spec
* @extends geo.feature.spec
* @property {string|function|HTMLImageElement} [url] URL of a pixel map or an
* HTML Image element. The rgb data is interpretted as an index of the form
* HTML Image element. The rgb data is interpreted as an index of the form
* 0xbbggrr. The alpha channel is ignored.
* @property {geo.geoColor|function} [color] The color that should be used
* for each data element. Data elements correspond to the indices in the
Expand Down Expand Up @@ -194,7 +194,7 @@ var pixelmapFeature = function (arg) {
};

/**
* Build. Fetches the image if necesary.
* Build. Fetches the image if necessary.
*
* @returns {this}
*/
Expand Down Expand Up @@ -302,7 +302,7 @@ var pixelmapFeature = function (arg) {
/**
* Given the loaded pixelmap image, create a canvas the size of the image.
* Compute a color for each distinct index and recolor the canvas based on
* thise colors, then draw the resultant image as a quad.
* these colors, then draw the resultant image as a quad.
*
* @fires geo.event.pixelmap.prepared
*/
Expand Down
6 changes: 3 additions & 3 deletions src/tileLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ function m_getTileSubdomain(x, y, z, subdomains) {
* Returns an OSM tile server formatting function from a standard format
* string. Replaces `{s}`, `{z}`, `{x}`, and `{y}`. These may be any case
* and may be prefixed with `$` (e.g., `${X}` is the same as `{x}`). The
* subdomain can be specifed by a string of characters, listed as a range,
* subdomain can be specified by a string of characters, listed as a range,
* or as a comma-separated list (e.g., `{s:abc}`, `{a-c}`, `{a,b,c}` are
* all equivalent. The comma-separated list can have subdimains that are of
* all equivalent. The comma-separated list can have subdomains that are of
* any length; the string and range both use one-character subdomains.
*
* @param {string} base The tile format string
Expand Down Expand Up @@ -188,7 +188,7 @@ var tileLayer = function (arg) {
arg.subdomains = arg.subdomains.split('');
}
/* We used to call the url option baseUrl. If a baseUrl is specified, use
* it instead of url, interpretting it as before. */
* it instead of url, interpreting it as before. */
if (arg.baseUrl) {
var url = arg.baseUrl;
if (url && url.charAt(url.length - 1) !== '/') {
Expand Down
10 changes: 5 additions & 5 deletions src/trackFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ var trackFeature = function (arg) {
*
* @param {object} [val] An object with any of `startTime`, `endTime`, and
* `duration`. A value of `undefined` won't change that field. A value
* of `null` uses the default. If `val` is `undefined`, the existsing
* of `null` uses the default. If `val` is `undefined`, the existing
* settings are returned.
* @returns {object|this} Either the instance or the current settings. If
* the current settings, `start` and `end` are included with the
Expand Down Expand Up @@ -722,10 +722,10 @@ var trackFeature = function (arg) {
* @returns {object} An object with `index`: a list of track indices, `found`:
* a list of tracks that contain the specified coordinate, `extra`: an
* object with keys that are track indices and values that are the first
* segement index for which the track was matched, and `where`: an
* object with keys that are track indices and values that are `past`,
* `future`, or `marker` if the point was found in that part of the track,
* or unset if the point was found in the current part of the track.
* segment index for which the track was matched, and `where`: an object
* with keys that are track indices and values that are `past`, `future`,
* or `marker` if the point was found in that part of the track, or unset
* if the point was found in the current part of the track.
*/
this.pointSearch = function (p) {
let result = m_lineFeatures.current.pointSearch(p),
Expand Down
2 changes: 1 addition & 1 deletion src/ui/colorLegendWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ var colorLegendWidget = function (arg) {
};

/**
* Draw an individual continous type legend.
* Draw an individual continuous type legend.
* @param {Element} svg svg element that the legend will be drawn
* @param {number} width width of the svg element in pixel
* @param {geo.gui.colorLegendWidget.category} category The continuous type legend category
Expand Down
Loading

0 comments on commit f659d48

Please sign in to comment.