-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.config.d.ts
More file actions
86 lines (86 loc) · 3.08 KB
/
core.config.d.ts
File metadata and controls
86 lines (86 loc) · 3.08 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
export function getIndexAxis(type: any, options: any): any;
export function determineAxis(id: any, ...scaleOptions: any[]): any;
export default class Config {
constructor(config: any);
_config: any;
_scopeCache: Map<any, any>;
_resolverCache: Map<any, any>;
get platform(): any;
set type(arg: any);
get type(): any;
set data(arg: any);
get data(): any;
set options(arg: any);
get options(): any;
get plugins(): any;
update(): void;
clearCache(): void;
/**
* Returns the option scope keys for resolving dataset options.
* These keys do not include the dataset itself, because it is not under options.
* @param {string} datasetType
* @return {string[][]}
*/
datasetScopeKeys(datasetType: string): string[][];
/**
* Returns the option scope keys for resolving dataset animation options.
* These keys do not include the dataset itself, because it is not under options.
* @param {string} datasetType
* @param {string} transition
* @return {string[][]}
*/
datasetAnimationScopeKeys(datasetType: string, transition: string): string[][];
/**
* Returns the options scope keys for resolving element options that belong
* to an dataset. These keys do not include the dataset itself, because it
* is not under options.
* @param {string} datasetType
* @param {string} elementType
* @return {string[][]}
*/
datasetElementScopeKeys(datasetType: string, elementType: string): string[][];
/**
* Returns the options scope keys for resolving plugin options.
* @param {{id: string, additionalOptionScopes?: string[]}} plugin
* @return {string[][]}
*/
pluginScopeKeys(plugin: {
id: string;
additionalOptionScopes?: string[];
}): string[][];
/**
* @private
*/
private _cachedScopes;
/**
* Resolves the objects from options and defaults for option value resolution.
* @param {object} mainScope - The main scope object for options
* @param {string[][]} keyLists - The arrays of keys in resolution order
* @param {boolean} [resetCache] - reset the cache for this mainScope
*/
getOptionScopes(mainScope: object, keyLists: string[][], resetCache?: boolean): any;
/**
* Returns the option scopes for resolving chart options
* @return {object[]}
*/
chartOptionScopes(): object[];
/**
* @param {object[]} scopes
* @param {string[]} names
* @param {function|object} context
* @param {string[]} [prefixes]
* @return {object}
*/
resolveNamedOptions(scopes: object[], names: string[], context: Function | object, prefixes?: string[]): object;
/**
* @param {object[]} scopes
* @param {object} [context]
* @param {string[]} [prefixes]
* @param {{scriptable: boolean, indexable: boolean, allKeys?: boolean}} [descriptorDefaults]
*/
createResolver(scopes: object[], context?: object, prefixes?: string[], descriptorDefaults?: {
scriptable: boolean;
indexable: boolean;
allKeys?: boolean;
}): any;
}