mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
also npm update
This commit is contained in:
parent
b6d47e94c8
commit
65f15c7e46
2882 changed files with 382239 additions and 10785 deletions
20
node_modules/chart.js/dist/chart.cjs
generated
vendored
20
node_modules/chart.js/dist/chart.cjs
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Chart.js v4.3.3
|
||||
* Chart.js v4.4.0
|
||||
* https://www.chartjs.org
|
||||
* (c) 2023 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
|
@ -5501,7 +5501,7 @@ function needContext(proxy, names) {
|
|||
return false;
|
||||
}
|
||||
|
||||
var version = "4.3.3";
|
||||
var version = "4.4.0";
|
||||
|
||||
const KNOWN_POSITIONS = [
|
||||
'top',
|
||||
|
@ -5571,16 +5571,20 @@ function moveNumericKeys(obj, start, move) {
|
|||
}
|
||||
return e;
|
||||
}
|
||||
function getDatasetArea(meta) {
|
||||
function getSizeForArea(scale, chartArea, field) {
|
||||
return scale.options.clip ? scale[field] : chartArea[field];
|
||||
}
|
||||
function getDatasetArea(meta, chartArea) {
|
||||
const { xScale , yScale } = meta;
|
||||
if (xScale && yScale) {
|
||||
return {
|
||||
left: xScale.left,
|
||||
right: xScale.right,
|
||||
top: yScale.top,
|
||||
bottom: yScale.bottom
|
||||
left: getSizeForArea(xScale, chartArea, 'left'),
|
||||
right: getSizeForArea(xScale, chartArea, 'right'),
|
||||
top: getSizeForArea(yScale, chartArea, 'top'),
|
||||
bottom: getSizeForArea(yScale, chartArea, 'bottom')
|
||||
};
|
||||
}
|
||||
return chartArea;
|
||||
}
|
||||
class Chart {
|
||||
static defaults = helpers_segment.defaults;
|
||||
|
@ -6082,7 +6086,7 @@ class Chart {
|
|||
const ctx = this.ctx;
|
||||
const clip = meta._clip;
|
||||
const useClip = !clip.disabled;
|
||||
const area = getDatasetArea(meta) || this.chartArea;
|
||||
const area = getDatasetArea(meta, this.chartArea);
|
||||
const args = {
|
||||
meta,
|
||||
index: meta.index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue