-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathhighcharts-more.src.d.ts
149 lines (149 loc) · 4.79 KB
/
highcharts-more.src.d.ts
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*!*
*
* Copyright (c) Highsoft AS. All rights reserved.
*
*!*/
import * as globals from "./globals.src";
import * as _Highcharts from "./highcharts.src";
/**
* Adds the module to the imported Highcharts namespace.
*
* @param highcharts
* The imported Highcharts namespace to extend.
*/
export function factory(highcharts: typeof Highcharts): void;
declare module "./highcharts.src" {
interface Point {
/**
* Array for multiple SVG graphics representing the point in the chart.
* Only used in cases where the point can not be represented by a single
* graphic.
*/
graphics?: Array<SVGElement>;
/**
* Range series only. The high or maximum value for each data point.
*/
high?: number;
/**
* Range series only. The low or minimum value for each data point.
*/
low?: number;
}
interface SVGElement {
/**
* Attach a polygon to a bounding box if the element contains a
* textPath.
*
* @param event
* An event containing a bounding box object
*
* @return Returns the bounding box object.
*/
setPolygon(event: any): BBoxObject;
/**
* Draw text along a textPath for a dataLabel.
*
* @param event
* An event containing label options
*/
setTextPath(event: any): void;
/**
* Set a text path for a `text` or `label` element, allowing the text to
* flow along a path.
*
* In order to unset the path for an existing element, call
* `setTextPath` with `{ enabled: false }` as the second argument.
*
* Text path support is not bundled into `highcharts.js`, and requires
* the `modules/textpath.js` file. However, it is included in the script
* files of those series types that use it by default
*
* @param path
* Path to follow. If undefined, it allows changing options for
* the existing path.
*
* @param textPathOptions
* Options.
*
* @return Returns the SVGElement for chaining.
*/
setTextPath(path: (SVGElement|undefined), textPathOptions: DataLabelsTextPathOptionsObject): SVGElement;
}
/**
* Merge the default options with custom options and return the new options
* structure. Commonly used for defining reusable templates.
*
* @param options
* The new custom chart options.
*/
function setOptions(options: Options): void;
/**
* If ranges are not specified, determine ranges from rendered bubble series
* and render legend again.
*/
function chartDrawChartBox(): void;
/**
* Wrap the getOffset method to return zero offset for title or labels in a
* radial axis.
*/
function getOffset(): void;
/**
* Find the path for plot lines perpendicular to the radial axis.
*/
function getPlotLinePath(): void;
/**
* Find the position for the axis title, by default inside the gauge.
*/
function getTitlePosition(): void;
/**
* Finalize modification of axis instance with radial logic.
*/
function onAxisAfterInit(): void;
/**
* If a user has defined categories, it is necessary to retroactively hide
* any ticks added by the 'onAxisFoundExtremes' function above (#21672).
*
* Otherwise they can show up on the axis, alongside user-defined
* categories.
*/
function onAxisAfterRender(): void;
/**
* Wrap auto label align to avoid setting axis-wide rotation on radial axes.
* (#4920)
*/
function onAxisAutoLabelAlign(): void;
/**
* Add logic to pad each axis with the amount of pixels necessary to avoid
* the bubbles to overflow.
*/
function onAxisFoundExtremes(): void;
/**
* Prepare axis translation.
*/
function onAxisInitialAxisTranslation(): void;
function onChartAfterDrawChartBox(): void;
function onChartCreateAxes(): void;
/**
* Update default options for radial axes from setOptions method.
*/
function onGlobalSetOptions(): void;
/**
* Start the bubble legend creation process.
*/
function onLegendAfterGetAllItems(): void;
/**
* Toggle bubble legend depending on the visible status of bubble series.
*/
function onLegendItemClick(): void;
function onPointerAfterGetHoverData(): void;
/**
* Add special cases within the Tick class' methods for radial axes.
*/
function onTickAfterGetPosition(): void;
/**
* Prevent setting Y axis dirty.
*/
function renderHidden(): void;
}
export default factory;
export let Highcharts: typeof _Highcharts;