Skip to content

Commit

Permalink
Fix typos (mapbox#10404)
Browse files Browse the repository at this point in the history
  • Loading branch information
coliff committed Feb 24, 2021
1 parent c359d1e commit 63f39e5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/data/bucket/symbol_bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ class SymbolBucket implements Bucket {
}

isEmpty() {
// When the bucket encounters only rtl-text but the plugin isnt loaded, no symbol instances will be created.
// When the bucket encounters only rtl-text but the plugin isn't loaded, no symbol instances will be created.
// In order for the bucket to be serialized, and not discarded as an empty bucket both checks are necessary.
return this.symbolInstances.length === 0 && !this.hasRTLText;
}
Expand Down
4 changes: 2 additions & 2 deletions src/data/load_geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type Point from '@mapbox/point-geometry';

// These bounds define the minimum and maximum supported coordinate values.
// While visible coordinates are within [0, EXTENT], tiles may theoretically
// contain cordinates within [-Infinity, Infinity]. Our range is limited by the
// contain coordinates within [-Infinity, Infinity]. Our range is limited by the
// number of bits used to represent the coordinate.
const BITS = 15;
const MAX = Math.pow(2, BITS - 1) - 1;
Expand All @@ -28,7 +28,7 @@ export default function loadGeometry(feature: VectorTileFeature): Array<Array<Po
for (let p = 0; p < ring.length; p++) {
const point = ring[p];
// round here because mapbox-gl-native uses integers to represent
// points and we need to do the same to avoid renering differences.
// points and we need to do the same to avoid rendering differences.
const x = Math.round(point.x * scale);
const y = Math.round(point.y * scale);

Expand Down
2 changes: 1 addition & 1 deletion src/data/program_configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ export default class ProgramConfiguration {

setUniforms<Properties: Object>(context: Context, binderUniforms: Array<BinderUniform>, properties: PossiblyEvaluated<Properties>, globals: GlobalProperties) {
// Uniform state bindings are owned by the Program, but we set them
// from within the ProgramConfiguraton's binder members.
// from within the ProgramConfiguration's binder members.
for (const {name, property, binding} of binderUniforms) {
(this.binders[property]: any).setUniform(binding, globals, properties.get(property), name);
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/ui/control/attribution.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ test('AttributionControl hides attributions for sources that are not currently v
map.on('load', () => {
map.addSource('1', {type: 'geojson', data: {type: 'FeatureCollection', features: []}, attribution: 'Used'});
map.addSource('2', {type: 'geojson', data: {type: 'FeatureCollection', features: []}, attribution: 'Not used'});
map.addSource('3', {type: 'geojson', data: {type: 'FeatureCollection', features: []}, attribution: 'Vibility none'});
map.addSource('3', {type: 'geojson', data: {type: 'FeatureCollection', features: []}, attribution: 'Visibility none'});
map.addLayer({id: '1', type: 'fill', source: '1'});
map.addLayer({id: '3', type: 'fill', source: '3', layout: {visibility: 'none'}});
});
Expand Down
2 changes: 1 addition & 1 deletion test/unit/ui/control/geolocate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ test('GeolocateControl watching map updates recenter on location with dot', (t)
t.ok(geolocate._userLocationDotMarker._element.classList.contains('mapboxgl-user-location-dot-stale'), 'userLocation has stale class');
t.end();
});
geolocation.changeError({code: 2, message: 'position unavaliable'});
geolocation.changeError({code: 2, message: 'position unavailable'});
});
geolocation.change({latitude: 40, longitude: 50, accuracy: 60});
});
Expand Down
4 changes: 2 additions & 2 deletions test/unit/ui/map_events.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ test('Map#on adds a listener not triggered for events not matching any features'
t.end();
});

test(`Map#on adds a listener not triggered when the specified layer does not exiist`, (t) => {
test(`Map#on adds a listener not triggered when the specified layer does not exist`, (t) => {
const map = createMap(t);

t.stub(map, 'getLayer').returns(null);
Expand Down Expand Up @@ -429,7 +429,7 @@ test('Map#off distinguishes distinct listeners', (t) => {
});

['mouseleave', 'mouseout'].forEach((event) => {
test(`Map#on ${event} does not fire if the specified layer does not exiist`, (t) => {
test(`Map#on ${event} does not fire if the specified layer does not exist`, (t) => {
const map = createMap(t);

t.stub(map, 'getLayer').returns(null);
Expand Down
2 changes: 1 addition & 1 deletion test/unit/util/actor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Actor from '../../../src/util/actor.js';
import WebWorker from '../../../src/util/web_worker.js';

test('Actor', (t) => {
t.test('forwards resopnses to correct callback', (t) => {
t.test('forwards responses to correct callback', (t) => {
t.stub(WebWorker, 'Worker').callsFake(function Worker(self) {
this.self = self;
this.actor = new Actor(self, this);
Expand Down

0 comments on commit 63f39e5

Please sign in to comment.