Skip to content

Commit

Permalink
Spelling in draw
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Jul 11, 2024
1 parent dea99e2 commit e3d22af
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions modules/draw/TASImagePainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand All @@ -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,
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions modules/draw/TTree.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion modules/draw/more.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion modules/geom/csg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/hist2d/TGraphPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit e3d22af

Please sign in to comment.