Skip to content

Commit 67fb646

Browse files
committed
spell check
1 parent db9b70c commit 67fb646

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

scripts/JSRootPainter.js

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,7 +2841,7 @@
28412841

28422842
JSROOT.TObjectPainter.prototype.GetShowStatusFunc = function() {
28432843
// return function used to display object status
2844-
// automatically disabled when drawing is enlarged - status line will be inisible
2844+
// automatically disabled when drawing is enlarged - status line will be invisible
28452845

28462846
var pp = this.pad_painter(), res = JSROOT.Painter.ShowStatus;
28472847

@@ -2879,7 +2879,7 @@
28792879
}
28802880

28812881
JSROOT.TObjectPainter.prototype.FindPainterFor = function(selobj,selname,seltype) {
2882-
// try to find painter for sepcified object
2882+
// try to find painter for specified object
28832883
// can be used to find painter for some special objects, registered as
28842884
// histogram functions
28852885

@@ -2949,7 +2949,7 @@
29492949
}
29502950

29512951
JSROOT.TObjectPainter.prototype.StartTextDrawing = function(font_face, font_size, draw_g, max_font_size) {
2952-
// we need to preserve font to be able rescle at the end
2952+
// we need to preserve font to be able rescale at the end
29532953

29542954
if (!draw_g) draw_g = this.draw_g;
29552955

@@ -2973,7 +2973,7 @@
29732973
}
29742974

29752975
JSROOT.TObjectPainter.prototype.GetBoundarySizes = function(elem) {
2976-
// getBBox does not work in mozilla when object is not displayed or not visisble :(
2976+
// getBBox does not work in mozilla when object is not displayed or not visible :(
29772977
// getBoundingClientRect() returns wrong sizes for MathJax
29782978
// are there good solution?
29792979

@@ -3620,7 +3620,7 @@
36203620
hints[n] = null; continue;
36213621
}
36223622

3623-
// check if fully duplicated hint already exsits
3623+
// check if fully duplicated hint already exists
36243624
for (var k=0;k<n;++k) {
36253625
var hprev = hints[k], diff = false;
36263626
if (!hprev || (hprev.lines.length !== hint.lines.length)) continue;
@@ -3726,8 +3726,8 @@
37263726
hintsg.selectAll("*").remove();
37273727
}
37283728

3729-
var curry = 10, // normal y coordiante
3730-
gapy = 10, // y coordiante, taking into account all gaps
3729+
var curry = 10, // normal y coordinate
3730+
gapy = 10, // y coordinate, taking into account all gaps
37313731
gapminx = -1111, gapmaxx = -1111;
37323732

37333733
function FindPosInGap(y) {
@@ -4374,7 +4374,7 @@
43744374
JSROOT.TPadPainter = function(pad, iscan) {
43754375
JSROOT.TObjectPainter.call(this, pad);
43764376
this.pad = pad;
4377-
this.iscan = iscan; // indicate if workign with canvas
4377+
this.iscan = iscan; // indicate if working with canvas
43784378
this.this_pad_name = "";
43794379
if (!this.iscan && (pad !== null) && ('fName' in pad))
43804380
this.this_pad_name = pad.fName.replace(" ", "_"); // avoid empty symbol in pad name
@@ -4441,7 +4441,7 @@
44414441

44424442
this.status_layout = new JSROOT.GridDisplay(footer.node(), 'horizx4_1213');
44434443

4444-
var frame_titles = ['object name','object title','mouse coordiantes','object info'];
4444+
var frame_titles = ['object name','object title','mouse coordinates','object info'];
44454445
for (var k=0;k<4;++k)
44464446
d3.select(this.status_layout.GetFrame(k)).attr('title', frame_titles[k]).style('overflow','hidden')
44474447
.append("label").attr("class","jsroot_status_label");
@@ -4718,7 +4718,7 @@
47184718
svg_rect.on("contextmenu", this.ShowContextMenu.bind(this));
47194719

47204720
if (!JSROOT.BatchMode)
4721-
svg_rect.attr("pointer-events", "visibleFill") // get events also for not visisble rect
4721+
svg_rect.attr("pointer-events", "visibleFill") // get events also for not visible rect
47224722
.on("dblclick", this.EnlargePad.bind(this))
47234723
.on("mouseenter", this.ShowObjectStatus.bind(this));
47244724

@@ -4921,7 +4921,7 @@
49214921
showsubitems = this.CreatePadSvg(true);
49224922
}
49234923

4924-
// even sub-pad is not visisble, we should redraw sub-sub-pads to hide them as well
4924+
// even sub-pad is not visible, we should redraw sub-sub-pads to hide them as well
49254925
for (var i = 0; i < this.painters.length; ++i) {
49264926
var sub = this.painters[i];
49274927
if (showsubitems || sub.this_pad_name) sub.Redraw(resize);
@@ -5092,7 +5092,7 @@
50925092
}
50935093

50945094
JSROOT.TPadPainter.prototype.RedrawSnap = function(snap, call_back) {
5095-
// for the canvas snapshot constains list of objects
5095+
// for the canvas snapshot contains list of objects
50965096
// as first entry, graphical properties of canvas itself is provided
50975097
// in ROOT6 it also includes primitives, but we ignore them
50985098

@@ -5237,7 +5237,7 @@
52375237
// if (((can3d === 1) || (can3d === 2)) && main && main.Render3D) {
52385238
// this was saving of image buffer from 3D render
52395239
// var canvas = main.renderer.domElement;
5240-
// main.Render3D(0); // WebGL clears buffers, therefore we should render scene and convert immedaitely
5240+
// main.Render3D(0); // WebGL clears buffers, therefore we should render scene and convert immediately
52415241
// var dataUrl = canvas.toDataURL("image/png");
52425242
// dataUrl.replace("image/png", "image/octet-stream");
52435243
// var link = document.createElement('a');
@@ -5917,7 +5917,7 @@
59175917
h1 = Math.round(tickSize/2);
59185918

59195919
if (handle.kind == 1) {
5920-
// if not showing lables, not show large tick
5920+
// if not showing labels, not show large tick
59215921
if (!('format' in this) || (this.format(handle.tick,true)!==null)) h1 = tickSize;
59225922
this.ticks.push(handle.grpos); // keep graphical positions of major ticks
59235923
}
@@ -6037,7 +6037,7 @@
60376037
.text('\xD7' + JSROOT.Painter.formatExp(Math.pow(10,this.order).toExponential(0)));
60386038

60396039
if ((textscale>0) && (textscale<1.)) {
6040-
// rotate X lables if they are too big
6040+
// rotate X labels if they are too big
60416041
if ((textscale < 0.7) && !vertical && (side>0) && (maxtextlen > 5)) {
60426042
label_g.selectAll("text").each(function() {
60436043
var txt = d3.select(this), x = txt.attr("x"), y = txt.attr("y") - 5;
@@ -6821,7 +6821,7 @@
68216821
}
68226822

68236823
JSROOT.THistPainter.prototype.CreateXY = function() {
6824-
// here we create x,y objects which maps our physical coordnates into pixels
6824+
// here we create x,y objects which maps our physical coordinates into pixels
68256825
// while only first painter really need such object, all others just reuse it
68266826
// following functions are introduced
68276827
// this.GetBin[X/Y] return bin coordinate
@@ -6953,7 +6953,7 @@
69536953
this.gry = function(val) { return this.y(this.ConvertY(val)); }
69546954
} else
69556955
if (this.logy) {
6956-
// make protecttion for log
6956+
// make protection for log
69576957
this.gry = function(val) { return (val < this.scale_ymin) ? (this.swap_xy ? -5 : this.y.range()[0]+5) : this.y(val); }
69586958
} else {
69596959
this.gry = this.y;
@@ -7200,7 +7200,7 @@
72007200

72017201
if (statpainter) {
72027202
statpainter.Enabled = !statpainter.Enabled;
7203-
// when stat box is drawed, it always can be draw individualy while it
7203+
// when stat box is drawn, it always can be drawn individually while it
72047204
// should be last for colz RedrawPad is used
72057205
statpainter.Redraw();
72067206
return statpainter.Enabled;
@@ -7217,7 +7217,7 @@
72177217
}
72187218

72197219
JSROOT.THistPainter.prototype.GetSelectIndex = function(axis, size, add) {
7220-
// be aware - here indexs starts from 0
7220+
// be aware - here indexes starts from 0
72217221
var indx = 0, obj = this.main_painter();
72227222
if (!obj) obj = this;
72237223
var nbin = this['nbins'+axis];
@@ -7385,7 +7385,7 @@
73857385
function UzoomMinMax(ndim, hist) {
73867386
if (painter.Dimension()!==ndim) return false;
73877387
if ((painter.options.minimum===-1111) && (painter.options.maximum===-1111)) return false;
7388-
if (!painter.draw_content) return false; // if not drawin content, not change min/max
7388+
if (!painter.draw_content) return false; // if not drawing content, not change min/max
73897389
painter.options.minimum = painter.options.maximum = -1111;
73907390
painter.ScanContent(true); // to reset ymin/ymax
73917391
return true;
@@ -7559,7 +7559,7 @@
75597559
}
75607560

75617561
JSROOT.THistPainter.prototype.startRectSel = function() {
7562-
// ignore when touch selection is actiavated
7562+
// ignore when touch selection is activated
75637563

75647564
if (this.zoom_kind > 100) return;
75657565

@@ -8007,7 +8007,7 @@
80078007
this.zoom_kind = 0; // 0 - none, 1 - XY, 2 - only X, 3 - only Y, (+100 for touches)
80088008
this.zoom_rect = null;
80098009
this.zoom_origin = null; // original point where zooming started
8010-
this.zoom_curr = null; // current point for zomming
8010+
this.zoom_curr = null; // current point for zooming
80118011
this.touch_cnt = 0;
80128012

80138013
if (JSROOT.gStyle.Zooming) {
@@ -8163,13 +8163,13 @@
81638163
JSROOT.Painter.createMenu(menu_painter, function(menu) {
81648164
var domenu = menu.painter.FillContextMenu(menu, kind, obj);
81658165

8166-
// fill frame menu by default - or append frame elements when actiavted in the frame corner
8166+
// fill frame menu by default - or append frame elements when activated in the frame corner
81678167
if (fp && (!domenu || (frame_corner && (kind!=="frame"))))
81688168
domenu = fp.FillContextMenu(menu);
81698169

81708170
if (domenu)
81718171
menu.painter.FillObjectExecMenu(menu, function() {
8172-
// suppress any running zomming
8172+
// suppress any running zooming
81738173
menu.painter.SwitchTooltip(false);
81748174
menu.show(menu.painter.ctx_menu_evnt, menu.painter.SwitchTooltip.bind(menu.painter, true) );
81758175
});
@@ -8296,9 +8296,9 @@
82968296
main.tooltip_allowed = !main.tooltip_allowed;
82978297
});
82988298

8299-
menu.addchk(main.enable_hightlight, 'Hightlight bins', function() {
8300-
main.enable_hightlight = !main.enable_hightlight;
8301-
if (!main.enable_hightlight && main.BinHighlight3D) main.BinHighlight3D(null);
8299+
menu.addchk(main.enable_highlight, 'Highlight bins', function() {
8300+
main.enable_highlight = !main.enable_highlight;
8301+
if (!main.enable_highlight && main.BinHighlight3D) main.BinHighlight3D(null);
83028302
});
83038303

83048304
menu.addchk(main.options.FrontBox, 'Front box', function() {
@@ -9497,7 +9497,7 @@
94979497
use_pad = true, latex_kind = 0, fact = 1.;
94989498

94999499
if (text.TestBit(JSROOT.BIT(14))) {
9500-
// NDC coordiantes
9500+
// NDC coordinates
95019501
pos_x = pos_x * w;
95029502
pos_y = (1 - pos_y) * h;
95039503
} else
@@ -10060,7 +10060,7 @@
1006010060

1006110061
file.ReadObject(itemname, function(obj) {
1006210062

10063-
// if object was read even when item didnot exist try to reconstruct new hierarchy
10063+
// if object was read even when item did not exist try to reconstruct new hierarchy
1006410064
if ((item==null) && (obj!=null)) {
1006510065
// first try to found last read directory
1006610066
var d = painter.Find({name:itemname, top:fff, last_exists:true, check_keys:true });
@@ -10198,7 +10198,7 @@
1019810198
}
1019910199

1020010200
if (arg.force) {
10201-
// if didnot found element with given name we just generate it
10201+
// if did not found element with given name we just generate it
1020210202
if (top._childs === undefined) top._childs = [];
1020310203
pos = fullname.indexOf("/");
1020410204
var child = { _name: ((pos < 0) ? fullname : fullname.substr(0, pos)) };
@@ -11826,7 +11826,7 @@
1182611826
if (sett.opts)
1182711827
menu.addDrawMenu("nosub:Draw", sett.opts, function(arg) {
1182811828
if (!hitem || !hitem._obj) return;
11829-
var obj = hitem._obj, divid = this.divid; // need to remember while many references will be removed (inluding _obj)
11829+
var obj = hitem._obj, divid = this.divid; // need to remember while many references will be removed (including _obj)
1183011830
JSROOT.cleanup(divid);
1183111831
JSROOT.draw(divid, obj, arg);
1183211832
});
@@ -11868,14 +11868,14 @@
1186811868

1186911869
JSROOT.MDIDisplay.prototype.ForEachFrame = function(userfunc, only_visible) {
1187011870
// method dedicated to iterate over existing panels
11871-
// provided userfunc is called with arguemnts (frame)
11871+
// provided userfunc is called with arguments (frame)
1187211872

1187311873
console.warn("ForEachFrame not implemented in MDIDisplay");
1187411874
}
1187511875

1187611876
JSROOT.MDIDisplay.prototype.ForEachPainter = function(userfunc, only_visible) {
1187711877
// method dedicated to iterate over existing panles
11878-
// provided userfunc is called with arguemnts (painter, frame)
11878+
// provided userfunc is called with arguments (painter, frame)
1187911879

1188011880
this.ForEachFrame(function(frame) {
1188111881
var dummy = new JSROOT.TObjectPainter();
@@ -12533,7 +12533,7 @@
1253312533
if ((handle.painter_kind === undefined) && (prereq.length > 0))
1253412534
handle.painter_kind = (funcname.indexOf("JSROOT.Painter")==0) ? "object" : "base";
1253512535

12536-
// try to find function without prerequisisties
12536+
// try to find function without prerequisites
1253712537
var func = JSROOT.findFunction(funcname);
1253812538
if (func) {
1253912539
handle.func = func; // remember function once it is found
@@ -12554,7 +12554,7 @@
1255412554
handle.func = func; // remember function once it found
1255512555

1255612556
if (performDraw() !== painter)
12557-
alert('Painter function ' + funcname + ' do not follow rules of dynamicaly loaded painters');
12557+
alert('Painter function ' + funcname + ' do not follow rules of dynamically loaded painters');
1255812558
});
1255912559

1256012560
return painter;
@@ -12606,7 +12606,7 @@
1260612606
/** @fn JSROOT.MakeSVG(args, callback)
1260712607
* Create SVG for specified args.object and args.option
1260812608
* One could provide args.width and args.height as size options.
12609-
* As callback arguemnt one gets SVG code */
12609+
* As callback argument one gets SVG code */
1261012610
JSROOT.MakeSVG = function(args, callback) {
1261112611

1261212612
if (!args) args = {};
@@ -12670,7 +12670,7 @@
1267012670
}
1267112671

1267212672
// Check resize of drawn element
12673-
// As first argument divid one should use same argment as for the drawing
12673+
// As first argument divid one should use same argument as for the drawing
1267412674
// As second argument, one could specify "true" value to force redrawing of
1267512675
// the element even after minimal resize of the element
1267612676
// Or one just supply object with exact sizes like { width:300, height:200, force:true };

0 commit comments

Comments
 (0)