1- // https://root.cern/js/ v7.5.4
1+ // https://root.cern/js/ v7.5.5
22(function (global, factory) {
33typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
44typeof 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;
0 commit comments