Skip to content

Commit

Permalink
Build after elsin fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 1, 2024
1 parent 3bb134c commit 19019b8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
25 changes: 15 additions & 10 deletions build/jsroot.js
Original file line number Diff line number Diff line change
Expand Up @@ -60435,9 +60435,10 @@ function addMoveHandler(painter, enabled = true, hover_handler = false) {
.property('assigned_move', true)
.call(drag_move);

if (hover_handler)
if (hover_handler) {
painter.draw_g.on('mouseenter', () => painter.draw_g.style('text-decoration', 'underline'))
.on('mouseleave', () => painter.draw_g.style('text-decoration', null));
}
}

/** @summary Inject style
Expand Down Expand Up @@ -62835,7 +62836,8 @@ class TAxisPainter extends ObjectPainter {
this.nticks2 = 1;
}
this.noexp = axis?.TestBit(EAxisBits.kNoExponent);
if ((this.scale_max < 300) && (this.scale_min > 0.3) && !this.noexp_changed) this.noexp = true;
if ((this.scale_max < 300) && (this.scale_min > 0.3) && !this.noexp_changed && (this.log === 1))
this.noexp = true;
this.moreloglabels = axis?.TestBit(EAxisBits.kMoreLogLabels);
this.format = this.formatLog;
} else if (this.kind === kAxisLabels) {
Expand Down Expand Up @@ -65324,6 +65326,7 @@ class TFramePainter extends ObjectPainter {
this.ymin = this.ymax = 0; // no scale specified, wait for objects drawing
this.ranges_set = false;
this.axes_drawn = false;
this.axes2_drawn = false;
this.keys_handler = null;
this.projection = 0; // different projections
}
Expand Down Expand Up @@ -65861,7 +65864,7 @@ class TFramePainter extends ObjectPainter {
/** @summary Identify if requested axes are drawn
* @desc Checks if x/y axes are drawn. Also if second side is already there */
hasDrawnAxes(second_x, second_y) {
return !second_x && !second_y ? this.axes_drawn : false;
return !second_x && !second_y ? this.axes_drawn : this.axes2_drawn;
}

/** @summary draw axes,
Expand Down Expand Up @@ -65982,7 +65985,10 @@ class TFramePainter extends ObjectPainter {
draw_vertical.invert_side ? 0 : this._frame_x, false);
}

return Promise.all([pr1, pr2]);
return Promise.all([pr1, pr2]).then(() => {
this.axes2_drawn = true;
return true;
});
}


Expand Down Expand Up @@ -66077,7 +66083,7 @@ class TFramePainter extends ObjectPainter {
this.y2_handle?.removeG();

this.draw_g?.selectChild('.axis_layer').selectAll('*').remove();
this.axes_drawn = false;
this.axes_drawn = this.axes2_drawn = false;
}

/** @summary Returns frame rectangle plus extra info for hint display */
Expand Down Expand Up @@ -66204,7 +66210,7 @@ class TFramePainter extends ObjectPainter {
main_svg = this.draw_g.selectChild('.main_layer');
}

this.axes_drawn = false;
this.axes_drawn = this.axes2_drawn = false;

this.draw_g.attr('transform', trans);

Expand Down Expand Up @@ -137332,9 +137338,8 @@ function getBoundingBoxByChildren(context, svgnode) {
if ((nodeBox[0] === 0) && (nodeBox[1] === 0) && (nodeBox[2] === 0) && (nodeBox[3] === 0))
return;
var transform = child.computeNodeTransform(context);
// TODO: check and apply rotation matrix if any
nodeBox[0] += transform.tx;
nodeBox[1] += transform.ty;
nodeBox[0] = nodeBox[0] * transform.sx + transform.tx;
nodeBox[1] = nodeBox[1] * transform.sy + transform.ty;
if (boundingBox.length === 0)
boundingBox = nodeBox;
else
Expand Down Expand Up @@ -141364,7 +141369,7 @@ var GroupA = /** @class */ (function (_super) {
box = this.getBoundingBox(context);
scale = context.pdf.internal.scaleFactor;
ph = context.pdf.internal.pageSize.getHeight();
context.pdf.link(scale * (box[0] + context.transform.tx), ph - scale * (box[1] + context.transform.ty), scale * box[2], scale * box[3], { url: href });
context.pdf.link(scale * (box[0] * context.transform.sx + context.transform.tx), ph - scale * (box[1] * context.transform.sy + context.transform.ty), scale * box[2], scale * box[3], { url: href });
}
return [2 /*return*/];
}
Expand Down
3 changes: 2 additions & 1 deletion modules/gui/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,10 @@ function addMoveHandler(painter, enabled = true, hover_handler = false) {
.property('assigned_move', true)
.call(drag_move);

if (hover_handler)
if (hover_handler) {
painter.draw_g.on('mouseenter', () => painter.draw_g.style('text-decoration', 'underline'))
.on('mouseleave', () => painter.draw_g.style('text-decoration', null));
}
}

/** @summary Inject style
Expand Down

0 comments on commit 19019b8

Please sign in to comment.