Skip to content

Commit 292730c

Browse files
committed
Log, date and build with tree draw fix
1 parent 68310c5 commit 292730c

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

build/jsroot.js

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// https://root.cern/js/ v7.5.4
1+
// https://root.cern/js/ v7.5.5
22
(function (global, factory) {
33
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
44
typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -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.5.4',
10+
const version_id = '7.5.x',
1111

1212
/** @summary version date
1313
* @desc Release date in format day/month/year like '14/04/2022' */
14-
version_date = '9/02/2024',
14+
version_date = '14/02/2024',
1515

1616
/** @summary version id and date
1717
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -96218,8 +96218,10 @@ class TFile {
9621896218

9621996219
const progress_offest = sum1 / sum_total, progress_this = (sum2 - sum1) / sum_total;
9622096220
xhr.addEventListener('progress', oEvent => {
96221-
if (oEvent.lengthComputable)
96222-
progress_callback(progress_offest + progress_this * oEvent.loaded / oEvent.total);
96221+
if (oEvent.lengthComputable) {
96222+
if (progress_callback(progress_offest + progress_this * oEvent.loaded / oEvent.total) === 'break')
96223+
xhr.abort();
96224+
}
9622396225
});
9622496226
} else if (first_block_retry && isFunc(xhr.addEventListener)) {
9622596227
xhr.addEventListener('progress', oEvent => {
@@ -98651,7 +98653,7 @@ class TDrawSelector extends TSelector {
9865198653
const now = new Date().getTime();
9865298654
if (now - this.lasttm > this.monitoring) {
9865398655
this.lasttm = now;
98654-
if (this.progress_callback)
98656+
if (isFunc(this.progress_callback))
9865598657
this.progress_callback(this.hist);
9865698658
}
9865798659
}
@@ -99472,7 +99474,7 @@ async function treeProcess(tree, selector, args) {
9947299474

9947399475
const portion = (handle.staged_prev + value * (handle.staged_now - handle.staged_prev)) /
9947499476
(handle.process_max - handle.process_min);
99475-
handle.selector.ShowProgress(portion);
99477+
return handle.selector.ShowProgress(portion);
9947699478
}
9947799479

9947899480
function ProcessBlobs(blobs, places) {
@@ -99631,7 +99633,10 @@ async function treeProcess(tree, selector, args) {
9963199633
if (handle.process_max > handle.process_min)
9963299634
portion = (handle.staged_prev - handle.process_min) / (handle.process_max - handle.process_min);
9963399635

99634-
handle.selector.ShowProgress(portion);
99636+
if (handle.selector.ShowProgress(portion) === 'break') {
99637+
handle.selector.Terminate(true);
99638+
return resolveFunc(handle.selector);
99639+
}
9963599640

9963699641
handle.progress_showtm = new Date().getTime();
9963799642

@@ -106997,6 +107002,11 @@ TDrawSelector.prototype.ShowProgress = function(value) {
106997107002
if ((value === undefined) || !Number.isFinite(value))
106998107003
return showProgress();
106999107004

107005+
if (this._break) {
107006+
treeShowProgress(this, 'Breaking ... ');
107007+
return 'break';
107008+
}
107009+
107000107010
if (this.last_progress !== value) {
107001107011
const diff = value - this.last_progress;
107002107012
if (!this.aver_diff) this.aver_diff = diff;

changes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# JSROOT changelog
22

3+
## Changes in 7.5.x
4+
1. Fix - abort tree draw operation faster
5+
6+
37
## Changes in 7.5.4
48
1. Fix - catch exception when parsing TF1 formula
59
2. Fix - properly check THStack histograms axes when doing sum

modules/core.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/** @summary version id
22
* @desc For the JSROOT release the string in format 'major.minor.patch' like '7.0.0' */
3-
const version_id = '7.5.4',
3+
const version_id = '7.5.x',
44

55
/** @summary version date
66
* @desc Release date in format day/month/year like '14/04/2022' */
7-
version_date = '9/02/2024',
7+
version_date = '14/02/2024',
88

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsroot",
3-
"version": "7.5.4",
3+
"version": "7.5.5",
44
"engines": {
55
"node": ">= 0.18.0"
66
},

0 commit comments

Comments
 (0)