@highcharts/grid-pro 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +6 -0
- package/README.md +15 -9
- package/css/grid-pro.css +1262 -1122
- package/css/modules/grid-base-variables.css +131 -0
- package/css/modules/grid-button-variables.css +140 -0
- package/css/modules/grid-caption-variables.css +11 -0
- package/css/modules/grid-description-variables.css +11 -0
- package/css/modules/grid-input-variables.css +114 -0
- package/css/modules/grid-link-variables.css +18 -0
- package/css/modules/grid-menu-variables.css +50 -0
- package/css/modules/grid-pagination-variables.css +12 -0
- package/css/modules/grid-popup-variables.css +24 -0
- package/css/modules/grid-pro.css +234 -0
- package/css/modules/grid-table-variables.css +385 -0
- package/css/modules/grid-theme-default.css +55 -0
- package/es-modules/Accessibility/A11yI18n.js +1 -2
- package/es-modules/Accessibility/Accessibility.js +1 -2
- package/es-modules/Accessibility/AccessibilityComponent.d.ts +2 -2
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +5 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +1 -2
- package/es-modules/Accessibility/Components/MenuComponent.js +1 -2
- package/es-modules/Accessibility/Components/NavigatorComponent.js +3 -4
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +1 -2
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +1 -2
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +3 -4
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +3 -4
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +1 -2
- package/es-modules/Accessibility/Components/ZoomComponent.js +1 -2
- package/es-modules/Accessibility/FocusBorder.js +1 -2
- package/es-modules/Accessibility/KeyboardNavigation.js +1 -2
- package/es-modules/Accessibility/KeyboardNavigationHandler.js +1 -2
- package/es-modules/Accessibility/Options/A11yDefaults.d.ts +11 -0
- package/es-modules/Accessibility/Options/A11yDefaults.js +11 -0
- package/es-modules/Accessibility/Options/DeprecatedOptions.d.ts +58 -0
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +7 -2
- package/es-modules/Accessibility/Options/LangDefaults.js +9 -0
- package/es-modules/Accessibility/ProxyElement.js +2 -5
- package/es-modules/Accessibility/ProxyProvider.js +1 -2
- package/es-modules/Accessibility/Utils/Announcer.js +2 -3
- package/es-modules/Accessibility/Utils/ChartUtilities.js +1 -2
- package/es-modules/Accessibility/Utils/EventProvider.d.ts +2 -2
- package/es-modules/Accessibility/Utils/EventProvider.js +6 -2
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +1 -2
- package/es-modules/Core/Animation/AnimationUtilities.js +1 -2
- package/es-modules/Core/Animation/Fx.js +1 -2
- package/es-modules/Core/Callback.d.ts +9 -2
- package/es-modules/Core/Chart/Chart.js +48 -41
- package/es-modules/Core/Chart/Chart3D.js +1 -2
- package/es-modules/Core/Chart/ChartDefaults.js +11 -0
- package/es-modules/Core/Chart/ChartOptions.d.ts +8 -0
- package/es-modules/Core/Chart/GanttChart.js +1 -2
- package/es-modules/Core/Chart/MapChart.js +1 -2
- package/es-modules/Core/Chart/StockChart.js +2 -3
- package/es-modules/Core/Color/Color.js +1 -2
- package/es-modules/Core/Defaults.js +36 -9
- package/es-modules/Core/Delaunay.d.ts +52 -0
- package/es-modules/Core/Delaunay.js +310 -0
- package/es-modules/Core/Foundation.js +1 -2
- package/es-modules/Core/Geometry/CircleUtilities.js +1 -2
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/HttpUtilities.js +1 -2
- package/es-modules/Core/MSPointer.js +1 -2
- package/es-modules/Core/Math3D.js +1 -2
- package/es-modules/Core/Options.d.ts +6 -2
- package/es-modules/Core/Pointer.js +23 -4
- package/es-modules/Core/PointerEvent.d.ts +2 -0
- package/es-modules/Core/Renderer/HTML/AST.js +2 -2
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +1 -2
- package/es-modules/Core/Renderer/RendererUtilities.js +34 -19
- package/es-modules/Core/Responsive.d.ts +4 -2
- package/es-modules/Core/Responsive.js +10 -4
- package/es-modules/Core/Templating.d.ts +1 -1
- package/es-modules/Core/Templating.js +3 -4
- package/es-modules/Core/Time.d.ts +8 -0
- package/es-modules/Core/Time.js +2 -2
- package/es-modules/Core/Tooltip.d.ts +4 -8
- package/es-modules/Core/Tooltip.js +100 -81
- package/es-modules/Core/TooltipOptions.d.ts +44 -1
- package/es-modules/Core/Utilities.d.ts +25 -665
- package/es-modules/Core/Utilities.js +17 -1398
- package/es-modules/Data/ColumnUtils.d.ts +83 -80
- package/es-modules/Data/ColumnUtils.js +103 -113
- package/es-modules/Data/Connectors/CSVConnector.d.ts +9 -14
- package/es-modules/Data/Connectors/CSVConnector.js +3 -4
- package/es-modules/Data/Connectors/DataConnector.d.ts +52 -54
- package/es-modules/Data/Connectors/DataConnector.js +33 -52
- package/es-modules/Data/Connectors/GoogleSheetsConnector.d.ts +40 -42
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +73 -88
- package/es-modules/Data/Connectors/GoogleSheetsConnectorOptions.d.ts +4 -2
- package/es-modules/Data/Connectors/HTMLTableConnector.d.ts +23 -28
- package/es-modules/Data/Connectors/HTMLTableConnector.js +3 -4
- package/es-modules/Data/Connectors/JSONConnector.d.ts +9 -14
- package/es-modules/Data/Connectors/JSONConnector.js +3 -4
- package/es-modules/Data/Converters/CSVConverter.d.ts +5 -5
- package/es-modules/Data/Converters/CSVConverter.js +3 -4
- package/es-modules/Data/Converters/CSVConverterOptions.d.ts +2 -2
- package/es-modules/Data/Converters/DataConverter.d.ts +76 -78
- package/es-modules/Data/Converters/DataConverter.js +26 -53
- package/es-modules/Data/Converters/DataConverterUtils.d.ts +88 -81
- package/es-modules/Data/Converters/DataConverterUtils.js +169 -181
- package/es-modules/Data/Converters/GoogleSheetsConverter.d.ts +4 -4
- package/es-modules/Data/Converters/GoogleSheetsConverter.js +3 -3
- package/es-modules/Data/Converters/GoogleSheetsConverterOptions.d.ts +2 -2
- package/es-modules/Data/Converters/HTMLTableConverter.d.ts +4 -4
- package/es-modules/Data/Converters/HTMLTableConverter.js +2 -3
- package/es-modules/Data/Converters/HTMLTableConverterOptions.d.ts +2 -2
- package/es-modules/Data/Converters/JSONConverter.d.ts +7 -7
- package/es-modules/Data/Converters/JSONConverter.js +6 -6
- package/es-modules/Data/Converters/JSONConverterOptions.d.ts +2 -2
- package/es-modules/Data/DataCursor.d.ts +65 -70
- package/es-modules/Data/DataCursor.js +119 -139
- package/es-modules/Data/DataEvent.d.ts +55 -57
- package/es-modules/Data/DataPool.d.ts +10 -17
- package/es-modules/Data/DataPool.js +20 -9
- package/es-modules/Data/DataTable.d.ts +111 -113
- package/es-modules/Data/DataTable.js +3 -3
- package/es-modules/Data/DataTableCore.d.ts +9 -9
- package/es-modules/Data/DataTableCore.js +2 -2
- package/es-modules/Data/Formula/FormulaParser.js +1 -2
- package/es-modules/Data/Formula/FormulaProcessor.js +1 -2
- package/es-modules/Data/Modifiers/ChainModifier.d.ts +29 -34
- package/es-modules/Data/Modifiers/ChainModifier.js +7 -8
- package/es-modules/Data/Modifiers/DataModifier.d.ts +36 -41
- package/es-modules/Data/Modifiers/DataModifier.js +31 -53
- package/es-modules/Data/Modifiers/FilterModifier.d.ts +4 -4
- package/es-modules/Data/Modifiers/FilterModifier.js +3 -4
- package/es-modules/Data/Modifiers/FilterModifierOptions.d.ts +3 -2
- package/es-modules/Data/Modifiers/InvertModifier.d.ts +4 -4
- package/es-modules/Data/Modifiers/InvertModifier.js +3 -4
- package/es-modules/Data/Modifiers/MathModifier.d.ts +5 -4
- package/es-modules/Data/Modifiers/RangeModifier.d.ts +4 -4
- package/es-modules/Data/Modifiers/RangeModifier.js +3 -4
- package/es-modules/Data/Modifiers/SortModifier.d.ts +6 -11
- package/es-modules/Data/Modifiers/SortModifier.js +3 -4
- package/es-modules/Data/Modifiers/SortModifierOptions.d.ts +3 -3
- package/es-modules/Grid/Core/Accessibility/Accessibility.d.ts +1 -1
- package/es-modules/Grid/Core/Accessibility/Accessibility.js +5 -6
- package/es-modules/Grid/Core/Data/DataProvider.d.ts +97 -0
- package/es-modules/Grid/Core/Data/DataProvider.js +89 -0
- package/es-modules/Grid/Core/Data/DataProviderRegistry.d.ts +20 -0
- package/es-modules/Grid/Core/Data/DataProviderRegistry.js +52 -0
- package/es-modules/Grid/Core/Data/DataProviderType.d.ts +19 -0
- package/es-modules/Grid/Core/Data/DataProviderType.js +15 -0
- package/es-modules/Grid/Core/Data/LocalDataProvider.d.ts +165 -0
- package/es-modules/Grid/Core/Data/LocalDataProvider.js +341 -0
- package/es-modules/Grid/Core/Defaults.js +4 -2
- package/es-modules/Grid/Core/Globals.d.ts +20 -16
- package/es-modules/Grid/Core/Globals.js +10 -8
- package/es-modules/Grid/Core/Grid.d.ts +31 -22
- package/es-modules/Grid/Core/Grid.js +214 -136
- package/es-modules/Grid/Core/GridUtils.d.ts +33 -0
- package/es-modules/Grid/Core/GridUtils.js +50 -3
- package/es-modules/Grid/Core/Options.d.ts +145 -4
- package/es-modules/Grid/Core/Pagination/Pagination.d.ts +3 -0
- package/es-modules/Grid/Core/Pagination/Pagination.js +63 -23
- package/es-modules/Grid/Core/Pagination/PaginationOptions.d.ts +4 -0
- package/es-modules/Grid/Core/Querying/FilteringController.js +1 -2
- package/es-modules/Grid/Core/Querying/PaginationController.d.ts +2 -2
- package/es-modules/Grid/Core/Querying/PaginationController.js +3 -3
- package/es-modules/Grid/Core/Querying/QueryingController.d.ts +1 -1
- package/es-modules/Grid/Core/Querying/QueryingController.js +2 -26
- package/es-modules/Grid/Core/Responsive/ResponsiveComposition.d.ts +53 -0
- package/es-modules/Grid/Core/Responsive/ResponsiveComposition.js +229 -0
- package/es-modules/Grid/Core/Responsive/ResponsiveOptions.d.ts +58 -0
- package/es-modules/Grid/Core/Responsive/ResponsiveOptions.js +15 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.js +2 -3
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.js +3 -4
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.js +2 -2
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.d.ts +17 -1
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.js +58 -15
- package/es-modules/Grid/Core/Table/Actions/ColumnsResizer.js +1 -3
- package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.d.ts +57 -3
- package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.js +397 -118
- package/es-modules/Grid/Core/Table/Body/CellContextMenu.d.ts +11 -0
- package/es-modules/Grid/Core/Table/Body/CellContextMenu.js +84 -0
- package/es-modules/Grid/Core/Table/Body/TableCell.d.ts +27 -13
- package/es-modules/Grid/Core/Table/Body/TableCell.js +74 -25
- package/es-modules/Grid/Core/Table/Body/TableRow.d.ts +7 -15
- package/es-modules/Grid/Core/Table/Body/TableRow.js +24 -19
- package/es-modules/Grid/Core/Table/Cell.d.ts +16 -3
- package/es-modules/Grid/Core/Table/Cell.js +36 -3
- package/es-modules/Grid/Core/Table/CellContent/TextContent.js +3 -8
- package/es-modules/Grid/Core/Table/Column.d.ts +10 -4
- package/es-modules/Grid/Core/Table/Column.js +23 -34
- package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.js +9 -8
- package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.js +4 -3
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.d.ts +5 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.js +7 -2
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.js +1 -2
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/FilterMenuButton.js +1 -2
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.js +2 -3
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.js +1 -2
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.js +1 -2
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.d.ts +0 -1
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.js +4 -14
- package/es-modules/Grid/Core/Table/Header/HeaderCell.d.ts +6 -1
- package/es-modules/Grid/Core/Table/Header/HeaderCell.js +33 -13
- package/es-modules/Grid/Core/Table/Header/HeaderRow.js +4 -5
- package/es-modules/Grid/Core/Table/Header/TableHeader.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Header/TableHeader.js +3 -3
- package/es-modules/Grid/Core/Table/Row.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Row.js +2 -2
- package/es-modules/Grid/Core/Table/Table.d.ts +38 -12
- package/es-modules/Grid/Core/Table/Table.js +184 -91
- package/es-modules/Grid/Core/UI/ContextMenuButton.d.ts +6 -7
- package/es-modules/Grid/Core/UI/ContextMenuButton.js +5 -3
- package/es-modules/Grid/Core/UI/Popup.js +7 -9
- package/es-modules/Grid/Core/UI/SvgIcons.d.ts +42 -7
- package/es-modules/Grid/Core/UI/SvgIcons.js +206 -33
- package/es-modules/Grid/Core/UI/Toolbar.d.ts +5 -0
- package/es-modules/Grid/Core/UI/ToolbarButton.d.ts +4 -12
- package/es-modules/Grid/Core/UI/ToolbarButton.js +8 -26
- package/es-modules/Grid/Pro/CellEditing/CellEditMode.d.ts +2 -2
- package/es-modules/Grid/Pro/CellEditing/CellEditing.js +10 -10
- package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.d.ts +1 -1
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.js +4 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.js +1 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js +1 -2
- package/es-modules/Grid/Pro/ColumnTypes/Validator.js +34 -32
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.d.ts +1 -1
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.js +3 -4
- package/es-modules/Grid/Pro/Credits/CreditsProComposition.js +1 -3
- package/es-modules/Grid/Pro/Data/DataSourceHelper.d.ts +74 -0
- package/es-modules/Grid/Pro/Data/DataSourceHelper.js +246 -0
- package/es-modules/Grid/Pro/Data/QuerySerializer.d.ts +46 -0
- package/es-modules/Grid/Pro/Data/QuerySerializer.js +169 -0
- package/es-modules/Grid/Pro/Data/RemoteDataProvider.d.ts +187 -0
- package/es-modules/Grid/Pro/Data/RemoteDataProvider.js +500 -0
- package/es-modules/Grid/Pro/Export/Exporting.js +1 -2
- package/es-modules/Grid/Pro/Export/ExportingComposition.js +1 -2
- package/es-modules/Grid/Pro/GridEvents.js +1 -2
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.d.ts +0 -1
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.js +1 -2
- package/es-modules/Shared/BaseForm.js +1 -2
- package/es-modules/Shared/DownloadURL.js +1 -2
- package/es-modules/Shared/TimeBase.js +3 -3
- package/es-modules/Shared/Types.d.ts +7 -0
- package/es-modules/Shared/Utilities.d.ts +576 -0
- package/es-modules/Shared/Utilities.js +1368 -0
- package/es-modules/masters/grid-pro.src.d.ts +15 -11
- package/es-modules/masters/grid-pro.src.js +12 -5
- package/grid-pro.d.ts +15 -11
- package/grid-pro.js +3 -3
- package/grid-pro.js.map +1 -1
- package/grid-pro.src.d.ts +15 -11
- package/grid-pro.src.js +10408 -8009
- package/package.json +1 -1
- package/es-modules/Grid/Core/Pagination/Icons.d.ts +0 -7
- package/es-modules/Grid/Core/Pagination/Icons.js +0 -7
|
@@ -1,13 +1,5 @@
|
|
|
1
|
+
import type Time from './Time';
|
|
1
2
|
import type Chart from './Chart/Chart';
|
|
2
|
-
import type CSSObject from './Renderer/CSSObject';
|
|
3
|
-
import type { DeepPartial, TypedArray } from '../Shared/Types';
|
|
4
|
-
import type { DOMElementType, HTMLDOMElement } from './Renderer/DOMElementType';
|
|
5
|
-
import type { EventCallback } from './Callback';
|
|
6
|
-
import type HTMLAttributes from './Renderer/HTML/HTMLAttributes';
|
|
7
|
-
import type SVGAttributes from './Renderer/SVG/SVGAttributes';
|
|
8
|
-
type NonArray<T> = T extends Array<unknown> ? never : T;
|
|
9
|
-
type NonFunction<T> = T extends Function ? never : T;
|
|
10
|
-
type NullType = (null | undefined);
|
|
11
3
|
/**
|
|
12
4
|
* Provide error messages for debugging, with links to online explanation. This
|
|
13
5
|
* function can be overridden to provide custom error handling.
|
|
@@ -38,548 +30,16 @@ type NullType = (null | undefined);
|
|
|
38
30
|
*
|
|
39
31
|
* @return {void}
|
|
40
32
|
*/
|
|
41
|
-
declare function error(code: (number | string), stop?: boolean, chart?: Chart, params?: Record<string, string>): void;
|
|
42
|
-
declare namespace error {
|
|
33
|
+
export declare function error(code: (number | string), stop?: boolean, chart?: Chart, params?: Record<string, string>): void;
|
|
34
|
+
export declare namespace error {
|
|
43
35
|
const messages: Array<string>;
|
|
44
36
|
}
|
|
45
|
-
declare function merge<T = object>(extend: true, a?: T, ...n: Array<DeepPartial<T> | undefined>): (T);
|
|
46
|
-
declare function merge<T1 extends object = object, T2 = unknown, T3 = unknown, T4 = unknown, T5 = unknown, T6 = unknown, T7 = unknown, T8 = unknown, T9 = unknown>(a?: T1, b?: T2, c?: T3, d?: T4, e?: T5, f?: T6, g?: T7, h?: T8, i?: T9): (T1 & T2 & T3 & T4 & T5 & T6 & T7 & T8 & T9);
|
|
47
37
|
/**
|
|
48
|
-
*
|
|
38
|
+
* The time unit lookup
|
|
49
39
|
*
|
|
50
|
-
* @
|
|
51
|
-
*
|
|
52
|
-
* @param {*} s
|
|
53
|
-
* The item to check.
|
|
54
|
-
*
|
|
55
|
-
* @return {boolean}
|
|
56
|
-
* True if the argument is a string.
|
|
57
|
-
*/
|
|
58
|
-
declare function isString(s: unknown): s is string;
|
|
59
|
-
/**
|
|
60
|
-
* Utility function to check if an item is an array.
|
|
61
|
-
*
|
|
62
|
-
* @function Highcharts.isArray
|
|
63
|
-
*
|
|
64
|
-
* @param {*} obj
|
|
65
|
-
* The item to check.
|
|
66
|
-
*
|
|
67
|
-
* @return {boolean}
|
|
68
|
-
* True if the argument is an array.
|
|
69
|
-
*/
|
|
70
|
-
declare function isArray(obj: unknown): obj is Array<unknown>;
|
|
71
|
-
declare function isObject<T>(obj: T, strict: true): obj is object & NonArray<NonFunction<NonNullable<T>>>;
|
|
72
|
-
declare function isObject<T>(obj: T, strict?: false): obj is object & NonFunction<NonNullable<T>>;
|
|
73
|
-
/**
|
|
74
|
-
* Utility function to check if an Object is a HTML Element.
|
|
75
|
-
*
|
|
76
|
-
* @function Highcharts.isDOMElement
|
|
77
|
-
*
|
|
78
|
-
* @param {*} obj
|
|
79
|
-
* The item to check.
|
|
80
|
-
*
|
|
81
|
-
* @return {boolean}
|
|
82
|
-
* True if the argument is a HTML Element.
|
|
83
|
-
*/
|
|
84
|
-
declare function isDOMElement(obj: unknown): obj is HTMLDOMElement;
|
|
85
|
-
/**
|
|
86
|
-
* Utility function to check if an Object is a class.
|
|
87
|
-
*
|
|
88
|
-
* @function Highcharts.isClass
|
|
89
|
-
*
|
|
90
|
-
* @param {object|undefined} obj
|
|
91
|
-
* The item to check.
|
|
92
|
-
*
|
|
93
|
-
* @return {boolean}
|
|
94
|
-
* True if the argument is a class.
|
|
40
|
+
* @ignore
|
|
95
41
|
*/
|
|
96
|
-
declare
|
|
97
|
-
/**
|
|
98
|
-
* Utility function to check if an item is a number and it is finite (not NaN,
|
|
99
|
-
* Infinity or -Infinity).
|
|
100
|
-
*
|
|
101
|
-
* @function Highcharts.isNumber
|
|
102
|
-
*
|
|
103
|
-
* @param {*} n
|
|
104
|
-
* The item to check.
|
|
105
|
-
*
|
|
106
|
-
* @return {boolean}
|
|
107
|
-
* True if the item is a finite number
|
|
108
|
-
*/
|
|
109
|
-
declare function isNumber(n: unknown): n is number;
|
|
110
|
-
/**
|
|
111
|
-
* Remove the last occurence of an item from an array.
|
|
112
|
-
*
|
|
113
|
-
* @function Highcharts.erase
|
|
114
|
-
*
|
|
115
|
-
* @param {Array<*>} arr
|
|
116
|
-
* The array.
|
|
117
|
-
*
|
|
118
|
-
* @param {*} item
|
|
119
|
-
* The item to remove.
|
|
120
|
-
*
|
|
121
|
-
* @return {void}
|
|
122
|
-
*/
|
|
123
|
-
declare function erase(arr: Array<unknown>, item: unknown): void;
|
|
124
|
-
/**
|
|
125
|
-
* Adds an item to an array, if it is not present in the array.
|
|
126
|
-
*
|
|
127
|
-
* @function Highcharts.pushUnique
|
|
128
|
-
*
|
|
129
|
-
* @param {Array<unknown>} array
|
|
130
|
-
* The array to add the item to.
|
|
131
|
-
*
|
|
132
|
-
* @param {unknown} item
|
|
133
|
-
* The item to add.
|
|
134
|
-
*
|
|
135
|
-
* @return {boolean}
|
|
136
|
-
* Returns true, if the item was not present and has been added.
|
|
137
|
-
*/
|
|
138
|
-
declare function pushUnique(array: Array<unknown>, item: unknown): boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Check if an object is null or undefined.
|
|
141
|
-
*
|
|
142
|
-
* @function Highcharts.defined
|
|
143
|
-
*
|
|
144
|
-
* @param {*} obj
|
|
145
|
-
* The object to check.
|
|
146
|
-
*
|
|
147
|
-
* @return {boolean}
|
|
148
|
-
* False if the object is null or undefined, otherwise true.
|
|
149
|
-
*/
|
|
150
|
-
declare function defined<T>(obj: T): obj is NonNullable<T>;
|
|
151
|
-
declare function attr(elem: DOMElementType, prop: (HTMLAttributes | SVGAttributes)): undefined;
|
|
152
|
-
declare function attr(elem: DOMElementType, prop: string, value?: undefined): (string | null);
|
|
153
|
-
declare function attr(elem: DOMElementType, prop: string, value: (number | string)): undefined;
|
|
154
|
-
/**
|
|
155
|
-
* Check if an element is an array, and if not, make it into an array.
|
|
156
|
-
*
|
|
157
|
-
* @function Highcharts.splat
|
|
158
|
-
*
|
|
159
|
-
* @param {*} obj
|
|
160
|
-
* The object to splat.
|
|
161
|
-
*
|
|
162
|
-
* @return {Array}
|
|
163
|
-
* The produced or original array.
|
|
164
|
-
*/
|
|
165
|
-
declare function splat<T>(obj: T | Array<T>): Array<T>;
|
|
166
|
-
/**
|
|
167
|
-
* Set a timeout if the delay is given, otherwise perform the function
|
|
168
|
-
* synchronously.
|
|
169
|
-
*
|
|
170
|
-
* @function Highcharts.syncTimeout
|
|
171
|
-
*
|
|
172
|
-
* @param {Function} fn
|
|
173
|
-
* The function callback.
|
|
174
|
-
*
|
|
175
|
-
* @param {number} delay
|
|
176
|
-
* Delay in milliseconds.
|
|
177
|
-
*
|
|
178
|
-
* @param {*} [context]
|
|
179
|
-
* An optional context to send to the function callback.
|
|
180
|
-
*
|
|
181
|
-
* @return {number}
|
|
182
|
-
* An identifier for the timeout that can later be cleared with
|
|
183
|
-
* Highcharts.clearTimeout. Returns -1 if there is no timeout.
|
|
184
|
-
*/
|
|
185
|
-
declare function syncTimeout(fn: Function, delay: number, context?: unknown): number;
|
|
186
|
-
/**
|
|
187
|
-
* Internal clear timeout. The function checks that the `id` was not removed
|
|
188
|
-
* (e.g. by `chart.destroy()`). For the details see
|
|
189
|
-
* [issue #7901](https://github.com/highcharts/highcharts/issues/7901).
|
|
190
|
-
*
|
|
191
|
-
* @function Highcharts.clearTimeout
|
|
192
|
-
*
|
|
193
|
-
* @param {number|undefined} id
|
|
194
|
-
* Id of a timeout.
|
|
195
|
-
*/
|
|
196
|
-
declare function internalClearTimeout(id: (number | undefined)): void;
|
|
197
|
-
/**
|
|
198
|
-
* Utility function to extend an object with the members of another.
|
|
199
|
-
*
|
|
200
|
-
* @function Highcharts.extend<T>
|
|
201
|
-
*
|
|
202
|
-
* @param {T|undefined} a
|
|
203
|
-
* The object to be extended.
|
|
204
|
-
*
|
|
205
|
-
* @param {Partial<T>} b
|
|
206
|
-
* The object to add to the first one.
|
|
207
|
-
*
|
|
208
|
-
* @return {T}
|
|
209
|
-
* Object a, the original object.
|
|
210
|
-
*/
|
|
211
|
-
declare function extend<T extends object>(a: (T | undefined), b: Partial<T>): T;
|
|
212
|
-
declare function pick<T1, T2, T3, T4, T5>(...args: [T1, T2, T3, T4, T5]): T1 extends NullType ? T2 extends NullType ? T3 extends NullType ? T4 extends NullType ? T5 extends NullType ? undefined : T5 : T4 : T3 : T2 : T1;
|
|
213
|
-
declare function pick<T1, T2, T3, T4>(...args: [T1, T2, T3, T4]): T1 extends NullType ? T2 extends NullType ? T3 extends NullType ? T4 extends NullType ? undefined : T4 : T3 : T2 : T1;
|
|
214
|
-
declare function pick<T1, T2, T3>(...args: [T1, T2, T3]): T1 extends NullType ? T2 extends NullType ? T3 extends NullType ? undefined : T3 : T2 : T1;
|
|
215
|
-
declare function pick<T1, T2>(...args: [T1, T2]): T1 extends NullType ? T2 extends NullType ? undefined : T2 : T1;
|
|
216
|
-
declare function pick<T1>(...args: [T1]): T1 extends NullType ? undefined : T1;
|
|
217
|
-
declare function pick<T>(...args: Array<T | null | undefined>): T | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* Set CSS on a given element.
|
|
220
|
-
*
|
|
221
|
-
* @function Highcharts.css
|
|
222
|
-
*
|
|
223
|
-
* @param {Highcharts.HTMLDOMElement|Highcharts.SVGDOMElement} el
|
|
224
|
-
* An HTML DOM element.
|
|
225
|
-
*
|
|
226
|
-
* @param {Highcharts.CSSObject} styles
|
|
227
|
-
* Style object with camel case property names.
|
|
228
|
-
*
|
|
229
|
-
* @return {void}
|
|
230
|
-
*/
|
|
231
|
-
declare function css(el: DOMElementType, styles: CSSObject): void;
|
|
232
|
-
/**
|
|
233
|
-
* Utility function to create an HTML element with attributes and styles.
|
|
234
|
-
*
|
|
235
|
-
* @function Highcharts.createElement
|
|
236
|
-
*
|
|
237
|
-
* @param {string} tag
|
|
238
|
-
* The HTML tag.
|
|
239
|
-
*
|
|
240
|
-
* @param {Highcharts.HTMLAttributes} [attribs]
|
|
241
|
-
* Attributes as an object of key-value pairs.
|
|
242
|
-
*
|
|
243
|
-
* @param {Highcharts.CSSObject} [styles]
|
|
244
|
-
* Styles as an object of key-value pairs.
|
|
245
|
-
*
|
|
246
|
-
* @param {Highcharts.HTMLDOMElement} [parent]
|
|
247
|
-
* The parent HTML object.
|
|
248
|
-
*
|
|
249
|
-
* @param {boolean} [nopad=false]
|
|
250
|
-
* If true, remove all padding, border and margin.
|
|
251
|
-
*
|
|
252
|
-
* @return {Highcharts.HTMLDOMElement}
|
|
253
|
-
* The created DOM element.
|
|
254
|
-
*/
|
|
255
|
-
declare function createElement(tag: string, attribs?: HTMLAttributes, styles?: CSSObject, parent?: HTMLDOMElement, nopad?: boolean): HTMLDOMElement;
|
|
256
|
-
/**
|
|
257
|
-
* Extend a prototyped class by new members.
|
|
258
|
-
*
|
|
259
|
-
* @deprecated
|
|
260
|
-
* @function Highcharts.extendClass<T>
|
|
261
|
-
*
|
|
262
|
-
* @param {Highcharts.Class<T>} parent
|
|
263
|
-
* The parent prototype to inherit.
|
|
264
|
-
*
|
|
265
|
-
* @param {Highcharts.Dictionary<*>} members
|
|
266
|
-
* A collection of prototype members to add or override compared to the
|
|
267
|
-
* parent prototype.
|
|
268
|
-
*
|
|
269
|
-
* @return {Highcharts.Class<T>}
|
|
270
|
-
* A new prototype.
|
|
271
|
-
*/
|
|
272
|
-
declare function extendClass<T, TReturn = T>(parent: Class<T>, members: any): Class<TReturn>;
|
|
273
|
-
/**
|
|
274
|
-
* Left-pad a string to a given length by adding a character repetitively.
|
|
275
|
-
*
|
|
276
|
-
* @function Highcharts.pad
|
|
277
|
-
*
|
|
278
|
-
* @param {number} number
|
|
279
|
-
* The input string or number.
|
|
280
|
-
*
|
|
281
|
-
* @param {number} [length]
|
|
282
|
-
* The desired string length.
|
|
283
|
-
*
|
|
284
|
-
* @param {string} [padder=0]
|
|
285
|
-
* The character to pad with.
|
|
286
|
-
*
|
|
287
|
-
* @return {string}
|
|
288
|
-
* The padded string.
|
|
289
|
-
*/
|
|
290
|
-
declare function pad(number: number, length?: number, padder?: string): string;
|
|
291
|
-
/**
|
|
292
|
-
* Return a length based on either the integer value, or a percentage of a base.
|
|
293
|
-
*
|
|
294
|
-
* @function Highcharts.relativeLength
|
|
295
|
-
*
|
|
296
|
-
* @param {Highcharts.RelativeSize} value
|
|
297
|
-
* A percentage string or a number.
|
|
298
|
-
*
|
|
299
|
-
* @param {number} base
|
|
300
|
-
* The full length that represents 100%.
|
|
301
|
-
*
|
|
302
|
-
* @param {number} [offset=0]
|
|
303
|
-
* A pixel offset to apply for percentage values. Used internally in
|
|
304
|
-
* axis positioning.
|
|
305
|
-
*
|
|
306
|
-
* @return {number}
|
|
307
|
-
* The computed length.
|
|
308
|
-
*/
|
|
309
|
-
declare function relativeLength(value: Utilities.RelativeSize, base: number, offset?: number): number;
|
|
310
|
-
/**
|
|
311
|
-
* Replaces text in a string with a given replacement in a loop to catch nested
|
|
312
|
-
* matches after previous replacements.
|
|
313
|
-
*
|
|
314
|
-
* @function Highcharts.replaceNested
|
|
315
|
-
*
|
|
316
|
-
* @param {string} text
|
|
317
|
-
* Text to search and modify.
|
|
318
|
-
*
|
|
319
|
-
* @param {...Array<(RegExp|string)>} replacements
|
|
320
|
-
* One or multiple tuples with search pattern (`[0]: (string|RegExp)`) and
|
|
321
|
-
* replacement (`[1]: string`) for matching text.
|
|
322
|
-
*
|
|
323
|
-
* @return {string}
|
|
324
|
-
* Text with replacements.
|
|
325
|
-
*/
|
|
326
|
-
declare function replaceNested(text: string, ...replacements: Array<[pattern: (string | RegExp), replacement: string]>): string;
|
|
327
|
-
/**
|
|
328
|
-
* Wrap a method with extended functionality, preserving the original function.
|
|
329
|
-
*
|
|
330
|
-
* @function Highcharts.wrap
|
|
331
|
-
*
|
|
332
|
-
* @param {*} obj
|
|
333
|
-
* The context object that the method belongs to. In real cases, this is
|
|
334
|
-
* often a prototype.
|
|
335
|
-
*
|
|
336
|
-
* @param {string} method
|
|
337
|
-
* The name of the method to extend.
|
|
338
|
-
*
|
|
339
|
-
* @param {Highcharts.WrapProceedFunction} func
|
|
340
|
-
* A wrapper function callback. This function is called with the same
|
|
341
|
-
* arguments as the original function, except that the original function
|
|
342
|
-
* is unshifted and passed as the first argument.
|
|
343
|
-
*/
|
|
344
|
-
declare function wrap<T, K extends FunctionNamesOf<T>>(obj: T, method: K, func: Utilities.WrapProceedFunction<T[K] & ArrowFunction>): void;
|
|
345
|
-
/**
|
|
346
|
-
* Get the magnitude of a number.
|
|
347
|
-
*
|
|
348
|
-
* @function Highcharts.getMagnitude
|
|
349
|
-
*
|
|
350
|
-
* @param {number} num
|
|
351
|
-
* The number.
|
|
352
|
-
*
|
|
353
|
-
* @return {number}
|
|
354
|
-
* The magnitude, where 1-9 are magnitude 1, 10-99 magnitude 2 etc.
|
|
355
|
-
*/
|
|
356
|
-
declare function getMagnitude(num: number): number;
|
|
357
|
-
/**
|
|
358
|
-
* Take an interval and normalize it to multiples of round numbers.
|
|
359
|
-
*
|
|
360
|
-
* @deprecated
|
|
361
|
-
* @function Highcharts.normalizeTickInterval
|
|
362
|
-
*
|
|
363
|
-
* @param {number} interval
|
|
364
|
-
* The raw, un-rounded interval.
|
|
365
|
-
*
|
|
366
|
-
* @param {Array<*>} [multiples]
|
|
367
|
-
* Allowed multiples.
|
|
368
|
-
*
|
|
369
|
-
* @param {number} [magnitude]
|
|
370
|
-
* The magnitude of the number.
|
|
371
|
-
*
|
|
372
|
-
* @param {boolean} [allowDecimals]
|
|
373
|
-
* Whether to allow decimals.
|
|
374
|
-
*
|
|
375
|
-
* @param {boolean} [hasTickAmount]
|
|
376
|
-
* If it has tickAmount, avoid landing on tick intervals lower than
|
|
377
|
-
* original.
|
|
378
|
-
*
|
|
379
|
-
* @return {number}
|
|
380
|
-
* The normalized interval.
|
|
381
|
-
*
|
|
382
|
-
* @todo
|
|
383
|
-
* Move this function to the Axis prototype. It is here only for historical
|
|
384
|
-
* reasons.
|
|
385
|
-
*/
|
|
386
|
-
declare function normalizeTickInterval(interval: number, multiples?: Array<number>, magnitude?: number, allowDecimals?: boolean, hasTickAmount?: boolean): number;
|
|
387
|
-
/**
|
|
388
|
-
* Sort an object array and keep the order of equal items. The ECMAScript
|
|
389
|
-
* standard does not specify the behaviour when items are equal.
|
|
390
|
-
*
|
|
391
|
-
* @function Highcharts.stableSort
|
|
392
|
-
*
|
|
393
|
-
* @param {Array<*>} arr
|
|
394
|
-
* The array to sort.
|
|
395
|
-
*
|
|
396
|
-
* @param {Function} sortFunction
|
|
397
|
-
* The function to sort it with, like with regular Array.prototype.sort.
|
|
398
|
-
*/
|
|
399
|
-
declare function stableSort<T>(arr: Array<T>, sortFunction: (a: T, b: T) => number): void;
|
|
400
|
-
/**
|
|
401
|
-
* Non-recursive method to find the lowest member of an array. `Math.min` raises
|
|
402
|
-
* a maximum call stack size exceeded error in Chrome when trying to apply more
|
|
403
|
-
* than 150.000 points. This method is slightly slower, but safe.
|
|
404
|
-
*
|
|
405
|
-
* @function Highcharts.arrayMin
|
|
406
|
-
*
|
|
407
|
-
* @param {Array<*>} data
|
|
408
|
-
* An array of numbers.
|
|
409
|
-
*
|
|
410
|
-
* @return {number}
|
|
411
|
-
* The lowest number.
|
|
412
|
-
*/
|
|
413
|
-
declare function arrayMin(data: Array<any> | TypedArray): number;
|
|
414
|
-
/**
|
|
415
|
-
* Non-recursive method to find the lowest member of an array. `Math.max` raises
|
|
416
|
-
* a maximum call stack size exceeded error in Chrome when trying to apply more
|
|
417
|
-
* than 150.000 points. This method is slightly slower, but safe.
|
|
418
|
-
*
|
|
419
|
-
* @function Highcharts.arrayMax
|
|
420
|
-
*
|
|
421
|
-
* @param {Array<*>} data
|
|
422
|
-
* An array of numbers.
|
|
423
|
-
*
|
|
424
|
-
* @return {number}
|
|
425
|
-
* The highest number.
|
|
426
|
-
*/
|
|
427
|
-
declare function arrayMax(data: Array<any> | TypedArray): number;
|
|
428
|
-
/**
|
|
429
|
-
* Utility method that destroys any SVGElement instances that are properties on
|
|
430
|
-
* the given object. It loops all properties and invokes destroy if there is a
|
|
431
|
-
* destroy method. The property is then delete.
|
|
432
|
-
*
|
|
433
|
-
* @function Highcharts.destroyObjectProperties
|
|
434
|
-
*
|
|
435
|
-
* @param {*} obj
|
|
436
|
-
* The object to destroy properties on.
|
|
437
|
-
*
|
|
438
|
-
* @param {*} [except]
|
|
439
|
-
* Exception, do not destroy this property, only delete it.
|
|
440
|
-
*/
|
|
441
|
-
declare function destroyObjectProperties(obj: any, except?: any, destructablesOnly?: boolean): void;
|
|
442
|
-
/**
|
|
443
|
-
* Discard a HTML element
|
|
444
|
-
*
|
|
445
|
-
* @function Highcharts.discardElement
|
|
446
|
-
*
|
|
447
|
-
* @param {Highcharts.HTMLDOMElement} element
|
|
448
|
-
* The HTML node to discard.
|
|
449
|
-
*/
|
|
450
|
-
declare function discardElement(element?: HTMLDOMElement): void;
|
|
451
|
-
/**
|
|
452
|
-
* Fix JS round off float errors.
|
|
453
|
-
*
|
|
454
|
-
* @function Highcharts.correctFloat
|
|
455
|
-
*
|
|
456
|
-
* @param {number} num
|
|
457
|
-
* A float number to fix.
|
|
458
|
-
*
|
|
459
|
-
* @param {number} [prec=14]
|
|
460
|
-
* The precision.
|
|
461
|
-
*
|
|
462
|
-
* @return {number}
|
|
463
|
-
* The corrected float number.
|
|
464
|
-
*/
|
|
465
|
-
declare function correctFloat(num: number, prec?: number): number;
|
|
466
|
-
declare function getStyle(el: HTMLDOMElement, prop: string, toInt: true): (number | undefined);
|
|
467
|
-
declare function getStyle(el: HTMLDOMElement, prop: string, toInt?: false): (number | string | undefined);
|
|
468
|
-
/**
|
|
469
|
-
* Return the value of the first element in the array that satisfies the
|
|
470
|
-
* provided testing function.
|
|
471
|
-
*
|
|
472
|
-
* @function Highcharts.find<T>
|
|
473
|
-
*
|
|
474
|
-
* @param {Array<T>} arr
|
|
475
|
-
* The array to test.
|
|
476
|
-
*
|
|
477
|
-
* @param {Function} callback
|
|
478
|
-
* The callback function. The function receives the item as the first
|
|
479
|
-
* argument. Return `true` if this item satisfies the condition.
|
|
480
|
-
*
|
|
481
|
-
* @return {T|undefined}
|
|
482
|
-
* The value of the element.
|
|
483
|
-
*/
|
|
484
|
-
declare const find: <T>(arr: Array<T>, callback: Utilities.FindCallback<T>) => (T | undefined);
|
|
485
|
-
/**
|
|
486
|
-
* Get the element's offset position, corrected for `overflow: auto`.
|
|
487
|
-
*
|
|
488
|
-
* @function Highcharts.offset
|
|
489
|
-
*
|
|
490
|
-
* @param {global.Element} el
|
|
491
|
-
* The DOM element.
|
|
492
|
-
*
|
|
493
|
-
* @return {Highcharts.OffsetObject}
|
|
494
|
-
* An object containing `left` and `top` properties for the position in
|
|
495
|
-
* the page.
|
|
496
|
-
*/
|
|
497
|
-
declare function offset(el: Element): Utilities.OffsetObject;
|
|
498
|
-
/**
|
|
499
|
-
* Iterate over object key pairs in an object.
|
|
500
|
-
*
|
|
501
|
-
* @function Highcharts.objectEach<T>
|
|
502
|
-
*
|
|
503
|
-
* @param {*} obj
|
|
504
|
-
* The object to iterate over.
|
|
505
|
-
*
|
|
506
|
-
* @param {Highcharts.ObjectEachCallbackFunction<T>} fn
|
|
507
|
-
* The iterator callback. It passes three arguments:
|
|
508
|
-
* * value - The property value.
|
|
509
|
-
* * key - The property key.
|
|
510
|
-
* * obj - The object that objectEach is being applied to.
|
|
511
|
-
*
|
|
512
|
-
* @param {T} [ctx]
|
|
513
|
-
* The context.
|
|
514
|
-
*/
|
|
515
|
-
declare function objectEach<TObject, TContext>(obj: TObject, fn: Utilities.ObjectEachCallback<TObject, TContext>, ctx?: TContext): void;
|
|
516
|
-
/**
|
|
517
|
-
* Add an event listener.
|
|
518
|
-
*
|
|
519
|
-
* @function Highcharts.addEvent<T>
|
|
520
|
-
*
|
|
521
|
-
* @param {Highcharts.Class<T>|T} el
|
|
522
|
-
* The element or object to add a listener to. It can be a
|
|
523
|
-
* {@link HTMLDOMElement}, an {@link SVGElement} or any other object.
|
|
524
|
-
*
|
|
525
|
-
* @param {string} type
|
|
526
|
-
* The event type.
|
|
527
|
-
*
|
|
528
|
-
* @param {Highcharts.EventCallbackFunction<T>|Function} fn
|
|
529
|
-
* The function callback to execute when the event is fired.
|
|
530
|
-
*
|
|
531
|
-
* @param {Highcharts.EventOptionsObject} [options]
|
|
532
|
-
* Options for adding the event.
|
|
533
|
-
*
|
|
534
|
-
* @sample highcharts/members/addevent
|
|
535
|
-
* Use a general `render` event to draw shapes on a chart
|
|
536
|
-
*
|
|
537
|
-
* @return {Function}
|
|
538
|
-
* A callback function to remove the added event.
|
|
539
|
-
*/
|
|
540
|
-
declare function addEvent<T>(el: (Class<T> | T), type: string, fn: (EventCallback<T> | Function), options?: Utilities.EventOptions): Function;
|
|
541
|
-
/**
|
|
542
|
-
* Remove an event that was added with {@link Highcharts#addEvent}.
|
|
543
|
-
*
|
|
544
|
-
* @function Highcharts.removeEvent<T>
|
|
545
|
-
*
|
|
546
|
-
* @param {Highcharts.Class<T>|T} el
|
|
547
|
-
* The element to remove events on.
|
|
548
|
-
*
|
|
549
|
-
* @param {string} [type]
|
|
550
|
-
* The type of events to remove. If undefined, all events are removed
|
|
551
|
-
* from the element.
|
|
552
|
-
*
|
|
553
|
-
* @param {Highcharts.EventCallbackFunction<T>} [fn]
|
|
554
|
-
* The specific callback to remove. If undefined, all events that match
|
|
555
|
-
* the element and optionally the type are removed.
|
|
556
|
-
*
|
|
557
|
-
* @return {void}
|
|
558
|
-
*/
|
|
559
|
-
declare function removeEvent<T>(el: (Class<T> | T), type?: string, fn?: (EventCallback<T> | Function)): void;
|
|
560
|
-
/**
|
|
561
|
-
* Fire an event that was registered with {@link Highcharts#addEvent}.
|
|
562
|
-
*
|
|
563
|
-
* @function Highcharts.fireEvent<T>
|
|
564
|
-
*
|
|
565
|
-
* @param {T} el
|
|
566
|
-
* The object to fire the event on. It can be a {@link HTMLDOMElement},
|
|
567
|
-
* an {@link SVGElement} or any other object.
|
|
568
|
-
*
|
|
569
|
-
* @param {string} type
|
|
570
|
-
* The type of event.
|
|
571
|
-
*
|
|
572
|
-
* @param {Highcharts.Dictionary<*>|Event} [eventArguments]
|
|
573
|
-
* Custom event arguments that are passed on as an argument to the event
|
|
574
|
-
* handler.
|
|
575
|
-
*
|
|
576
|
-
* @param {Highcharts.EventCallbackFunction<T>|Function} [defaultFunction]
|
|
577
|
-
* The default function to execute if the other listeners haven't
|
|
578
|
-
* returned false.
|
|
579
|
-
*
|
|
580
|
-
* @return {void}
|
|
581
|
-
*/
|
|
582
|
-
declare function fireEvent<T>(el: T, type: string, eventArguments?: (AnyRecord | Event), defaultFunction?: (EventCallback<T> | Function)): void;
|
|
42
|
+
export declare const timeUnits: Record<Time.TimeUnit, number>;
|
|
583
43
|
/**
|
|
584
44
|
* Get a unique key for using in internal element id's and pointers. The key is
|
|
585
45
|
* composed of a random hash specific to this Highcharts instance, and a
|
|
@@ -593,7 +53,7 @@ declare function fireEvent<T>(el: T, type: string, eventArguments?: (AnyRecord |
|
|
|
593
53
|
* @return {string}
|
|
594
54
|
* A unique key.
|
|
595
55
|
*/
|
|
596
|
-
declare const uniqueKey: () => string;
|
|
56
|
+
export declare const uniqueKey: () => string;
|
|
597
57
|
/**
|
|
598
58
|
* Activates a serial mode for element IDs provided by
|
|
599
59
|
* {@link Highcharts.uniqueKey}. This mode can be used in automated tests, where
|
|
@@ -618,122 +78,22 @@ declare const uniqueKey: () => string;
|
|
|
618
78
|
* @return {boolean|undefined}
|
|
619
79
|
* State of the serial mode.
|
|
620
80
|
*/
|
|
621
|
-
declare function useSerialIds(mode?: boolean): (boolean | undefined);
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
* Additional parameters for the generated message.
|
|
640
|
-
*/
|
|
641
|
-
params?: Record<string, string>;
|
|
642
|
-
}
|
|
643
|
-
interface EventOptions {
|
|
644
|
-
/**
|
|
645
|
-
* The order the event handler should be called. This opens for having
|
|
646
|
-
* one handler be called before another, independent of in which order
|
|
647
|
-
* they were added.
|
|
648
|
-
*/
|
|
649
|
-
order?: number;
|
|
650
|
-
/**
|
|
651
|
-
* Whether an event should be passive or not. When set to `true`, the
|
|
652
|
-
* function specified by listener will never call `preventDefault()`.
|
|
653
|
-
*/
|
|
654
|
-
passive?: boolean;
|
|
655
|
-
}
|
|
656
|
-
interface EventWrapperObject<T> {
|
|
657
|
-
/**
|
|
658
|
-
* The function callback to execute when the event is fired.
|
|
659
|
-
*/
|
|
660
|
-
fn: EventCallback<T>;
|
|
661
|
-
/**
|
|
662
|
-
* The order the event handler should be called.
|
|
663
|
-
*/
|
|
664
|
-
order: number;
|
|
665
|
-
}
|
|
666
|
-
interface FindCallback<T> {
|
|
667
|
-
(value: T, index: number): unknown;
|
|
668
|
-
}
|
|
669
|
-
interface ObjectEachCallback<TObject, TContext> {
|
|
670
|
-
(this: TContext, value: TObject[keyof TObject], key: Extract<keyof TObject, string>, obj: TObject): void;
|
|
671
|
-
}
|
|
672
|
-
interface OffsetObject {
|
|
673
|
-
/**
|
|
674
|
-
* Height of the element.
|
|
675
|
-
*/
|
|
676
|
-
height: number;
|
|
677
|
-
/**
|
|
678
|
-
* Left distance to the page border.
|
|
679
|
-
*/
|
|
680
|
-
left: number;
|
|
681
|
-
/**
|
|
682
|
-
* Top distance to the page border.
|
|
683
|
-
*/
|
|
684
|
-
top: number;
|
|
685
|
-
/**
|
|
686
|
-
* Width of the element.
|
|
687
|
-
*/
|
|
688
|
-
width: number;
|
|
689
|
-
}
|
|
690
|
-
interface WrapProceedFunction<T extends ArrowFunction> {
|
|
691
|
-
(proceed: (T & ArrowFunction), ...args: Array<any>): ReturnType<T>;
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
interface Utilities {
|
|
695
|
-
addEvent: typeof addEvent;
|
|
696
|
-
arrayMax: typeof arrayMax;
|
|
697
|
-
arrayMin: typeof arrayMin;
|
|
698
|
-
attr: typeof attr;
|
|
699
|
-
clearTimeout: typeof internalClearTimeout;
|
|
700
|
-
correctFloat: typeof correctFloat;
|
|
701
|
-
createElement: typeof createElement;
|
|
702
|
-
css: typeof css;
|
|
703
|
-
defined: typeof defined;
|
|
704
|
-
destroyObjectProperties: typeof destroyObjectProperties;
|
|
705
|
-
discardElement: typeof discardElement;
|
|
706
|
-
erase: typeof erase;
|
|
707
|
-
error: typeof error;
|
|
708
|
-
extend: typeof extend;
|
|
709
|
-
extendClass: typeof extendClass;
|
|
710
|
-
find: typeof find;
|
|
711
|
-
fireEvent: typeof fireEvent;
|
|
712
|
-
getMagnitude: typeof getMagnitude;
|
|
713
|
-
getStyle: typeof getStyle;
|
|
714
|
-
isArray: typeof isArray;
|
|
715
|
-
isClass: typeof isClass;
|
|
716
|
-
isDOMElement: typeof isDOMElement;
|
|
717
|
-
isFunction: typeof isFunction;
|
|
718
|
-
isNumber: typeof isNumber;
|
|
719
|
-
isObject: typeof isObject;
|
|
720
|
-
isString: typeof isString;
|
|
721
|
-
merge: typeof merge;
|
|
722
|
-
normalizeTickInterval: typeof normalizeTickInterval;
|
|
723
|
-
objectEach: typeof objectEach;
|
|
724
|
-
offset: typeof offset;
|
|
725
|
-
pad: typeof pad;
|
|
726
|
-
pick: typeof pick;
|
|
727
|
-
pushUnique: typeof pushUnique;
|
|
728
|
-
relativeLength: typeof relativeLength;
|
|
729
|
-
removeEvent: typeof removeEvent;
|
|
730
|
-
replaceNested: typeof replaceNested;
|
|
731
|
-
splat: typeof splat;
|
|
732
|
-
stableSort: typeof stableSort;
|
|
733
|
-
syncTimeout: typeof syncTimeout;
|
|
734
|
-
uniqueKey: typeof uniqueKey;
|
|
735
|
-
useSerialIds: typeof useSerialIds;
|
|
736
|
-
wrap: typeof wrap;
|
|
81
|
+
export declare function useSerialIds(mode?: boolean): (boolean | undefined);
|
|
82
|
+
export interface ErrorMessageEventObject {
|
|
83
|
+
/**
|
|
84
|
+
* The chart that causes the error.
|
|
85
|
+
*/
|
|
86
|
+
chart?: Chart;
|
|
87
|
+
/**
|
|
88
|
+
* The error code.
|
|
89
|
+
*/
|
|
90
|
+
code: number;
|
|
91
|
+
/**
|
|
92
|
+
* The error message.
|
|
93
|
+
*/
|
|
94
|
+
message?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Additional parameters for the generated message.
|
|
97
|
+
*/
|
|
98
|
+
params?: Record<string, string>;
|
|
737
99
|
}
|
|
738
|
-
declare const Utilities: Utilities;
|
|
739
|
-
export default Utilities;
|