From e3d22af0ba5d6e08efa42816b803400738360e96 Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Thu, 11 Jul 2024 10:12:02 +0200 Subject: [PATCH] Spelling in draw --- modules/draw/TASImagePainter.mjs | 8 ++++---- modules/draw/TTree.mjs | 4 ++-- modules/draw/more.mjs | 2 +- modules/geom/csg.mjs | 2 +- modules/hist2d/TGraphPainter.mjs | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/draw/TASImagePainter.mjs b/modules/draw/TASImagePainter.mjs index 604da5005..203593d34 100644 --- a/modules/draw/TASImagePainter.mjs +++ b/modules/draw/TASImagePainter.mjs @@ -36,7 +36,7 @@ class TASImagePainter extends ObjectPainter { pal = obj?.fPalette; if (!pal) return null; - const rgba = new Array((nlevels+1) * 4).fill(0); // precaclucated colors + const rgba = new Array((nlevels+1) * 4).fill(0); // precalculated colors for (let lvl = 0, indx = 1; lvl <= nlevels; ++lvl) { const l = lvl/nlevels; @@ -58,7 +58,7 @@ class TASImagePainter extends ObjectPainter { * @private */ async makeUrlFromImageBuf(obj, fp) { const nlevels = 1000; - this.rgba = this.createRGBA(nlevels); // precaclucated colors + this.rgba = this.createRGBA(nlevels); // precalculated colors let min = obj.fImgBuf[0], max = obj.fImgBuf[0]; for (let k = 1; k < obj.fImgBuf.length; ++k) { @@ -71,7 +71,7 @@ class TASImagePainter extends ObjectPainter { // min = Math.min.apply(null, obj.fImgBuf), // max = Math.max.apply(null, obj.fImgBuf); - // create countor like in hist painter to allow palette drawing + // create contour like in hist painter to allow palette drawing this.fContour = { arr: new Array(200), rgba: this.rgba, @@ -346,7 +346,7 @@ class TASImagePainter extends ObjectPainter { Object.assign(pal, { fX1NDC: 0.91, fX2NDC: 0.95, fY1NDC: 0.1, fY2NDC: 0.9, fInit: 1 }); pal.fAxis.fChopt = '+'; this.draw_palette = pal; - this._color_palette = true; // to emulate behaviour of hist painter + this._color_palette = true; // to emulate behavior of hist painter } let pal_painter = this.getPadPainter().findPainterFor(this.draw_palette); diff --git a/modules/draw/TTree.mjs b/modules/draw/TTree.mjs index 408ca4e5b..3db5058d6 100644 --- a/modules/draw/TTree.mjs +++ b/modules/draw/TTree.mjs @@ -101,7 +101,7 @@ async function treeDrawProgress(obj, final) { // while TTree reading not synchronized with drawing, // next portion can appear before previous is drawn // critical is last drawing which should wait for previous one - // therefore last_pr is kept as inidication that promise is not yet processed + // therefore last_pr is kept as indication that promise is not yet processed if (!this.last_pr) this.last_pr = Promise.resolve(true); @@ -242,7 +242,7 @@ function createTreePlayer(player) { if (!Number.isInteger(args.firstentry)) delete args.firstentry; } - /* if (args.drawopt) */ cleanup(this.drawid); + cleanup(this.drawid); args.drawid = this.drawid; diff --git a/modules/draw/more.mjs b/modules/draw/more.mjs index a8c58265d..6ec1eaf55 100644 --- a/modules/draw/more.mjs +++ b/modules/draw/more.mjs @@ -38,7 +38,7 @@ async function drawText() { this.createG(); - this.draw_g.attr('transform', null); // remove transofrm from interactive changes + this.draw_g.attr('transform', null); // remove transform from interactive changes this.pos_x = this.axisToSvg('x', pos_x, this.isndc); this.pos_y = this.axisToSvg('y', pos_y, this.isndc); diff --git a/modules/geom/csg.mjs b/modules/geom/csg.mjs index cece2fe1c..ad56e3100 100644 --- a/modules/geom/csg.mjs +++ b/modules/geom/csg.mjs @@ -305,7 +305,7 @@ class Node { delete polygons[i].parent; } - // by difinition polygon should be COPLANAR for itself + // by definition polygon should be COPLANAR for itself if (i === 0) this.polygons.push(polygons[0]); else diff --git a/modules/hist2d/TGraphPainter.mjs b/modules/hist2d/TGraphPainter.mjs index 0f3bb6926..ce7b8a89d 100644 --- a/modules/hist2d/TGraphPainter.mjs +++ b/modules/hist2d/TGraphPainter.mjs @@ -447,7 +447,7 @@ class TGraphPainter extends ObjectPainter { } /** @summary Provide frame painter for graph - * @desc If not exists, emulate its behaviour */ + * @desc If not exists, emulate its behavior */ get_main() { let pmain = this.getFramePainter();