This commit is contained in:
2025-06-04 10:03:22 +02:00
commit 785a2b6134
14182 changed files with 1764617 additions and 0 deletions

7
node_modules/chart.js/dist/plugins/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,7 @@
export { default as Colors } from "./plugin.colors.js";
export { default as Decimation } from "./plugin.decimation.js";
export { default as Filler } from "./plugin.filler/index.js";
export { default as Legend } from "./plugin.legend.js";
export { default as SubTitle } from "./plugin.subtitle.js";
export { default as Title } from "./plugin.title.js";
export { default as Tooltip } from "./plugin.tooltip.js";

11
node_modules/chart.js/dist/plugins/plugin.colors.d.ts generated vendored Normal file
View File

@ -0,0 +1,11 @@
import type { Chart } from '../types.js';
export interface ColorsPluginOptions {
enabled?: boolean;
forceOverride?: boolean;
}
declare const _default: {
id: string;
defaults: ColorsPluginOptions;
beforeLayout(chart: Chart, _args: any, options: ColorsPluginOptions): void;
};
export default _default;

View File

@ -0,0 +1,10 @@
declare namespace _default {
const id: string;
namespace defaults {
const algorithm: string;
const enabled: boolean;
}
function beforeElementsUpdate(chart: any, args: any, options: any): void;
function destroy(chart: any): void;
}
export default _default;

View File

@ -0,0 +1 @@
export function _drawfill(ctx: any, source: any, area: any): void;

View File

@ -0,0 +1,14 @@
/**
* @param {PointElement[] | { x: number; y: number; }} boundary
* @param {LineElement} line
* @return {LineElement?}
*/
export function _createBoundaryLine(boundary: PointElement[] | {
x: number;
y: number;
}, line: LineElement): LineElement | null;
export function _shouldApplyFill(source: any): boolean;
export type Chart = import('../../core/core.controller.js').default;
export type Scale = import('../../core/core.scale.js').default;
export type PointElement = import('../../elements/element.point.js').default;
import { LineElement } from "../../elements/index.js";

View File

@ -0,0 +1,30 @@
/**
* @typedef { import('../../core/core.scale.js').default } Scale
* @typedef { import('../../elements/element.line.js').default } LineElement
* @typedef { import('../../types/index.js').FillTarget } FillTarget
* @typedef { import('../../types/index.js').ComplexFillTarget } ComplexFillTarget
*/
export function _resolveTarget(sources: any, index: any, propagate: any): any;
/**
* @param {LineElement} line
* @param {number} index
* @param {number} count
*/
export function _decodeFill(line: LineElement, index: number, count: number): any;
/**
* @param {FillTarget | ComplexFillTarget} fill
* @param {Scale} scale
* @returns {number | null}
*/
export function _getTargetPixel(fill: FillTarget | ComplexFillTarget, scale: Scale): number | null;
/**
* @param {FillTarget | ComplexFillTarget} fill
* @param {Scale} scale
* @param {number} startValue
* @returns {number | undefined}
*/
export function _getTargetValue(fill: FillTarget | ComplexFillTarget, scale: Scale, startValue: number): number | undefined;
export type Scale = import('../../core/core.scale.js').default;
export type LineElement = import('../../elements/element.line.js').default;
export type FillTarget = import('../../types/index.js').FillTarget;
export type ComplexFillTarget = import('../../types/index.js').ComplexFillTarget;

View File

@ -0,0 +1,36 @@
export function _segments(line: any, target: any, property: any): ({
source: any;
target: {
property: any;
start: any;
end: any;
};
start: any;
end: any;
} | {
source: {
start: number;
end: number;
loop: boolean;
style?: any;
};
target: {
start: number;
end: number;
loop: boolean;
style?: any;
};
start: {
[x: number]: any;
};
end: {
[x: number]: any;
};
})[];
export function _getBounds(property: any, first: any, last: any, loop: any): {
property: any;
start: any;
end: any;
};
export function _pointsFromSegments(boundary: any, line: any): any[];
export function _findSegmentEnd(start: any, end: any, points: any): any;

View File

@ -0,0 +1,9 @@
/**
* @typedef { import('../../core/core.controller.js').default } Chart
* @typedef { import('../../core/core.scale.js').default } Scale
* @typedef { import('../../elements/element.point.js').default } PointElement
*/
export function _getTarget(source: any): any;
export type Chart = import('../../core/core.controller.js').default;
export type Scale = import('../../core/core.scale.js').default;
export type PointElement = import('../../elements/element.point.js').default;

View File

@ -0,0 +1,14 @@
/**
* @param {{ chart: Chart; scale: Scale; index: number; line: LineElement; }} source
* @return {LineElement}
*/
export function _buildStackLine(source: {
chart: Chart;
scale: Scale;
index: number;
line: LineElement;
}): LineElement;
export type Chart = import('../../core/core.controller.js').default;
export type Scale = import('../../core/core.scale.js').default;
export type PointElement = import('../../elements/element.point.js').default;
import { LineElement } from "../../elements/index.js";

View File

@ -0,0 +1,12 @@
declare namespace _default {
const id: string;
function afterDatasetsUpdate(chart: any, _args: any, options: any): void;
function beforeDraw(chart: any, _args: any, options: any): void;
function beforeDatasetsDraw(chart: any, _args: any, options: any): void;
function beforeDatasetDraw(chart: any, args: any, options: any): void;
namespace defaults {
const propagate: boolean;
const drawTime: string;
}
}
export default _default;

View File

@ -0,0 +1,12 @@
export class simpleArc {
constructor(opts: any);
x: any;
y: any;
radius: any;
pathSegment(ctx: any, bounds: any, opts: any): boolean;
interpolate(point: any): {
x: any;
y: any;
angle: any;
};
}

114
node_modules/chart.js/dist/plugins/plugin.legend.d.ts generated vendored Normal file
View File

@ -0,0 +1,114 @@
export class Legend extends Element<import("../types/basic.js").AnyObject, import("../types/basic.js").AnyObject> {
/**
* @param {{ ctx: any; options: any; chart: any; }} config
*/
constructor(config: {
ctx: any;
options: any;
chart: any;
});
_added: boolean;
legendHitBoxes: any[];
/**
* @private
*/
private _hoveredItem;
doughnutMode: boolean;
chart: any;
options: any;
ctx: any;
legendItems: any;
columnSizes: any[];
lineWidths: number[];
maxHeight: any;
maxWidth: any;
top: any;
bottom: any;
left: any;
right: any;
height: any;
width: any;
_margins: any;
position: any;
weight: any;
fullSize: any;
update(maxWidth: any, maxHeight: any, margins: any): void;
setDimensions(): void;
buildLabels(): void;
fit(): void;
/**
* @private
*/
private _fitRows;
_fitCols(titleHeight: any, labelFont: any, boxWidth: any, _itemHeight: any): any;
adjustHitBoxes(): void;
isHorizontal(): boolean;
draw(): void;
/**
* @private
*/
private _draw;
/**
* @protected
*/
protected drawTitle(): void;
/**
* @private
*/
private _computeTitleHeight;
/**
* @private
*/
private _getLegendItemAt;
/**
* Handle an event
* @param {ChartEvent} e - The event to handle
*/
handleEvent(e: ChartEvent): void;
}
declare namespace _default {
export const id: string;
export { Legend as _element };
export function start(chart: any, _args: any, options: any): void;
export function stop(chart: any): void;
export function beforeUpdate(chart: any, _args: any, options: any): void;
export function afterUpdate(chart: any): void;
export function afterEvent(chart: any, args: any): void;
export namespace defaults {
const display: boolean;
const position: string;
const align: string;
const fullSize: boolean;
const reverse: boolean;
const weight: number;
function onClick(e: any, legendItem: any, legend: any): void;
const onHover: any;
const onLeave: any;
namespace labels {
function color(ctx: any): any;
const boxWidth: number;
const padding: number;
function generateLabels(chart: any): any;
}
namespace title {
export function color_1(ctx: any): any;
export { color_1 as color };
const display_1: boolean;
export { display_1 as display };
const position_1: string;
export { position_1 as position };
export const text: string;
}
}
export namespace descriptors {
export function _scriptable(name: any): boolean;
export namespace labels_1 {
export function _scriptable_1(name: any): boolean;
export { _scriptable_1 as _scriptable };
}
export { labels_1 as labels };
}
}
export default _default;
export type ChartEvent = import('../types/index.js').ChartEvent;
import Element from "../core/core.element.js";

View File

@ -0,0 +1,27 @@
declare namespace _default {
const id: string;
function start(chart: any, _args: any, options: any): void;
function stop(chart: any): void;
function beforeUpdate(chart: any, _args: any, options: any): void;
namespace defaults {
export const align: string;
export const display: boolean;
export namespace font {
const weight: string;
}
export const fullSize: boolean;
export const padding: number;
export const position: string;
export const text: string;
const weight_1: number;
export { weight_1 as weight };
}
namespace defaultRoutes {
const color: string;
}
namespace descriptors {
const _scriptable: boolean;
const _indexable: boolean;
}
}
export default _default;

61
node_modules/chart.js/dist/plugins/plugin.title.d.ts generated vendored Normal file
View File

@ -0,0 +1,61 @@
export class Title extends Element<import("../types/basic.js").AnyObject, import("../types/basic.js").AnyObject> {
/**
* @param {{ ctx: any; options: any; chart: any; }} config
*/
constructor(config: {
ctx: any;
options: any;
chart: any;
});
chart: any;
options: any;
ctx: any;
_padding: import("../types.js").ChartArea;
top: number;
bottom: any;
left: number;
right: any;
width: any;
height: any;
position: any;
weight: any;
fullSize: any;
update(maxWidth: any, maxHeight: any): void;
isHorizontal(): boolean;
_drawArgs(offset: any): {
titleX: any;
titleY: any;
maxWidth: number;
rotation: number;
};
draw(): void;
}
declare namespace _default {
export const id: string;
export { Title as _element };
export function start(chart: any, _args: any, options: any): void;
export function stop(chart: any): void;
export function beforeUpdate(chart: any, _args: any, options: any): void;
export namespace defaults {
export const align: string;
export const display: boolean;
export namespace font {
const weight: string;
}
export const fullSize: boolean;
export const padding: number;
export const position: string;
export const text: string;
const weight_1: number;
export { weight_1 as weight };
}
export namespace defaultRoutes {
const color: string;
}
export namespace descriptors {
const _scriptable: boolean;
const _indexable: boolean;
}
}
export default _default;
import Element from "../core/core.element.js";

288
node_modules/chart.js/dist/plugins/plugin.tooltip.d.ts generated vendored Normal file
View File

@ -0,0 +1,288 @@
export class Tooltip extends Element<import("../types/basic.js").AnyObject, import("../types/basic.js").AnyObject> {
/**
* @namespace Chart.Tooltip.positioners
*/
static positioners: {
/**
* Average mode places the tooltip at the average position of the elements shown
*/
average(items: any): false | {
x: number;
y: number;
};
/**
* Gets the tooltip position nearest of the item nearest to the event position
*/
nearest(items: any, eventPosition: any): false | {
x: any;
y: any;
};
};
constructor(config: any);
opacity: number;
_active: any[];
_eventPosition: any;
_size: {
width: number;
height: number;
};
_cachedAnimations: Readonly<Animations>;
_tooltipItems: any[];
$animations: any;
$context: any;
chart: any;
options: any;
dataPoints: {
chart: import("../core/core.controller.js").default;
label: any;
parsed: any;
raw: any;
formattedValue: any;
dataset: any;
dataIndex: number;
datasetIndex: number;
element: Element<import("../types/basic.js").AnyObject, import("../types/basic.js").AnyObject>;
}[];
title: any;
beforeBody: any;
body: any[];
afterBody: any;
footer: any;
xAlign: any;
yAlign: any;
x: any;
y: any;
height: number;
width: number;
caretX: any;
caretY: any;
labelColors: any[];
labelPointStyles: any[];
labelTextColors: any[];
initialize(options: any): void;
/**
* @private
*/
private _resolveAnimations;
/**
* @protected
*/
protected getContext(): any;
getTitle(context: any, options: any): any;
getBeforeBody(tooltipItems: any, options: any): any;
getBody(tooltipItems: any, options: any): any[];
getAfterBody(tooltipItems: any, options: any): any;
getFooter(tooltipItems: any, options: any): any;
/**
* @private
*/
private _createItems;
update(changed: any, replay: any): void;
drawCaret(tooltipPoint: any, ctx: any, size: any, options: any): void;
getCaretPosition(tooltipPoint: any, size: any, options: any): {
x1: any;
x2: any;
x3: any;
y1: any;
y2: any;
y3: any;
};
drawTitle(pt: any, ctx: any, options: any): void;
/**
* @private
*/
private _drawColorBox;
drawBody(pt: any, ctx: any, options: any): void;
drawFooter(pt: any, ctx: any, options: any): void;
drawBackground(pt: any, ctx: any, tooltipSize: any, options: any): void;
/**
* Update x/y animation targets when _active elements are animating too
* @private
*/
private _updateAnimationTarget;
/**
* Determine if the tooltip will draw anything
* @returns {boolean} True if the tooltip will render
*/
_willRender(): boolean;
draw(ctx: any): void;
/**
* Get active elements in the tooltip
* @returns {Array} Array of elements that are active in the tooltip
*/
getActiveElements(): any[];
/**
* Set active elements in the tooltip
* @param {array} activeElements Array of active datasetIndex/index pairs.
* @param {object} eventPosition Synthetic event position used in positioning
*/
setActiveElements(activeElements: any[], eventPosition: object): void;
_ignoreReplayEvents: boolean;
/**
* Handle an event
* @param {ChartEvent} e - The event to handle
* @param {boolean} [replay] - This is a replayed event (from update)
* @param {boolean} [inChartArea] - The event is inside chartArea
* @returns {boolean} true if the tooltip changed
*/
handleEvent(e: ChartEvent, replay?: boolean, inChartArea?: boolean): boolean;
/**
* Helper for determining the active elements for event
* @param {ChartEvent} e - The event to handle
* @param {InteractionItem[]} lastActive - Previously active elements
* @param {boolean} [replay] - This is a replayed event (from update)
* @param {boolean} [inChartArea] - The event is inside chartArea
* @returns {InteractionItem[]} - Active elements
* @private
*/
private _getActiveElements;
/**
* Determine if the active elements + event combination changes the
* tooltip position
* @param {array} active - Active elements
* @param {ChartEvent} e - Event that triggered the position change
* @returns {boolean} True if the position has changed
*/
_positionChanged(active: any[], e: ChartEvent): boolean;
}
declare namespace _default {
export const id: string;
export { Tooltip as _element };
export { positioners };
export function afterInit(chart: any, _args: any, options: any): void;
export function beforeUpdate(chart: any, _args: any, options: any): void;
export function reset(chart: any, _args: any, options: any): void;
export function afterDraw(chart: any): void;
export function afterEvent(chart: any, args: any): void;
export namespace defaults {
export const enabled: boolean;
export const external: any;
export const position: string;
export const backgroundColor: string;
export const titleColor: string;
export namespace titleFont {
const weight: string;
}
export const titleSpacing: number;
export const titleMarginBottom: number;
export const titleAlign: string;
export const bodyColor: string;
export const bodySpacing: number;
export const bodyFont: {};
export const bodyAlign: string;
export const footerColor: string;
export const footerSpacing: number;
export const footerMarginTop: number;
export namespace footerFont {
const weight_1: string;
export { weight_1 as weight };
}
export const footerAlign: string;
export const padding: number;
export const caretPadding: number;
export const caretSize: number;
export const cornerRadius: number;
export function boxHeight(ctx: any, opts: any): any;
export function boxWidth(ctx: any, opts: any): any;
export const multiKeyBackground: string;
export const displayColors: boolean;
export const boxPadding: number;
export const borderColor: string;
export const borderWidth: number;
export namespace animation {
const duration: number;
const easing: string;
}
export namespace animations {
namespace numbers {
const type: string;
const properties: string[];
}
namespace opacity {
const easing_1: string;
export { easing_1 as easing };
const duration_1: number;
export { duration_1 as duration };
}
}
export { defaultCallbacks as callbacks };
}
export namespace defaultRoutes {
const bodyFont_1: string;
export { bodyFont_1 as bodyFont };
const footerFont_1: string;
export { footerFont_1 as footerFont };
const titleFont_1: string;
export { titleFont_1 as titleFont };
}
export namespace descriptors {
export function _scriptable(name: any): boolean;
export const _indexable: boolean;
export namespace callbacks {
const _scriptable_1: boolean;
export { _scriptable_1 as _scriptable };
const _indexable_1: boolean;
export { _indexable_1 as _indexable };
}
export namespace animation_1 {
const _fallback: boolean;
}
export { animation_1 as animation };
export namespace animations_1 {
const _fallback_1: string;
export { _fallback_1 as _fallback };
}
export { animations_1 as animations };
}
export const additionalOptionScopes: string[];
}
export default _default;
export type Chart = import('../platform/platform.base.js').Chart;
export type ChartEvent = import('../types/index.js').ChartEvent;
export type ActiveElement = import('../types/index.js').ActiveElement;
export type InteractionItem = import('../core/core.interaction.js').InteractionItem;
import Element from "../core/core.element.js";
import Animations from "../core/core.animations.js";
declare namespace positioners {
/**
* Average mode places the tooltip at the average position of the elements shown
*/
function average(items: any): false | {
x: number;
y: number;
};
/**
* Gets the tooltip position nearest of the item nearest to the event position
*/
function nearest(items: any, eventPosition: any): false | {
x: any;
y: any;
};
}
declare namespace defaultCallbacks {
export { noop as beforeTitle };
export function title(tooltipItems: any): any;
export { noop as afterTitle };
export { noop as beforeBody };
export { noop as beforeLabel };
export function label(tooltipItem: any): any;
export function labelColor(tooltipItem: any): {
borderColor: any;
backgroundColor: any;
borderWidth: any;
borderDash: any;
borderDashOffset: any;
borderRadius: number;
};
export function labelTextColor(): any;
export function labelPointStyle(tooltipItem: any): {
pointStyle: any;
rotation: any;
};
export { noop as afterLabel };
export { noop as afterBody };
export { noop as beforeFooter };
export { noop as footer };
export { noop as afterFooter };
}
import { noop } from "../helpers/helpers.core.js";