@@ -12,7 +12,7 @@ const version_id = '7.8.x',
12
12
13
13
/** @summary version date
14
14
* @desc Release date in format day/month/year like '14/04/2022' */
15
- version_date = '20/11/2024 ',
15
+ version_date = '22/01/2025 ',
16
16
17
17
/** @summary version id and date
18
18
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -70558,7 +70558,7 @@ class TPadPainter extends ObjectPainter {
70558
70558
70559
70559
const mainid = this.selectDom().attr('id');
70560
70560
70561
- if (!this.isBatchMode() && !this.use_openui && !this.brlayout && mainid && isStr(mainid)) {
70561
+ if (!this.isBatchMode() && !this.use_openui && !this.brlayout && mainid && isStr(mainid) && !getHPainter() ) {
70562
70562
this.brlayout = new BrowserLayout(mainid, null, this);
70563
70563
this.brlayout.create(mainid, true);
70564
70564
this.setDom(this.brlayout.drawing_divid()); // need to create canvas
@@ -73888,7 +73888,7 @@ class THistDrawOptions {
73888
73888
if (d.check('OPTSTAT', true)) this.optstat = d.partAsInt();
73889
73889
if (d.check('OPTFIT', true)) this.optfit = d.partAsInt();
73890
73890
73891
- if ((this.optstat || this.optstat ) && histo?.TestBit(kNoStats))
73891
+ if ((this.optstat || this.optfit ) && histo?.TestBit(kNoStats))
73892
73892
histo?.InvertBit(kNoStats);
73893
73893
73894
73894
if (d.check('NOSTAT')) this.NoStat = true;
@@ -142114,18 +142114,20 @@ async function makePDF(svg, args) {
142114
142114
142115
142115
let doc;
142116
142116
142117
+ const orientation = (svg.width < svg.height) ? 'portrait' : 'landscape';
142118
+
142117
142119
if (args?.as_doc)
142118
142120
doc = args?.doc;
142119
142121
142120
142122
if (doc) {
142121
142123
doc.addPage({
142122
- orientation: 'landscape' ,
142124
+ orientation,
142123
142125
unit: 'px',
142124
142126
format: [svg.width + 10, svg.height + 10]
142125
142127
});
142126
142128
} else {
142127
142129
doc = new jsPDF({
142128
- orientation: 'landscape' ,
142130
+ orientation,
142129
142131
unit: 'px',
142130
142132
format: [svg.width + 10, svg.height + 10]
142131
142133
});
@@ -142170,7 +142172,13 @@ async function makePDF(svg, args) {
142170
142172
node.removeAttribute('dy');
142171
142173
});
142172
142174
142173
- restore_text.forEach(node => { node.innerHTML = node.$originalHTML; node.setAttribute('font-family', node.$originalFont); });
142175
+ restore_text.forEach(node => {
142176
+ node.innerHTML = node.$originalHTML;
142177
+ if (node.$originalFont)
142178
+ node.setAttribute('font-family', node.$originalFont);
142179
+ else
142180
+ node.removeAttribute('font-family');
142181
+ });
142174
142182
142175
142183
const res = args?.as_buffer ? doc.output('arraybuffer') : doc.output('dataurlstring');
142176
142184
if (nodejs) {
@@ -142252,6 +142260,7 @@ drawFuncs = { lst: [
142252
142260
{ name: clTCutG, sameas: clTGraph },
142253
142261
{ name: /^RooHist/, sameas: clTGraph },
142254
142262
{ name: /^RooCurve/, sameas: clTGraph },
142263
+ { name: /^RooEllipse/, sameas: clTGraph },
142255
142264
{ name: 'TScatter', icon: 'img_graph', class: () => Promise.resolve().then(function () { return TScatterPainter$1; }).then(h => h.TScatterPainter), opt: ';A' },
142256
142265
{ name: 'RooPlot', icon: 'img_canvas', func: drawRooPlot },
142257
142266
{ name: 'TRatioPlot', icon: 'img_mgraph', class: () => Promise.resolve().then(function () { return TRatioPlotPainter$1; }).then(h => h.TRatioPlotPainter), opt: '' },
@@ -155447,8 +155456,8 @@ class TGaxisPainter extends TAxisPainter {
155447
155456
});
155448
155457
}
155449
155458
155450
- /** @summary Fill TGaxis context */
155451
- fillContextMenu (menu) {
155459
+ /** @summary Fill TGaxis context menu items */
155460
+ fillContextMenuItems (menu) {
155452
155461
menu.addTAxisMenu(EAxisBits, this, this.getObject(), '');
155453
155462
}
155454
155463
@@ -159915,7 +159924,7 @@ class RPadPainter extends RObjectPainter {
159915
159924
159916
159925
const mainid = this.selectDom().attr('id');
159917
159926
159918
- if (!this.isBatchMode() && !this.use_openui && !this.brlayout && mainid && isStr(mainid)) {
159927
+ if (!this.isBatchMode() && !this.use_openui && !this.brlayout && mainid && isStr(mainid) && !getHPainter() ) {
159919
159928
this.brlayout = new BrowserLayout(mainid, null, this);
159920
159929
this.brlayout.create(mainid, true);
159921
159930
this.setDom(this.brlayout.drawing_divid()); // need to create canvas
0 commit comments