Skip to content

Commit

Permalink
Build with latex fsize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 7, 2024
1 parent c54fad1 commit 5e97ccf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
11 changes: 6 additions & 5 deletions build/jsroot.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// https://root.cern/js/ v7.7.4
// https://root.cern/js/ v7.7.5
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
Expand All @@ -8,11 +8,11 @@ typeof define === 'function' && define.amd ? define(['exports'], factory) :
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
/** @summary version id
* @desc For the JSROOT release the string in format 'major.minor.patch' like '7.0.0' */
const version_id = '7.7.4',
const version_id = '7.7.x',

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

/** @summary version id and date
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
Expand Down Expand Up @@ -8716,7 +8716,7 @@ function parseLatex(node, arg, label, curr) {
elem.attr('fill', curr.color || arg.color || null);

// set font size directly to element to avoid complex control
if (curr.fisze !== curr.font.size)
if (curr.fsize !== curr.font.size)
elem.attr('font-size', Math.round(curr.fsize));

if (curr.font && curr.font.isSymbol)
Expand Down Expand Up @@ -62297,7 +62297,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
5 changes: 5 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# JSROOT changelog

## Changes in 7.7.x
1. Fix - can enable exponent only for log10 axis scale
2. Fix - proper set custom font size in latex


## Changes in 7.7.4
1. Fix - TGraph Y range selection, do not cross 0
2. Fix - correctly handle `#font[id]` in latex
Expand Down
4 changes: 2 additions & 2 deletions modules/core.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/** @summary version id
* @desc For the JSROOT release the string in format 'major.minor.patch' like '7.0.0' */
const version_id = '7.7.4',
const version_id = '7.7.x',

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

/** @summary version id and date
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsroot",
"version": "7.7.4",
"version": "7.7.5",
"engines": {
"node": ">= 0.18.0"
},
Expand Down

0 comments on commit 5e97ccf

Please sign in to comment.