| 1 |
export function getIndexAxis(type: any, options: any): any; |
| 2 |
export function determineAxis(id: any, ...scaleOptions: any[]): any; |
| 3 |
export default class Config { |
| 4 |
constructor(config: any); |
| 5 |
_config: any; |
| 6 |
_scopeCache: Map<any, any>; |
| 7 |
_resolverCache: Map<any, any>; |
| 8 |
get platform(): any; |
| 9 |
set type(arg: any); |
| 10 |
get type(): any; |
| 11 |
set data(arg: any); |
| 12 |
get data(): any; |
| 13 |
set options(arg: any); |
| 14 |
get options(): any; |
| 15 |
get plugins(): any; |
| 16 |
update(): void; |
| 17 |
clearCache(): void; |
| 18 |
/** |
| 19 |
* Returns the option scope keys for resolving dataset options. |
| 20 |
* These keys do not include the dataset itself, because it is not under options. |
| 21 |
* @param {string} datasetType |
| 22 |
* @return {string[][]} |
| 23 |
*/ |
| 24 |
datasetScopeKeys(datasetType: string): string[][]; |
| 25 |
/** |
| 26 |
* Returns the option scope keys for resolving dataset animation options. |
| 27 |
* These keys do not include the dataset itself, because it is not under options. |
| 28 |
* @param {string} datasetType |
| 29 |
* @param {string} transition |
| 30 |
* @return {string[][]} |
| 31 |
*/ |
| 32 |
datasetAnimationScopeKeys(datasetType: string, transition: string): string[][]; |
| 33 |
/** |
| 34 |
* Returns the options scope keys for resolving element options that belong |
| 35 |
* to an dataset. These keys do not include the dataset itself, because it |
| 36 |
* is not under options. |
| 37 |
* @param {string} datasetType |
| 38 |
* @param {string} elementType |
| 39 |
* @return {string[][]} |
| 40 |
*/ |
| 41 |
datasetElementScopeKeys(datasetType: string, elementType: string): string[][]; |
| 42 |
/** |
| 43 |
* Returns the options scope keys for resolving plugin options. |
| 44 |
* @param {{id: string, additionalOptionScopes?: string[]}} plugin |
| 45 |
* @return {string[][]} |
| 46 |
*/ |
| 47 |
pluginScopeKeys(plugin: { |
| 48 |
id: string; |
| 49 |
additionalOptionScopes?: string[]; |
| 50 |
}): string[][]; |
| 51 |
/** |
| 52 |
* @private |
| 53 |
*/ |
| 54 |
private _cachedScopes; |
| 55 |
/** |
| 56 |
* Resolves the objects from options and defaults for option value resolution. |
| 57 |
* @param {object} mainScope - The main scope object for options |
| 58 |
* @param {string[][]} keyLists - The arrays of keys in resolution order |
| 59 |
* @param {boolean} [resetCache] - reset the cache for this mainScope |
| 60 |
*/ |
| 61 |
getOptionScopes(mainScope: object, keyLists: string[][], resetCache?: boolean): any; |
| 62 |
/** |
| 63 |
* Returns the option scopes for resolving chart options |
| 64 |
* @return {object[]} |
| 65 |
*/ |
| 66 |
chartOptionScopes(): object[]; |
| 67 |
/** |
| 68 |
* @param {object[]} scopes |
| 69 |
* @param {string[]} names |
| 70 |
* @param {function|object} context |
| 71 |
* @param {string[]} [prefixes] |
| 72 |
* @return {object} |
| 73 |
*/ |
| 74 |
resolveNamedOptions(scopes: object[], names: string[], context: Function | object, prefixes?: string[]): object; |
| 75 |
/** |
| 76 |
* @param {object[]} scopes |
| 77 |
* @param {object} [context] |
| 78 |
* @param {string[]} [prefixes] |
| 79 |
* @param {{scriptable: boolean, indexable: boolean, allKeys?: boolean}} [descriptorDefaults] |
| 80 |
*/ |
| 81 |
createResolver(scopes: object[], context?: object, prefixes?: string[], descriptorDefaults?: { |
| 82 |
scriptable: boolean; |
| 83 |
indexable: boolean; |
| 84 |
allKeys?: boolean; |
| 85 |
}): any; |
| 86 |
} |