1- // https://root.cern/js/ v7.5.0
1+ // https://root.cern/js/ v7.5.1
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.x ',
10+ const version_id = '7.5.1 ',
1111
1212/** @summary version date
1313 * @desc Release date in format day/month/year like '14/04/2022' */
14- version_date = '16 /10/2023',
14+ version_date = '18 /10/2023',
1515
1616/** @summary version id and date
1717 * @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -8875,6 +8875,7 @@ const symbols_map = {
88758875 '#downarrow': '\u2193',
88768876 '#circ': '\u02C6', // ^
88778877 '#pm': '\xB1',
8878+ '#mp': '\u2213',
88788879 '#doublequote': '\u2033',
88798880 '#geq': '\u2265',
88808881 '#times': '\xD7',
@@ -59841,12 +59842,8 @@ const AxisPainterMethods = {
5984159842 const base = this.logbase;
5984259843 if (base !== 10) vlog = vlog / Math.log10(base);
5984359844 if (this.moreloglabels || (Math.abs(vlog - Math.round(vlog)) < 0.001)) {
59844- if (!this.noexp && (asticks !== 2)) {
59845- const pow = Math.floor(vlog+0.01);
59846- if ((pow === 0) && settings.StripAxisLabels)
59847- return '1';
59848- return this.formatExp(base, pow, val);
59849- }
59845+ if (!this.noexp && (asticks !== 2))
59846+ return this.formatExp(base, Math.floor(vlog+0.01), val);
5985059847 if (Math.abs(base - Math.E) < 0.001)
5985159848 return floatToString(val, fmt || gStyle.fStatFormat);
5985259849 return (vlog < 0) ? val.toFixed(Math.round(-vlog+0.5)) : val.toFixed(0);
@@ -59889,6 +59886,12 @@ const AxisPainterMethods = {
5988959886 res += 'e';
5989059887 else
5989159888 res += base.toString();
59889+ if (settings.StripAxisLabels) {
59890+ if (order === 0)
59891+ return '1';
59892+ else if (order === 1)
59893+ return res;
59894+ }
5989259895 if (settings.Latex > constants$1.Latex.Symbols)
5989359896 return res + `^{${order}}`;
5989459897 const superscript_symbols = {
@@ -60737,7 +60740,11 @@ class TAxisPainter extends ObjectPainter {
6073760740 arg.x = pos;
6073860741 arg.y = fix_coord;
6073960742 arg.align = rotate_lbls ? ((side < 0) ? 12 : 32) : ((side < 0) ? 20 : 23);
60740- if (arg.align % 10 === 3) arg.y -= labelsFont.size*0.1; // font takes 10% more by top align
60743+ if (this.log && !this.noexp && !this.vertical && arg.align === 23) {
60744+ arg.align = 21;
60745+ arg.y += labelsFont.size;
60746+ } else if (arg.align % 10 === 3)
60747+ arg.y -= labelsFont.size*0.1; // font takes 10% more by top align
6074160748 }
6074260749
6074360750 if (rotate_lbls)
@@ -71817,6 +71824,10 @@ class THistPainter extends ObjectPainter {
7181771824 if (!do_draw)
7181871825 return this.drawNextFunction(indx+1, only_extra);
7181971826
71827+ // Required to correctly draw multiple stats boxes
71828+ // TODO: set reference via weak pointer
71829+ func.$main_painter = this;
71830+
7182071831 const promise = TPavePainter.canDraw(func)
7182171832 ? TPavePainter.draw(this.getDom(), func, opt)
7182271833 : pp.drawObject(this.getDom(), func, opt);
@@ -100063,7 +100074,7 @@ drawFuncs = { lst: [
100063100074 { name: 'TEveGeoShapeExtract', sameas: clTGeoVolume, opt: ';more;all;count;projx;projz;wire;dflt' },
100064100075 { name: nsREX+'REveGeoShapeExtract', sameas: clTGeoVolume, opt: ';more;all;count;projx;projz;wire;dflt' },
100065100076 { name: 'TGeoOverlap', sameas: clTGeoVolume, opt: ';more;all;count;projx;projz;wire;dflt', dflt: 'dflt', ctrl: 'expand' },
100066- { name: 'TGeoManager', sameas: clTGeoVolume, opt: ';more;all;count;projx;projz;wire;tracks;no_screen;dflt', dflt: 'expand', ctrl: 'dflt', noappend: true },
100077+ { name: 'TGeoManager', sameas: clTGeoVolume, opt: ';more;all;count;projx;projz;wire;tracks;no_screen;dflt', dflt: 'expand', ctrl: 'dflt', noappend: true, exapnd_after_draw: true },
100067100078 { name: 'TGeoVolumeAssembly', sameas: clTGeoVolume, /* icon: 'img_geoassembly', */ opt: ';more;all;count' },
100068100079 { name: /^TGeo/, class: () => import_geo().then(h => h.TGeoPainter), get_expand: () => import_geo().then(h => h.expandGeoObject), opt: ';more;all;axis;compa;count;projx;projz;wire;no_screen;dflt', dflt: 'dflt', ctrl: 'expand' },
100069100080 { name: 'TAxis3D', icon: 'img_graph', draw: () => import_geo().then(h => h.drawAxis3D), direct: true },
@@ -102252,7 +102263,7 @@ class HierarchyPainter extends BasePainter {
102252102263 if (can_draw && can_expand && !drawopt) {
102253102264 // if default action specified as expand, disable drawing
102254102265 // if already displayed, try to expand
102255- if (dflt_expand || (handle?.dflt === 'expand') || this.isItemDisplayed(itemname)) can_draw = false;
102266+ if (dflt_expand || (handle?.dflt === 'expand') || (handle?.exapnd_after_draw && this.isItemDisplayed(itemname) )) can_draw = false;
102256102267 }
102257102268
102258102269 if (can_draw && !drawopt)
@@ -102486,6 +102497,7 @@ class HierarchyPainter extends BasePainter {
102486102497 menu.add('Expand', () => this.expandItem(itemname), 'Exapnd content of object');
102487102498 else {
102488102499 menu.add('Unexpand', () => {
102500+ hitem._more = true;
102489102501 delete hitem._childs;
102490102502 delete hitem._isopen;
102491102503 if (hitem.expand_item)
@@ -113737,6 +113749,10 @@ class RAxisPainter extends RObjectPainter {
113737113749 arg.x = pos;
113738113750 arg.y = fix_coord;
113739113751 arg.align = rotate_lbls ? ((side < 0) ? 12 : 32) : ((side < 0) ? 20 : 23);
113752+ if (this.log && !this.noexp && !this.vertical && arg.align === 23) {
113753+ arg.align = 21;
113754+ arg.y += this.labelsFont.size;
113755+ }
113740113756 }
113741113757
113742113758 arg.post_process = process_drawtext_ready;
0 commit comments