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

View File

@ -0,0 +1,62 @@
export default class BarController extends DatasetController {
static id: string;
/**
* @type {any}
*/
static overrides: any;
/**
* Overriding primitive data parsing since we support mixed primitive/array
* data for float bars
* @protected
*/
protected parsePrimitiveData(meta: any, data: any, start: any, count: any): any[];
/**
* Overriding array data parsing since we support mixed primitive/array
* data for float bars
* @protected
*/
protected parseArrayData(meta: any, data: any, start: any, count: any): any[];
/**
* Overriding object data parsing since we support mixed primitive/array
* value-scale data for float bars
* @protected
*/
protected parseObjectData(meta: any, data: any, start: any, count: any): any[];
update(mode: any): void;
/**
* Returns the stacks based on groups and bar visibility.
* @param {number} [last] - The dataset index
* @param {number} [dataIndex] - The data index of the ruler
* @returns {string[]} The list of stack IDs
* @private
*/
private _getStacks;
/**
* Returns the effective number of stacks based on groups and bar visibility.
* @private
*/
private _getStackCount;
/**
* Returns the stack index for the given dataset based on groups and bar visibility.
* @param {number} [datasetIndex] - The dataset index
* @param {string} [name] - The stack name to find
* @param {number} [dataIndex]
* @returns {number} The stack index
* @private
*/
private _getStackIndex;
/**
* @private
*/
private _getRuler;
/**
* Note: pixel values are not clamped to the scale area.
* @private
*/
private _calculateBarValuePixels;
/**
* @private
*/
private _calculateBarIndexPixels;
}
import DatasetController from "../core/core.datasetController.js";

View File

@ -0,0 +1,35 @@
export default class BubbleController extends DatasetController {
static id: string;
/**
* @type {any}
*/
static overrides: any;
/**
* Parse array of primitive values
* @protected
*/
protected parsePrimitiveData(meta: any, data: any, start: any, count: any): any;
/**
* Parse array of arrays
* @protected
*/
protected parseArrayData(meta: any, data: any, start: any, count: any): any;
/**
* Parse array of objects
* @protected
*/
protected parseObjectData(meta: any, data: any, start: any, count: any): any;
/**
* @protected
*/
protected getMaxOverflow(): number;
/**
* @protected
*/
protected getLabelAndValue(index: any): {
label: any;
value: string;
};
update(mode: any): void;
}
import DatasetController from "../core/core.datasetController.js";

View File

@ -0,0 +1,64 @@
export default class DoughnutController extends DatasetController {
static id: string;
static descriptors: {
_scriptable: (name: any) => boolean;
_indexable: (name: any) => boolean;
};
/**
* @type {any}
*/
static overrides: any;
constructor(chart: any, datasetIndex: any);
innerRadius: number;
outerRadius: number;
offsetX: number;
offsetY: number;
/**
* Override data parsing, since we are not using scales
*/
parse(start: any, count: any): void;
/**
* @private
*/
private _getRotation;
/**
* @private
*/
private _getCircumference;
/**
* Get the maximal rotation & circumference extents
* across all visible datasets.
*/
_getRotationExtents(): {
rotation: number;
circumference: number;
};
/**
* @private
*/
private _circumference;
calculateTotal(): number;
calculateCircumference(value: any): number;
getLabelAndValue(index: any): {
label: any;
value: string;
};
getMaxBorderWidth(arcs: any): number;
getMaxOffset(arcs: any): number;
/**
* Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly
* @private
*/
private _getRingWeightOffset;
/**
* @private
*/
private _getRingWeight;
/**
* Returns the sum of all visible data set weights.
* @private
*/
private _getVisibleDatasetWeightTotal;
}
export type Chart = import('../core/core.controller.js').default;
import DatasetController from "../core/core.datasetController.js";

View File

@ -0,0 +1,13 @@
export default class LineController extends DatasetController {
static id: string;
/**
* @type {any}
*/
static overrides: any;
update(mode: any): void;
/**
* @protected
*/
protected getMaxOverflow(): any;
}
import DatasetController from "../core/core.datasetController.js";

View File

@ -0,0 +1,3 @@
export default class PieController extends DoughnutController {
}
import DoughnutController from "./controller.doughnut.js";

View File

@ -0,0 +1,35 @@
export default class PolarAreaController extends DatasetController {
static id: string;
/**
* @type {any}
*/
static overrides: any;
constructor(chart: any, datasetIndex: any);
innerRadius: number;
outerRadius: number;
getLabelAndValue(index: any): {
label: any;
value: string;
};
parseObjectData(meta: any, data: any, start: any, count: any): {
r: unknown;
}[];
update(mode: any): void;
/**
* @protected
*/
protected getMinMax(): {
min: number;
max: number;
};
/**
* @private
*/
private _updateRadius;
countVisibleElements(): number;
/**
* @private
*/
private _computeAngle;
}
import DatasetController from "../core/core.datasetController.js";

View File

@ -0,0 +1,19 @@
export default class RadarController extends DatasetController {
static id: string;
/**
* @type {any}
*/
static overrides: any;
/**
* @protected
*/
protected getLabelAndValue(index: any): {
label: any;
value: string;
};
parseObjectData(meta: any, data: any, start: any, count: any): {
r: unknown;
}[];
update(mode: any): void;
}
import DatasetController from "../core/core.datasetController.js";

View File

@ -0,0 +1,20 @@
export default class ScatterController extends DatasetController {
static id: string;
/**
* @type {any}
*/
static overrides: any;
/**
* @protected
*/
protected getLabelAndValue(index: any): {
label: any;
value: string;
};
update(mode: any): void;
/**
* @protected
*/
protected getMaxOverflow(): any;
}
import DatasetController from "../core/core.datasetController.js";

8
node_modules/chart.js/dist/controllers/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,8 @@
export { default as BarController } from "./controller.bar.js";
export { default as BubbleController } from "./controller.bubble.js";
export { default as DoughnutController } from "./controller.doughnut.js";
export { default as LineController } from "./controller.line.js";
export { default as PolarAreaController } from "./controller.polarArea.js";
export { default as PieController } from "./controller.pie.js";
export { default as RadarController } from "./controller.radar.js";
export { default as ScatterController } from "./controller.scatter.js";