| 1 |
export const overrides: any; |
| 2 |
export const descriptors: any; |
| 3 |
/** |
| 4 |
* Please use the module's default export which provides a singleton instance |
| 5 |
* Note: class is exported for typedoc |
| 6 |
*/ |
| 7 |
export class Defaults { |
| 8 |
constructor(_descriptors: any, _appliers: any); |
| 9 |
animation: any; |
| 10 |
backgroundColor: string; |
| 11 |
borderColor: string; |
| 12 |
color: string; |
| 13 |
datasets: {}; |
| 14 |
devicePixelRatio: (context: any) => any; |
| 15 |
elements: {}; |
| 16 |
events: string[]; |
| 17 |
font: { |
| 18 |
family: string; |
| 19 |
size: number; |
| 20 |
style: string; |
| 21 |
lineHeight: number; |
| 22 |
weight: any; |
| 23 |
}; |
| 24 |
hover: {}; |
| 25 |
hoverBackgroundColor: (ctx: any, options: any) => CanvasGradient; |
| 26 |
hoverBorderColor: (ctx: any, options: any) => CanvasGradient; |
| 27 |
hoverColor: (ctx: any, options: any) => CanvasGradient; |
| 28 |
indexAxis: string; |
| 29 |
interaction: { |
| 30 |
mode: string; |
| 31 |
intersect: boolean; |
| 32 |
includeInvisible: boolean; |
| 33 |
}; |
| 34 |
maintainAspectRatio: boolean; |
| 35 |
onHover: any; |
| 36 |
onClick: any; |
| 37 |
parsing: boolean; |
| 38 |
plugins: {}; |
| 39 |
responsive: boolean; |
| 40 |
scale: any; |
| 41 |
scales: {}; |
| 42 |
showLine: boolean; |
| 43 |
drawActiveElementsOnTop: boolean; |
| 44 |
/** |
| 45 |
* @param {string|object} scope |
| 46 |
* @param {object} [values] |
| 47 |
*/ |
| 48 |
set(scope: string | object, values?: object): any; |
| 49 |
/** |
| 50 |
* @param {string} scope |
| 51 |
*/ |
| 52 |
get(scope: string): any; |
| 53 |
/** |
| 54 |
* @param {string|object} scope |
| 55 |
* @param {object} [values] |
| 56 |
*/ |
| 57 |
describe(scope: string | object, values?: object): any; |
| 58 |
override(scope: any, values: any): any; |
| 59 |
/** |
| 60 |
* Routes the named defaults to fallback to another scope/name. |
| 61 |
* This routing is useful when those target values, like defaults.color, are changed runtime. |
| 62 |
* If the values would be copied, the runtime change would not take effect. By routing, the |
| 63 |
* fallback is evaluated at each access, so its always up to date. |
| 64 |
* |
| 65 |
* Example: |
| 66 |
* |
| 67 |
* defaults.route('elements.arc', 'backgroundColor', '', 'color') |
| 68 |
* - reads the backgroundColor from defaults.color when undefined locally |
| 69 |
* |
| 70 |
* @param {string} scope Scope this route applies to. |
| 71 |
* @param {string} name Property name that should be routed to different namespace when not defined here. |
| 72 |
* @param {string} targetScope The namespace where those properties should be routed to. |
| 73 |
* Empty string ('') is the root of defaults. |
| 74 |
* @param {string} targetName The target name in the target scope the property should be routed to. |
| 75 |
*/ |
| 76 |
route(scope: string, name: string, targetScope: string, targetName: string): void; |
| 77 |
apply(appliers: any): void; |
| 78 |
} |
| 79 |
declare const _default: Defaults; |
| 80 |
export default _default; |