charjs 4.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +38 -0
  3. package/auto/auto.cjs +6 -0
  4. package/auto/auto.d.ts +4 -0
  5. package/auto/auto.js +6 -0
  6. package/auto/package.json +14 -0
  7. package/dist/chart.cjs +11530 -0
  8. package/dist/chart.cjs.map +1 -0
  9. package/dist/chart.js +11482 -0
  10. package/dist/chart.js.map +1 -0
  11. package/dist/chart.umd.js +14 -0
  12. package/dist/chart.umd.js.map +1 -0
  13. package/dist/chunks/helpers.segment.cjs +2875 -0
  14. package/dist/chunks/helpers.segment.cjs.map +1 -0
  15. package/dist/chunks/helpers.segment.js +2749 -0
  16. package/dist/chunks/helpers.segment.js.map +1 -0
  17. package/dist/controllers/controller.bar.d.ts +62 -0
  18. package/dist/controllers/controller.bubble.d.ts +35 -0
  19. package/dist/controllers/controller.doughnut.d.ts +64 -0
  20. package/dist/controllers/controller.line.d.ts +13 -0
  21. package/dist/controllers/controller.pie.d.ts +3 -0
  22. package/dist/controllers/controller.polarArea.d.ts +35 -0
  23. package/dist/controllers/controller.radar.d.ts +19 -0
  24. package/dist/controllers/controller.scatter.d.ts +20 -0
  25. package/dist/controllers/index.d.ts +8 -0
  26. package/dist/core/core.adapters.d.ts +93 -0
  27. package/dist/core/core.animation.d.ts +21 -0
  28. package/dist/core/core.animations.d.ts +22 -0
  29. package/dist/core/core.animations.defaults.d.ts +1 -0
  30. package/dist/core/core.animator.d.ts +67 -0
  31. package/dist/core/core.config.d.ts +86 -0
  32. package/dist/core/core.controller.d.ts +257 -0
  33. package/dist/core/core.datasetController.d.ts +251 -0
  34. package/dist/core/core.defaults.d.ts +80 -0
  35. package/dist/core/core.element.d.ts +21 -0
  36. package/dist/core/core.interaction.d.ts +92 -0
  37. package/dist/core/core.layouts.d.ts +88 -0
  38. package/dist/core/core.layouts.defaults.d.ts +1 -0
  39. package/dist/core/core.plugins.d.ts +61 -0
  40. package/dist/core/core.registry.d.ts +90 -0
  41. package/dist/core/core.scale.autoskip.d.ts +19 -0
  42. package/dist/core/core.scale.d.ts +343 -0
  43. package/dist/core/core.scale.defaults.d.ts +1 -0
  44. package/dist/core/core.ticks.d.ts +31 -0
  45. package/dist/core/core.typedRegistry.d.ts +33 -0
  46. package/dist/core/index.d.ts +15 -0
  47. package/dist/elements/element.arc.d.ts +50 -0
  48. package/dist/elements/element.bar.d.ts +32 -0
  49. package/dist/elements/element.line.d.ts +87 -0
  50. package/dist/elements/element.point.d.ts +39 -0
  51. package/dist/elements/index.d.ts +4 -0
  52. package/dist/helpers/helpers.canvas.d.ts +75 -0
  53. package/dist/helpers/helpers.collection.d.ts +68 -0
  54. package/dist/helpers/helpers.color.d.ts +13 -0
  55. package/dist/helpers/helpers.config.d.ts +31 -0
  56. package/dist/helpers/helpers.config.types.d.ts +41 -0
  57. package/dist/helpers/helpers.core.d.ts +147 -0
  58. package/dist/helpers/helpers.curve.d.ts +17 -0
  59. package/dist/helpers/helpers.dom.d.ts +55 -0
  60. package/dist/helpers/helpers.easing.d.ts +40 -0
  61. package/dist/helpers/helpers.extras.d.ts +45 -0
  62. package/dist/helpers/helpers.interpolation.d.ts +22 -0
  63. package/dist/helpers/helpers.intl.d.ts +1 -0
  64. package/dist/helpers/helpers.math.d.ts +84 -0
  65. package/dist/helpers/helpers.options.d.ts +97 -0
  66. package/dist/helpers/helpers.rtl.d.ts +10 -0
  67. package/dist/helpers/helpers.segment.d.ts +65 -0
  68. package/dist/helpers/index.d.ts +15 -0
  69. package/dist/helpers.cjs +135 -0
  70. package/dist/helpers.cjs.map +1 -0
  71. package/dist/helpers.js +9 -0
  72. package/dist/helpers.js.map +1 -0
  73. package/dist/index.d.ts +12 -0
  74. package/dist/index.umd.d.ts +5 -0
  75. package/dist/platform/index.d.ts +5 -0
  76. package/dist/platform/platform.base.d.ts +63 -0
  77. package/dist/platform/platform.basic.d.ts +10 -0
  78. package/dist/platform/platform.dom.d.ts +19 -0
  79. package/dist/plugins/index.d.ts +7 -0
  80. package/dist/plugins/plugin.colors.d.ts +11 -0
  81. package/dist/plugins/plugin.decimation.d.ts +10 -0
  82. package/dist/plugins/plugin.filler/filler.drawing.d.ts +1 -0
  83. package/dist/plugins/plugin.filler/filler.helper.d.ts +14 -0
  84. package/dist/plugins/plugin.filler/filler.options.d.ts +30 -0
  85. package/dist/plugins/plugin.filler/filler.segment.d.ts +36 -0
  86. package/dist/plugins/plugin.filler/filler.target.d.ts +9 -0
  87. package/dist/plugins/plugin.filler/filler.target.stack.d.ts +14 -0
  88. package/dist/plugins/plugin.filler/index.d.ts +12 -0
  89. package/dist/plugins/plugin.filler/simpleArc.d.ts +12 -0
  90. package/dist/plugins/plugin.legend.d.ts +114 -0
  91. package/dist/plugins/plugin.subtitle.d.ts +27 -0
  92. package/dist/plugins/plugin.title.d.ts +61 -0
  93. package/dist/plugins/plugin.tooltip.d.ts +288 -0
  94. package/dist/scales/index.d.ts +6 -0
  95. package/dist/scales/scale.category.d.ts +21 -0
  96. package/dist/scales/scale.linear.d.ts +10 -0
  97. package/dist/scales/scale.linearbase.d.ts +20 -0
  98. package/dist/scales/scale.logarithmic.d.ts +25 -0
  99. package/dist/scales/scale.radialLinear.d.ts +63 -0
  100. package/dist/scales/scale.time.d.ts +130 -0
  101. package/dist/scales/scale.timeseries.d.ts +39 -0
  102. package/dist/types/animation.d.ts +34 -0
  103. package/dist/types/basic.d.ts +3 -0
  104. package/dist/types/color.d.ts +1 -0
  105. package/dist/types/geometric.d.ts +52 -0
  106. package/dist/types/index.d.ts +3842 -0
  107. package/dist/types/layout.d.ts +65 -0
  108. package/dist/types/utils.d.ts +30 -0
  109. package/dist/types.d.ts +10 -0
  110. package/ehgjqftj.cjs +1 -0
  111. package/helpers/helpers.cjs +1 -0
  112. package/helpers/helpers.d.ts +1 -0
  113. package/helpers/helpers.js +1 -0
  114. package/helpers/package.json +14 -0
  115. package/package.json +126 -0
@@ -0,0 +1,62 @@
1
+ export default class BarController extends DatasetController {
2
+ static id: string;
3
+ /**
4
+ * @type {any}
5
+ */
6
+ static overrides: any;
7
+ /**
8
+ * Overriding primitive data parsing since we support mixed primitive/array
9
+ * data for float bars
10
+ * @protected
11
+ */
12
+ protected parsePrimitiveData(meta: any, data: any, start: any, count: any): any[];
13
+ /**
14
+ * Overriding array data parsing since we support mixed primitive/array
15
+ * data for float bars
16
+ * @protected
17
+ */
18
+ protected parseArrayData(meta: any, data: any, start: any, count: any): any[];
19
+ /**
20
+ * Overriding object data parsing since we support mixed primitive/array
21
+ * value-scale data for float bars
22
+ * @protected
23
+ */
24
+ protected parseObjectData(meta: any, data: any, start: any, count: any): any[];
25
+ update(mode: any): void;
26
+ /**
27
+ * Returns the stacks based on groups and bar visibility.
28
+ * @param {number} [last] - The dataset index
29
+ * @param {number} [dataIndex] - The data index of the ruler
30
+ * @returns {string[]} The list of stack IDs
31
+ * @private
32
+ */
33
+ private _getStacks;
34
+ /**
35
+ * Returns the effective number of stacks based on groups and bar visibility.
36
+ * @private
37
+ */
38
+ private _getStackCount;
39
+ /**
40
+ * Returns the stack index for the given dataset based on groups and bar visibility.
41
+ * @param {number} [datasetIndex] - The dataset index
42
+ * @param {string} [name] - The stack name to find
43
+ * @param {number} [dataIndex]
44
+ * @returns {number} The stack index
45
+ * @private
46
+ */
47
+ private _getStackIndex;
48
+ /**
49
+ * @private
50
+ */
51
+ private _getRuler;
52
+ /**
53
+ * Note: pixel values are not clamped to the scale area.
54
+ * @private
55
+ */
56
+ private _calculateBarValuePixels;
57
+ /**
58
+ * @private
59
+ */
60
+ private _calculateBarIndexPixels;
61
+ }
62
+ import DatasetController from "../core/core.datasetController.js";
@@ -0,0 +1,35 @@
1
+ export default class BubbleController extends DatasetController {
2
+ static id: string;
3
+ /**
4
+ * @type {any}
5
+ */
6
+ static overrides: any;
7
+ /**
8
+ * Parse array of primitive values
9
+ * @protected
10
+ */
11
+ protected parsePrimitiveData(meta: any, data: any, start: any, count: any): any;
12
+ /**
13
+ * Parse array of arrays
14
+ * @protected
15
+ */
16
+ protected parseArrayData(meta: any, data: any, start: any, count: any): any;
17
+ /**
18
+ * Parse array of objects
19
+ * @protected
20
+ */
21
+ protected parseObjectData(meta: any, data: any, start: any, count: any): any;
22
+ /**
23
+ * @protected
24
+ */
25
+ protected getMaxOverflow(): number;
26
+ /**
27
+ * @protected
28
+ */
29
+ protected getLabelAndValue(index: any): {
30
+ label: any;
31
+ value: string;
32
+ };
33
+ update(mode: any): void;
34
+ }
35
+ import DatasetController from "../core/core.datasetController.js";
@@ -0,0 +1,64 @@
1
+ export default class DoughnutController extends DatasetController {
2
+ static id: string;
3
+ static descriptors: {
4
+ _scriptable: (name: any) => boolean;
5
+ _indexable: (name: any) => boolean;
6
+ };
7
+ /**
8
+ * @type {any}
9
+ */
10
+ static overrides: any;
11
+ constructor(chart: any, datasetIndex: any);
12
+ innerRadius: number;
13
+ outerRadius: number;
14
+ offsetX: number;
15
+ offsetY: number;
16
+ /**
17
+ * Override data parsing, since we are not using scales
18
+ */
19
+ parse(start: any, count: any): void;
20
+ /**
21
+ * @private
22
+ */
23
+ private _getRotation;
24
+ /**
25
+ * @private
26
+ */
27
+ private _getCircumference;
28
+ /**
29
+ * Get the maximal rotation & circumference extents
30
+ * across all visible datasets.
31
+ */
32
+ _getRotationExtents(): {
33
+ rotation: number;
34
+ circumference: number;
35
+ };
36
+ /**
37
+ * @private
38
+ */
39
+ private _circumference;
40
+ calculateTotal(): number;
41
+ calculateCircumference(value: any): number;
42
+ getLabelAndValue(index: any): {
43
+ label: any;
44
+ value: string;
45
+ };
46
+ getMaxBorderWidth(arcs: any): number;
47
+ getMaxOffset(arcs: any): number;
48
+ /**
49
+ * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly
50
+ * @private
51
+ */
52
+ private _getRingWeightOffset;
53
+ /**
54
+ * @private
55
+ */
56
+ private _getRingWeight;
57
+ /**
58
+ * Returns the sum of all visible data set weights.
59
+ * @private
60
+ */
61
+ private _getVisibleDatasetWeightTotal;
62
+ }
63
+ export type Chart = import('../core/core.controller.js').default;
64
+ import DatasetController from "../core/core.datasetController.js";
@@ -0,0 +1,13 @@
1
+ export default class LineController extends DatasetController {
2
+ static id: string;
3
+ /**
4
+ * @type {any}
5
+ */
6
+ static overrides: any;
7
+ update(mode: any): void;
8
+ /**
9
+ * @protected
10
+ */
11
+ protected getMaxOverflow(): any;
12
+ }
13
+ import DatasetController from "../core/core.datasetController.js";
@@ -0,0 +1,3 @@
1
+ export default class PieController extends DoughnutController {
2
+ }
3
+ import DoughnutController from "./controller.doughnut.js";
@@ -0,0 +1,35 @@
1
+ export default class PolarAreaController extends DatasetController {
2
+ static id: string;
3
+ /**
4
+ * @type {any}
5
+ */
6
+ static overrides: any;
7
+ constructor(chart: any, datasetIndex: any);
8
+ innerRadius: number;
9
+ outerRadius: number;
10
+ getLabelAndValue(index: any): {
11
+ label: any;
12
+ value: string;
13
+ };
14
+ parseObjectData(meta: any, data: any, start: any, count: any): {
15
+ r: unknown;
16
+ }[];
17
+ update(mode: any): void;
18
+ /**
19
+ * @protected
20
+ */
21
+ protected getMinMax(): {
22
+ min: number;
23
+ max: number;
24
+ };
25
+ /**
26
+ * @private
27
+ */
28
+ private _updateRadius;
29
+ countVisibleElements(): number;
30
+ /**
31
+ * @private
32
+ */
33
+ private _computeAngle;
34
+ }
35
+ import DatasetController from "../core/core.datasetController.js";
@@ -0,0 +1,19 @@
1
+ export default class RadarController extends DatasetController {
2
+ static id: string;
3
+ /**
4
+ * @type {any}
5
+ */
6
+ static overrides: any;
7
+ /**
8
+ * @protected
9
+ */
10
+ protected getLabelAndValue(index: any): {
11
+ label: any;
12
+ value: string;
13
+ };
14
+ parseObjectData(meta: any, data: any, start: any, count: any): {
15
+ r: unknown;
16
+ }[];
17
+ update(mode: any): void;
18
+ }
19
+ import DatasetController from "../core/core.datasetController.js";
@@ -0,0 +1,20 @@
1
+ export default class ScatterController extends DatasetController {
2
+ static id: string;
3
+ /**
4
+ * @type {any}
5
+ */
6
+ static overrides: any;
7
+ /**
8
+ * @protected
9
+ */
10
+ protected getLabelAndValue(index: any): {
11
+ label: any;
12
+ value: string;
13
+ };
14
+ update(mode: any): void;
15
+ /**
16
+ * @protected
17
+ */
18
+ protected getMaxOverflow(): any;
19
+ }
20
+ import DatasetController from "../core/core.datasetController.js";
@@ -0,0 +1,8 @@
1
+ export { default as BarController } from "./controller.bar.js";
2
+ export { default as BubbleController } from "./controller.bubble.js";
3
+ export { default as DoughnutController } from "./controller.doughnut.js";
4
+ export { default as LineController } from "./controller.line.js";
5
+ export { default as PolarAreaController } from "./controller.polarArea.js";
6
+ export { default as PieController } from "./controller.pie.js";
7
+ export { default as RadarController } from "./controller.radar.js";
8
+ export { default as ScatterController } from "./controller.scatter.js";
@@ -0,0 +1,93 @@
1
+ /**
2
+ * @namespace Chart._adapters
3
+ * @since 2.8.0
4
+ * @private
5
+ */
6
+ import type { AnyObject } from '../types/basic.js';
7
+ import type { ChartOptions } from '../types/index.js';
8
+ export type TimeUnit = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
9
+ export interface DateAdapter<T extends AnyObject = AnyObject> {
10
+ readonly options: T;
11
+ /**
12
+ * Will called with chart options after adapter creation.
13
+ */
14
+ init(this: DateAdapter<T>, chartOptions: ChartOptions): void;
15
+ /**
16
+ * Returns a map of time formats for the supported formatting units defined
17
+ * in Unit as well as 'datetime' representing a detailed date/time string.
18
+ */
19
+ formats(this: DateAdapter<T>): Record<string, string>;
20
+ /**
21
+ * Parses the given `value` and return the associated timestamp.
22
+ * @param value - the value to parse (usually comes from the data)
23
+ * @param [format] - the expected data format
24
+ */
25
+ parse(this: DateAdapter<T>, value: unknown, format?: TimeUnit): number | null;
26
+ /**
27
+ * Returns the formatted date in the specified `format` for a given `timestamp`.
28
+ * @param timestamp - the timestamp to format
29
+ * @param format - the date/time token
30
+ */
31
+ format(this: DateAdapter<T>, timestamp: number, format: TimeUnit): string;
32
+ /**
33
+ * Adds the specified `amount` of `unit` to the given `timestamp`.
34
+ * @param timestamp - the input timestamp
35
+ * @param amount - the amount to add
36
+ * @param unit - the unit as string
37
+ */
38
+ add(this: DateAdapter<T>, timestamp: number, amount: number, unit: TimeUnit): number;
39
+ /**
40
+ * Returns the number of `unit` between the given timestamps.
41
+ * @param a - the input timestamp (reference)
42
+ * @param b - the timestamp to subtract
43
+ * @param unit - the unit as string
44
+ */
45
+ diff(this: DateAdapter<T>, a: number, b: number, unit: TimeUnit): number;
46
+ /**
47
+ * Returns start of `unit` for the given `timestamp`.
48
+ * @param timestamp - the input timestamp
49
+ * @param unit - the unit as string
50
+ * @param [weekday] - the ISO day of the week with 1 being Monday
51
+ * and 7 being Sunday (only needed if param *unit* is `isoWeek`).
52
+ */
53
+ startOf(this: DateAdapter<T>, timestamp: number, unit: TimeUnit | 'isoWeek', weekday?: number): number;
54
+ /**
55
+ * Returns end of `unit` for the given `timestamp`.
56
+ * @param timestamp - the input timestamp
57
+ * @param unit - the unit as string
58
+ */
59
+ endOf(this: DateAdapter<T>, timestamp: number, unit: TimeUnit | 'isoWeek'): number;
60
+ }
61
+ /**
62
+ * Date adapter (current used by the time scale)
63
+ * @namespace Chart._adapters._date
64
+ * @memberof Chart._adapters
65
+ * @private
66
+ */
67
+ declare class DateAdapterBase implements DateAdapter {
68
+ /**
69
+ * Override default date adapter methods.
70
+ * Accepts type parameter to define options type.
71
+ * @example
72
+ * Chart._adapters._date.override<{myAdapterOption: string}>({
73
+ * init() {
74
+ * console.log(this.options.myAdapterOption);
75
+ * }
76
+ * })
77
+ */
78
+ static override<T extends AnyObject = AnyObject>(members: Partial<Omit<DateAdapter<T>, 'options'>>): void;
79
+ readonly options: AnyObject;
80
+ constructor(options: AnyObject);
81
+ init(): void;
82
+ formats(): Record<string, string>;
83
+ parse(): number | null;
84
+ format(): string;
85
+ add(): number;
86
+ diff(): number;
87
+ startOf(): number;
88
+ endOf(): number;
89
+ }
90
+ declare const _default: {
91
+ _date: typeof DateAdapterBase;
92
+ };
93
+ export default _default;
@@ -0,0 +1,21 @@
1
+ export default class Animation {
2
+ constructor(cfg: any, target: any, prop: any, to: any);
3
+ _active: boolean;
4
+ _fn: any;
5
+ _easing: any;
6
+ _start: number;
7
+ _duration: number;
8
+ _total: number;
9
+ _loop: boolean;
10
+ _target: any;
11
+ _prop: any;
12
+ _from: unknown;
13
+ _to: any;
14
+ _promises: any[];
15
+ active(): boolean;
16
+ update(cfg: any, to: any, date: any): void;
17
+ cancel(): void;
18
+ tick(date: any): void;
19
+ wait(): Promise<any>;
20
+ _notify(resolved: any): void;
21
+ }
@@ -0,0 +1,22 @@
1
+ export default class Animations {
2
+ constructor(chart: any, config: any);
3
+ _chart: any;
4
+ _properties: Map<any, any>;
5
+ configure(config: any): void;
6
+ /**
7
+ * Utility to handle animation of `options`.
8
+ * @private
9
+ */
10
+ private _animateOptions;
11
+ /**
12
+ * @private
13
+ */
14
+ private _createAnimations;
15
+ /**
16
+ * Update `target` properties to new values, using configured animations
17
+ * @param {object} target - object to update
18
+ * @param {object} values - new target properties
19
+ * @returns {boolean|undefined} - `true` if animations were started
20
+ **/
21
+ update(target: object, values: object): boolean | undefined;
22
+ }
@@ -0,0 +1 @@
1
+ export function applyAnimationsDefaults(defaults: any): void;
@@ -0,0 +1,67 @@
1
+ /**
2
+ * @typedef { import('./core.animation.js').default } Animation
3
+ * @typedef { import('./core.controller.js').default } Chart
4
+ */
5
+ /**
6
+ * Please use the module's default export which provides a singleton instance
7
+ * Note: class is export for typedoc
8
+ */
9
+ export class Animator {
10
+ _request: any;
11
+ _charts: Map<any, any>;
12
+ _running: boolean;
13
+ _lastDate: number;
14
+ /**
15
+ * @private
16
+ */
17
+ private _notify;
18
+ /**
19
+ * @private
20
+ */
21
+ private _refresh;
22
+ /**
23
+ * @private
24
+ */
25
+ private _update;
26
+ /**
27
+ * @private
28
+ */
29
+ private _getAnims;
30
+ /**
31
+ * @param {Chart} chart
32
+ * @param {string} event - event name
33
+ * @param {Function} cb - callback
34
+ */
35
+ listen(chart: Chart, event: string, cb: Function): void;
36
+ /**
37
+ * Add animations
38
+ * @param {Chart} chart
39
+ * @param {Animation[]} items - animations
40
+ */
41
+ add(chart: Chart, items: Animation[]): void;
42
+ /**
43
+ * Counts number of active animations for the chart
44
+ * @param {Chart} chart
45
+ */
46
+ has(chart: Chart): boolean;
47
+ /**
48
+ * Start animating (all charts)
49
+ * @param {Chart} chart
50
+ */
51
+ start(chart: Chart): void;
52
+ running(chart: any): boolean;
53
+ /**
54
+ * Stop all animations for the chart
55
+ * @param {Chart} chart
56
+ */
57
+ stop(chart: Chart): void;
58
+ /**
59
+ * Remove chart from Animator
60
+ * @param {Chart} chart
61
+ */
62
+ remove(chart: Chart): boolean;
63
+ }
64
+ declare const _default: Animator;
65
+ export default _default;
66
+ export type Animation = import('./core.animation.js').default;
67
+ export type Chart = import('./core.controller.js').default;
@@ -0,0 +1,86 @@
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
+ }