Skip to content

Commit

Permalink
Prepeare 7.6.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed May 17, 2024
1 parent a0d4fed commit bcafe03
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 18 deletions.
40 changes: 24 additions & 16 deletions build/jsroot.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ typeof define === 'function' && define.amd ? define(['exports'], factory) :

/** @summary version id
* @desc For the JSROOT release the string in format 'major.minor.patch' like '7.0.0' */
const version_id = '7.6.x',
const version_id = '7.6.1',

/** @summary version date
* @desc Release date in format day/month/year like '14/04/2022' */
version_date = '7/03/2024',
version_date = '17/05/2024',

/** @summary version id and date
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
Expand Down Expand Up @@ -40,9 +40,11 @@ if (_src && isStr(_src)) {
const pos = _src.indexOf('modules/core.mjs');
if (pos >= 0) {
exports.source_dir = _src.slice(0, pos);
console.log(`Set jsroot source_dir to ${exports.source_dir}, ${version}`);
if (!nodejs)
console.log(`Set jsroot source_dir to ${exports.source_dir}, ${version}`);
} else {
console.log(`jsroot bundle, ${version}`);
if (!nodejs)
console.log(`jsroot bundle, ${version}`);
internals.ignore_v6 = true;
}
}
Expand Down Expand Up @@ -1513,7 +1515,10 @@ function getMethods(typename, obj) {
m.AddText = function(txt) {
const line = create$1(clTLatex);
line.fTitle = txt;
line.fTextAlign = this.fTextAlign;
line.fTextAlign = 0;
line.fTextColor = 0;
line.fTextFont = 0;
line.fTextSize = 0;
this.fLines.Add(line);
};
m.Clear = function() {
Expand Down Expand Up @@ -59628,7 +59633,7 @@ class JSRootMenu {
const hnames = ['left', 'middle', 'right'], vnames = ['bottom', 'centered', 'top'];
for (let h = 1; h < 4; ++h) {
for (let v = 1; v < 4; ++v)
this.addchk(h*10+v === value, `${h*10+v}: ${hnames[h-1]} ${vnames[h-1]}`, h*10+v, arg => set_func(parseInt(arg)));
this.addchk(h*10+v === value, `${h*10+v}: ${hnames[h-1]} ${vnames[v-1]}`, h*10+v, arg => set_func(parseInt(arg)));
}

this.add('endsub:');
Expand Down Expand Up @@ -67899,8 +67904,8 @@ class TPadPainter extends ObjectPainter {
menu.add('Save to gStyle', () => {
if (!this.pad) return;
this.fillatt?.saveToStyle(this.iscan ? 'fCanvasColor' : 'fPadColor');
gStyle.fPadGridX = this.pad.fGridX;
gStyle.fPadGridY = this.pad.fGridX;
gStyle.fPadGridX = this.pad.fGridx;
gStyle.fPadGridY = this.pad.fGridy;
gStyle.fPadTickX = this.pad.fTickx;
gStyle.fPadTickY = this.pad.fTicky;
gStyle.fOptLogx = this.pad.fLogx;
Expand Down Expand Up @@ -71516,7 +71521,7 @@ class THistDrawOptions {
if (this.Mode3D)
return this.Lego === 12 || this.Lego === 14 || this.Surf === 11 || this.Surf === 12;

if (this.Color || this.Contour || this.Axis)
if (this.Color || this.Contour || this.Hist || this.Axis)
return true;

return !this.Scat && !this.Box && !this.Arrow && !this.Proj && !this.Candle && !this.Violin && !this.Text;
Expand Down Expand Up @@ -74554,7 +74559,7 @@ let TH2Painter$2 = class TH2Painter extends THistPainter {
this.interactiveRedraw('pad', 'drawopt');
});

if (this.options.Color || this.options.Contour || this.options.Surf || this.options.Lego === 12 || this.options.Lego === 14)
if (this.options.Color || this.options.Contour || this.options.Hist || this.options.Surf || this.options.Lego === 12 || this.options.Lego === 14)
this.fillPaletteMenu(menu, true);
}

Expand Down Expand Up @@ -98281,7 +98286,7 @@ class TFile {
* console.log(`Read object of type ${obj._typename}`); */
async readObject(obj_name, cycle, only_dir) {
const pos = obj_name.lastIndexOf(';');
if (pos > 0) {
if (pos >= 0) {
cycle = parseInt(obj_name.slice(pos + 1));
obj_name = obj_name.slice(0, pos);
}
Expand Down Expand Up @@ -107481,12 +107486,12 @@ let TGraphPainter$1 = class TGraphPainter extends ObjectPainter {

setHistogramTitle(histo, this.getObject().fTitle);

if (set_x) {
if (set_x && !histo.fXaxis.fLabels) {
histo.fXaxis.fXmin = uxmin;
histo.fXaxis.fXmax = uxmax;
}

if (set_y) {
if (set_y && !histo.fYaxis.fLabels) {
histo.fYaxis.fXmin = Math.min(minimum0, minimum);
histo.fYaxis.fXmax = Math.max(maximum0, maximum);
histo.fMinimum = minimum;
Expand Down Expand Up @@ -107685,11 +107690,14 @@ let TGraphPainter$1 = class TGraphPainter extends ObjectPainter {
}

// build upper part (in reverse direction)
const path2 = buildSvgCurve(bins2, { line: options.EF < 2, cmd: 'L', qubic: true });

draw_g.append('svg:path')
const path2 = buildSvgCurve(bins2, { line: options.EF < 2, cmd: 'L', qubic: true }),
area = draw_g.append('svg:path')
.attr('d', path1 + path2 + 'Z')
.call(fillatt.func);

// Let behaves as ROOT - see JIRA ROOT-8131
if (fillatt.empty() && fillatt.colorindx)
area.style('stroke', this.getColor(fillatt.colorindx));
if (main_block)
this.draw_kind = 'lines';
}
Expand Down
11 changes: 11 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# JSROOT changelog

## Changes in 7.6.1
1. Remove source_dir output in node.js #296
2. Fully integrate svg2pdf.js into jsroot repo
3. Fix - support plain TRI option for TGraph2D
4. Fix - let read object from ROOT file with empty name
5. Fix - graph drawing fix custom labels on X axis #297
6. Fix - draw at least line for TGraphErrors ROOT-8131
7. Fix - preserve attributes and draw options when call drawingJSON() #307
8. Fix - menu for text align slection typo


## Changes in 7.6.0
1. Implement "tickz" draw option, used for color palette ticks
2. Implement skewness and kurtosis calculations for histogram stats box
Expand Down
4 changes: 2 additions & 2 deletions modules/core.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/** @summary version id
* @desc For the JSROOT release the string in format 'major.minor.patch' like '7.0.0' */
const version_id = '7.6.x',
const version_id = '7.6.1',

/** @summary version date
* @desc Release date in format day/month/year like '14/04/2022' */
version_date = '7/03/2024',
version_date = '17/05/2024',

/** @summary version id and date
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
Expand Down

0 comments on commit bcafe03

Please sign in to comment.