Skip to content

Commit 4a31b3b

Browse files
committedDec 17, 2020
Fix spelling
1 parent d45eef5 commit 4a31b3b

21 files changed

+29
-29
lines changed
 

‎src/components/colorscale/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525
calc: require('./calc'),
2626

2727
// ./scales.js is required in lib/coerce.js ;
28-
// it needs to be a seperate module to avoid circular a dependency
28+
// it needs to be a separate module to avoid circular a dependency
2929
scales: scales.scales,
3030
defaultScale: scales.defaultScale,
3131
getScale: scales.get,

‎src/components/errorbars/attributes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
'If *percent*, the bar lengths correspond to a percentage of',
3333
'underlying data. Set this percentage in `value`.',
3434

35-
'If *sqrt*, the bar lengths correspond to the sqaure of the',
35+
'If *sqrt*, the bar lengths correspond to the square of the',
3636
'underlying data.',
3737

3838
'If *data*, the bar lengths are set with data set `array`.'

‎src/components/fx/hover.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ function getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) {
13061306

13071307
// Make groups of touching points, and within each group
13081308
// move each point so that no labels overlap, but the average
1309-
// label position is the same as it was before moving. Indicentally,
1309+
// label position is the same as it was before moving. Incidentally,
13101310
// this is equivalent to saying all the labels are on equal linear
13111311
// springs about their initial position. Initially, each point is
13121312
// its own group, but as we find overlaps we will clump the points.

‎src/components/sliders/draw.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ function setGripPosition(sliderGroup, sliderOpts, doTransition) {
571571
.ease(sliderOpts.transition.easing);
572572
}
573573

574-
// Drawing.setTranslate doesn't work here becasue of the transition duck-typing.
574+
// Drawing.setTranslate doesn't work here because of the transition duck-typing.
575575
// It's also not necessary because there are no other transitions to preserve.
576576
el.attr('transform', strTranslate(x - constants.gripWidth * 0.5, sliderOpts._dims.currentValueTotalHeight));
577577
}

‎src/lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ lib.objectFromPath = function(path, value) {
864864
* lib.expandObjectPaths({'foo[1].bar': 10, 'foo[0].bar': 20});
865865
* => { foo: [{bar: 10}, {bar: 20}] }
866866
*
867-
* It does NOT, however, merge mulitple mutliply-nested arrays::
867+
* It does NOT, however, merge multiple multiply-nested arrays::
868868
*
869869
* lib.expandObjectPaths({'marker[1].range[1]': 5, 'marker[1].range[0]': 4})
870870
* => { marker: [null, {range: 4}] }

‎src/plot_api/plot_api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3231,7 +3231,7 @@ function animate(gd, frameOrGroupNameOrFrameList, animationOpts) {
32313231
}
32323232

32333233
// Execute a callback after the wrapper function has been called n times.
3234-
// This is used to defer the resolution until a transition has resovled *and*
3234+
// This is used to defer the resolution until a transition has resolved *and*
32353235
// the frame has completed. If it's not done this way, then we get a race
32363236
// condition in which the animation might resolve before a transition is complete
32373237
// or vice versa.

‎src/traces/carpet/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737
editType: 'calc+clearAxisTypes',
3838
description: [
3939
'A two dimensional array of x coordinates at each carpet point.',
40-
'If ommitted, the plot is a cheater plot and the xaxis is hidden',
40+
'If omitted, the plot is a cheater plot and the xaxis is hidden',
4141
'by default.'
4242
].join(' ')
4343
},
@@ -109,7 +109,7 @@ module.exports = {
109109
editType: 'calc',
110110
description: [
111111
'The shift applied to each successive row of data in creating a cheater plot.',
112-
'Only used if `x` is been ommitted.'
112+
'Only used if `x` is been omitted.'
113113
].join(' ')
114114
},
115115
aaxis: axisAttrs,

‎src/traces/carpet/create_i_derivative_evaluator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* Also note that the discontinuity of the derivative is in magnitude only. The direction *is*
2020
* continuous across cell boundaries.
2121
*
22-
* For example, to compute the derivative of the xcoordinate halfway betwen the 7 and 8th i-gridpoints
22+
* For example, to compute the derivative of the xcoordinate halfway between the 7 and 8th i-gridpoints
2323
* and the 10th and 11th j-gridpoints given bicubic smoothing in both dimensions, you'd write:
2424
*
2525
* var deriv = createIDerivativeEvaluator([x], 1, 1);

‎src/traces/carpet/plot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = function plot(gd, plotinfo, cdcarpet, carpetLayer) {
4545
drawGridLines(xa, ya, minorLayer, aax, 'a', aax._minorgridlines, true);
4646
drawGridLines(xa, ya, minorLayer, bax, 'b', bax._minorgridlines, true);
4747

48-
// NB: These are not ommitted if the lines are not active. The joins must be executed
48+
// NB: These are not omitted if the lines are not active. The joins must be executed
4949
// in order for them to get cleaned up without a full redraw
5050
drawGridLines(xa, ya, boundaryLayer, aax, 'a-boundary', aax._boundarylines);
5151
drawGridLines(xa, ya, boundaryLayer, bax, 'b-boundary', bax._boundarylines);

‎src/traces/carpet/set_convert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,15 @@ module.exports = function setConvert(trace) {
215215

216216
var i0 = Math.max(0, Math.min(a.length - 2, i));
217217

218-
// The step (demoninator) is implicitly 1 since that's the grid spacing.
218+
// The step (denominator) is implicitly 1 since that's the grid spacing.
219219
return a[i0 + 1] - a[i0];
220220
};
221221

222222
trace.dbdj = function(j /* , v*/) {
223223
// See above caveats for dadi which also apply here
224224
var j0 = Math.max(0, Math.min(b.length - 2, j));
225225

226-
// The step (demoninator) is implicitly 1 since that's the grid spacing.
226+
// The step (denominator) is implicitly 1 since that's the grid spacing.
227227
return b[j0 + 1] - b[j0];
228228
};
229229

‎src/traces/carpet/smooth_fill_2d_array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ module.exports = function smoothFill2dArray(data, a, b) {
200200
overrelaxation = boundaryCnt ? 0 : 0.85;
201201

202202
// If there are four non-null neighbors, then we want a simple average without
203-
// overrelaxation. If all the surrouding points are null, then we want the full
203+
// overrelaxation. If all the surrounding points are null, then we want the full
204204
// overrelaxation
205205
//
206206
// Based on experiments, this actually seems to slow down convergence just a bit.

‎src/traces/parcats/attributes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.exports = {
7575
],
7676
description: [
7777
'This value here applies when hovering over dimensions.',
78-
'Note tath `*categorycount`, *colorcount* and *bandcolorcount*',
78+
'Note that `*categorycount`, *colorcount* and *bandcolorcount*',
7979
'are only available when `hoveron` contains the *color* flag'
8080
].join(' ')
8181
}),

‎src/traces/scatter/plot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
491491
join.selectAll('text')
492492
.call(Drawing.textPointStyle, trace, gd)
493493
.each(function(d) {
494-
// This just *has* to be totally custom becuase of SVG text positioning :(
494+
// This just *has* to be totally custom because of SVG text positioning :(
495495
// It's obviously copied from translatePoint; we just can't use that
496496
var x = xa.c2p(d.x);
497497
var y = ya.c2p(d.y);

‎src/traces/scattercarpet/plot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = function plot(gd, plotinfoproxy, data, layer) {
3030
trace = data[i][0].trace;
3131

3232
// Note: .select is adequate but seems to mutate the node data,
33-
// which is at least a bit suprising and causes problems elsewhere
33+
// which is at least a bit surprising and causes problems elsewhere
3434
node = layer.selectAll('g.trace' + trace.uid + ' .js-line');
3535

3636
// Note: it would be more efficient if this didn't need to be applied

‎test/jasmine/assets/domain_ref/components.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function annaxscale(ac, c0) {
219219
}
220220

221221
// This tests to see that an annotation was drawn correctly.
222-
// Determinining the length of the arrow seems complicated due to the
222+
// Determining the length of the arrow seems complicated due to the
223223
// rectangle containing the text, so we draw 2 annotations, one K times the
224224
// length of the other, and solve for the desired arrow length from the
225225
// length measured on the screen. This works because multiplying the length

‎test/jasmine/tests/cartesian_test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ describe('subplot creation / deletion:', function() {
574574
return Plotly.relayout(gd, {'xaxis2.domain': [0.49, 1]});
575575
})
576576
.then(function() {
577-
// need to draw one backgroud <rect>
577+
// need to draw one background <rect>
578578
checkBGLayers(0, 1, ['xy', 'x2y2', 'xy3']);
579579

580580
// x ranges overlap, but now y ranges are disjoint
@@ -593,14 +593,14 @@ describe('subplot creation / deletion:', function() {
593593
});
594594
})
595595
.then(function() {
596-
// need to draw one backgroud <rect>
596+
// need to draw one background <rect>
597597
checkBGLayers(0, 1, ['xy', 'x2y2', 'xy3']);
598598

599599
// change paper color
600600
return Plotly.relayout(gd, 'paper_bgcolor', 'black');
601601
})
602602
.then(function() {
603-
// need a backgroud <rect> on main subplot to distinguish plot from
603+
// need a background <rect> on main subplot to distinguish plot from
604604
// paper color
605605
checkBGLayers(1, 1, ['xy', 'x2y2', 'xy3']);
606606

‎test/jasmine/tests/hover_label_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4351,7 +4351,7 @@ describe('hover label rotation:', function() {
43514351
});
43524352
});
43534353

4354-
describe('when mulitple pts are picked', function() {
4354+
describe('when multiple pts are picked', function() {
43554355
afterAll(destroyGraphDiv);
43564356

43574357
beforeAll(function(done) {

‎test/jasmine/tests/lib_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -654,13 +654,13 @@ describe('Test lib.js:', function() {
654654
//
655655
// // => {marker: {range: [null, 2]}}
656656
//
657-
// This case *does* work becuase the array merging does not require a deep extend:
657+
// This case *does* work because the array merging does not require a deep extend:
658658
//
659659
// Lib.expandObjectPaths({'range[0]': 5, 'range[1]': 2}
660660
//
661661
// // => {range: [5, 2]}
662662
//
663-
// Finally note that this case works fine becuase there's no merge necessary:
663+
// Finally note that this case works fine because there's no merge necessary:
664664
//
665665
// Lib.expandObjectPaths({'marker.range[1]': 2})
666666
//

‎test/jasmine/tests/mock_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ var list = [
724724
'mapbox_choropleth0-legend',
725725
'mapbox_connectgaps',
726726
'mapbox_custom-style',
727-
'mapbox_density-mulitple',
728-
'mapbox_density-mulitple_legend',
727+
'mapbox_density-multiple',
728+
'mapbox_density-multiple_legend',
729729
'mapbox_density0',
730730
'mapbox_density0-legend',
731731
'mapbox_earthquake-density',
@@ -1815,8 +1815,8 @@ figs['mapbox_choropleth0'] = require('@mocks/mapbox_choropleth0');
18151815
figs['mapbox_choropleth0-legend'] = require('@mocks/mapbox_choropleth0-legend');
18161816
figs['mapbox_connectgaps'] = require('@mocks/mapbox_connectgaps');
18171817
figs['mapbox_custom-style'] = require('@mocks/mapbox_custom-style');
1818-
figs['mapbox_density-mulitple'] = require('@mocks/mapbox_density-mulitple');
1819-
figs['mapbox_density-mulitple_legend'] = require('@mocks/mapbox_density-mulitple_legend');
1818+
figs['mapbox_density-multiple'] = require('@mocks/mapbox_density-multiple');
1819+
figs['mapbox_density-multiple_legend'] = require('@mocks/mapbox_density-multiple_legend');
18201820
figs['mapbox_density0'] = require('@mocks/mapbox_density0');
18211821
figs['mapbox_density0-legend'] = require('@mocks/mapbox_density0-legend');
18221822
figs['mapbox_earthquake-density'] = require('@mocks/mapbox_earthquake-density');

‎test/jasmine/tests/range_slider_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ describe('Visible rangesliders', function() {
266266
rangeslider: {visible: true}
267267
},
268268
width: 800,
269-
hieght: 500
269+
height: 500
270270
})
271271
.then(function() {
272272
var bb = getRangeSlider().getBoundingClientRect();

‎test/jasmine/tests/transform_groupby_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ describe('groupby', function() {
143143
.then(done);
144144

145145
// The final test for restyle updates using deprecated syntax
146-
// is ommitted since old style syntax is *only* sanitized on
146+
// is omitted since old style syntax is *only* sanitized on
147147
// initial plot, *not* on restyle.
148148
});
149149

0 commit comments

Comments
 (0)
Please sign in to comment.