Skip to content

Commit

Permalink
[jsroot] dev 17/10/2024 with #url fix
Browse files Browse the repository at this point in the history
In simple latex <a> was not created
  • Loading branch information
linev committed Oct 17, 2024
1 parent 0a05719 commit 37c5d04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/build/jsroot.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const version_id = 'dev',

/** @summary version date
* @desc Release date in format day/month/year like '14/04/2022' */
version_date = '11/10/2024',
version_date = '17/10/2024',

/** @summary version id and date
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
Expand Down Expand Up @@ -10017,7 +10017,7 @@ function parseLatex(node, arg, label, curr) {
const gg = currG();

// this is indicator that gg element will be the only one, one can use directly main container
if ((nelements === 1) && !label && !curr.x && !curr.y)
if ((nelements === 1) && !label && !curr.x && !curr.y && !is_a)
return gg;

return makeTranslate(gg.append(is_a ? 'svg:a' : 'svg:g'), curr.x, curr.y);
Expand Down
2 changes: 1 addition & 1 deletion js/modules/base/latex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ function parseLatex(node, arg, label, curr) {
const gg = currG();

// this is indicator that gg element will be the only one, one can use directly main container
if ((nelements === 1) && !label && !curr.x && !curr.y)
if ((nelements === 1) && !label && !curr.x && !curr.y && !is_a)
return gg;

return makeTranslate(gg.append(is_a ? 'svg:a' : 'svg:g'), curr.x, curr.y);
Expand Down
2 changes: 1 addition & 1 deletion js/modules/core.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const version_id = 'dev',

/** @summary version date
* @desc Release date in format day/month/year like '14/04/2022' */
version_date = '11/10/2024',
version_date = '17/10/2024',

/** @summary version id and date
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
Expand Down

0 comments on commit 37c5d04

Please sign in to comment.