mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
f0f62670c5
commit
7e26256cac
4563 changed files with 1246712 additions and 17558 deletions
15
node_modules/chart.js/dist/chart.cjs
generated
vendored
15
node_modules/chart.js/dist/chart.cjs
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Chart.js v4.4.0
|
||||
* Chart.js v4.4.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2023 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
|
@ -4516,6 +4516,13 @@ class Scale extends Element {
|
|||
case 'right':
|
||||
left -= width;
|
||||
break;
|
||||
case 'inner':
|
||||
if (i === ilen - 1) {
|
||||
left -= width;
|
||||
} else if (i > 0) {
|
||||
left -= width / 2;
|
||||
}
|
||||
break;
|
||||
}
|
||||
backdrop = {
|
||||
left,
|
||||
|
@ -5487,7 +5494,7 @@ function getResolver(resolverCache, scopes, prefixes) {
|
|||
}
|
||||
return cached;
|
||||
}
|
||||
const hasFunction = (value)=>helpers_segment.isObject(value) && Object.getOwnPropertyNames(value).reduce((acc, key)=>acc || helpers_segment.isFunction(value[key]), false);
|
||||
const hasFunction = (value)=>helpers_segment.isObject(value) && Object.getOwnPropertyNames(value).some((key)=>helpers_segment.isFunction(value[key]));
|
||||
function needContext(proxy, names) {
|
||||
const { isScriptable , isIndexable } = helpers_segment._descriptors(proxy);
|
||||
for (const prop of names){
|
||||
|
@ -5501,7 +5508,7 @@ function needContext(proxy, names) {
|
|||
return false;
|
||||
}
|
||||
|
||||
var version = "4.4.0";
|
||||
var version = "4.4.1";
|
||||
|
||||
const KNOWN_POSITIONS = [
|
||||
'top',
|
||||
|
@ -9711,7 +9718,7 @@ class Tooltip extends Element {
|
|||
return [];
|
||||
}
|
||||
if (!inChartArea) {
|
||||
return lastActive;
|
||||
return lastActive.filter((i)=>this.chart.data.datasets[i.datasetIndex] && this.chart.getDatasetMeta(i.datasetIndex).controller.getParsed(i.index) !== undefined);
|
||||
}
|
||||
const active = this.chart.getElementsAtEventForMode(e, options.mode, options, replay);
|
||||
if (options.reverse) {
|
||||
|
|
2
node_modules/chart.js/dist/chart.cjs.map
generated
vendored
2
node_modules/chart.js/dist/chart.cjs.map
generated
vendored
File diff suppressed because one or more lines are too long
15
node_modules/chart.js/dist/chart.js
generated
vendored
15
node_modules/chart.js/dist/chart.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Chart.js v4.4.0
|
||||
* Chart.js v4.4.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2023 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
|
@ -4514,6 +4514,13 @@ class Scale extends Element {
|
|||
case 'right':
|
||||
left -= width;
|
||||
break;
|
||||
case 'inner':
|
||||
if (i === ilen - 1) {
|
||||
left -= width;
|
||||
} else if (i > 0) {
|
||||
left -= width / 2;
|
||||
}
|
||||
break;
|
||||
}
|
||||
backdrop = {
|
||||
left,
|
||||
|
@ -5485,7 +5492,7 @@ function getResolver(resolverCache, scopes, prefixes) {
|
|||
}
|
||||
return cached;
|
||||
}
|
||||
const hasFunction = (value)=>isObject(value) && Object.getOwnPropertyNames(value).reduce((acc, key)=>acc || isFunction(value[key]), false);
|
||||
const hasFunction = (value)=>isObject(value) && Object.getOwnPropertyNames(value).some((key)=>isFunction(value[key]));
|
||||
function needContext(proxy, names) {
|
||||
const { isScriptable , isIndexable } = _descriptors(proxy);
|
||||
for (const prop of names){
|
||||
|
@ -5499,7 +5506,7 @@ function needContext(proxy, names) {
|
|||
return false;
|
||||
}
|
||||
|
||||
var version = "4.4.0";
|
||||
var version = "4.4.1";
|
||||
|
||||
const KNOWN_POSITIONS = [
|
||||
'top',
|
||||
|
@ -9709,7 +9716,7 @@ class Tooltip extends Element {
|
|||
return [];
|
||||
}
|
||||
if (!inChartArea) {
|
||||
return lastActive;
|
||||
return lastActive.filter((i)=>this.chart.data.datasets[i.datasetIndex] && this.chart.getDatasetMeta(i.datasetIndex).controller.getParsed(i.index) !== undefined);
|
||||
}
|
||||
const active = this.chart.getElementsAtEventForMode(e, options.mode, options, replay);
|
||||
if (options.reverse) {
|
||||
|
|
2
node_modules/chart.js/dist/chart.js.map
generated
vendored
2
node_modules/chart.js/dist/chart.js.map
generated
vendored
File diff suppressed because one or more lines are too long
4
node_modules/chart.js/dist/chart.umd.js
generated
vendored
4
node_modules/chart.js/dist/chart.umd.js
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/chart.js/dist/chart.umd.js.map
generated
vendored
2
node_modules/chart.js/dist/chart.umd.js.map
generated
vendored
File diff suppressed because one or more lines are too long
8
node_modules/chart.js/dist/chunks/helpers.segment.cjs
generated
vendored
8
node_modules/chart.js/dist/chunks/helpers.segment.cjs
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Chart.js v4.4.0
|
||||
* Chart.js v4.4.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2023 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
|
@ -2335,8 +2335,10 @@ function getMaximumSize(canvas, bbWidth, bbHeight, aspectRatio) {
|
|||
return false;
|
||||
}
|
||||
};
|
||||
window.addEventListener('test', null, options);
|
||||
window.removeEventListener('test', null, options);
|
||||
if (_isDomSupported()) {
|
||||
window.addEventListener('test', null, options);
|
||||
window.removeEventListener('test', null, options);
|
||||
}
|
||||
} catch (e) {
|
||||
// continue regardless of error
|
||||
}
|
||||
|
|
2
node_modules/chart.js/dist/chunks/helpers.segment.cjs.map
generated
vendored
2
node_modules/chart.js/dist/chunks/helpers.segment.cjs.map
generated
vendored
File diff suppressed because one or more lines are too long
8
node_modules/chart.js/dist/chunks/helpers.segment.js
generated
vendored
8
node_modules/chart.js/dist/chunks/helpers.segment.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Chart.js v4.4.0
|
||||
* Chart.js v4.4.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2023 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
|
@ -2333,8 +2333,10 @@ function getMaximumSize(canvas, bbWidth, bbHeight, aspectRatio) {
|
|||
return false;
|
||||
}
|
||||
};
|
||||
window.addEventListener('test', null, options);
|
||||
window.removeEventListener('test', null, options);
|
||||
if (_isDomSupported()) {
|
||||
window.addEventListener('test', null, options);
|
||||
window.removeEventListener('test', null, options);
|
||||
}
|
||||
} catch (e) {
|
||||
// continue regardless of error
|
||||
}
|
||||
|
|
2
node_modules/chart.js/dist/chunks/helpers.segment.js.map
generated
vendored
2
node_modules/chart.js/dist/chunks/helpers.segment.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/chart.js/dist/helpers.cjs
generated
vendored
2
node_modules/chart.js/dist/helpers.cjs
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Chart.js v4.4.0
|
||||
* Chart.js v4.4.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2023 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
|
|
2
node_modules/chart.js/dist/helpers.js
generated
vendored
2
node_modules/chart.js/dist/helpers.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Chart.js v4.4.0
|
||||
* Chart.js v4.4.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2023 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
|
|
2
node_modules/chart.js/dist/helpers/helpers.options.d.ts
generated
vendored
2
node_modules/chart.js/dist/helpers/helpers.options.d.ts
generated
vendored
|
@ -57,7 +57,7 @@ export declare function toFont(options: Partial<FontSpec>, fallback?: Partial<Fo
|
|||
lineHeight: number;
|
||||
size: number;
|
||||
style: "normal" | "inherit" | "italic" | "oblique" | "initial";
|
||||
weight: string;
|
||||
weight: number | "bold" | "normal" | "lighter" | "bolder";
|
||||
string: string;
|
||||
};
|
||||
/**
|
||||
|
|
73
node_modules/chart.js/dist/types/index.d.ts
generated
vendored
73
node_modules/chart.js/dist/types/index.d.ts
generated
vendored
|
@ -516,7 +516,7 @@ export declare class Chart<
|
|||
buildOrUpdateScales(): void;
|
||||
buildOrUpdateControllers(): void;
|
||||
reset(): void;
|
||||
update(mode?: UpdateMode): void;
|
||||
update(mode?: UpdateMode | ((ctx: { datasetIndex: number }) => UpdateMode)): void;
|
||||
render(): void;
|
||||
draw(): void;
|
||||
|
||||
|
@ -829,7 +829,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @since 3.0.0
|
||||
*/
|
||||
install?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
install?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* @desc Called when a plugin is starting. This happens when chart is created or plugin is enabled.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
|
@ -837,7 +837,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @since 3.0.0
|
||||
*/
|
||||
start?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
start?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* @desc Called when a plugin stopping. This happens when chart is destroyed or plugin is disabled.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
|
@ -845,21 +845,21 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @since 3.0.0
|
||||
*/
|
||||
stop?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
stop?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* @desc Called before initializing `chart`.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
* @param {object} args - The call arguments.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
beforeInit?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
beforeInit?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* @desc Called after `chart` has been initialized and before the first update.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
* @param {object} args - The call arguments.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterInit?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
afterInit?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* @desc Called before updating `chart`. If any plugin returns `false`, the update
|
||||
* is cancelled (and thus subsequent render(s)) until another `update` is triggered.
|
||||
|
@ -869,7 +869,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @returns {boolean} `false` to cancel the chart update.
|
||||
*/
|
||||
beforeUpdate?(chart: Chart, args: { mode: UpdateMode, cancelable: true }, options: O): boolean | void;
|
||||
beforeUpdate?(chart: Chart<TType>, args: { mode: UpdateMode, cancelable: true }, options: O): boolean | void;
|
||||
/**
|
||||
* @desc Called after `chart` has been updated and before rendering. Note that this
|
||||
* hook will not be called if the chart update has been previously cancelled.
|
||||
|
@ -878,7 +878,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {UpdateMode} args.mode - The update mode
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterUpdate?(chart: Chart, args: { mode: UpdateMode }, options: O): void;
|
||||
afterUpdate?(chart: Chart<TType>, args: { mode: UpdateMode }, options: O): void;
|
||||
/**
|
||||
* @desc Called during the update process, before any chart elements have been created.
|
||||
* This can be used for data decimation by changing the data array inside a dataset.
|
||||
|
@ -886,7 +886,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} args - The call arguments.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
beforeElementsUpdate?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
beforeElementsUpdate?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* @desc Called during chart reset
|
||||
* @param {Chart} chart - The chart instance.
|
||||
|
@ -894,7 +894,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @since version 3.0.0
|
||||
*/
|
||||
reset?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
reset?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* @desc Called before updating the `chart` datasets. If any plugin returns `false`,
|
||||
* the datasets update is cancelled until another `update` is triggered.
|
||||
|
@ -905,7 +905,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @returns {boolean} false to cancel the datasets update.
|
||||
* @since version 2.1.5
|
||||
*/
|
||||
beforeDatasetsUpdate?(chart: Chart, args: { mode: UpdateMode }, options: O): boolean | void;
|
||||
beforeDatasetsUpdate?(chart: Chart<TType>, args: { mode: UpdateMode }, options: O): boolean | void;
|
||||
/**
|
||||
* @desc Called after the `chart` datasets have been updated. Note that this hook
|
||||
* will not be called if the datasets update has been previously cancelled.
|
||||
|
@ -915,7 +915,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @since version 2.1.5
|
||||
*/
|
||||
afterDatasetsUpdate?(chart: Chart, args: { mode: UpdateMode, cancelable: true }, options: O): void;
|
||||
afterDatasetsUpdate?(chart: Chart<TType>, args: { mode: UpdateMode, cancelable: true }, options: O): void;
|
||||
/**
|
||||
* @desc Called before updating the `chart` dataset at the given `args.index`. If any plugin
|
||||
* returns `false`, the datasets update is cancelled until another `update` is triggered.
|
||||
|
@ -927,7 +927,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @returns {boolean} `false` to cancel the chart datasets drawing.
|
||||
*/
|
||||
beforeDatasetUpdate?(chart: Chart, args: { index: number; meta: ChartMeta, mode: UpdateMode, cancelable: true }, options: O): boolean | void;
|
||||
beforeDatasetUpdate?(chart: Chart<TType>, args: { index: number; meta: ChartMeta, mode: UpdateMode, cancelable: true }, options: O): boolean | void;
|
||||
/**
|
||||
* @desc Called after the `chart` datasets at the given `args.index` has been updated. Note
|
||||
* that this hook will not be called if the datasets update has been previously cancelled.
|
||||
|
@ -938,7 +938,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {UpdateMode} args.mode - The update mode.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterDatasetUpdate?(chart: Chart, args: { index: number; meta: ChartMeta, mode: UpdateMode, cancelable: false }, options: O): void;
|
||||
afterDatasetUpdate?(chart: Chart<TType>, args: { index: number; meta: ChartMeta, mode: UpdateMode, cancelable: false }, options: O): void;
|
||||
/**
|
||||
* @desc Called before laying out `chart`. If any plugin returns `false`,
|
||||
* the layout update is cancelled until another `update` is triggered.
|
||||
|
@ -947,7 +947,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @returns {boolean} `false` to cancel the chart layout.
|
||||
*/
|
||||
beforeLayout?(chart: Chart, args: { cancelable: true }, options: O): boolean | void;
|
||||
beforeLayout?(chart: Chart<TType>, args: { cancelable: true }, options: O): boolean | void;
|
||||
/**
|
||||
* @desc Called before scale data limits are calculated. This hook is called separately for each scale in the chart.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
|
@ -955,7 +955,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {Scale} args.scale - The scale.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
beforeDataLimits?(chart: Chart, args: { scale: Scale }, options: O): void;
|
||||
beforeDataLimits?(chart: Chart<TType>, args: { scale: Scale }, options: O): void;
|
||||
/**
|
||||
* @desc Called after scale data limits are calculated. This hook is called separately for each scale in the chart.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
|
@ -963,7 +963,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {Scale} args.scale - The scale.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterDataLimits?(chart: Chart, args: { scale: Scale }, options: O): void;
|
||||
afterDataLimits?(chart: Chart<TType>, args: { scale: Scale }, options: O): void;
|
||||
/**
|
||||
* @desc Called before scale builds its ticks. This hook is called separately for each scale in the chart.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
|
@ -971,7 +971,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {Scale} args.scale - The scale.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
beforeBuildTicks?(chart: Chart, args: { scale: Scale }, options: O): void;
|
||||
beforeBuildTicks?(chart: Chart<TType>, args: { scale: Scale }, options: O): void;
|
||||
/**
|
||||
* @desc Called after scale has build its ticks. This hook is called separately for each scale in the chart.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
|
@ -979,7 +979,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {Scale} args.scale - The scale.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterBuildTicks?(chart: Chart, args: { scale: Scale }, options: O): void;
|
||||
afterBuildTicks?(chart: Chart<TType>, args: { scale: Scale }, options: O): void;
|
||||
/**
|
||||
* @desc Called after the `chart` has been laid out. Note that this hook will not
|
||||
* be called if the layout update has been previously cancelled.
|
||||
|
@ -987,7 +987,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} args - The call arguments.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterLayout?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
afterLayout?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* @desc Called before rendering `chart`. If any plugin returns `false`,
|
||||
* the rendering is cancelled until another `render` is triggered.
|
||||
|
@ -996,7 +996,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @returns {boolean} `false` to cancel the chart rendering.
|
||||
*/
|
||||
beforeRender?(chart: Chart, args: { cancelable: true }, options: O): boolean | void;
|
||||
beforeRender?(chart: Chart<TType>, args: { cancelable: true }, options: O): boolean | void;
|
||||
/**
|
||||
* @desc Called after the `chart` has been fully rendered (and animation completed). Note
|
||||
* that this hook will not be called if the rendering has been previously cancelled.
|
||||
|
@ -1004,7 +1004,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} args - The call arguments.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterRender?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
afterRender?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* @desc Called before drawing `chart` at every animation frame. If any plugin returns `false`,
|
||||
* the frame drawing is cancelled untilanother `render` is triggered.
|
||||
|
@ -1013,7 +1013,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @returns {boolean} `false` to cancel the chart drawing.
|
||||
*/
|
||||
beforeDraw?(chart: Chart, args: { cancelable: true }, options: O): boolean | void;
|
||||
beforeDraw?(chart: Chart<TType>, args: { cancelable: true }, options: O): boolean | void;
|
||||
/**
|
||||
* @desc Called after the `chart` has been drawn. Note that this hook will not be called
|
||||
* if the drawing has been previously cancelled.
|
||||
|
@ -1021,7 +1021,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} args - The call arguments.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterDraw?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
afterDraw?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* @desc Called before drawing the `chart` datasets. If any plugin returns `false`,
|
||||
* the datasets drawing is cancelled until another `render` is triggered.
|
||||
|
@ -1030,7 +1030,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @returns {boolean} `false` to cancel the chart datasets drawing.
|
||||
*/
|
||||
beforeDatasetsDraw?(chart: Chart, args: { cancelable: true }, options: O): boolean | void;
|
||||
beforeDatasetsDraw?(chart: Chart<TType>, args: { cancelable: true }, options: O): boolean | void;
|
||||
/**
|
||||
* @desc Called after the `chart` datasets have been drawn. Note that this hook
|
||||
* will not be called if the datasets drawing has been previously cancelled.
|
||||
|
@ -1038,7 +1038,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} args - The call arguments.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterDatasetsDraw?(chart: Chart, args: EmptyObject, options: O, cancelable: false): void;
|
||||
afterDatasetsDraw?(chart: Chart<TType>, args: EmptyObject, options: O, cancelable: false): void;
|
||||
/**
|
||||
* @desc Called before drawing the `chart` dataset at the given `args.index` (datasets
|
||||
* are drawn in the reverse order). If any plugin returns `false`, the datasets drawing
|
||||
|
@ -1050,7 +1050,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @returns {boolean} `false` to cancel the chart datasets drawing.
|
||||
*/
|
||||
beforeDatasetDraw?(chart: Chart, args: { index: number; meta: ChartMeta }, options: O): boolean | void;
|
||||
beforeDatasetDraw?(chart: Chart<TType>, args: { index: number; meta: ChartMeta }, options: O): boolean | void;
|
||||
/**
|
||||
* @desc Called after the `chart` datasets at the given `args.index` have been drawn
|
||||
* (datasets are drawn in the reverse order). Note that this hook will not be called
|
||||
|
@ -1061,7 +1061,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} args.meta - The dataset metadata.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterDatasetDraw?(chart: Chart, args: { index: number; meta: ChartMeta }, options: O): void;
|
||||
afterDatasetDraw?(chart: Chart<TType>, args: { index: number; meta: ChartMeta }, options: O): void;
|
||||
/**
|
||||
* @desc Called before processing the specified `event`. If any plugin returns `false`,
|
||||
* the event will be discarded.
|
||||
|
@ -1072,7 +1072,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {boolean} args.inChartArea - The event position is inside chartArea
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
beforeEvent?(chart: Chart, args: { event: ChartEvent, replay: boolean, cancelable: true, inChartArea: boolean }, options: O): boolean | void;
|
||||
beforeEvent?(chart: Chart<TType>, args: { event: ChartEvent, replay: boolean, cancelable: true, inChartArea: boolean }, options: O): boolean | void;
|
||||
/**
|
||||
* @desc Called after the `event` has been consumed. Note that this hook
|
||||
* will not be called if the `event` has been previously discarded.
|
||||
|
@ -1084,7 +1084,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {boolean} [args.changed] - Set to true if the plugin needs a render. Should only be changed to true, because this args object is passed through all plugins.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterEvent?(chart: Chart, args: { event: ChartEvent, replay: boolean, changed?: boolean, cancelable: false, inChartArea: boolean }, options: O): void;
|
||||
afterEvent?(chart: Chart<TType>, args: { event: ChartEvent, replay: boolean, changed?: boolean, cancelable: false, inChartArea: boolean }, options: O): void;
|
||||
/**
|
||||
* @desc Called after the chart as been resized.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
|
@ -1092,21 +1092,21 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {number} args.size - The new canvas display size (eq. canvas.style width & height).
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
resize?(chart: Chart, args: { size: { width: number, height: number } }, options: O): void;
|
||||
resize?(chart: Chart<TType>, args: { size: { width: number, height: number } }, options: O): void;
|
||||
/**
|
||||
* Called before the chart is being destroyed.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
* @param {object} args - The call arguments.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
beforeDestroy?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
beforeDestroy?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* Called after the chart has been destroyed.
|
||||
* @param {Chart} chart - The chart instance.
|
||||
* @param {object} args - The call arguments.
|
||||
* @param {object} options - The plugin options.
|
||||
*/
|
||||
afterDestroy?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
afterDestroy?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
/**
|
||||
* Called after chart is destroyed on all plugins that were installed for that chart. This hook is also invoked for disabled plugins (options === false).
|
||||
* @param {Chart} chart - The chart instance.
|
||||
|
@ -1114,7 +1114,7 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte
|
|||
* @param {object} options - The plugin options.
|
||||
* @since 3.0.0
|
||||
*/
|
||||
uninstall?(chart: Chart, args: EmptyObject, options: O): void;
|
||||
uninstall?(chart: Chart<TType>, args: EmptyObject, options: O): void;
|
||||
|
||||
/**
|
||||
* Default options used in the plugin
|
||||
|
@ -1777,7 +1777,7 @@ export interface FontSpec {
|
|||
/**
|
||||
* Default font weight (boldness). (see MDN).
|
||||
*/
|
||||
weight: string | null;
|
||||
weight: 'normal' | 'bold' | 'lighter' | 'bolder' | number | null;
|
||||
/**
|
||||
* Height of an individual line of text (see MDN).
|
||||
* @default 1.2
|
||||
|
@ -2477,7 +2477,7 @@ export interface LegendOptions<TType extends ChartType> {
|
|||
rtl: boolean;
|
||||
/**
|
||||
* This will force the text direction 'rtl' or 'ltr' on the canvas for rendering the legend, regardless of the css specified on the canvas
|
||||
* @default canvas' default
|
||||
* @default canvas's default
|
||||
*/
|
||||
textDirection: string;
|
||||
|
||||
|
@ -3817,6 +3817,7 @@ export interface ChartConfiguration<
|
|||
data: ChartData<TType, TData, TLabel>;
|
||||
options?: ChartOptions<TType>;
|
||||
plugins?: Plugin<TType>[];
|
||||
platform?: typeof BasePlatform;
|
||||
}
|
||||
|
||||
export interface ChartConfigurationCustomTypesPerDataset<
|
||||
|
|
5
node_modules/chart.js/package.json
generated
vendored
5
node_modules/chart.js/package.json
generated
vendored
|
@ -2,7 +2,7 @@
|
|||
"name": "chart.js",
|
||||
"homepage": "https://www.chartjs.org",
|
||||
"description": "Simple HTML5 charts using the canvas element.",
|
||||
"version": "4.4.0",
|
||||
"version": "4.4.1",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
|
@ -66,7 +66,6 @@
|
|||
"lint-md": "eslint \"**/*.md\" --cache",
|
||||
"lint-types": "pnpm build && node test/types/autogen.js && tsc -p test/types",
|
||||
"lint": "concurrently \"pnpm:lint-*\"",
|
||||
"test-size": "size-limit",
|
||||
"test": "pnpm lint && pnpm test-ci",
|
||||
"test-ci": "concurrently \"pnpm:test-ci-*\"",
|
||||
"test-ci-karma": "cross-env NODE_ENV=test karma start ./karma.conf.cjs --auto-watch --single-run --coverage --grep",
|
||||
|
@ -80,7 +79,6 @@
|
|||
"@rollup/plugin-inject": "^5.0.2",
|
||||
"@rollup/plugin-json": "^5.0.1",
|
||||
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||
"@size-limit/preset-big-lib": "^8.0.0",
|
||||
"@swc/core": "^1.3.18",
|
||||
"@types/estree": "^1.0.0",
|
||||
"@types/offscreencanvas": "^2019.7.0",
|
||||
|
@ -120,7 +118,6 @@
|
|||
"rollup-plugin-istanbul": "^4.0.0",
|
||||
"rollup-plugin-swc3": "^0.7.0",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"size-limit": "^8.0.0",
|
||||
"typescript": "^4.7.4",
|
||||
"yargs": "^17.5.1"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue