Skip to content

Commit f3f380d

Browse files
committed
build - 5.3.6
1 parent 3d8d08e commit f3f380d

File tree

6 files changed

+138
-13
lines changed

6 files changed

+138
-13
lines changed

dist/apexcharts.amd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apexcharts.common.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apexcharts.esm.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apexcharts.js

Lines changed: 68 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* ApexCharts v5.3.5
2+
* ApexCharts v5.3.6
33
* (c) 2018-2025 ApexCharts
44
*/
55
(function (global, factory) {
@@ -451,10 +451,56 @@
451451
}
452452
return true;
453453
}
454+
455+
/**
456+
* detects if an element is inside a Shadow DOM
457+
*/
458+
}, {
459+
key: "isInShadowDOM",
460+
value: function isInShadowDOM(el) {
461+
if (!el || !el.getRootNode) {
462+
return false;
463+
}
464+
var rootNode = el.getRootNode();
465+
466+
// check if root node is a ShadowRoot
467+
return rootNode && rootNode !== document && Utils.is('ShadowRoot', rootNode);
468+
}
469+
470+
/**
471+
* gets the shadow root host element
472+
*/
473+
}, {
474+
key: "getShadowRootHost",
475+
value: function getShadowRootHost(el) {
476+
if (!Utils.isInShadowDOM(el)) {
477+
return null;
478+
}
479+
var rootNode = el.getRootNode();
480+
return rootNode.host || null;
481+
}
454482
}, {
455483
key: "getDimensions",
456484
value: function getDimensions(el) {
457-
var computedStyle = getComputedStyle(el, null);
485+
if (!el) return [0, 0];
486+
487+
// check if in shadow DOM
488+
var rootNode = el.getRootNode && el.getRootNode();
489+
var inShadowDOM = rootNode && rootNode !== document;
490+
if (inShadowDOM && rootNode.host) {
491+
// in shadow DOM: use host container dimensions
492+
var hostRect = rootNode.host.getBoundingClientRect();
493+
return [hostRect.width, hostRect.height];
494+
}
495+
496+
// regular DOM
497+
var computedStyle;
498+
try {
499+
computedStyle = getComputedStyle(el, null);
500+
} catch (e) {
501+
// fallback to clientWidth/Height
502+
return [el.clientWidth || 0, el.clientHeight || 0];
503+
}
458504
var elementHeight = el.clientHeight;
459505
var elementWidth = el.clientWidth;
460506
elementHeight -= parseFloat(computedStyle.paddingTop) + parseFloat(computedStyle.paddingBottom);
@@ -464,6 +510,18 @@
464510
}, {
465511
key: "getBoundingClientRect",
466512
value: function getBoundingClientRect(element) {
513+
if (!element) {
514+
return {
515+
top: 0,
516+
right: 0,
517+
bottom: 0,
518+
left: 0,
519+
width: 0,
520+
height: 0,
521+
x: 0,
522+
y: 0
523+
};
524+
}
467525
var rect = element.getBoundingClientRect();
468526
return {
469527
top: rect.top,
@@ -629,15 +687,19 @@
629687
key: "getGCD",
630688
value: function getGCD(a, b) {
631689
var p = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 7;
632-
var big = Math.pow(10, p - Math.floor(Math.log10(Math.max(a, b))));
633-
a = Math.round(Math.abs(a) * big);
634-
b = Math.round(Math.abs(b) * big);
690+
var factor = Math.pow(10, p - Math.floor(Math.log10(Math.max(a, b))));
691+
if (factor > 1) {
692+
a = Math.round(Math.abs(a) * factor);
693+
b = Math.round(Math.abs(b) * factor);
694+
} else {
695+
factor = 1;
696+
}
635697
while (b) {
636698
var t = b;
637699
b = a % b;
638700
a = t;
639701
}
640-
return a / big;
702+
return a / factor;
641703
}
642704
}, {
643705
key: "getPrimeFactors",

dist/apexcharts.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/locales/gl.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"name": "gl",
3+
"options": {
4+
"months": [
5+
"Xaneiro",
6+
"Febreiro",
7+
"Marzo",
8+
"Abril",
9+
"Maio",
10+
"Xuño",
11+
"Xullo",
12+
"Agosto",
13+
"Setembro",
14+
"Outubro",
15+
"Novembro",
16+
"Decembro"
17+
],
18+
"shortMonths": [
19+
"Xan",
20+
"Feb",
21+
"Mar",
22+
"Abr",
23+
"Mai",
24+
"Xuñ",
25+
"Xul",
26+
"Ago",
27+
"Set",
28+
"Out",
29+
"Nov",
30+
"Dec"
31+
],
32+
"days": [
33+
"Domingo",
34+
"Luns",
35+
"Martes",
36+
"Mércores",
37+
"Xoves",
38+
"Venres",
39+
"Sábado"
40+
],
41+
"shortDays": [
42+
"Dom",
43+
"Lun",
44+
"Mar",
45+
"Mér",
46+
"Xov",
47+
"Ven",
48+
"Sáb"
49+
],
50+
"toolbar": {
51+
"exportToSVG": "Descargar SVG",
52+
"exportToPNG": "Descargar PNG",
53+
"exportToCSV": "Descargar CSV",
54+
"menu": "Menu",
55+
"selection": "Seleccionar",
56+
"selectionZoom": "Seleccionar Zoom",
57+
"zoomIn": "Aumentar",
58+
"zoomOut": "Disminuír",
59+
"pan": "Navegación",
60+
"reset": "Reiniciar Zoom"
61+
}
62+
}
63+
}

0 commit comments

Comments
 (0)