1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00

Update npm and add the jquery mask

This commit is contained in:
Daniel Neto 2024-03-07 11:31:51 -03:00
parent d5fab8dacf
commit bd97e8aa6c
2799 changed files with 332053 additions and 2864 deletions

27
node_modules/chart.js/dist/chart.cjs generated vendored
View file

@ -1,7 +1,7 @@
/*!
* Chart.js v4.4.1
* Chart.js v4.4.2
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* (c) 2024 Chart.js Contributors
* Released under the MIT License
*/
'use strict';
@ -3253,10 +3253,14 @@ const eventListenerOptions = helpers_segment.supportsEventListenerOptions ? {
passive: true
} : false;
function addListener(node, type, listener) {
node.addEventListener(type, listener, eventListenerOptions);
if (node) {
node.addEventListener(type, listener, eventListenerOptions);
}
}
function removeListener(chart, type, listener) {
chart.canvas.removeEventListener(type, listener, eventListenerOptions);
if (chart && chart.canvas) {
chart.canvas.removeEventListener(type, listener, eventListenerOptions);
}
}
function fromNativeEvent(event, chart) {
const type = EVENT_TYPES[event.type] || event.type;
@ -5508,7 +5512,7 @@ function needContext(proxy, names) {
return false;
}
var version = "4.4.1";
var version = "4.4.2";
const KNOWN_POSITIONS = [
'top',
@ -8889,20 +8893,23 @@ const positioners = {
return false;
}
let i, len;
let x = 0;
let xSet = new Set();
let y = 0;
let count = 0;
for(i = 0, len = items.length; i < len; ++i){
const el = items[i].element;
if (el && el.hasValue()) {
const pos = el.tooltipPosition();
x += pos.x;
xSet.add(pos.x);
y += pos.y;
++count;
}
}
const xAverage = [
...xSet
].reduce((a, b)=>a + b) / xSet.size;
return {
x: x / count,
x: xAverage,
y: y / count
};
},
@ -10833,7 +10840,7 @@ class RadialLinearScale extends LinearScaleBase {
}
if (grid.display) {
this.ticks.forEach((tick, index)=>{
if (index !== 0) {
if (index !== 0 || index === 0 && this.min < 0) {
offset = this.getDistanceFromCenterForValue(tick.value);
const context = this.getContext(index);
const optsAtIndex = grid.setContext(context);
@ -10880,7 +10887,7 @@ class RadialLinearScale extends LinearScaleBase {
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
this.ticks.forEach((tick, index)=>{
if (index === 0 && !opts.reverse) {
if (index === 0 && this.min >= 0 && !opts.reverse) {
return;
}
const optsAtIndex = tickOpts.setContext(this.getContext(index));