Skip to content

Commit 8d1c46f

Browse files
committed
build - 3.44.0
1 parent c705402 commit 8d1c46f

File tree

5 files changed

+56
-41
lines changed

5 files changed

+56
-41
lines changed

dist/apexcharts.amd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apexcharts.common.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apexcharts.esm.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apexcharts.js

+43-28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* ApexCharts v3.43.2-0
2+
* ApexCharts v3.44.0
33
* (c) 2018-2023 ApexCharts
44
* Released under the MIT License.
55
*/
@@ -7172,7 +7172,7 @@
71727172
opts.pSize = pSize;
71737173
}
71747174

7175-
if (p.x[q] < 0 || p.x[q] > w.globals.gridWidth || p.y[q] < 0 || p.y[q] > w.globals.gridHeight) {
7175+
if (p.x[q] < 0 || p.x[q] > w.globals.gridWidth || p.y[q] < -w.globals.markers.largestSize || p.y[q] > w.globals.gridHeight + w.globals.markers.largestSize) {
71767176
opts.pSize = 0;
71777177
}
71787178

@@ -10183,7 +10183,7 @@
1018310183
}
1018410184
}
1018510185

10186-
gl.dom.elGridRect = graphics.drawRect(-strokeSize / 2 - barWidthLeft - 2, -strokeSize / 2, gl.gridWidth + strokeSize + barWidthRight + barWidthLeft + 4, gl.gridHeight + strokeSize, 0, '#fff');
10186+
gl.dom.elGridRect = graphics.drawRect(-strokeSize - barWidthLeft - 2, -strokeSize * 2 - 2, gl.gridWidth + strokeSize + barWidthRight + barWidthLeft + 4, gl.gridHeight + strokeSize * 4 + 4, 0, '#fff');
1018710187
var markerSize = w.globals.markers.largestSize + 1;
1018810188
gl.dom.elGridRectMarker = graphics.drawRect(-markerSize * 2, -markerSize * 2, gl.gridWidth + markerSize * 4, gl.gridHeight + markerSize * 4, 0, '#fff');
1018910189
gl.dom.elGridRectMask.appendChild(gl.dom.elGridRect.node);
@@ -13583,14 +13583,19 @@
1358313583
var gl = w.globals;
1358413584
this.lgRect = this.dimHelpers.getLegendsRect();
1358513585

13586-
if (this.isSparkline && (w.config.markers.discrete.length > 0 || w.config.markers.size > 0)) {
13587-
Object.entries(this.gridPad).forEach(function (_ref) {
13588-
var _ref2 = _slicedToArray(_ref, 2),
13589-
k = _ref2[0],
13590-
v = _ref2[1];
13586+
if (this.isSparkline) {
13587+
if (w.config.markers.discrete.length > 0 || w.config.markers.size > 0) {
13588+
Object.entries(this.gridPad).forEach(function (_ref) {
13589+
var _ref2 = _slicedToArray(_ref, 2),
13590+
k = _ref2[0],
13591+
v = _ref2[1];
1359113592

13592-
_this.gridPad[k] = Math.max(v, _this.w.globals.markers.largestSize / 1.5);
13593-
});
13593+
_this.gridPad[k] = Math.max(v, _this.w.globals.markers.largestSize / 1.5);
13594+
});
13595+
}
13596+
13597+
this.gridPad.top = Math.max(w.config.stroke.width / 2, this.gridPad.top);
13598+
this.gridPad.bottom = Math.max(w.config.stroke.width / 2, this.gridPad.bottom);
1359413599
}
1359513600

1359613601
if (gl.axisCharts) {
@@ -23630,15 +23635,24 @@
2363023635

2363123636
for (var i = 0; i < points.length; i++) {
2363223637
var point = points[i];
23638+
var prevPoint = points[i - 1];
2363323639
var n = point.length;
23640+
var pn = prevPoint === null || prevPoint === void 0 ? void 0 : prevPoint.length;
2363423641

23635-
if (n > 4) {
23636-
p += "C".concat(point[0], ", ").concat(point[1]);
23637-
p += ", ".concat(point[2], ", ").concat(point[3]);
23638-
p += ", ".concat(point[4], ", ").concat(point[5]);
23639-
} else if (n > 2) {
23640-
p += "S".concat(point[0], ", ").concat(point[1]);
23642+
if (i > 1 && Math.abs(point[n - 2] - prevPoint[pn - 2]) < 30) {
23643+
// fallback to quadratic curve if the x distance is too small
23644+
// or if the curve goes backward too much
23645+
p += "Q".concat(point[0], ", ").concat(point[1]);
2364123646
p += ", ".concat(point[2], ", ").concat(point[3]);
23647+
} else {
23648+
if (n > 4) {
23649+
p += "C".concat(point[0], ", ").concat(point[1]);
23650+
p += ", ".concat(point[2], ", ").concat(point[3]);
23651+
p += ", ".concat(point[4], ", ").concat(point[5]);
23652+
} else if (n > 2) {
23653+
p += "S".concat(point[0], ", ").concat(point[1]);
23654+
p += ", ".concat(point[2], ", ").concat(point[3]);
23655+
}
2364223656
}
2364323657
}
2364423658

@@ -24387,13 +24401,13 @@
2438724401

2438824402
if (curve === 'smooth') {
2438924403
var shouldRenderMonotone = type === 'rangeArea' ? xArrj.length === w.globals.dataPoints : j === series[i].length - 2;
24404+
var smoothInputs = xArrj.map(function (_, i) {
24405+
return [xArrj[i], yArrj[i]];
24406+
}).filter(function (_) {
24407+
return _[1] !== null;
24408+
});
2439024409

24391-
if (shouldRenderMonotone) {
24392-
var smoothInputs = xArrj.map(function (_, i) {
24393-
return [xArrj[i], yArrj[i]];
24394-
}).filter(function (_) {
24395-
return _[1] !== null;
24396-
});
24410+
if (shouldRenderMonotone && smoothInputs.length > 1) {
2439724411
var points = spline.points(smoothInputs);
2439824412
linePath += svgPath(points);
2439924413

@@ -26005,7 +26019,7 @@
2600526019
'xmlns:data': 'ApexChartsNS',
2600626020
transform: "translate(".concat(cnf.chart.offsetX, ", ").concat(cnf.chart.offsetY, ")")
2600726021
});
26008-
gl.dom.Paper.node.style.background = cnf.theme.mode === 'dark' && cnf.chart.background === 'transparent' ? 'rgba(0, 0, 0, 0.8)' : cnf.chart.background;
26022+
gl.dom.Paper.node.style.background = cnf.theme.mode === 'dark' && !cnf.chart.background ? 'rgba(0, 0, 0, 0.8)' : cnf.chart.background;
2600926023
this.setSVGDimensions(); // append foreignElement (legend's parent)
2601026024
// legend is kept in foreignElement to be included while exporting
2601126025
// removing foreignElement and creating legend through HTML will not render legend in export
@@ -26667,11 +26681,12 @@
2666726681
var w = this.w;
2666826682
var ser = w.config.series[i];
2666926683
return _objectSpread2(_objectSpread2({}, w.config.series[i]), {}, {
26670-
name: s.name ? s.name : ser && ser.name,
26671-
color: s.color ? s.color : ser && ser.color,
26672-
type: s.type ? s.type : ser && ser.type,
26673-
group: s.group ? s.group : ser && ser.group,
26674-
data: s.data ? s.data : ser && ser.data
26684+
name: s.name ? s.name : ser === null || ser === void 0 ? void 0 : ser.name,
26685+
color: s.color ? s.color : ser === null || ser === void 0 ? void 0 : ser.color,
26686+
type: s.type ? s.type : ser === null || ser === void 0 ? void 0 : ser.type,
26687+
group: s.group ? s.group : ser === null || ser === void 0 ? void 0 : ser.group,
26688+
data: s.data ? s.data : ser === null || ser === void 0 ? void 0 : ser.data,
26689+
zIndex: typeof s.zIndex !== 'undefined' ? s.zIndex : i
2667526690
});
2667626691
}
2667726692
}, {

dist/apexcharts.min.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)