Skip to content

Commit c11a0d0

Browse files
committed
spell check
1 parent 67fb646 commit c11a0d0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

scripts/JSRootPainter.more.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@
695695
y1 = this.AxisToSvg("y", box.fY1, false),
696696
y2 = this.AxisToSvg("y", box.fY2, false);
697697

698-
// if box filled, contor line drawn only with "L" draw option:
698+
// if box filled, contour line drawn only with "L" draw option:
699699
if ((fillatt.color != 'none') && !this.draw_line) lineatt.color = "none";
700700

701701
this.draw_g
@@ -1416,7 +1416,7 @@
14161416
if (!this.nostack)
14171417
this.nostack = ! this.BuildStack();
14181418

1419-
// if any histogram appears with precalculated errors, use E for all histograms
1419+
// if any histogram appears with pre-calculated errors, use E for all histograms
14201420
if (!this.nostack && this.haserrors && !d.check("HIST")) opt+= " E";
14211421

14221422
// order used to display histograms in stack direct - true, reverse - false
@@ -1869,7 +1869,7 @@
18691869
// first and last bins
18701870
switch (drawbins.length) {
18711871
case 0: break;
1872-
case 1: drawbins[0].width = w/4; break; // patalogic case of single bin
1872+
case 1: drawbins[0].width = w/4; break; // pathologic case of single bin
18731873
case 2: drawbins[0].width = drawbins[1].width = (drawbins[1].grx1-drawbins[0].grx1)/2; break;
18741874
default:
18751875
drawbins[0].width = drawbins[1].width;
@@ -1941,7 +1941,7 @@
19411941

19421942
this.error_size = lw;
19431943

1944-
lw = Math.floor((this.lineatt.width-1)/2); // one shoud take into account half of end-cup line width
1944+
lw = Math.floor((this.lineatt.width-1)/2); // one should take into account half of end-cup line width
19451945
nodes.filter(function(d) { return (d.exlow > 0) || (d.exhigh > 0) || (d.eylow > 0) || (d.eyhigh > 0); })
19461946
.append("svg:path")
19471947
.call(this.lineatt.func)
@@ -2070,7 +2070,7 @@
20702070

20712071
if (best.exact) res.exact = true;
20722072
res.menu = res.exact; // activate menu only when exactly locate bin
2073-
res.menu_dist = 3; // distance alwyas fixed
2073+
res.menu_dist = 3; // distance always fixed
20742074

20752075
if (ttrect.empty())
20762076
ttrect = this.draw_g.append("svg:rect")
@@ -2178,7 +2178,7 @@
21782178
res.changed = ttbin.property("current_bin") !== bestbin;
21792179

21802180
if (res.changed) {
2181-
ttbin.selectAll("*").remove(); // first delete all childs
2181+
ttbin.selectAll("*").remove(); // first delete all children
21822182
ttbin.property("current_bin", bestbin);
21832183

21842184
if (ismark) {
@@ -2773,7 +2773,7 @@
27732773
}
27742774

27752775
function startRectSel() {
2776-
// ignore when touch selection is actiavated
2776+
// ignore when touch selection is activated
27772777
if (doing_zoom) return;
27782778
doing_zoom = true;
27792779

@@ -3627,7 +3627,7 @@
36273627
var histo = this.GetObject(),
36283628
kMAXCONTOUR = 404,
36293629
kMAXCOUNT = 400,
3630-
// arguemnts used in he PaintContourLine
3630+
// arguments used in he PaintContourLine
36313631
xarr = new Float32Array(2*kMAXCONTOUR),
36323632
yarr = new Float32Array(2*kMAXCONTOUR),
36333633
itarr = new Int32Array(2*kMAXCONTOUR),
@@ -4148,7 +4148,7 @@
41484148
if ((absz === 0) || (absz < absmin)) continue;
41494149

41504150
zdiff = uselogz ? ((absz>0) ? Math.log(absz) - logmin : 0) : (absz - absmin);
4151-
// area of the box should be propotional to absolute bin content
4151+
// area of the box should be proportional to absolute bin content
41524152
zdiff = 0.5 * ((zdiff < 0) ? 1 : (1 - Math.sqrt(zdiff * xyfactor)));
41534153
// avoid oversized bins
41544154
if (zdiff < 0) zdiff = 0;
@@ -4227,7 +4227,7 @@
42274227
pmain = this.main_painter(), // used for axis values conversions
42284228
i, j, y, sum0, sum1, sum2, cont, center, counter, integral, w, pnt;
42294229

4230-
// candle option coded into string, which comes after candle indentifier
4230+
// candle option coded into string, which comes after candle identifier
42314231
// console.log('Draw candle plot with option', this.options.Candle);
42324232

42334233
var bars = "", markers = "";
@@ -4259,7 +4259,7 @@
42594259
if (counter/integral < 0.001 && (counter + cont)/integral >=0.001) pnt.whiskerm = this.GetBinY(j + 0.5); // Lower whisker
42604260
if (counter/integral < 0.25 && (counter + cont)/integral >=0.25) pnt.m25y = this.GetBinY(j + 0.5); // Lower edge of box
42614261
if (counter/integral < 0.5 && (counter + cont)/integral >=0.5) pnt.median = this.GetBinY(j + 0.5); //Median
4262-
if (counter/integral < 0.75 && (counter + cont)/integral >=0.75) pnt.p25y = this.GetBinY(j + 0.5); //Uppeder edge of box
4262+
if (counter/integral < 0.75 && (counter + cont)/integral >=0.75) pnt.p25y = this.GetBinY(j + 0.5); //Upper edge of box
42634263
if (counter/integral < 0.999 && (counter + cont)/integral >=0.999) pnt.whiskerp = this.GetBinY(j + 0.5); // Upper whisker
42644264
counter += cont;
42654265
y = this.GetBinY(j + 0.5); // center of y bin coordinate
@@ -4272,7 +4272,7 @@
42724272

42734273
// console.log('Whisker before ' + pnt.whiskerm + '/' + pnt.whiskerp);
42744274

4275-
//Whsikers cannot exceed 1.5*iqr from box
4275+
//Whiskers cannot exceed 1.5*iqr from box
42764276
if ((pnt.m25y-1.5*pnt.iqr) > pnt.whsikerm) {
42774277
pnt.whiskerm = pnt.m25y-1.5*pnt.iqr;
42784278
}
@@ -4617,7 +4617,7 @@
46174617
ttrect = this.draw_g.select(".tooltip_bin");
46184618

46194619
if (h.poly) {
4620-
// process toolltips from TH2Poly
4620+
// process tooltips from TH2Poly
46214621

46224622
var pmain = this.main_painter(),
46234623
realx, realy, foundindx = -1;

0 commit comments

Comments
 (0)