Skip to content

Commit

Permalink
Build with svg2pdf update
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 1, 2024
1 parent 4f1f2be commit e3c6f9e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build/jsroot.js
Original file line number Diff line number Diff line change
Expand Up @@ -60373,7 +60373,7 @@ function detectRightButton(event) {

/** @summary Add move handlers for drawn element
* @private */
function addMoveHandler(painter, enabled = true) {
function addMoveHandler(painter, enabled = true, hover_handler = false) {
if (!settings.MoveResize || painter.isBatchMode() || !painter.draw_g) return;

if (painter.getPadPainter()?.isEditable() === false)
Expand Down Expand Up @@ -60431,9 +60431,13 @@ function addMoveHandler(painter, enabled = true) {
}.bind(painter));

painter.draw_g
.style('cursor', 'move')
.style('cursor', hover_handler ? 'pointer' : 'move')
.property('assigned_move', true)
.call(drag_move);

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 @@ -141360,7 +141364,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], ph - scale * box[1], scale * box[2], scale * box[3], { url: href });
context.pdf.link(scale * (box[0] + context.transform.tx), ph - scale * (box[1] + context.transform.ty), scale * box[2], scale * box[3], { url: href });
}
return [2 /*return*/];
}
Expand Down Expand Up @@ -147112,7 +147116,7 @@ async function drawText$1() {
}

if (annot !== '3d')
addMoveHandler(this);
addMoveHandler(this, true, is_url);
else {
fp.processRender3D = true;
this.handleRender3D = () => {
Expand Down

0 comments on commit e3c6f9e

Please sign in to comment.