@@ -12,7 +12,7 @@ const version_id = '7.7.x',
1212
1313/** @summary version date
1414 * @desc Release date in format day/month/year like '14/04/2022' */
15- version_date = '7 /10/2024',
15+ version_date = '28 /10/2024',
1616
1717/** @summary version id and date
1818 * @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -2603,7 +2603,7 @@ function compareValue(compare) {
26032603}
26042604
26052605function chord() {
2606- return chord$1(false, false );
2606+ return chord$1(false);
26072607}
26082608
26092609function chord$1(directed, transpose) {
@@ -2620,9 +2620,7 @@ function chord$1(directed, transpose) {
26202620 groups = new Array(n),
26212621 k = 0, dx;
26222622
2623- matrix = Float64Array.from({length: n * n}, transpose
2624- ? (_, i) => matrix[i % n][i / n | 0]
2625- : (_, i) => matrix[i / n | 0][i % n]);
2623+ matrix = Float64Array.from({length: n * n}, (_, i) => matrix[i / n | 0][i % n]);
26262624
26272625 // Compute the scaling factor from value to angle in [0, 2pi].
26282626 for (let i = 0; i < n; ++i) {
@@ -2639,20 +2637,7 @@ function chord$1(directed, transpose) {
26392637 if (sortGroups) groupIndex.sort((a, b) => sortGroups(groupSums[a], groupSums[b]));
26402638 for (const i of groupIndex) {
26412639 const x0 = x;
2642- if (directed) {
2643- const subgroupIndex = range$1(~n + 1, n).filter(j => j < 0 ? matrix[~j * n + i] : matrix[i * n + j]);
2644- if (sortSubgroups) subgroupIndex.sort((a, b) => sortSubgroups(a < 0 ? -matrix[~a * n + i] : matrix[i * n + a], b < 0 ? -matrix[~b * n + i] : matrix[i * n + b]));
2645- for (const j of subgroupIndex) {
2646- if (j < 0) {
2647- const chord = chords[~j * n + i] || (chords[~j * n + i] = {source: null, target: null});
2648- chord.target = {index: i, startAngle: x, endAngle: x += matrix[~j * n + i] * k, value: matrix[~j * n + i]};
2649- } else {
2650- const chord = chords[i * n + j] || (chords[i * n + j] = {source: null, target: null});
2651- chord.source = {index: i, startAngle: x, endAngle: x += matrix[i * n + j] * k, value: matrix[i * n + j]};
2652- }
2653- }
2654- groups[i] = {index: i, startAngle: x0, endAngle: x, value: groupSums[i]};
2655- } else {
2640+ {
26562641 const subgroupIndex = range$1(0, n).filter(j => matrix[i * n + j] || matrix[j * n + i]);
26572642 if (sortSubgroups) subgroupIndex.sort((a, b) => sortSubgroups(matrix[i * n + a], matrix[i * n + b]));
26582643 for (const j of subgroupIndex) {
@@ -2922,12 +2907,7 @@ function ribbon(headRadius) {
29222907 context.moveTo(sr * cos$1(sa0), sr * sin$1(sa0));
29232908 context.arc(0, 0, sr, sa0, sa1);
29242909 if (sa0 !== ta0 || sa1 !== ta1) {
2925- if (headRadius) {
2926- var hr = +headRadius.apply(this, arguments), tr2 = tr - hr, ta2 = (ta0 + ta1) / 2;
2927- context.quadraticCurveTo(0, 0, tr2 * cos$1(ta0), tr2 * sin$1(ta0));
2928- context.lineTo(tr * cos$1(ta2), tr * sin$1(ta2));
2929- context.lineTo(tr2 * cos$1(ta1), tr2 * sin$1(ta1));
2930- } else {
2910+ {
29312911 context.quadraticCurveTo(0, 0, tr * cos$1(ta0), tr * sin$1(ta0));
29322912 context.arc(0, 0, tr, ta0, ta1);
29332913 }
@@ -2938,10 +2918,6 @@ function ribbon(headRadius) {
29382918 if (buffer) return context = null, buffer + "" || null;
29392919 }
29402920
2941- if (headRadius) ribbon.headRadius = function(_) {
2942- return arguments.length ? (headRadius = typeof _ === "function" ? _ : constant$4(+_), ribbon) : headRadius;
2943- };
2944-
29452921 ribbon.radius = function(_) {
29462922 return arguments.length ? (sourceRadius = targetRadius = typeof _ === "function" ? _ : constant$4(+_), ribbon) : sourceRadius;
29472923 };
@@ -8716,7 +8692,7 @@ function parseLatex(node, arg, label, curr) {
87168692 elem.attr('fill', curr.color || arg.color || null);
87178693
87188694 // set font size directly to element to avoid complex control
8719- if (curr.fsize !== curr.font.size )
8695+ if (curr.fsize)
87208696 elem.attr('font-size', Math.round(curr.fsize));
87218697
87228698 if (curr.font && curr.font.isSymbol)
@@ -9829,7 +9805,7 @@ function createDefaultPalette(grayscale) {
98299805 if (t < 2 / 3) return p + (q - p) * (2/3 - t) * 6;
98309806 return p;
98319807 }, HLStoRGB = (h, l, s) => {
9832- const q = (l < 0.5) ? l * (1 + s) : l + s - l * s,
9808+ const q = l + s - l * s,
98339809 p = 2 * l - q,
98349810 r = hue2rgb(p, q, h + 1/3),
98359811 g = hue2rgb(p, q, h),
@@ -56041,13 +56017,6 @@ function getMaterialArgs(color$1, args) {
5604156017}
5604256018
5604356019function createSVGRenderer(as_is, precision, doc) {
56044- if (as_is) {
56045- if (doc !== undefined)
56046- globalThis.docuemnt = doc;
56047- const rndr = new SVGRenderer();
56048- rndr.setPrecision(precision);
56049- return rndr;
56050- }
5605156020
5605256021 const excl_style1 = ';stroke-opacity:1;stroke-width:1;stroke-linecap:round',
5605356022 excl_style2 = ';fill-opacity:1',
@@ -56451,7 +56420,7 @@ async function createRender3D(width, height, render3d, args) {
5645156420
5645256421 if (render3d === rc.SVG) {
5645356422 // SVG rendering
56454- const r = createSVGRenderer(false, 0, doc );
56423+ const r = createSVGRenderer(false, 0);
5645556424 r.jsroot_dom = doc.createElementNS('http://www.w3.org/2000/svg', 'svg');
5645656425 promise = Promise.resolve(r);
5645756426 } else if (isNodeJs()) {
@@ -61713,14 +61682,14 @@ class StandaloneMenu extends JSRootMenu {
6171361682 * menu.addchk(flag, 'Checked', arg => console.log(`Now flag is ${arg}`));
6171461683 * menu.show(); */
6171561684function createMenu(evnt, handler, menuname) {
61716- const menu = new StandaloneMenu(handler, menuname || 'root_ctx_menu', evnt);
61685+ const menu = new StandaloneMenu(handler, 'root_ctx_menu', evnt);
6171761686 return menu.load();
6171861687}
6171961688
6172061689/** @summary Close previousely created and shown JSROOT menu
6172161690 * @param {string} [menuname] - optional menu name */
6172261691function closeMenu(menuname) {
61723- const element = getDocument().getElementById(menuname || 'root_ctx_menu');
61692+ const element = getDocument().getElementById('root_ctx_menu');
6172461693 element?.remove();
6172561694 return !!element;
6172661695}
@@ -79041,7 +79010,7 @@ function render3D(tmout) {
7904179010 if (tmout === -1111) {
7904279011 // special handling for direct SVG renderer
7904379012 const doc = getDocument(),
79044- rrr = createSVGRenderer(false, 0, doc );
79013+ rrr = createSVGRenderer(false, 0);
7904579014 rrr.setSize(this.scene_width, this.scene_height);
7904679015 rrr.render(this.scene, this.camera);
7904779016 if (rrr.makeOuterHTML) {
@@ -92194,7 +92163,7 @@ class TGeoPainter extends ObjectPainter {
9219492163 ensureBloom(on) {
9219592164 if (on === undefined) {
9219692165 if (this.ctrl.highlight_bloom === 0)
92197- this.ctrl.highlight_bloom = this._webgl;
92166+ this.ctrl.highlight_bloom = this._webgl && ((typeof navigator === 'undefined') || !/android/i.test(navigator.userAgent)) ;
9219892167
9219992168 on = this.ctrl.highlight_bloom && this.ctrl.getMaterialCfg()?.emissive;
9220092169 }
@@ -120918,7 +120887,7 @@ class Sha256 {
120918120887function sha256(message, as_hex) {
120919120888 const m = new Sha256(false);
120920120889 m.update(message);
120921- return as_hex ? m.hex() : m.digest();
120890+ return m.digest();
120922120891}
120923120892
120924120893function sha256_2(message, arr, as_hex) {
0 commit comments