;
12 | tooltipPosition(useFinalPosition: boolean): Point;
13 | hasValue(): boolean;
14 | /**
15 | * Gets the current or final value of each prop. Can return extra properties (whole object).
16 | * @param props - properties to get
17 | * @param [final] - get the final value (animation target)
18 | */
19 | getProps(props: P, final?: boolean): Pick;
20 | getProps(props: P[], final?: boolean): Partial>;
21 | }
22 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/core/core.layouts.defaults.d.ts:
--------------------------------------------------------------------------------
1 | export function applyLayoutsDefaults(defaults: any): void;
2 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/core/core.scale.autoskip.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @typedef { import('./core.controller.js').default } Chart
3 | * @typedef {{value:number | string, label?:string, major?:boolean, $context?:any}} Tick
4 | */
5 | /**
6 | * Returns a subset of ticks to be plotted to avoid overlapping labels.
7 | * @param {import('./core.scale.js').default} scale
8 | * @param {Tick[]} ticks
9 | * @return {Tick[]}
10 | * @private
11 | */
12 | export function autoSkip(scale: import('./core.scale.js').default, ticks: Tick[]): Tick[];
13 | export type Chart = import('./core.controller.js').default;
14 | export type Tick = {
15 | value: number | string;
16 | label?: string;
17 | major?: boolean;
18 | $context?: any;
19 | };
20 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/core/core.scale.defaults.d.ts:
--------------------------------------------------------------------------------
1 | export function applyScaleDefaults(defaults: any): void;
2 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/core/core.ticks.d.ts:
--------------------------------------------------------------------------------
1 | declare namespace _default {
2 | export { formatters };
3 | }
4 | export default _default;
5 | declare namespace formatters {
6 | /**
7 | * Formatter for value labels
8 | * @method Chart.Ticks.formatters.values
9 | * @param value the value to display
10 | * @return {string|string[]} the label to display
11 | */
12 | function values(value: any): string | string[];
13 | /**
14 | * Formatter for numeric ticks
15 | * @method Chart.Ticks.formatters.numeric
16 | * @param tickValue {number} the value to be formatted
17 | * @param index {number} the position of the tickValue parameter in the ticks array
18 | * @param ticks {object[]} the list of ticks being converted
19 | * @return {string} string representation of the tickValue parameter
20 | */
21 | function numeric(tickValue: number, index: number, ticks: any[]): string;
22 | /**
23 | * Formatter for logarithmic ticks
24 | * @method Chart.Ticks.formatters.logarithmic
25 | * @param tickValue {number} the value to be formatted
26 | * @param index {number} the position of the tickValue parameter in the ticks array
27 | * @param ticks {object[]} the list of ticks being converted
28 | * @return {string} string representation of the tickValue parameter
29 | */
30 | function logarithmic(tickValue: number, index: number, ticks: any[]): string;
31 | }
32 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/core/core.typedRegistry.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @typedef {{id: string, defaults: any, overrides?: any, defaultRoutes: any}} IChartComponent
3 | */
4 | export default class TypedRegistry {
5 | constructor(type: any, scope: any, override: any);
6 | type: any;
7 | scope: any;
8 | override: any;
9 | items: any;
10 | isForType(type: any): boolean;
11 | /**
12 | * @param {IChartComponent} item
13 | * @returns {string} The scope where items defaults were registered to.
14 | */
15 | register(item: IChartComponent): string;
16 | /**
17 | * @param {string} id
18 | * @returns {object?}
19 | */
20 | get(id: string): object | null;
21 | /**
22 | * @param {IChartComponent} item
23 | */
24 | unregister(item: IChartComponent): void;
25 | }
26 | export type IChartComponent = {
27 | id: string;
28 | defaults: any;
29 | overrides?: any;
30 | defaultRoutes: any;
31 | };
32 | import defaults from "./core.defaults.js";
33 | import { overrides } from "./core.defaults.js";
34 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/core/index.d.ts:
--------------------------------------------------------------------------------
1 | export type { DateAdapter, TimeUnit } from './core.adapters.js';
2 | export { default as _adapters } from './core.adapters.js';
3 | export { default as Animation } from './core.animation.js';
4 | export { default as Animations } from './core.animations.js';
5 | export { default as animator } from './core.animator.js';
6 | export { default as Chart } from './core.controller.js';
7 | export { default as DatasetController } from './core.datasetController.js';
8 | export { default as defaults } from './core.defaults.js';
9 | export { default as Element } from './core.element.js';
10 | export { default as Interaction } from './core.interaction.js';
11 | export { default as layouts } from './core.layouts.js';
12 | export { default as plugins } from './core.plugins.js';
13 | export { default as registry } from './core.registry.js';
14 | export { default as Scale } from './core.scale.js';
15 | export { default as Ticks } from './core.ticks.js';
16 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/elements/element.arc.d.ts:
--------------------------------------------------------------------------------
1 | import Element from '../core/core.element.js';
2 | import type { ArcOptions, Point } from '../types/index.js';
3 | export interface ArcProps extends Point {
4 | startAngle: number;
5 | endAngle: number;
6 | innerRadius: number;
7 | outerRadius: number;
8 | circumference: number;
9 | }
10 | export default class ArcElement extends Element {
11 | static id: string;
12 | static defaults: {
13 | borderAlign: string;
14 | borderColor: string;
15 | borderDash: any[];
16 | borderDashOffset: number;
17 | borderJoinStyle: any;
18 | borderRadius: number;
19 | borderWidth: number;
20 | offset: number;
21 | spacing: number;
22 | angle: any;
23 | circular: boolean;
24 | };
25 | static defaultRoutes: {
26 | backgroundColor: string;
27 | };
28 | static descriptors: {
29 | _scriptable: boolean;
30 | _indexable: (name: any) => boolean;
31 | };
32 | circumference: number;
33 | endAngle: number;
34 | fullCircles: number;
35 | innerRadius: number;
36 | outerRadius: number;
37 | pixelMargin: number;
38 | startAngle: number;
39 | constructor(cfg: any);
40 | inRange(chartX: number, chartY: number, useFinalPosition: boolean): boolean;
41 | getCenterPoint(useFinalPosition: boolean): {
42 | x: number;
43 | y: number;
44 | };
45 | tooltipPosition(useFinalPosition: boolean): {
46 | x: number;
47 | y: number;
48 | };
49 | draw(ctx: CanvasRenderingContext2D): void;
50 | }
51 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/elements/element.bar.d.ts:
--------------------------------------------------------------------------------
1 | export default class BarElement extends Element {
2 | static id: string;
3 | /**
4 | * @type {any}
5 | */
6 | static defaults: any;
7 | constructor(cfg: any);
8 | options: any;
9 | horizontal: any;
10 | base: any;
11 | width: any;
12 | height: any;
13 | inflateAmount: any;
14 | draw(ctx: any): void;
15 | inRange(mouseX: any, mouseY: any, useFinalPosition: any): boolean;
16 | inXRange(mouseX: any, useFinalPosition: any): boolean;
17 | inYRange(mouseY: any, useFinalPosition: any): boolean;
18 | getCenterPoint(useFinalPosition: any): {
19 | x: number;
20 | y: number;
21 | };
22 | getRange(axis: any): number;
23 | }
24 | export type BarProps = {
25 | x: number;
26 | y: number;
27 | base: number;
28 | horizontal: boolean;
29 | width: number;
30 | height: number;
31 | };
32 | import Element from "../core/core.element.js";
33 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/elements/element.point.d.ts:
--------------------------------------------------------------------------------
1 | import Element from '../core/core.element.js';
2 | import type { CartesianParsedData, ChartArea, Point, PointHoverOptions, PointOptions } from '../types/index.js';
3 | export type PointProps = Point;
4 | export default class PointElement extends Element {
5 | static id: string;
6 | parsed: CartesianParsedData;
7 | skip?: boolean;
8 | stop?: boolean;
9 | /**
10 | * @type {any}
11 | */
12 | static defaults: {
13 | borderWidth: number;
14 | hitRadius: number;
15 | hoverBorderWidth: number;
16 | hoverRadius: number;
17 | pointStyle: string;
18 | radius: number;
19 | rotation: number;
20 | };
21 | /**
22 | * @type {any}
23 | */
24 | static defaultRoutes: {
25 | backgroundColor: string;
26 | borderColor: string;
27 | };
28 | constructor(cfg: any);
29 | inRange(mouseX: number, mouseY: number, useFinalPosition?: boolean): boolean;
30 | inXRange(mouseX: number, useFinalPosition?: boolean): boolean;
31 | inYRange(mouseY: number, useFinalPosition?: boolean): boolean;
32 | getCenterPoint(useFinalPosition?: boolean): {
33 | x: number;
34 | y: number;
35 | };
36 | size(options?: Partial): number;
37 | draw(ctx: CanvasRenderingContext2D, area: ChartArea): void;
38 | getRange(): any;
39 | }
40 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/elements/index.d.ts:
--------------------------------------------------------------------------------
1 | export { default as ArcElement } from "./element.arc.js";
2 | export { default as LineElement } from "./element.line.js";
3 | export { default as PointElement } from "./element.point.js";
4 | export { default as BarElement } from "./element.bar.js";
5 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers.cjs.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"helpers.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers.esm.min.js:
--------------------------------------------------------------------------------
1 | export{H as HALF_PI,b1 as INFINITY,P as PI,b0 as PITAU,b3 as QUARTER_PI,b2 as RAD_PER_DEG,T as TAU,b4 as TWO_THIRDS_PI,D as _addGrace,J as _alignPixel,S as _alignStartEnd,p as _angleBetween,b5 as _angleDiff,_ as _arrayUnique,a9 as _attachContext,at as _bezierCurveTo,aq as _bezierInterpolation,ay as _boundSegment,ao as _boundSegments,W as _capitalize,an as _computeSegments,aa as _createResolver,aL as _decimalPlaces,aU as _deprecated,ab as _descriptors,ai as _elementsEqual,A as _factorize,aN as _filterBetween,a2 as _getParentNode,q as _getStartAndCountOfVisiblePoints,I as _int16Range,ak as _isBetween,aj as _isClickEvent,a6 as _isDomSupported,$ as _isPointInArea,E as _limitValue,aM as _longestText,aO as _lookup,Z as _lookupByKey,G as _measureText,aS as _merger,aT as _mergerIf,az as _normalizeAngle,y as _parseObjectDataRadialScale,ar as _pointInLine,al as _readValueToProps,Y as _rlookupByKey,w as _scaleRangesChanged,aH as _setMinAndMaxByKey,aV as _splitKey,ap as _steppedInterpolation,as as _steppedLineTo,aC as _textX,R as _toLeftRightCenter,am as _updateBezierControlPoints,av as addRoundedRectPath,aK as almostEquals,aJ as almostWhole,C as callback,ag as clearCanvas,L as clipArea,aR as clone,c as color,h as createContext,ae as debounce,j as defined,aG as distanceBetweenPoints,au as drawPoint,aE as drawPointLegend,Q as each,e as easingEffects,B as finiteOrDefault,a_ as fontString,o as formatNumber,a0 as getAngleFromPoint,aQ as getHoverColor,a1 as getMaximumSize,X as getRelativePosition,aA as getRtlAdapter,aZ as getStyle,b as isArray,g as isFinite,a8 as isFunction,k as isNullOrUndef,x as isNumber,i as isObject,aP as isPatternOrGradient,l as listenArrayEvents,z as log10,V as merge,ac as mergeIf,aI as niceNum,aF as noop,aB as overrideTextDirection,a3 as readUsedSize,M as renderText,r as requestAnimFrame,a as resolve,f as resolveObjectKey,aD as restoreTextDirection,af as retinaScale,ah as setsEqual,s as sign,aX as splineCurve,aY as splineCurveMonotone,a5 as supportsEventListenerOptions,a4 as throttled,F as toDegrees,n as toDimension,O as toFont,aW as toFontString,a$ as toLineHeight,K as toPadding,m as toPercentage,t as toRadians,aw as toTRBL,ax as toTRBLCorners,ad as uid,N as unclipArea,u as unlistenArrayEvents,v as valueOrDefault}from"./chunks/helpers.segment.js";
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"helpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers/helpers.color.d.ts:
--------------------------------------------------------------------------------
1 | import { Color } from '@kurkle/color';
2 | export declare function isPatternOrGradient(value: unknown): value is CanvasPattern | CanvasGradient;
3 | export declare function color(value: CanvasGradient): CanvasGradient;
4 | export declare function color(value: CanvasPattern): CanvasPattern;
5 | export declare function color(value: string | {
6 | r: number;
7 | g: number;
8 | b: number;
9 | a: number;
10 | } | [number, number, number] | [number, number, number, number]): Color;
11 | export declare function getHoverColor(value: CanvasGradient): CanvasGradient;
12 | export declare function getHoverColor(value: CanvasPattern): CanvasPattern;
13 | export declare function getHoverColor(value: string): string;
14 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers/helpers.config.d.ts:
--------------------------------------------------------------------------------
1 | import type { AnyObject } from '../types/basic.js';
2 | import type { ChartMeta } from '../types/index.js';
3 | import type { ResolverObjectKey, ResolverCache, ResolverProxy, DescriptorDefaults, Descriptor, ContextProxy } from './helpers.config.types.js';
4 | export * from './helpers.config.types.js';
5 | /**
6 | * Creates a Proxy for resolving raw values for options.
7 | * @param scopes - The option scopes to look for values, in resolution order
8 | * @param prefixes - The prefixes for values, in resolution order.
9 | * @param rootScopes - The root option scopes
10 | * @param fallback - Parent scopes fallback
11 | * @param getTarget - callback for getting the target for changed values
12 | * @returns Proxy
13 | * @private
14 | */
15 | export declare function _createResolver(scopes: T, prefixes?: string[], rootScopes?: R, fallback?: ResolverObjectKey, getTarget?: () => AnyObject): any;
16 | /**
17 | * Returns an Proxy for resolving option values with context.
18 | * @param proxy - The Proxy returned by `_createResolver`
19 | * @param context - Context object for scriptable/indexable options
20 | * @param subProxy - The proxy provided for scriptable options
21 | * @param descriptorDefaults - Defaults for descriptors
22 | * @private
23 | */
24 | export declare function _attachContext(proxy: ResolverProxy, context: AnyObject, subProxy?: ResolverProxy, descriptorDefaults?: DescriptorDefaults): ContextProxy;
25 | /**
26 | * @private
27 | */
28 | export declare function _descriptors(proxy: ResolverCache, defaults?: DescriptorDefaults): Descriptor;
29 | export declare function _parseObjectDataRadialScale(meta: ChartMeta<'line' | 'scatter'>, data: AnyObject[], start: number, count: number): {
30 | r: unknown;
31 | }[];
32 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers/helpers.config.types.d.ts:
--------------------------------------------------------------------------------
1 | import type { AnyObject } from '../types/basic.js';
2 | import type { Merge } from '../types/utils.js';
3 | export type ResolverObjectKey = string | boolean;
4 | export interface ResolverCache {
5 | [Symbol.toStringTag]: 'Object';
6 | _cacheable: boolean;
7 | _scopes: T;
8 | _rootScopes: T | R;
9 | _fallback: ResolverObjectKey;
10 | _keys?: string[];
11 | _scriptable?: boolean;
12 | _indexable?: boolean;
13 | _allKeys?: boolean;
14 | _storage?: T[number];
15 | _getTarget(): T[number];
16 | override(scope: S): ResolverProxy<(T[number] | S)[], T | R>;
17 | }
18 | export type ResolverProxy = Merge & ResolverCache;
19 | export interface DescriptorDefaults {
20 | scriptable: boolean;
21 | indexable: boolean;
22 | allKeys?: boolean;
23 | }
24 | export interface Descriptor {
25 | allKeys: boolean;
26 | scriptable: boolean;
27 | indexable: boolean;
28 | isScriptable(key: string): boolean;
29 | isIndexable(key: string): boolean;
30 | }
31 | export interface ContextCache {
32 | _cacheable: boolean;
33 | _proxy: ResolverProxy;
34 | _context: AnyObject;
35 | _subProxy: ResolverProxy;
36 | _stack: Set;
37 | _descriptors: Descriptor;
38 | setContext(ctx: AnyObject): ContextProxy;
39 | override(scope: S): ContextProxy<(T[number] | S)[], T | R>;
40 | }
41 | export type ContextProxy = Merge & ContextCache;
42 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers/helpers.curve.d.ts:
--------------------------------------------------------------------------------
1 | import type { ChartArea } from '../types/index.js';
2 | import type { SplinePoint } from '../types/geometric.js';
3 | export declare function splineCurve(firstPoint: SplinePoint, middlePoint: SplinePoint, afterPoint: SplinePoint, t: number): {
4 | previous: SplinePoint;
5 | next: SplinePoint;
6 | };
7 | /**
8 | * This function calculates Bézier control points in a similar way than |splineCurve|,
9 | * but preserves monotonicity of the provided data and ensures no local extremums are added
10 | * between the dataset discrete points due to the interpolation.
11 | * See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation
12 | */
13 | export declare function splineCurveMonotone(points: SplinePoint[], indexAxis?: 'x' | 'y'): void;
14 | /**
15 | * @private
16 | */
17 | export declare function _updateBezierControlPoints(points: SplinePoint[], options: any, area: ChartArea, loop: boolean, indexAxis: 'x' | 'y'): void;
18 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers/helpers.easing.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * Easing functions adapted from Robert Penner's easing equations.
3 | * @namespace Chart.helpers.easing.effects
4 | * @see http://www.robertpenner.com/easing/
5 | */
6 | declare const effects: {
7 | readonly linear: (t: number) => number;
8 | readonly easeInQuad: (t: number) => number;
9 | readonly easeOutQuad: (t: number) => number;
10 | readonly easeInOutQuad: (t: number) => number;
11 | readonly easeInCubic: (t: number) => number;
12 | readonly easeOutCubic: (t: number) => number;
13 | readonly easeInOutCubic: (t: number) => number;
14 | readonly easeInQuart: (t: number) => number;
15 | readonly easeOutQuart: (t: number) => number;
16 | readonly easeInOutQuart: (t: number) => number;
17 | readonly easeInQuint: (t: number) => number;
18 | readonly easeOutQuint: (t: number) => number;
19 | readonly easeInOutQuint: (t: number) => number;
20 | readonly easeInSine: (t: number) => number;
21 | readonly easeOutSine: (t: number) => number;
22 | readonly easeInOutSine: (t: number) => number;
23 | readonly easeInExpo: (t: number) => number;
24 | readonly easeOutExpo: (t: number) => number;
25 | readonly easeInOutExpo: (t: number) => number;
26 | readonly easeInCirc: (t: number) => number;
27 | readonly easeOutCirc: (t: number) => number;
28 | readonly easeInOutCirc: (t: number) => number;
29 | readonly easeInElastic: (t: number) => number;
30 | readonly easeOutElastic: (t: number) => number;
31 | readonly easeInOutElastic: (t: number) => number;
32 | readonly easeInBack: (t: number) => number;
33 | readonly easeOutBack: (t: number) => number;
34 | readonly easeInOutBack: (t: number) => number;
35 | readonly easeInBounce: (t: number) => number;
36 | readonly easeOutBounce: (t: number) => number;
37 | readonly easeInOutBounce: (t: number) => number;
38 | };
39 | export type EasingFunction = keyof typeof effects;
40 | export default effects;
41 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers/helpers.extras.d.ts:
--------------------------------------------------------------------------------
1 | import type { ChartMeta, PointElement } from '../types/index.js';
2 | export declare function fontString(pixelSize: number, fontStyle: string, fontFamily: string): string;
3 | /**
4 | * Request animation polyfill
5 | */
6 | export declare const requestAnimFrame: (((callback: FrameRequestCallback) => number) & typeof requestAnimationFrame) | ((callback: any) => any);
7 | /**
8 | * Throttles calling `fn` once per animation frame
9 | * Latest arguments are used on the actual call
10 | */
11 | export declare function throttled>(fn: (...args: TArgs) => void, thisArg: any): (...args: TArgs) => void;
12 | /**
13 | * Debounces calling `fn` for `delay` ms
14 | */
15 | export declare function debounce>(fn: (...args: TArgs) => void, delay: number): (...args: TArgs) => number;
16 | /**
17 | * Converts 'start' to 'left', 'end' to 'right' and others to 'center'
18 | * @private
19 | */
20 | export declare const _toLeftRightCenter: (align: 'start' | 'end' | 'center') => "center" | "left" | "right";
21 | /**
22 | * Returns `start`, `end` or `(start + end) / 2` depending on `align`. Defaults to `center`
23 | * @private
24 | */
25 | export declare const _alignStartEnd: (align: 'start' | 'end' | 'center', start: number, end: number) => number;
26 | /**
27 | * Returns `left`, `right` or `(left + right) / 2` depending on `align`. Defaults to `left`
28 | * @private
29 | */
30 | export declare const _textX: (align: 'left' | 'right' | 'center', left: number, right: number, rtl: boolean) => number;
31 | /**
32 | * Return start and count of visible points.
33 | * @private
34 | */
35 | export declare function _getStartAndCountOfVisiblePoints(meta: ChartMeta<'line' | 'scatter'>, points: PointElement[], animationsDisabled: boolean): {
36 | start: number;
37 | count: number;
38 | };
39 | /**
40 | * Checks if the scale ranges have changed.
41 | * @param {object} meta - dataset meta.
42 | * @returns {boolean}
43 | * @private
44 | */
45 | export declare function _scaleRangesChanged(meta: any): boolean;
46 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers/helpers.interpolation.d.ts:
--------------------------------------------------------------------------------
1 | import type { Point, SplinePoint } from '../types/geometric.js';
2 | /**
3 | * @private
4 | */
5 | export declare function _pointInLine(p1: Point, p2: Point, t: number, mode?: any): {
6 | x: number;
7 | y: number;
8 | };
9 | /**
10 | * @private
11 | */
12 | export declare function _steppedInterpolation(p1: Point, p2: Point, t: number, mode: 'middle' | 'after' | unknown): {
13 | x: number;
14 | y: number;
15 | };
16 | /**
17 | * @private
18 | */
19 | export declare function _bezierInterpolation(p1: SplinePoint, p2: SplinePoint, t: number, mode?: any): {
20 | x: number;
21 | y: number;
22 | };
23 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers/helpers.intl.d.ts:
--------------------------------------------------------------------------------
1 | export declare function formatNumber(num: number, locale: string, options?: Intl.NumberFormatOptions): string;
2 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers/helpers.rtl.d.ts:
--------------------------------------------------------------------------------
1 | export interface RTLAdapter {
2 | x(x: number): number;
3 | setWidth(w: number): void;
4 | textAlign(align: 'center' | 'left' | 'right'): 'center' | 'left' | 'right';
5 | xPlus(x: number, value: number): number;
6 | leftForLtr(x: number, itemWidth: number): number;
7 | }
8 | export declare function getRtlAdapter(rtl: boolean, rectX: number, width: number): RTLAdapter;
9 | export declare function overrideTextDirection(ctx: CanvasRenderingContext2D, direction: 'ltr' | 'rtl'): void;
10 | export declare function restoreTextDirection(ctx: CanvasRenderingContext2D, original?: [string, string]): void;
11 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/helpers/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './helpers.color.js';
2 | export * from './helpers.core.js';
3 | export * from './helpers.canvas.js';
4 | export * from './helpers.collection.js';
5 | export * from './helpers.config.js';
6 | export * from './helpers.curve.js';
7 | export * from './helpers.dom.js';
8 | export { default as easingEffects } from './helpers.easing.js';
9 | export * from './helpers.extras.js';
10 | export * from './helpers.interpolation.js';
11 | export * from './helpers.intl.js';
12 | export * from './helpers.options.js';
13 | export * from './helpers.math.js';
14 | export * from './helpers.rtl.js';
15 | export * from './helpers.segment.js';
16 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './controllers/index.js';
2 | export * from './core/index.js';
3 | export * from './elements/index.js';
4 | export * from './platform/index.js';
5 | export * from './plugins/index.js';
6 | export * from './scales/index.js';
7 | import * as controllers from './controllers/index.js';
8 | import * as elements from './elements/index.js';
9 | import * as plugins from './plugins/index.js';
10 | import * as scales from './scales/index.js';
11 | export { controllers, elements, plugins, scales, };
12 | export declare const registerables: (typeof controllers | typeof elements | typeof plugins | typeof scales)[];
13 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/index.umd.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @namespace Chart
3 | */
4 | import Chart from './core/core.controller.js';
5 | export default Chart;
6 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/platform/index.d.ts:
--------------------------------------------------------------------------------
1 | export function _detectPlatform(canvas: any): typeof BasicPlatform | typeof DomPlatform;
2 | import BasicPlatform from "./platform.basic.js";
3 | import DomPlatform from "./platform.dom.js";
4 | import BasePlatform from "./platform.base.js";
5 | export { BasePlatform, BasicPlatform, DomPlatform };
6 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/platform/platform.basic.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * Platform class for charts without access to the DOM or to many element properties
3 | * This platform is used by default for any chart passed an OffscreenCanvas.
4 | * @extends BasePlatform
5 | */
6 | export default class BasicPlatform extends BasePlatform {
7 | acquireContext(item: any): any;
8 | updateConfig(config: any): void;
9 | }
10 | import BasePlatform from "./platform.base.js";
11 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/platform/platform.dom.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * Platform class for charts that can access the DOM and global window/document properties
3 | * @extends BasePlatform
4 | */
5 | export default class DomPlatform extends BasePlatform {
6 | /**
7 | * @param {HTMLCanvasElement} canvas
8 | * @param {number} [aspectRatio]
9 | * @return {CanvasRenderingContext2D|null}
10 | */
11 | acquireContext(canvas: HTMLCanvasElement, aspectRatio?: number): CanvasRenderingContext2D | null;
12 | /**
13 | * @param {Chart} chart
14 | * @param {string} type
15 | */
16 | removeEventListener(chart: Chart, type: string): void;
17 | }
18 | export type Chart = import('../core/core.controller.js').default;
19 | import BasePlatform from "./platform.base.js";
20 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/index.d.ts:
--------------------------------------------------------------------------------
1 | export { default as Colors } from "./plugin.colors.js";
2 | export { default as Decimation } from "./plugin.decimation.js";
3 | export { default as Filler } from "./plugin.filler/index.js";
4 | export { default as Legend } from "./plugin.legend.js";
5 | export { default as SubTitle } from "./plugin.subtitle.js";
6 | export { default as Title } from "./plugin.title.js";
7 | export { default as Tooltip } from "./plugin.tooltip.js";
8 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.colors.d.ts:
--------------------------------------------------------------------------------
1 | import type { Chart } from '../types.js';
2 | export interface ColorsPluginOptions {
3 | enabled?: boolean;
4 | forceOverride?: boolean;
5 | }
6 | declare const _default: {
7 | id: string;
8 | defaults: ColorsPluginOptions;
9 | beforeLayout(chart: Chart, _args: any, options: ColorsPluginOptions): void;
10 | };
11 | export default _default;
12 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.decimation.d.ts:
--------------------------------------------------------------------------------
1 | declare namespace _default {
2 | const id: string;
3 | namespace defaults {
4 | const algorithm: string;
5 | const enabled: boolean;
6 | }
7 | function beforeElementsUpdate(chart: any, args: any, options: any): void;
8 | function destroy(chart: any): void;
9 | }
10 | export default _default;
11 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.filler/filler.drawing.d.ts:
--------------------------------------------------------------------------------
1 | export function _drawfill(ctx: any, source: any, area: any): void;
2 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.filler/filler.helper.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @param {PointElement[] | { x: number; y: number; }} boundary
3 | * @param {LineElement} line
4 | * @return {LineElement?}
5 | */
6 | export function _createBoundaryLine(boundary: PointElement[] | {
7 | x: number;
8 | y: number;
9 | }, line: LineElement): LineElement | null;
10 | export function _shouldApplyFill(source: any): boolean;
11 | export type Chart = import('../../core/core.controller.js').default;
12 | export type Scale = import('../../core/core.scale.js').default;
13 | export type PointElement = import('../../elements/element.point.js').default;
14 | import { LineElement } from "../../elements/index.js";
15 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.filler/filler.options.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @typedef { import('../../core/core.scale.js').default } Scale
3 | * @typedef { import('../../elements/element.line.js').default } LineElement
4 | * @typedef { import('../../types/index.js').FillTarget } FillTarget
5 | * @typedef { import('../../types/index.js').ComplexFillTarget } ComplexFillTarget
6 | */
7 | export function _resolveTarget(sources: any, index: any, propagate: any): any;
8 | /**
9 | * @param {LineElement} line
10 | * @param {number} index
11 | * @param {number} count
12 | */
13 | export function _decodeFill(line: LineElement, index: number, count: number): any;
14 | /**
15 | * @param {FillTarget | ComplexFillTarget} fill
16 | * @param {Scale} scale
17 | * @returns {number | null}
18 | */
19 | export function _getTargetPixel(fill: FillTarget | ComplexFillTarget, scale: Scale): number | null;
20 | /**
21 | * @param {FillTarget | ComplexFillTarget} fill
22 | * @param {Scale} scale
23 | * @param {number} startValue
24 | * @returns {number | undefined}
25 | */
26 | export function _getTargetValue(fill: FillTarget | ComplexFillTarget, scale: Scale, startValue: number): number | undefined;
27 | export type Scale = import('../../core/core.scale.js').default;
28 | export type LineElement = import('../../elements/element.line.js').default;
29 | export type FillTarget = import('../../types/index.js').FillTarget;
30 | export type ComplexFillTarget = import('../../types/index.js').ComplexFillTarget;
31 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.filler/filler.segment.d.ts:
--------------------------------------------------------------------------------
1 | export function _segments(line: any, target: any, property: any): ({
2 | source: any;
3 | target: {
4 | property: any;
5 | start: any;
6 | end: any;
7 | };
8 | start: any;
9 | end: any;
10 | } | {
11 | source: {
12 | start: number;
13 | end: number;
14 | loop: boolean;
15 | style?: any;
16 | };
17 | target: {
18 | start: number;
19 | end: number;
20 | loop: boolean;
21 | style?: any;
22 | };
23 | start: {
24 | [x: number]: any;
25 | };
26 | end: {
27 | [x: number]: any;
28 | };
29 | })[];
30 | export function _getBounds(property: any, first: any, last: any, loop: any): {
31 | property: any;
32 | start: any;
33 | end: any;
34 | };
35 | export function _pointsFromSegments(boundary: any, line: any): any[];
36 | export function _findSegmentEnd(start: any, end: any, points: any): any;
37 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.filler/filler.target.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @typedef { import('../../core/core.controller.js').default } Chart
3 | * @typedef { import('../../core/core.scale.js').default } Scale
4 | * @typedef { import('../../elements/element.point.js').default } PointElement
5 | */
6 | export function _getTarget(source: any): any;
7 | export type Chart = import('../../core/core.controller.js').default;
8 | export type Scale = import('../../core/core.scale.js').default;
9 | export type PointElement = import('../../elements/element.point.js').default;
10 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.filler/filler.target.stack.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @param {{ chart: Chart; scale: Scale; index: number; line: LineElement; }} source
3 | * @return {LineElement}
4 | */
5 | export function _buildStackLine(source: {
6 | chart: Chart;
7 | scale: Scale;
8 | index: number;
9 | line: LineElement;
10 | }): LineElement;
11 | export type Chart = import('../../core/core.controller.js').default;
12 | export type Scale = import('../../core/core.scale.js').default;
13 | export type PointElement = import('../../elements/element.point.js').default;
14 | import { LineElement } from "../../elements/index.js";
15 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.filler/index.d.ts:
--------------------------------------------------------------------------------
1 | declare namespace _default {
2 | const id: string;
3 | function afterDatasetsUpdate(chart: any, _args: any, options: any): void;
4 | function beforeDraw(chart: any, _args: any, options: any): void;
5 | function beforeDatasetsDraw(chart: any, _args: any, options: any): void;
6 | function beforeDatasetDraw(chart: any, args: any, options: any): void;
7 | namespace defaults {
8 | const propagate: boolean;
9 | const drawTime: string;
10 | }
11 | }
12 | export default _default;
13 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.filler/simpleArc.d.ts:
--------------------------------------------------------------------------------
1 | export class simpleArc {
2 | constructor(opts: any);
3 | x: any;
4 | y: any;
5 | radius: any;
6 | pathSegment(ctx: any, bounds: any, opts: any): boolean;
7 | interpolate(point: any): {
8 | x: any;
9 | y: any;
10 | angle: any;
11 | };
12 | }
13 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.subtitle.d.ts:
--------------------------------------------------------------------------------
1 | declare namespace _default {
2 | const id: string;
3 | function start(chart: any, _args: any, options: any): void;
4 | function stop(chart: any): void;
5 | function beforeUpdate(chart: any, _args: any, options: any): void;
6 | namespace defaults {
7 | export const align: string;
8 | export const display: boolean;
9 | export namespace font {
10 | const weight: string;
11 | }
12 | export const fullSize: boolean;
13 | export const padding: number;
14 | export const position: string;
15 | export const text: string;
16 | const weight_1: number;
17 | export { weight_1 as weight };
18 | }
19 | namespace defaultRoutes {
20 | const color: string;
21 | }
22 | namespace descriptors {
23 | const _scriptable: boolean;
24 | const _indexable: boolean;
25 | }
26 | }
27 | export default _default;
28 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/plugins/plugin.title.d.ts:
--------------------------------------------------------------------------------
1 | export class Title extends Element {
2 | /**
3 | * @param {{ ctx: any; options: any; chart: any; }} config
4 | */
5 | constructor(config: {
6 | ctx: any;
7 | options: any;
8 | chart: any;
9 | });
10 | chart: any;
11 | options: any;
12 | ctx: any;
13 | _padding: import("../types.js").ChartArea;
14 | top: number;
15 | bottom: any;
16 | left: number;
17 | right: any;
18 | width: any;
19 | height: any;
20 | position: any;
21 | weight: any;
22 | fullSize: any;
23 | update(maxWidth: any, maxHeight: any): void;
24 | isHorizontal(): boolean;
25 | _drawArgs(offset: any): {
26 | titleX: any;
27 | titleY: any;
28 | maxWidth: number;
29 | rotation: number;
30 | };
31 | draw(): void;
32 | }
33 | declare namespace _default {
34 | export const id: string;
35 | export { Title as _element };
36 | export function start(chart: any, _args: any, options: any): void;
37 | export function stop(chart: any): void;
38 | export function beforeUpdate(chart: any, _args: any, options: any): void;
39 | export namespace defaults {
40 | export const align: string;
41 | export const display: boolean;
42 | export namespace font {
43 | const weight: string;
44 | }
45 | export const fullSize: boolean;
46 | export const padding: number;
47 | export const position: string;
48 | export const text: string;
49 | const weight_1: number;
50 | export { weight_1 as weight };
51 | }
52 | export namespace defaultRoutes {
53 | const color: string;
54 | }
55 | export namespace descriptors {
56 | const _scriptable: boolean;
57 | const _indexable: boolean;
58 | }
59 | }
60 | export default _default;
61 | import Element from "../core/core.element.js";
62 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/scales/index.d.ts:
--------------------------------------------------------------------------------
1 | export { default as CategoryScale } from "./scale.category.js";
2 | export { default as LinearScale } from "./scale.linear.js";
3 | export { default as LogarithmicScale } from "./scale.logarithmic.js";
4 | export { default as RadialLinearScale } from "./scale.radialLinear.js";
5 | export { default as TimeScale } from "./scale.time.js";
6 | export { default as TimeSeriesScale } from "./scale.timeseries.js";
7 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/scales/scale.category.d.ts:
--------------------------------------------------------------------------------
1 | export default class CategoryScale extends Scale {
2 | static id: string;
3 | /**
4 | * @type {any}
5 | */
6 | static defaults: any;
7 | /** @type {number} */
8 | _startValue: number;
9 | _valueRange: number;
10 | _addedLabels: any[];
11 | init(scaleOptions: any): void;
12 | parse(raw: any, index: any): number;
13 | buildTicks(): {
14 | value: any;
15 | }[];
16 | getLabelForValue(value: any): any;
17 | getPixelForValue(value: any): number;
18 | getPixelForTick(index: any): number;
19 | getValueForPixel(pixel: any): number;
20 | }
21 | import Scale from "../core/core.scale.js";
22 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/scales/scale.linear.d.ts:
--------------------------------------------------------------------------------
1 | export default class LinearScale extends LinearScaleBase {
2 | static id: string;
3 | /**
4 | * @type {any}
5 | */
6 | static defaults: any;
7 | getPixelForValue(value: any): number;
8 | getValueForPixel(pixel: any): number;
9 | }
10 | import LinearScaleBase from "./scale.linearbase.js";
11 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/scales/scale.linearbase.d.ts:
--------------------------------------------------------------------------------
1 | export default class LinearScaleBase extends Scale {
2 | /** @type {number} */
3 | start: number;
4 | /** @type {number} */
5 | end: number;
6 | /** @type {number} */
7 | _startValue: number;
8 | /** @type {number} */
9 | _endValue: number;
10 | _valueRange: number;
11 | parse(raw: any, index: any): number;
12 | handleTickRangeOptions(): void;
13 | getTickLimit(): number;
14 | /**
15 | * @protected
16 | */
17 | protected computeTickLimit(): number;
18 | getLabelForValue(value: any): string;
19 | }
20 | import Scale from "../core/core.scale.js";
21 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/scales/scale.logarithmic.d.ts:
--------------------------------------------------------------------------------
1 | export default class LogarithmicScale extends Scale {
2 | static id: string;
3 | /**
4 | * @type {any}
5 | */
6 | static defaults: any;
7 | /** @type {number} */
8 | start: number;
9 | /** @type {number} */
10 | end: number;
11 | /** @type {number} */
12 | _startValue: number;
13 | _valueRange: number;
14 | parse(raw: any, index: any): number;
15 | _zero: boolean;
16 | handleTickRangeOptions(): void;
17 | /**
18 | * @param {number} value
19 | * @return {string}
20 | */
21 | getLabelForValue(value: number): string;
22 | getPixelForValue(value: any): number;
23 | getValueForPixel(pixel: any): number;
24 | }
25 | import Scale from "../core/core.scale.js";
26 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/scales/scale.radialLinear.d.ts:
--------------------------------------------------------------------------------
1 | export default class RadialLinearScale extends LinearScaleBase {
2 | static id: string;
3 | /**
4 | * @type {any}
5 | */
6 | static defaults: any;
7 | static defaultRoutes: {
8 | 'angleLines.color': string;
9 | 'pointLabels.color': string;
10 | 'ticks.color': string;
11 | };
12 | static descriptors: {
13 | angleLines: {
14 | _fallback: string;
15 | };
16 | };
17 | /** @type {number} */
18 | xCenter: number;
19 | /** @type {number} */
20 | yCenter: number;
21 | /** @type {number} */
22 | drawingArea: number;
23 | /** @type {string[]} */
24 | _pointLabels: string[];
25 | _pointLabelItems: any[];
26 | _padding: import("../types.js").ChartArea;
27 | generateTickLabels(ticks: any): void;
28 | setCenterPoint(leftMovement: any, rightMovement: any, topMovement: any, bottomMovement: any): void;
29 | getIndexAngle(index: any): number;
30 | getDistanceFromCenterForValue(value: any): number;
31 | getValueForDistanceFromCenter(distance: any): any;
32 | getPointLabelContext(index: any): any;
33 | getPointPosition(index: any, distanceFromCenter: any, additionalAngle?: number): {
34 | x: number;
35 | y: number;
36 | angle: number;
37 | };
38 | getPointPositionForValue(index: any, value: any): {
39 | x: number;
40 | y: number;
41 | angle: number;
42 | };
43 | getBasePosition(index: any): {
44 | x: number;
45 | y: number;
46 | angle: number;
47 | };
48 | getPointLabelPosition(index: any): {
49 | left: any;
50 | top: any;
51 | right: any;
52 | bottom: any;
53 | };
54 | /**
55 | * @protected
56 | */
57 | protected drawGrid(): void;
58 | /**
59 | * @protected
60 | */
61 | protected drawLabels(): void;
62 | }
63 | import LinearScaleBase from "./scale.linearbase.js";
64 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/scales/scale.timeseries.d.ts:
--------------------------------------------------------------------------------
1 | export default TimeSeriesScale;
2 | declare class TimeSeriesScale extends TimeScale {
3 | /** @type {object[]} */
4 | _table: object[];
5 | /** @type {number} */
6 | _minPos: number;
7 | /** @type {number} */
8 | _tableRange: number;
9 | /**
10 | * @protected
11 | */
12 | protected initOffsets(): void;
13 | /**
14 | * Returns an array of {time, pos} objects used to interpolate a specific `time` or position
15 | * (`pos`) on the scale, by searching entries before and after the requested value. `pos` is
16 | * a decimal between 0 and 1: 0 being the start of the scale (left or top) and 1 the other
17 | * extremity (left + width or top + height). Note that it would be more optimized to directly
18 | * store pre-computed pixels, but the scale dimensions are not guaranteed at the time we need
19 | * to create the lookup table. The table ALWAYS contains at least two items: min and max.
20 | * @param {number[]} timestamps
21 | * @return {object[]}
22 | * @protected
23 | */
24 | protected buildLookupTable(timestamps: number[]): object[];
25 | /**
26 | * Generates all timestamps defined in the data.
27 | * Important: this method can return ticks outside the min and max range, it's the
28 | * responsibility of the calling code to clamp values if needed.
29 | * @protected
30 | */
31 | protected _generate(): any;
32 | /**
33 | * Returns all timestamps
34 | * @return {number[]}
35 | * @private
36 | */
37 | private _getTimestampsForTable;
38 | }
39 | import TimeScale from "./scale.time.js";
40 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/types.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * Temporary entry point of the types at the time of the transition.
3 | * After transition done need to remove it in favor of index.ts
4 | */
5 | export * from './index.js';
6 | /**
7 | * Explicitly re-exporting to resolve the ambiguity.
8 | */
9 | export { BarController, BubbleController, DoughnutController, LineController, PieController, PolarAreaController, RadarController, ScatterController, Animation, Animations, Chart, DatasetController, Interaction, Scale, Ticks, defaults, layouts, registry, ArcElement, BarElement, LineElement, PointElement, BasePlatform, BasicPlatform, DomPlatform, Decimation, Filler, Legend, SubTitle, Title, Tooltip, CategoryScale, LinearScale, LogarithmicScale, RadialLinearScale, TimeScale, TimeSeriesScale, PluginOptionsByType, ElementOptionsByType, ChartDatasetProperties, UpdateModeEnum, registerables } from './types/index.js';
10 | export * from './types/index.js';
11 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/types/animation.d.ts:
--------------------------------------------------------------------------------
1 | import {Chart} from './index.js';
2 | import {AnyObject} from './basic.js';
3 |
4 | export declare class Animation {
5 | constructor(cfg: AnyObject, target: AnyObject, prop: string, to?: unknown);
6 | active(): boolean;
7 | update(cfg: AnyObject, to: unknown, date: number): void;
8 | cancel(): void;
9 | tick(date: number): void;
10 | readonly _to: unknown;
11 | }
12 |
13 | export interface AnimationEvent {
14 | chart: Chart;
15 | numSteps: number;
16 | initial: boolean;
17 | currentStep: number;
18 | }
19 |
20 | export declare class Animator {
21 | listen(chart: Chart, event: 'complete' | 'progress', cb: (event: AnimationEvent) => void): void;
22 | add(chart: Chart, items: readonly Animation[]): void;
23 | has(chart: Chart): boolean;
24 | start(chart: Chart): void;
25 | running(chart: Chart): boolean;
26 | stop(chart: Chart): void;
27 | remove(chart: Chart): boolean;
28 | }
29 |
30 | export declare class Animations {
31 | constructor(chart: Chart, animations: AnyObject);
32 | configure(animations: AnyObject): void;
33 | update(target: AnyObject, values: AnyObject): undefined | boolean;
34 | }
35 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/types/basic.d.ts:
--------------------------------------------------------------------------------
1 |
2 | export type AnyObject = Record;
3 | export type EmptyObject = Record;
4 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/types/color.d.ts:
--------------------------------------------------------------------------------
1 | export type Color = string | CanvasGradient | CanvasPattern;
2 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/types/geometric.d.ts:
--------------------------------------------------------------------------------
1 | export interface ChartArea {
2 | top: number;
3 | left: number;
4 | right: number;
5 | bottom: number;
6 | width: number;
7 | height: number;
8 | }
9 |
10 | export interface Point {
11 | x: number;
12 | y: number;
13 | }
14 |
15 | export type TRBL = {
16 | top: number;
17 | right: number;
18 | bottom: number;
19 | left: number;
20 | }
21 |
22 | export type TRBLCorners = {
23 | topLeft: number;
24 | topRight: number;
25 | bottomLeft: number;
26 | bottomRight: number;
27 | };
28 |
29 | export type CornerRadius = number | Partial;
30 |
31 | export type RoundedRect = {
32 | x: number;
33 | y: number;
34 | w: number;
35 | h: number;
36 | radius?: CornerRadius
37 | }
38 |
39 | export type Padding = Partial | number | Point;
40 |
41 | export interface SplinePoint {
42 | x: number;
43 | y: number;
44 | skip?: boolean;
45 |
46 | // Both Bezier and monotone interpolations have these fields
47 | // but they are added in different spots
48 | cp1x?: number;
49 | cp1y?: number;
50 | cp2x?: number;
51 | cp2y?: number;
52 | }
53 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/types/layout.d.ts:
--------------------------------------------------------------------------------
1 | import {ChartArea} from './geometric.js';
2 |
3 | export type LayoutPosition = 'left' | 'top' | 'right' | 'bottom' | 'center' | 'chartArea' | {[scaleId: string]: number};
4 |
5 | export interface LayoutItem {
6 | /**
7 | * The position of the item in the chart layout. Possible values are
8 | */
9 | position: LayoutPosition;
10 | /**
11 | * The weight used to sort the item. Higher weights are further away from the chart area
12 | */
13 | weight: number;
14 | /**
15 | * if true, and the item is horizontal, then push vertical boxes down
16 | */
17 | fullSize: boolean;
18 | /**
19 | * Width of item. Must be valid after update()
20 | */
21 | width: number;
22 | /**
23 | * Height of item. Must be valid after update()
24 | */
25 | height: number;
26 | /**
27 | * Left edge of the item. Set by layout system and cannot be used in update
28 | */
29 | left: number;
30 | /**
31 | * Top edge of the item. Set by layout system and cannot be used in update
32 | */
33 | top: number;
34 | /**
35 | * Right edge of the item. Set by layout system and cannot be used in update
36 | */
37 | right: number;
38 | /**
39 | * Bottom edge of the item. Set by layout system and cannot be used in update
40 | */
41 | bottom: number;
42 |
43 | /**
44 | * Called before the layout process starts
45 | */
46 | beforeLayout?(): void;
47 | /**
48 | * Draws the element
49 | */
50 | draw(chartArea: ChartArea): void;
51 | /**
52 | * Returns an object with padding on the edges
53 | */
54 | getPadding?(): ChartArea;
55 | /**
56 | * returns true if the layout item is horizontal (ie. top or bottom)
57 | */
58 | isHorizontal(): boolean;
59 | /**
60 | * Takes two parameters: width and height.
61 | * @param width
62 | * @param height
63 | */
64 | update(width: number, height: number, margins?: ChartArea): void;
65 | }
66 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/Chart.js/types/utils.d.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable @typescript-eslint/ban-types */
2 |
3 | // DeepPartial implementation taken from the utility-types NPM package, which is
4 | // Copyright (c) 2016 Piotr Witek (http://piotrwitek.github.io)
5 | // and used under the terms of the MIT license
6 | export type DeepPartial = T extends Function
7 | ? T
8 | : T extends Array
9 | ? _DeepPartialArray
10 | : T extends object
11 | ? _DeepPartialObject
12 | : T | undefined;
13 |
14 | type _DeepPartialArray = Array>
15 | type _DeepPartialObject = { [P in keyof T]?: DeepPartial };
16 |
17 | export type DistributiveArray = [T] extends [unknown] ? Array : never
18 |
19 | // https://stackoverflow.com/a/50375286
20 | export type UnionToIntersection = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
21 |
22 | export type AllKeys = T extends any ? keyof T : never;
23 |
24 | export type PickType> = T extends { [k in K]?: any }
25 | ? T[K]
26 | : undefined;
27 |
28 | export type Merge = {
29 | [k in AllKeys]: PickType;
30 | };
31 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/chartjs-adapter-moment/chartjs-adapter-moment.esm.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * chartjs-adapter-moment v1.0.1
3 | * https://www.chartjs.org
4 | * (c) 2022 chartjs-adapter-moment Contributors
5 | * Released under the MIT license
6 | */
7 | import moment from 'moment';
8 | import { _adapters } from 'chart.js';
9 |
10 | const FORMATS = {
11 | datetime: 'MMM D, YYYY, h:mm:ss a',
12 | millisecond: 'h:mm:ss.SSS a',
13 | second: 'h:mm:ss a',
14 | minute: 'h:mm a',
15 | hour: 'hA',
16 | day: 'MMM D',
17 | week: 'll',
18 | month: 'MMM YYYY',
19 | quarter: '[Q]Q - YYYY',
20 | year: 'YYYY'
21 | };
22 |
23 | _adapters._date.override(typeof moment === 'function' ? {
24 | _id: 'moment', // DEBUG ONLY
25 |
26 | formats: function() {
27 | return FORMATS;
28 | },
29 |
30 | parse: function(value, format) {
31 | if (typeof value === 'string' && typeof format === 'string') {
32 | value = moment(value, format);
33 | } else if (!(value instanceof moment)) {
34 | value = moment(value);
35 | }
36 | return value.isValid() ? value.valueOf() : null;
37 | },
38 |
39 | format: function(time, format) {
40 | return moment(time).format(format);
41 | },
42 |
43 | add: function(time, amount, unit) {
44 | return moment(time).add(amount, unit).valueOf();
45 | },
46 |
47 | diff: function(max, min, unit) {
48 | return moment(max).diff(moment(min), unit);
49 | },
50 |
51 | startOf: function(time, unit, weekday) {
52 | time = moment(time);
53 | if (unit === 'isoWeek') {
54 | weekday = Math.trunc(Math.min(Math.max(0, weekday), 6));
55 | return time.isoWeekday(weekday).startOf('day').valueOf();
56 | }
57 | return time.startOf(unit).valueOf();
58 | },
59 |
60 | endOf: function(time, unit) {
61 | return moment(time).endOf(unit).valueOf();
62 | }
63 | } : {});
64 |
--------------------------------------------------------------------------------
/src/wwwroot/lib/chartjs-adapter-moment/chartjs-adapter-moment.esm.min.js:
--------------------------------------------------------------------------------
1 | import moment from"moment";import{_adapters}from"chart.js";const FORMATS={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};_adapters._date.override("function"==typeof moment?{_id:"moment",formats:function(){return FORMATS},parse:function(t,e){return"string"==typeof t&&"string"==typeof e?t=moment(t,e):t instanceof moment||(t=moment(t)),t.isValid()?t.valueOf():null},format:function(t,e){return moment(t).format(e)},add:function(t,e,n){return moment(t).add(e,n).valueOf()},diff:function(t,e,n){return moment(t).diff(moment(e),n)},startOf:function(t,e,n){return t=moment(t),"isoWeek"===e?(n=Math.trunc(Math.min(Math.max(0,n),6)),t.isoWeekday(n).startOf("day").valueOf()):t.startOf(e).valueOf()},endOf:function(t,e){return moment(t).endOf(e).valueOf()}}:{});
--------------------------------------------------------------------------------
/src/wwwroot/lib/chartjs-adapter-moment/chartjs-adapter-moment.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * chartjs-adapter-moment v1.0.1
3 | * https://www.chartjs.org
4 | * (c) 2022 chartjs-adapter-moment Contributors
5 | * Released under the MIT license
6 | */
7 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("moment"),require("chart.js")):"function"==typeof define&&define.amd?define(["moment","chart.js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).moment,e.Chart)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=n(e);const a={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};t._adapters._date.override("function"==typeof f.default?{_id:"moment",formats:function(){return a},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=f.default(e,t):e instanceof f.default||(e=f.default(e)),e.isValid()?e.valueOf():null},format:function(e,t){return f.default(e).format(t)},add:function(e,t,n){return f.default(e).add(t,n).valueOf()},diff:function(e,t,n){return f.default(e).diff(f.default(t),n)},startOf:function(e,t,n){return e=f.default(e),"isoWeek"===t?(n=Math.trunc(Math.min(Math.max(0,n),6)),e.isoWeekday(n).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return f.default(e).endOf(t).valueOf()}}:{})}));
8 |
--------------------------------------------------------------------------------