@@ -71565,7 +71565,7 @@ class TGeoPainter extends ObjectPainter {
7156571565
7156671566 /** @summary add transformation control */
7156771567 addTransformControl() {
71568- if (this._tcontrols) return;
71568+ if (this._tcontrols || !this._webgl || isBatchMode() ) return;
7156971569
7157071570 if (!this.ctrl._debug && !this.ctrl._grid) return;
7157171571
@@ -102930,20 +102930,16 @@ class RH1Painter$2 extends RHistPainter {
102930102930 }
102931102931 }
102932102932
102933- let close_path = '',
102934- fill_for_interactive = !isBatchMode() && this.fillatt.empty() && options.Hist && settings.Tooltip && !draw_markers && !show_line;
102935- if (!this.fillatt.empty() || fill_for_interactive) {
102936- let h0 = height + 3;
102937- if (fill_for_interactive) {
102938- let gry0 = Math.round(funcs.gry(0));
102939- if (gry0 <= 0)
102940- h0 = -3;
102941- else if (gry0 < height)
102942- h0 = gry0;
102943- }
102944- close_path = `L${currx},${h0}H${startx}Z`;
102945- if (res) res += close_path;
102933+ let fill_for_interactive = !isBatchMode() && this.fillatt.empty() && options.Hist && settings.Tooltip && !draw_markers && !show_line,
102934+ h0 = height + 3;
102935+ if (!fill_for_interactive) {
102936+ let gry0 = Math.round(funcs.gry(0));
102937+ if (gry0 <= 0)
102938+ h0 = -3;
102939+ else if (gry0 < height)
102940+ h0 = gry0;
102946102941 }
102942+ let close_path = `L${currx},${h0}H${startx}Z`;
102947102943
102948102944 if (draw_markers || show_line) {
102949102945 if (path_fill)
@@ -102963,9 +102959,9 @@ class RH1Painter$2 extends RHistPainter {
102963102959 .style('pointer-events', isBatchMode() ? null : 'visibleFill');
102964102960
102965102961 if (path_line) {
102966- if (!this.fillatt.empty())
102962+ if (!this.fillatt.empty() && !options.Hist )
102967102963 this.draw_g.append('svg:path')
102968- .attr('d', options.Fill ? ( path_line + close_path) : res )
102964+ .attr('d', path_line + close_path)
102969102965 .call(this.fillatt.func);
102970102966
102971102967 this.draw_g.append('svg:path')
@@ -102981,7 +102977,7 @@ class RH1Painter$2 extends RHistPainter {
102981102977
102982102978 } else if (res && options.Hist) {
102983102979 this.draw_g.append('svg:path')
102984- .attr('d', res)
102980+ .attr('d', res + ((!this.fillatt.empty() || fill_for_interactive) ? close_path : '') )
102985102981 .style('stroke-linejoin','miter')
102986102982 .call(this.lineatt.func)
102987102983 .call(this.fillatt.func);
0 commit comments