@@ -7,11 +7,11 @@ typeof define === 'function' && define.amd ? define(['exports'], factory) :
77
88/** @summary version id
99 * @desc For the JSROOT release the string in format 'major.minor.patch' like '7.0.0' */
10- const version_id = '7.6.x ',
10+ const version_id = '7.6.1 ',
1111
1212/** @summary version date
1313 * @desc Release date in format day/month/year like '14/04/2022' */
14- version_date = '7/03 /2024',
14+ version_date = '17/05 /2024',
1515
1616/** @summary version id and date
1717 * @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -40,9 +40,11 @@ if (_src && isStr(_src)) {
4040 const pos = _src.indexOf('modules/core.mjs');
4141 if (pos >= 0) {
4242 exports.source_dir = _src.slice(0, pos);
43- console.log(`Set jsroot source_dir to ${exports.source_dir}, ${version}`);
43+ if (!nodejs)
44+ console.log(`Set jsroot source_dir to ${exports.source_dir}, ${version}`);
4445 } else {
45- console.log(`jsroot bundle, ${version}`);
46+ if (!nodejs)
47+ console.log(`jsroot bundle, ${version}`);
4648 internals.ignore_v6 = true;
4749 }
4850}
@@ -1513,7 +1515,10 @@ function getMethods(typename, obj) {
15131515 m.AddText = function(txt) {
15141516 const line = create$1(clTLatex);
15151517 line.fTitle = txt;
1516- line.fTextAlign = this.fTextAlign;
1518+ line.fTextAlign = 0;
1519+ line.fTextColor = 0;
1520+ line.fTextFont = 0;
1521+ line.fTextSize = 0;
15171522 this.fLines.Add(line);
15181523 };
15191524 m.Clear = function() {
@@ -59628,7 +59633,7 @@ class JSRootMenu {
5962859633 const hnames = ['left', 'middle', 'right'], vnames = ['bottom', 'centered', 'top'];
5962959634 for (let h = 1; h < 4; ++h) {
5963059635 for (let v = 1; v < 4; ++v)
59631- this.addchk(h*10+v === value, `${h*10+v}: ${hnames[h-1]} ${vnames[h -1]}`, h*10+v, arg => set_func(parseInt(arg)));
59636+ this.addchk(h*10+v === value, `${h*10+v}: ${hnames[h-1]} ${vnames[v -1]}`, h*10+v, arg => set_func(parseInt(arg)));
5963259637 }
5963359638
5963459639 this.add('endsub:');
@@ -67899,8 +67904,8 @@ class TPadPainter extends ObjectPainter {
6789967904 menu.add('Save to gStyle', () => {
6790067905 if (!this.pad) return;
6790167906 this.fillatt?.saveToStyle(this.iscan ? 'fCanvasColor' : 'fPadColor');
67902- gStyle.fPadGridX = this.pad.fGridX ;
67903- gStyle.fPadGridY = this.pad.fGridX ;
67907+ gStyle.fPadGridX = this.pad.fGridx ;
67908+ gStyle.fPadGridY = this.pad.fGridy ;
6790467909 gStyle.fPadTickX = this.pad.fTickx;
6790567910 gStyle.fPadTickY = this.pad.fTicky;
6790667911 gStyle.fOptLogx = this.pad.fLogx;
@@ -71516,7 +71521,7 @@ class THistDrawOptions {
7151671521 if (this.Mode3D)
7151771522 return this.Lego === 12 || this.Lego === 14 || this.Surf === 11 || this.Surf === 12;
7151871523
71519- if (this.Color || this.Contour || this.Axis)
71524+ if (this.Color || this.Contour || this.Hist || this. Axis)
7152071525 return true;
7152171526
7152271527 return !this.Scat && !this.Box && !this.Arrow && !this.Proj && !this.Candle && !this.Violin && !this.Text;
@@ -74554,7 +74559,7 @@ let TH2Painter$2 = class TH2Painter extends THistPainter {
7455474559 this.interactiveRedraw('pad', 'drawopt');
7455574560 });
7455674561
74557- if (this.options.Color || this.options.Contour || this.options.Surf || this.options.Lego === 12 || this.options.Lego === 14)
74562+ if (this.options.Color || this.options.Contour || this.options.Hist || this.options. Surf || this.options.Lego === 12 || this.options.Lego === 14)
7455874563 this.fillPaletteMenu(menu, true);
7455974564 }
7456074565
@@ -98281,7 +98286,7 @@ class TFile {
9828198286 * console.log(`Read object of type ${obj._typename}`); */
9828298287 async readObject(obj_name, cycle, only_dir) {
9828398288 const pos = obj_name.lastIndexOf(';');
98284- if (pos > 0) {
98289+ if (pos >= 0) {
9828598290 cycle = parseInt(obj_name.slice(pos + 1));
9828698291 obj_name = obj_name.slice(0, pos);
9828798292 }
@@ -107481,12 +107486,12 @@ let TGraphPainter$1 = class TGraphPainter extends ObjectPainter {
107481107486
107482107487 setHistogramTitle(histo, this.getObject().fTitle);
107483107488
107484- if (set_x) {
107489+ if (set_x && !histo.fXaxis.fLabels ) {
107485107490 histo.fXaxis.fXmin = uxmin;
107486107491 histo.fXaxis.fXmax = uxmax;
107487107492 }
107488107493
107489- if (set_y) {
107494+ if (set_y && !histo.fYaxis.fLabels ) {
107490107495 histo.fYaxis.fXmin = Math.min(minimum0, minimum);
107491107496 histo.fYaxis.fXmax = Math.max(maximum0, maximum);
107492107497 histo.fMinimum = minimum;
@@ -107685,11 +107690,14 @@ let TGraphPainter$1 = class TGraphPainter extends ObjectPainter {
107685107690 }
107686107691
107687107692 // build upper part (in reverse direction)
107688- const path2 = buildSvgCurve(bins2, { line: options.EF < 2, cmd: 'L', qubic: true });
107689-
107690- draw_g.append('svg:path')
107693+ const path2 = buildSvgCurve(bins2, { line: options.EF < 2, cmd: 'L', qubic: true }),
107694+ area = draw_g.append('svg:path')
107691107695 .attr('d', path1 + path2 + 'Z')
107692107696 .call(fillatt.func);
107697+
107698+ // Let behaves as ROOT - see JIRA ROOT-8131
107699+ if (fillatt.empty() && fillatt.colorindx)
107700+ area.style('stroke', this.getColor(fillatt.colorindx));
107693107701 if (main_block)
107694107702 this.draw_kind = 'lines';
107695107703 }
0 commit comments