demo-tdm1/NiceAdmin/assets/vendor/chart.js/controllers/controller.doughnut.d.ts

65 lines
1.7 KiB
TypeScript
Raw Normal View History

2024-04-24 21:37:29 +00:00
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";