Skip to content

Commit a166276

Browse files
committed
Build with mathjax upgrade
1 parent 92e747c commit a166276

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

build/jsroot.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const version_id = 'dev',
1212

1313
/** @summary version date
1414
* @desc Release date in format day/month/year like '14/04/2022' */
15-
version_date = '5/09/2025',
15+
version_date = '8/09/2025',
1616

1717
/** @summary version id and date
1818
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -10843,8 +10843,7 @@ async function loadMathjax() {
1084310843
displayIndent: '0', // default for indentshift when set to 'auto'
1084410844
fontCache: 'local', // or 'global' or 'none'
1084510845
localID: null, // ID to use for local font cache (for single equation processing)
10846-
internalSpeechTitles: true, // insert <title> tags with speech content
10847-
titleID: 0 // initial id number to use for aria-labeledby titles
10846+
blacker: 3 // the stroke-width to use for SVG character paths
1084810847
};
1084910848

1085010849
if (!isNodeJs()) {
@@ -10869,12 +10868,12 @@ async function loadMathjax() {
1086910868
}
1087010869
};
1087110870

10872-
let mj_dir = '../mathjax/3.2.0';
10871+
let mj_dir = '../mathjax/4.0.0';
1087310872
if (browser.webwindow && exports.source_dir.indexOf('https://root.cern/js') < 0 && exports.source_dir.indexOf('https://jsroot.gsi.de') < 0)
1087410873
mj_dir = 'mathjax';
1087510874

10876-
return loadScript(exports.source_dir + mj_dir + '/es5/tex-svg.js')
10877-
.catch(() => loadScript('https://cdn.jsdelivr.net/npm/mathjax@3.2.0/es5/tex-svg.js'))
10875+
return loadScript(exports.source_dir + mj_dir + '/tex-svg.js')
10876+
.catch(() => loadScript('https://cdn.jsdelivr.net/npm/mathjax@4/tex-svg.js'))
1087810877
.then(() => promise);
1087910878
}
1088010879

@@ -11293,7 +11292,7 @@ function applyAttributesToMathJax(painter, mj_node, svg, arg, font_size, svg_fac
1129311292
* @private */
1129411293
async function produceMathjax(painter, mj_node, arg) {
1129511294
const mtext = translateMath(arg.text, arg.latex, arg.color, painter),
11296-
options = { em: arg.font.size, ex: arg.font.size/2, family: arg.font.name, scale: 1, containerWidth: -1, lineWidth: 100000 };
11295+
options = { em: arg.font.size, ex: arg.font.size/2, family: arg.font.name, scale: 1, containerWidth: -1 };
1129711296

1129811297
return loadMathjax()
1129911298
.then(mj => mj.tex2svgPromise(mtext, options))

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1. Support reading TBranch from old ROOT files with custom streamers
1313
1. Upgrade three.js r174 -> r179
1414
1. Upgrade lil-gui.mjs 0.19.2 -> 0.20.0
15+
1. Upgrade mathjax 3.2.2 -> 4.0.0
1516
1. Use ES6 modules to implement geoworker, enable node.js usage
1617
1. Remove experimental RHist classes, deprecated in ROOT 6.38
1718
1. Internal - ws members are private, new methods has to be used

modules/core.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const version_id = 'dev',
44

55
/** @summary version date
66
* @desc Release date in format day/month/year like '14/04/2022' */
7-
version_date = '5/09/2025',
7+
version_date = '8/09/2025',
88

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

0 commit comments

Comments
 (0)