-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.doughnut.d.ts
More file actions
64 lines (64 loc) · 1.7 KB
/
controller.doughnut.d.ts
File metadata and controls
64 lines (64 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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";