Skip to content

Commit

Permalink
Updated Chart.js to 4.4.5 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 16, 2024
1 parent 7dc6650 commit ad74021
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.1.1 (unreleased)

- Updated Chart.js to 4.4.5

## 5.1.0 (2024-08-20)

- Updated Chart.js to 4.4.4
Expand Down
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"rollup": "^3.9.1"
},
"dependencies": {
"chart.js": "4.4.4",
"chart.js": "4.4.5",
"@kurkle/color": "0.3.2",
"chartjs-adapter-date-fns": "3.0.0",
"date-fns": "2.30.0"
Expand Down
4 changes: 2 additions & 2 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import babel from "@rollup/plugin-babel";
import resolve from "@rollup/plugin-node-resolve";

// use same banner as projects
// https://unpkg.com/chart.js@4.4.4
// https://unpkg.com/chart.js@4.4.5
// https://unpkg.com/@kurkle/color@0.3.2
// https://unpkg.com/chartjs-adapter-date-fns@3.0.0
// https://unpkg.com/date-fns@2.30.0 (no banner)
const banner = `/*!
* Chart.js v4.4.4
* Chart.js v4.4.5
* https://www.chartjs.org
* (c) 2024 Chart.js Contributors
* Released under the MIT License
Expand Down
21 changes: 13 additions & 8 deletions vendor/assets/javascripts/Chart.bundle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Chart.js v4.4.4
* Chart.js v4.4.5
* https://www.chartjs.org
* (c) 2024 Chart.js Contributors
* Released under the MIT License
Expand Down Expand Up @@ -222,10 +222,10 @@
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf$1(t)););
return t;
}
function _superPropGet(t, e, r, o) {
var p = _get(_getPrototypeOf$1(1 & o ? t.prototype : t), e, r);
return 2 & o ? function (t) {
return p.apply(r, t);
function _superPropGet(t, e, o, r) {
var p = _get(_getPrototypeOf$1(1 & r ? t.prototype : t), e, o);
return 2 & r && "function" == typeof p ? function (t) {
return p.apply(o, t);
} : p;
}
function _toConsumableArray(r) {
Expand Down Expand Up @@ -4808,6 +4808,7 @@
this._resyncElements(resetNewElements);
if (stackChanged || oldStacked !== meta._stacked) {
updateStacks(this, meta._parsed);
meta._stacked = isStacked(meta.vScale, meta);
}
}
}, {
Expand Down Expand Up @@ -10396,7 +10397,7 @@
}
return false;
}
var version = "4.4.4";
var version = "4.4.5";
var KNOWN_POSITIONS = ['top', 'bottom', 'left', 'right', 'chartArea'];
function positionIsHorizontal(position, axis) {
return position === 'top' || position === 'bottom' || KNOWN_POSITIONS.indexOf(position) === -1 && axis === 'x';
Expand Down Expand Up @@ -12550,6 +12551,9 @@
function containsColorsDefinition(descriptor) {
return descriptor && (descriptor.borderColor || descriptor.backgroundColor);
}
function containsDefaultColorsDefenitions() {
return defaults.borderColor !== 'rgba(0,0,0,0.1)' || defaults.backgroundColor !== 'rgba(0,0,0,0.1)';
}
var plugin_colors = {
id: 'colors',
defaults: {
Expand All @@ -12564,7 +12568,8 @@
datasets = _chart$config.data.datasets,
chartOptions = _chart$config.options;
var elements = chartOptions.elements;
if (!options.forceOverride && (containsColorsDefinitions(datasets) || containsColorsDefinition(chartOptions) || elements && containsColorsDefinitions(elements))) {
var containsColorDefenition = containsColorsDefinitions(datasets) || containsColorsDefinition(chartOptions) || elements && containsColorsDefinitions(elements) || containsDefaultColorsDefenitions();
if (!options.forceOverride && containsColorDefenition) {
return;
}
var colorizer = getColorizer(chart);
Expand Down Expand Up @@ -16289,7 +16294,7 @@
ctx.save();
ctx.strokeStyle = color;
ctx.lineWidth = lineWidth;
ctx.setLineDash(borderOpts.dash);
ctx.setLineDash(borderOpts.dash || []);
ctx.lineDashOffset = borderOpts.dashOffset;
ctx.beginPath();
pathRadiusLine(scale, radius, circular, labelCount);
Expand Down

0 comments on commit ad74021

Please # to comment.