Skip to content

Commit

Permalink
v12.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Dec 4, 2024
1 parent dc1eac5 commit 5a1ccc1
Show file tree
Hide file tree
Showing 305 changed files with 1,292 additions and 1,232 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "highcharts",
"version": "12.0.1",
"version": "12.0.2",
"main": "highcharts.js",
"license": "https://www.highcharts.com/license",
"types": "highcharts.d.ts"
Expand Down
2 changes: 1 addition & 1 deletion es-modules/Core/Axis/Axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ class Axis {
* Pixel position of the value on the chart or axis.
*/
toPixels(value, paneCoordinates) {
return this.translate(this.chart.time.parse(value) ?? NaN, false, !this.horiz, void 0, true) + (paneCoordinates ? 0 : this.pos);
return this.translate(this.chart?.time.parse(value) ?? NaN, false, !this.horiz, void 0, true) + (paneCoordinates ? 0 : this.pos);
}
/**
* Translate a pixel position along the axis to a value in terms of axis
Expand Down
10 changes: 8 additions & 2 deletions es-modules/Core/Renderer/SVG/SVGElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import A from '../../Animation/AnimationUtilities.js';
const { animate, animObject, stop } = A;
import Color from '../../Color/Color.js';
import H from '../../Globals.js';
const { deg2rad, doc, svg, SVG_NS, win } = H;
const { deg2rad, doc, svg, SVG_NS, win, isFirefox } = H;
import U from '../../Utilities.js';
const { addEvent, attr, createElement, crisp, css, defined, erase, extend, fireEvent, getAlignFactor, isArray, isFunction, isObject, isString, merge, objectEach, pick, pInt, pushUnique, replaceNested, syncTimeout, uniqueKey } = U;
const { addEvent, attr, createElement, crisp, css, defined, erase, extend, fireEvent, getAlignFactor, isArray, isFunction, isNumber, isObject, isString, merge, objectEach, pick, pInt, pushUnique, replaceNested, syncTimeout, uniqueKey } = U;
/* *
*
* Class
Expand Down Expand Up @@ -730,6 +730,12 @@ class SVGElement {
if (textWidth && (!svg && this.renderer.forExport)) {
delete styles.width;
}
const fontSize = isFirefox && styles.fontSize || null;
// Necessary in firefox to be able to set font-size, #22124
if (fontSize && (isNumber(fontSize) ||
/^\d+$/.test(fontSize))) {
styles.fontSize += 'px';
}
const stylesToApply = merge(styles);
if (elem.namespaceURI === this.SVG_NS) {
// These CSS properties are interpreted internally by the SVG
Expand Down
2 changes: 1 addition & 1 deletion es-modules/Core/Renderer/SVG/TextBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ class TextBuilder {
// is "5" and end is 1.
try {
lengths[end] = startAt +
parentNode.getSubStringLength(0, words && !startAt ? end + 1 : end);
parentNode.getSubStringLength(0, words ? end + 1 : end);
}
catch (e) {
'';
Expand Down
3 changes: 2 additions & 1 deletion es-modules/Core/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ class Tooltip {
if (this.outside) {
label.attr({
x: clamp(label.x || 0, 0, this.getPlayingField().width -
(label.width || 0))
(label.width || 0) -
1)
});
}
if (!styledMode) {
Expand Down
Loading

0 comments on commit 5a1ccc1

Please sign in to comment.