@highcharts/grid-pro 2.1.1 → 2.2.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.
Files changed (373) hide show
  1. package/css/grid-pro.css +428 -432
  2. package/es-modules/Accessibility/A11yI18n.js +3 -3
  3. package/es-modules/Accessibility/Accessibility.js +4 -3
  4. package/es-modules/Accessibility/AccessibilityComponent.d.ts +1 -1
  5. package/es-modules/Accessibility/AccessibilityComponent.js +4 -3
  6. package/es-modules/Accessibility/Components/AnnotationsA11y.js +4 -3
  7. package/es-modules/Accessibility/Components/ContainerComponent.js +4 -3
  8. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +4 -3
  9. package/es-modules/Accessibility/Components/LegendComponent.js +4 -3
  10. package/es-modules/Accessibility/Components/MenuComponent.js +4 -3
  11. package/es-modules/Accessibility/Components/NavigatorComponent.js +3 -3
  12. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +4 -3
  13. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +14 -3
  14. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +4 -3
  15. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +4 -3
  16. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +4 -3
  17. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +4 -3
  18. package/es-modules/Accessibility/Components/ZoomComponent.js +4 -3
  19. package/es-modules/Accessibility/FocusBorder.js +4 -3
  20. package/es-modules/Accessibility/HighContrastMode.js +4 -3
  21. package/es-modules/Accessibility/HighContrastTheme.js +4 -3
  22. package/es-modules/Accessibility/KeyboardNavigation.js +4 -3
  23. package/es-modules/Accessibility/KeyboardNavigationHandler.js +4 -3
  24. package/es-modules/Accessibility/Options/A11yDefaults.js +4 -3
  25. package/es-modules/Accessibility/Options/DeprecatedOptions.js +4 -3
  26. package/es-modules/Accessibility/Options/LangDefaults.js +4 -3
  27. package/es-modules/Accessibility/ProxyElement.js +4 -3
  28. package/es-modules/Accessibility/ProxyProvider.js +4 -3
  29. package/es-modules/Accessibility/Utils/Announcer.js +4 -3
  30. package/es-modules/Accessibility/Utils/ChartUtilities.js +4 -3
  31. package/es-modules/Accessibility/Utils/DOMElementProvider.js +4 -3
  32. package/es-modules/Accessibility/Utils/EventProvider.d.ts +1 -1
  33. package/es-modules/Accessibility/Utils/EventProvider.js +4 -3
  34. package/es-modules/Accessibility/Utils/HTMLUtilities.js +4 -3
  35. package/es-modules/Core/Animation/AnimationOptions.d.ts +42 -0
  36. package/es-modules/Core/Animation/AnimationOptions.js +10 -0
  37. package/es-modules/Core/Animation/AnimationUtilities.js +39 -3
  38. package/es-modules/Core/Animation/Fx.d.ts +1 -130
  39. package/es-modules/Core/Animation/Fx.js +13 -6
  40. package/es-modules/Core/Animation/FxBase.d.ts +1 -0
  41. package/es-modules/Core/Animation/FxBase.js +11 -0
  42. package/es-modules/Core/Callback.d.ts +49 -0
  43. package/es-modules/Core/Callback.js +10 -0
  44. package/es-modules/Core/Chart/Chart.d.ts +659 -400
  45. package/es-modules/Core/Chart/Chart.js +64 -54
  46. package/es-modules/Core/Chart/Chart3D.d.ts +123 -233
  47. package/es-modules/Core/Chart/Chart3D.js +22 -35
  48. package/es-modules/Core/Chart/ChartBase.d.ts +3 -0
  49. package/es-modules/Core/Chart/ChartBase.js +11 -0
  50. package/es-modules/Core/Chart/ChartDefaults.js +7 -12
  51. package/es-modules/Core/Chart/ChartNavigationComposition.d.ts +1 -55
  52. package/es-modules/Core/Chart/ChartNavigationComposition.js +13 -13
  53. package/es-modules/Core/Chart/ChartOptions.d.ts +1217 -0
  54. package/es-modules/Core/Chart/ChartOptions.js +10 -0
  55. package/es-modules/Core/Chart/GanttChart.d.ts +0 -38
  56. package/es-modules/Core/Chart/GanttChart.js +4 -3
  57. package/es-modules/Core/Chart/MapChart.d.ts +9 -4
  58. package/es-modules/Core/Chart/MapChart.js +13 -3
  59. package/es-modules/Core/Chart/StockChart.d.ts +0 -85
  60. package/es-modules/Core/Chart/StockChart.js +33 -15
  61. package/es-modules/Core/Color/Color.d.ts +16 -24
  62. package/es-modules/Core/Color/Color.js +26 -8
  63. package/es-modules/Core/Color/ColorString.d.ts +0 -23
  64. package/es-modules/Core/Color/ColorString.js +11 -0
  65. package/es-modules/Core/Color/ColorType.d.ts +0 -33
  66. package/es-modules/Core/Color/ColorType.js +11 -0
  67. package/es-modules/Core/Color/GradientColor.d.ts +0 -33
  68. package/es-modules/Core/Color/GradientColor.js +11 -0
  69. package/es-modules/Core/Color/Palettes.d.ts +1 -84
  70. package/es-modules/Core/Color/Palettes.js +2 -1
  71. package/es-modules/Core/Defaults.d.ts +6 -0
  72. package/es-modules/Core/Defaults.js +30 -66
  73. package/es-modules/Core/Foundation.d.ts +1 -19
  74. package/es-modules/Core/Foundation.js +7 -4
  75. package/es-modules/Core/Geometry/CircleObject.d.ts +5 -0
  76. package/es-modules/Core/Geometry/CircleObject.js +10 -0
  77. package/es-modules/Core/Geometry/CircleUtilities.d.ts +1 -189
  78. package/es-modules/Core/Geometry/CircleUtilities.js +17 -15
  79. package/es-modules/Core/Geometry/GeometryObject.d.ts +7 -0
  80. package/es-modules/Core/Geometry/GeometryObject.js +10 -0
  81. package/es-modules/Core/Geometry/GeometryUtilities.d.ts +1 -48
  82. package/es-modules/Core/Geometry/GeometryUtilities.js +9 -7
  83. package/es-modules/Core/Geometry/IntersectionObject.d.ts +7 -0
  84. package/es-modules/Core/Geometry/IntersectionObject.js +10 -0
  85. package/es-modules/Core/Geometry/PolygonClip.d.ts +1 -19
  86. package/es-modules/Core/Geometry/PolygonClip.js +9 -7
  87. package/es-modules/Core/Globals.d.ts +9 -31
  88. package/es-modules/Core/Globals.js +9 -10
  89. package/es-modules/Core/GlobalsBase.d.ts +35 -0
  90. package/es-modules/Core/GlobalsBase.js +11 -0
  91. package/es-modules/Core/HttpUtilities.d.ts +54 -17
  92. package/es-modules/Core/HttpUtilities.js +15 -14
  93. package/es-modules/Core/JSON.d.ts +29 -0
  94. package/es-modules/Core/JSON.js +13 -0
  95. package/es-modules/Core/KeyboardEvent.d.ts +1 -0
  96. package/es-modules/Core/KeyboardEvent.js +11 -0
  97. package/es-modules/Core/MSPointer.d.ts +1 -74
  98. package/es-modules/Core/MSPointer.js +23 -13
  99. package/es-modules/Core/Math3D.d.ts +1 -117
  100. package/es-modules/Core/Math3D.js +13 -10
  101. package/es-modules/Core/Options.d.ts +334 -0
  102. package/es-modules/Core/Options.js +10 -0
  103. package/es-modules/Core/Pointer.d.ts +71 -445
  104. package/es-modules/Core/Pointer.js +51 -65
  105. package/es-modules/Core/PointerEvent.d.ts +18 -0
  106. package/es-modules/Core/PointerEvent.js +11 -0
  107. package/es-modules/Core/Renderer/AlignObject.d.ts +25 -27
  108. package/es-modules/Core/Renderer/AlignObject.js +11 -0
  109. package/es-modules/Core/Renderer/BBoxObject.d.ts +20 -31
  110. package/es-modules/Core/Renderer/BBoxObject.js +11 -0
  111. package/es-modules/Core/Renderer/CSSObject.d.ts +268 -59
  112. package/es-modules/Core/Renderer/CSSObject.js +10 -0
  113. package/es-modules/Core/Renderer/DOMElementType.d.ts +1 -33
  114. package/es-modules/Core/Renderer/DOMElementType.js +11 -0
  115. package/es-modules/Core/Renderer/DashStyleValue.d.ts +1 -27
  116. package/es-modules/Core/Renderer/DashStyleValue.js +11 -0
  117. package/es-modules/Core/Renderer/FontMetricsObject.d.ts +6 -26
  118. package/es-modules/Core/Renderer/FontMetricsObject.js +11 -0
  119. package/es-modules/Core/Renderer/HTML/AST.d.ts +3 -15
  120. package/es-modules/Core/Renderer/HTML/AST.js +22 -13
  121. package/es-modules/Core/Renderer/HTML/HTMLAttributes.d.ts +1 -25
  122. package/es-modules/Core/Renderer/HTML/HTMLAttributes.js +11 -0
  123. package/es-modules/Core/Renderer/HTML/HTMLElement.d.ts +0 -54
  124. package/es-modules/Core/Renderer/HTML/HTMLElement.js +27 -22
  125. package/es-modules/Core/Renderer/PolygonBoxObject.d.ts +15 -12
  126. package/es-modules/Core/Renderer/PolygonBoxObject.js +11 -0
  127. package/es-modules/Core/Renderer/Position3DObject.d.ts +6 -30
  128. package/es-modules/Core/Renderer/Position3DObject.js +11 -0
  129. package/es-modules/Core/Renderer/PositionObject.d.ts +9 -23
  130. package/es-modules/Core/Renderer/PositionObject.js +11 -0
  131. package/es-modules/Core/Renderer/RectangleObject.d.ts +6 -30
  132. package/es-modules/Core/Renderer/RectangleObject.js +11 -0
  133. package/es-modules/Core/Renderer/RendererRegistry.d.ts +1 -29
  134. package/es-modules/Core/Renderer/RendererRegistry.js +6 -3
  135. package/es-modules/Core/Renderer/RendererType.d.ts +1 -53
  136. package/es-modules/Core/Renderer/RendererType.js +11 -0
  137. package/es-modules/Core/Renderer/RendererUtilities.d.ts +1 -26
  138. package/es-modules/Core/Renderer/RendererUtilities.js +7 -4
  139. package/es-modules/Core/Renderer/SVG/ButtonThemeObject.d.ts +26 -31
  140. package/es-modules/Core/Renderer/SVG/SVGArc3D.d.ts +1 -44
  141. package/es-modules/Core/Renderer/SVG/SVGAttributes.d.ts +15 -51
  142. package/es-modules/Core/Renderer/SVG/SVGAttributes3D.d.ts +1 -42
  143. package/es-modules/Core/Renderer/SVG/SVGCuboid.d.ts +1 -42
  144. package/es-modules/Core/Renderer/SVG/SVGElement.d.ts +459 -0
  145. package/es-modules/Core/Renderer/SVG/SVGElement3D.d.ts +1 -0
  146. package/es-modules/Core/Renderer/SVG/SVGElementBase.d.ts +0 -23
  147. package/es-modules/Core/Renderer/SVG/SVGLabel.d.ts +14 -0
  148. package/es-modules/Core/Renderer/SVG/SVGPath.d.ts +18 -56
  149. package/es-modules/Core/Renderer/SVG/SVGPath3D.d.ts +0 -30
  150. package/es-modules/Core/Renderer/SVG/SVGRenderer.d.ts +652 -0
  151. package/es-modules/Core/Renderer/SVG/SVGRenderer3D.d.ts +1 -0
  152. package/es-modules/Core/Renderer/SVG/SVGRendererBase.d.ts +0 -24
  153. package/es-modules/Core/Renderer/SVG/SymbolOptions.d.ts +3 -26
  154. package/es-modules/Core/Renderer/SVG/SymbolType.d.ts +1 -41
  155. package/es-modules/Core/Renderer/SVG/Symbols.d.ts +146 -0
  156. package/es-modules/Core/Renderer/SVG/TextBuilder.d.ts +1 -0
  157. package/es-modules/Core/Renderer/ShadowOptionsObject.d.ts +21 -30
  158. package/es-modules/Core/Renderer/ShadowOptionsObject.js +11 -0
  159. package/es-modules/Core/Renderer/SizeObject.d.ts +0 -23
  160. package/es-modules/Core/Renderer/SizeObject.js +11 -0
  161. package/es-modules/Core/Responsive.d.ts +91 -28
  162. package/es-modules/Core/Responsive.js +7 -8
  163. package/es-modules/Core/Templating.d.ts +16 -0
  164. package/es-modules/Core/Templating.js +9 -4
  165. package/es-modules/Core/Time.d.ts +10 -1
  166. package/es-modules/Core/Time.js +4 -3
  167. package/es-modules/Core/Tooltip.d.ts +63 -115
  168. package/es-modules/Core/Tooltip.js +61 -27
  169. package/es-modules/Core/TooltipOptions.d.ts +681 -0
  170. package/es-modules/Core/TooltipOptions.js +10 -0
  171. package/es-modules/Core/Utilities.d.ts +75 -106
  172. package/es-modules/Core/Utilities.js +19 -53
  173. package/es-modules/Data/ColumnUtils.js +3 -3
  174. package/es-modules/Data/Connectors/CSVConnector.js +3 -3
  175. package/es-modules/Data/Connectors/CSVConnectorOptions.d.ts +3 -3
  176. package/es-modules/Data/Connectors/DataConnector.d.ts +12 -1
  177. package/es-modules/Data/Connectors/DataConnector.js +34 -4
  178. package/es-modules/Data/Connectors/DataConnectorOptions.d.ts +3 -3
  179. package/es-modules/Data/Connectors/DataConnectorType.d.ts +3 -3
  180. package/es-modules/Data/Connectors/GoogleSheetsConnector.js +3 -3
  181. package/es-modules/Data/Connectors/GoogleSheetsConnectorOptions.d.ts +3 -3
  182. package/es-modules/Data/Connectors/HTMLTableConnector.js +3 -3
  183. package/es-modules/Data/Connectors/HTMLTableConnectorOptions.d.ts +3 -3
  184. package/es-modules/Data/Connectors/JSONConnector.js +3 -3
  185. package/es-modules/Data/Connectors/JSONConnectorOptions.d.ts +3 -3
  186. package/es-modules/Data/Converters/CSVConverter.js +3 -3
  187. package/es-modules/Data/Converters/CSVConverterOptions.d.ts +3 -3
  188. package/es-modules/Data/Converters/DataConverter.js +3 -3
  189. package/es-modules/Data/Converters/DataConverterType.d.ts +3 -3
  190. package/es-modules/Data/Converters/DataConverterUtils.js +3 -3
  191. package/es-modules/Data/Converters/GoogleSheetsConverter.js +3 -3
  192. package/es-modules/Data/Converters/GoogleSheetsConverterOptions.d.ts +3 -3
  193. package/es-modules/Data/Converters/HTMLTableConverter.js +3 -3
  194. package/es-modules/Data/Converters/HTMLTableConverterOptions.d.ts +3 -3
  195. package/es-modules/Data/Converters/JSONConverter.js +3 -3
  196. package/es-modules/Data/Converters/JSONConverterOptions.d.ts +3 -3
  197. package/es-modules/Data/DataCursor.js +3 -3
  198. package/es-modules/Data/DataEvent.js +3 -3
  199. package/es-modules/Data/DataPool.js +3 -3
  200. package/es-modules/Data/DataPoolOptions.d.ts +3 -3
  201. package/es-modules/Data/DataTable.d.ts +6 -6
  202. package/es-modules/Data/DataTable.js +64 -30
  203. package/es-modules/Data/DataTableCore.d.ts +2 -2
  204. package/es-modules/Data/DataTableCore.js +5 -5
  205. package/es-modules/Data/DataTableOptions.js +3 -3
  206. package/es-modules/Data/Formula/Formula.js +3 -3
  207. package/es-modules/Data/Formula/FormulaParser.js +3 -3
  208. package/es-modules/Data/Formula/FormulaProcessor.js +3 -3
  209. package/es-modules/Data/Formula/FormulaTypes.js +3 -3
  210. package/es-modules/Data/Formula/Functions/ABS.js +3 -3
  211. package/es-modules/Data/Formula/Functions/AND.js +3 -3
  212. package/es-modules/Data/Formula/Functions/AVERAGE.js +3 -3
  213. package/es-modules/Data/Formula/Functions/AVERAGEA.js +3 -3
  214. package/es-modules/Data/Formula/Functions/COUNT.js +3 -3
  215. package/es-modules/Data/Formula/Functions/COUNTA.js +3 -3
  216. package/es-modules/Data/Formula/Functions/IF.js +3 -3
  217. package/es-modules/Data/Formula/Functions/ISNA.js +3 -3
  218. package/es-modules/Data/Formula/Functions/MAX.js +3 -3
  219. package/es-modules/Data/Formula/Functions/MEDIAN.js +3 -3
  220. package/es-modules/Data/Formula/Functions/MIN.js +3 -3
  221. package/es-modules/Data/Formula/Functions/MOD.js +3 -3
  222. package/es-modules/Data/Formula/Functions/MODE.js +3 -3
  223. package/es-modules/Data/Formula/Functions/NOT.js +3 -3
  224. package/es-modules/Data/Formula/Functions/OR.js +3 -3
  225. package/es-modules/Data/Formula/Functions/PRODUCT.js +3 -3
  226. package/es-modules/Data/Formula/Functions/SUM.js +3 -3
  227. package/es-modules/Data/Formula/Functions/XOR.js +3 -3
  228. package/es-modules/Data/Modifiers/ChainModifier.js +3 -3
  229. package/es-modules/Data/Modifiers/ChainModifierOptions.js +3 -3
  230. package/es-modules/Data/Modifiers/DataModifier.js +3 -3
  231. package/es-modules/Data/Modifiers/DataModifierEvent.js +3 -3
  232. package/es-modules/Data/Modifiers/DataModifierOptions.js +3 -3
  233. package/es-modules/Data/Modifiers/DataModifierType.d.ts +3 -3
  234. package/es-modules/Data/Modifiers/FilterModifier.js +3 -3
  235. package/es-modules/Data/Modifiers/FilterModifierOptions.js +3 -3
  236. package/es-modules/Data/Modifiers/InvertModifier.js +3 -3
  237. package/es-modules/Data/Modifiers/InvertModifierOptions.js +3 -3
  238. package/es-modules/Data/Modifiers/MathModifier.js +3 -3
  239. package/es-modules/Data/Modifiers/MathModifierOptions.js +3 -3
  240. package/es-modules/Data/Modifiers/RangeModifier.js +3 -3
  241. package/es-modules/Data/Modifiers/RangeModifierOptions.js +3 -3
  242. package/es-modules/Data/Modifiers/SortModifier.js +32 -6
  243. package/es-modules/Data/Modifiers/SortModifierOptions.d.ts +41 -4
  244. package/es-modules/Data/Modifiers/SortModifierOptions.js +3 -3
  245. package/es-modules/Grid/Core/Accessibility/A11yOptions.d.ts +77 -0
  246. package/es-modules/Grid/Core/Accessibility/A11yOptions.js +4 -3
  247. package/es-modules/Grid/Core/Accessibility/Accessibility.d.ts +67 -0
  248. package/es-modules/Grid/Core/Accessibility/Accessibility.js +176 -3
  249. package/es-modules/Grid/Core/Credits.js +3 -3
  250. package/es-modules/Grid/Core/Defaults.js +17 -5
  251. package/es-modules/Grid/Core/Globals.d.ts +4 -4
  252. package/es-modules/Grid/Core/Globals.js +5 -5
  253. package/es-modules/Grid/Core/Grid.d.ts +12 -1
  254. package/es-modules/Grid/Core/Grid.js +110 -8
  255. package/es-modules/Grid/Core/GridUtils.js +3 -3
  256. package/es-modules/Grid/Core/Options.d.ts +17 -1
  257. package/es-modules/Grid/Core/Options.js +3 -3
  258. package/es-modules/Grid/Core/Pagination/Pagination.js +3 -3
  259. package/es-modules/Grid/Core/Pagination/PaginationOptions.d.ts +0 -40
  260. package/es-modules/Grid/Core/Pagination/PaginationOptions.js +11 -0
  261. package/es-modules/Grid/Core/Querying/FilteringController.js +3 -3
  262. package/es-modules/Grid/Core/Querying/PaginationController.js +3 -3
  263. package/es-modules/Grid/Core/Querying/QueryingController.js +3 -3
  264. package/es-modules/Grid/Core/Querying/SortingController.d.ts +15 -0
  265. package/es-modules/Grid/Core/Querying/SortingController.js +89 -51
  266. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.js +3 -3
  267. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.d.ts +2 -2
  268. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.js +3 -3
  269. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.js +3 -3
  270. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.js +3 -3
  271. package/es-modules/Grid/Core/Table/Actions/ColumnSorting.d.ts +12 -2
  272. package/es-modules/Grid/Core/Table/Actions/ColumnSorting.js +85 -18
  273. package/es-modules/Grid/Core/Table/Actions/ColumnsResizer.js +3 -3
  274. package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.d.ts +37 -0
  275. package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.js +137 -26
  276. package/es-modules/Grid/Core/Table/Body/TableCell.d.ts +9 -2
  277. package/es-modules/Grid/Core/Table/Body/TableCell.js +15 -8
  278. package/es-modules/Grid/Core/Table/Body/TableRow.d.ts +18 -0
  279. package/es-modules/Grid/Core/Table/Body/TableRow.js +56 -10
  280. package/es-modules/Grid/Core/Table/Cell.d.ts +0 -7
  281. package/es-modules/Grid/Core/Table/Cell.js +5 -3
  282. package/es-modules/Grid/Core/Table/CellContent/CellContent.js +3 -3
  283. package/es-modules/Grid/Core/Table/CellContent/TextContent.js +4 -4
  284. package/es-modules/Grid/Core/Table/Column.d.ts +1 -1
  285. package/es-modules/Grid/Core/Table/Column.js +3 -3
  286. package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.js +3 -3
  287. package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.js +3 -3
  288. package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.js +3 -3
  289. package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.js +3 -3
  290. package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.js +3 -3
  291. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.js +14 -5
  292. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.js +3 -3
  293. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/FilterMenuButton.js +3 -3
  294. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.d.ts +9 -0
  295. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.js +35 -6
  296. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuPopup.js +5 -4
  297. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.js +11 -7
  298. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.js +3 -3
  299. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.js +3 -3
  300. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.d.ts +5 -1
  301. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.js +92 -9
  302. package/es-modules/Grid/Core/Table/Header/HeaderCell.d.ts +2 -2
  303. package/es-modules/Grid/Core/Table/Header/HeaderCell.js +8 -7
  304. package/es-modules/Grid/Core/Table/Header/HeaderRow.js +3 -3
  305. package/es-modules/Grid/Core/Table/Header/TableHeader.js +3 -3
  306. package/es-modules/Grid/Core/Table/Row.js +3 -3
  307. package/es-modules/Grid/Core/Table/Table.d.ts +30 -0
  308. package/es-modules/Grid/Core/Table/Table.js +118 -7
  309. package/es-modules/Grid/Core/UI/Button.js +3 -3
  310. package/es-modules/Grid/Core/UI/ContextMenu.js +3 -3
  311. package/es-modules/Grid/Core/UI/ContextMenuButton.js +3 -3
  312. package/es-modules/Grid/Core/UI/Popup.js +3 -3
  313. package/es-modules/Grid/Core/UI/SvgIcons.js +3 -3
  314. package/es-modules/Grid/Core/UI/Toolbar.js +3 -3
  315. package/es-modules/Grid/Core/UI/ToolbarButton.js +3 -3
  316. package/es-modules/Grid/Pro/CellEditing/CellEditMode.d.ts +3 -44
  317. package/es-modules/Grid/Pro/CellEditing/CellEditMode.js +16 -0
  318. package/es-modules/Grid/Pro/CellEditing/CellEditing.js +3 -3
  319. package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.js +3 -3
  320. package/es-modules/Grid/Pro/CellRendering/CellContentPro.js +3 -3
  321. package/es-modules/Grid/Pro/CellRendering/CellRenderer.js +3 -3
  322. package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.js +3 -3
  323. package/es-modules/Grid/Pro/CellRendering/CellRendererType.d.ts +1 -34
  324. package/es-modules/Grid/Pro/CellRendering/CellRendererType.js +15 -0
  325. package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.js +3 -3
  326. package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.js +3 -3
  327. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.js +3 -3
  328. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.js +3 -3
  329. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.js +3 -3
  330. package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.js +3 -3
  331. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.js +3 -3
  332. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.d.ts +7 -5
  333. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.js +3 -3
  334. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.js +3 -3
  335. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.js +3 -3
  336. package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.js +3 -3
  337. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.js +3 -3
  338. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.js +3 -3
  339. package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js +3 -3
  340. package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js +3 -3
  341. package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.js +3 -3
  342. package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.d.ts +3 -3
  343. package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.js +3 -3
  344. package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.js +3 -3
  345. package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.js +3 -3
  346. package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js +3 -3
  347. package/es-modules/Grid/Pro/ColumnTypes/Validator.d.ts +10 -1
  348. package/es-modules/Grid/Pro/ColumnTypes/Validator.js +50 -8
  349. package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.js +3 -3
  350. package/es-modules/Grid/Pro/Credits/CreditsPro.js +3 -3
  351. package/es-modules/Grid/Pro/Credits/CreditsProComposition.js +3 -3
  352. package/es-modules/Grid/Pro/Export/Exporting.js +4 -5
  353. package/es-modules/Grid/Pro/Export/ExportingComposition.js +3 -3
  354. package/es-modules/Grid/Pro/GridEvents.d.ts +1 -0
  355. package/es-modules/Grid/Pro/GridEvents.js +3 -3
  356. package/es-modules/Grid/Pro/Pagination/PaginationComposition.js +3 -3
  357. package/es-modules/Grid/index.js +3 -3
  358. package/es-modules/Shared/BaseForm.js +3 -3
  359. package/es-modules/Shared/DownloadURL.d.ts +1 -85
  360. package/es-modules/Shared/DownloadURL.js +14 -11
  361. package/es-modules/Shared/LangOptionsCore.d.ts +4 -3
  362. package/es-modules/Shared/TimeBase.d.ts +1 -46
  363. package/es-modules/Shared/TimeBase.js +8 -7
  364. package/es-modules/Shared/Types.d.ts +4 -3
  365. package/es-modules/masters/grid-pro.src.d.ts +8 -13
  366. package/es-modules/masters/grid-pro.src.js +15 -7
  367. package/grid-pro.d.ts +8 -13
  368. package/grid-pro.js +6 -5
  369. package/grid-pro.js.map +1 -1
  370. package/grid-pro.src.d.ts +8 -13
  371. package/grid-pro.src.js +1923 -721
  372. package/package.json +1 -1
  373. package/es-modules/Grid/Pro/highcharts.d.ts +0 -7
@@ -2,56 +2,87 @@ import type { AlignObject, AlignValue, VerticalAlignValue } from '../Renderer/Al
2
2
  import type AnimationOptions from '../Animation/AnimationOptions';
3
3
  import type AxisOptions from '../Axis/AxisOptions';
4
4
  import type AxisType from '../Axis/AxisType';
5
- import type BBoxObject from '../Renderer/BBoxObject';
6
- import type { CSSObject, CursorValue } from '../Renderer/CSSObject';
7
- import type { EventCallback } from '../Callback';
5
+ import type ColorAxisOptions from '../Axis/Color/ColorAxisOptions';
6
+ import type { CSSObject } from '../Renderer/CSSObject';
8
7
  import type { NumberFormatterCallbackFunction, Options } from '../Options';
9
8
  import type ChartBase from './ChartBase';
10
9
  import type ChartOptions from './ChartOptions';
11
- import type { ChartPanningOptions, ChartZoomingOptions } from './ChartOptions';
12
- import type ColorAxis from '../Axis/Color/ColorAxis';
13
10
  import type { DeepPartial } from '../../Shared/Types';
14
- import type { HTMLDOMElement } from '../Renderer/DOMElementType';
15
11
  import type Point from '../Series/Point';
16
- import type PointerEvent from '../PointerEvent';
17
- import type SeriesOptions from '../Series/SeriesOptions';
18
12
  import type { SeriesTypeOptions } from '../Series/SeriesType';
19
13
  import Axis from '../Axis/Axis.js';
20
- import Pointer from '../Pointer.js';
21
14
  import Series from '../Series/Series.js';
22
15
  import SVGElement from '../Renderer/SVG/SVGElement';
23
16
  import SVGRenderer from '../Renderer/SVG/SVGRenderer.js';
24
17
  import Time from '../Time.js';
25
- import { AxisCollectionKey } from '../Axis/AxisOptions';
26
- declare module '../Axis/AxisBase' {
27
- interface AxisBase {
28
- extKey?: string;
29
- index?: number;
30
- touched?: boolean;
31
- }
32
- }
33
18
  declare module './ChartBase' {
34
19
  interface ChartBase {
35
- resetZoomButton?: SVGElement;
36
- pan(e: PointerEvent, panning: boolean | ChartPanningOptions): void;
20
+ /**
21
+ * Display the zoom button, so users can reset zoom to the default view
22
+ * settings.
23
+ *
24
+ * @emits Highcharts.Chart#event:afterShowResetZoom
25
+ * @emits Highcharts.Chart#event:beforeShowResetZoom
26
+ */
37
27
  showResetZoom(): void;
28
+ /**
29
+ * Zoom the chart out after a user has zoomed in. See also
30
+ * [Axis.setExtremes](/class-reference/Highcharts.Axis#setExtremes).
31
+ *
32
+ * @emits Highcharts.Chart#event:selection
33
+ */
38
34
  zoomOut(): void;
39
35
  }
40
36
  }
41
- declare module './ChartOptions' {
42
- interface ChartOptions {
43
- forExport?: boolean;
44
- renderer?: string;
45
- skipClone?: boolean;
46
- }
47
- }
48
37
  declare module '../Options' {
49
38
  interface Options {
39
+ /**
40
+ * General options for the chart.
41
+ */
50
42
  chart: ChartOptions;
43
+ /**
44
+ * The chart's caption, which will render below the chart and will be
45
+ * part of exported charts. The caption can be updated after chart
46
+ * initialization through the `Chart.update` or `Chart.caption.update`
47
+ * methods.
48
+ *
49
+ * @sample highcharts/caption/text/
50
+ * A chart with a caption
51
+ *
52
+ * @since 7.2.0
53
+ */
51
54
  caption?: Chart.CaptionOptions;
55
+ /**
56
+ * Highchart by default puts a credits label in the lower right corner
57
+ * of the chart. This can be changed using these options.
58
+ */
52
59
  credits?: Chart.CreditsOptions;
60
+ /**
61
+ * The chart's subtitle. This can be used both to display a subtitle
62
+ * below the main title, and to display random text anywhere in the
63
+ * chart. The subtitle can be updated after chart initialization through
64
+ * the `Chart.setTitle` method.
65
+ *
66
+ * @sample {highcharts} highcharts/title/align-auto/
67
+ * Default title alignment
68
+ * @sample {highmaps} maps/title/subtitle/
69
+ * Subtitle options demonstrated
70
+ */
53
71
  subtitle?: Chart.SubtitleOptions;
72
+ /**
73
+ * Series options for specific data and the data itself. In TypeScript
74
+ * you have to cast the series options to specific series types, to get
75
+ * all possible options for a series.
76
+ */
54
77
  series?: Array<SeriesTypeOptions>;
78
+ /**
79
+ * The chart's main title.
80
+ *
81
+ * @sample {highmaps} maps/title/title/
82
+ * Title options demonstrated
83
+ * @sample {highcharts} highcharts/title/align-auto/
84
+ * Default title alignment
85
+ */
55
86
  title?: Chart.TitleOptions;
56
87
  }
57
88
  }
@@ -99,83 +130,200 @@ declare class Chart {
99
130
  static chart(renderTo: (string | globalThis.HTMLElement), options: Partial<Options>, callback?: Chart.CallbackFunction): Chart;
100
131
  constructor(options: Partial<Options>, callback?: Chart.CallbackFunction);
101
132
  constructor(renderTo: (string | globalThis.HTMLElement), options: Partial<Options>, callback?: Chart.CallbackFunction);
102
- _cursor?: (CursorValue | null);
133
+ /**
134
+ * All the axes in the chart.
135
+ *
136
+ * @see Highcharts.Chart.xAxis
137
+ * @see Highcharts.Chart.yAxis
138
+ *
139
+ * @name Highcharts.Chart#axes
140
+ * @type {Array<Highcharts.Axis>}
141
+ */
103
142
  axes: Array<AxisType>;
104
- axisOffset: Array<number>;
105
- callback?: Chart.CallbackFunction;
106
- chartBackground?: SVGElement;
143
+ /**
144
+ * The current pixel height of the chart.
145
+ *
146
+ * @name Highcharts.Chart#chartHeight
147
+ * @type {number}
148
+ */
107
149
  chartHeight: number;
150
+ /**
151
+ * The current pixel width of the chart.
152
+ *
153
+ * @name Highcharts.Chart#chartWidth
154
+ * @type {number}
155
+ */
108
156
  chartWidth: number;
109
- clipBox: BBoxObject;
110
- clipOffset?: [number, number, number, number];
111
- clipRect?: SVGElement;
112
- colorCounter: number;
157
+ /**
158
+ * The containing HTML element of the chart. The container is
159
+ * dynamically inserted into the element given as the `renderTo`
160
+ * parameter in the {@link Highcharts#chart} constructor.
161
+ *
162
+ * @name Highcharts.Chart#container
163
+ * @type {Highcharts.HTMLDOMElement}
164
+ */
113
165
  container: globalThis.HTMLElement;
114
- containerBox?: {
115
- height: number;
116
- width: number;
117
- };
166
+ /**
167
+ * The chart's credits label. The label has an `update` method that
168
+ * allows setting new options as per the
169
+ * [credits options set](https://api.highcharts.com/highcharts/credits).
170
+ *
171
+ * @name Highcharts.Chart#credits
172
+ * @type {Highcharts.SVGElement}
173
+ */
118
174
  credits?: SVGElement;
175
+ /**
176
+ * The chart's caption. The caption has an `update` method that
177
+ * allows modifying the options directly or indirectly via
178
+ * `chart.update`.
179
+ *
180
+ * @name Highcharts.Chart#caption
181
+ * @type {Highcharts.CaptionObject}
182
+ */
119
183
  caption?: SVGElement;
120
- eventOptions: Record<string, EventCallback<Series, Event>>;
121
- hasCartesianSeries?: boolean;
122
- hasLoaded?: boolean;
123
- hasRendered?: boolean;
184
+ /**
185
+ * Index position of the chart in the {@link Highcharts#charts}
186
+ * property.
187
+ *
188
+ * @name Highcharts.Chart#index
189
+ * @type {number}
190
+ * @readonly
191
+ */
124
192
  index: number;
125
- isDirtyBox?: boolean;
126
- isDirtyLegend?: boolean;
127
- isResizing: number;
128
- labelCollectors: Array<Chart.LabelCollectorFunction>;
129
- loadingDiv?: HTMLDOMElement;
130
- loadingShown?: boolean;
131
- loadingSpan?: HTMLDOMElement;
132
- locale?: string | Array<string>;
133
- margin: Array<number>;
134
- marginBottom?: number;
193
+ /**
194
+ * Callback function to override the default function that formats
195
+ * all the numbers in the chart. Returns a string with the formatted
196
+ * number.
197
+ *
198
+ * @name Highcharts.Chart#numberFormatter
199
+ * @type {Highcharts.NumberFormatterCallbackFunction}
200
+ */
135
201
  numberFormatter: NumberFormatterCallbackFunction;
136
- oldChartHeight?: number;
137
- oldChartWidth?: number;
202
+ /**
203
+ * The options structure for the chart after merging
204
+ * {@link #defaultOptions} and {@link #userOptions}. It contains
205
+ * members for the sub elements like series, legend, tooltip etc.
206
+ *
207
+ * @name Highcharts.Chart#options
208
+ * @type {Highcharts.Options}
209
+ */
138
210
  options: Options;
139
- plotBackground?: SVGElement;
140
- plotBGImage?: SVGElement;
141
- plotBorder?: SVGElement;
142
- plotBorderWidth?: number;
143
- plotBox: BBoxObject;
211
+ /**
212
+ * The current height of the plot area in pixels.
213
+ *
214
+ * @name Highcharts.Chart#plotHeight
215
+ * @type {number}
216
+ */
144
217
  plotHeight: number;
218
+ /**
219
+ * The current left position of the plot area in pixels.
220
+ *
221
+ * @name Highcharts.Chart#plotLeft
222
+ * @type {number}
223
+ */
145
224
  plotLeft: number;
146
- plotSizeX?: number;
147
- plotSizeY?: number;
225
+ /**
226
+ * The current top position of the plot area in pixels.
227
+ *
228
+ * @name Highcharts.Chart#plotTop
229
+ * @type {number}
230
+ */
148
231
  plotTop: number;
232
+ /**
233
+ * The current width of the plot area in pixels.
234
+ *
235
+ * @name Highcharts.Chart#plotWidth
236
+ * @type {number}
237
+ */
149
238
  plotWidth: number;
150
- pointCount: number;
151
- pointer?: Pointer;
152
- reflowTimeout?: number;
153
- renderer: Chart.Renderer;
154
- renderTo: globalThis.HTMLElement;
239
+ /**
240
+ * The renderer instance of the chart. Each chart instance has only one
241
+ * associated renderer.
242
+ *
243
+ * @name Highcharts.Chart#renderer
244
+ * @type {Highcharts.SVGRenderer}
245
+ */
246
+ renderer: SVGRenderer;
247
+ /**
248
+ * All the current series in the chart.
249
+ *
250
+ * @name Highcharts.Chart#series
251
+ * @type {Array<Highcharts.Series>}
252
+ */
155
253
  series: Array<Series>;
156
- seriesGroup?: SVGElement;
157
- sharedClips: Record<string, (SVGElement | undefined)>;
158
- spacing: Array<number>;
159
- spacingBox: BBoxObject;
254
+ /**
255
+ * Whether the chart is in styled mode, meaning all presentational
256
+ * attributes are avoided.
257
+ *
258
+ * @name Highcharts.Chart#styledMode
259
+ * @type {boolean}
260
+ */
160
261
  styledMode?: boolean;
262
+ /**
263
+ * The chart subtitle. The subtitle has an `update` method that
264
+ * allows modifying the options directly or indirectly via
265
+ * `chart.update`.
266
+ *
267
+ * @name Highcharts.Chart#subtitle
268
+ * @type {Highcharts.SubtitleObject}
269
+ */
161
270
  subtitle?: SVGElement;
162
- symbolCounter: number;
271
+ /**
272
+ * The `Time` object associated with the chart. Since v6.0.5,
273
+ * time settings can be applied individually for each chart. If
274
+ * no individual settings apply, the `Time` object is shared by
275
+ * all instances.
276
+ *
277
+ * @name Highcharts.Chart#time
278
+ * @type {Highcharts.Time}
279
+ */
163
280
  time: Time;
281
+ /**
282
+ * The chart title. The title has an `update` method that allows
283
+ * modifying the options directly or indirectly via
284
+ * `chart.update`.
285
+ *
286
+ * @sample highcharts/members/title-update/
287
+ * Updating titles
288
+ *
289
+ * @name Highcharts.Chart#title
290
+ * @type {Highcharts.TitleObject}
291
+ */
164
292
  title?: SVGElement;
165
- titleOffset: Array<number>;
293
+ /**
294
+ * The original options given to the constructor or a chart factory
295
+ * like {@link Highcharts.chart} and {@link Highcharts.stockChart}.
296
+ * The original options are shallow copied to avoid mutation. The
297
+ * copy, `chart.userOptions`, may later be mutated to reflect
298
+ * updated options throughout the lifetime of the chart.
299
+ *
300
+ * For collections, like `series`, `xAxis` and `yAxis`, the chart
301
+ * user options should always be reflected by the item user option,
302
+ * so for example the following should always be true:
303
+ *
304
+ * `chart.xAxis[0].userOptions === chart.userOptions.xAxis[0]`
305
+ *
306
+ * @name Highcharts.Chart#userOptions
307
+ * @type {Highcharts.Options}
308
+ */
166
309
  userOptions: Partial<Options>;
310
+ /**
311
+ * A collection of the X axes in the chart.
312
+ *
313
+ * @name Highcharts.Chart#xAxis
314
+ * @type {Array<Highcharts.Axis>}
315
+ */
167
316
  xAxis: Array<AxisType>;
168
- yAxis: Array<AxisType>;
169
- zooming: ChartZoomingOptions;
170
- zoomClipRect?: SVGElement;
171
317
  /**
172
- * Function setting zoom options after chart init and after chart update.
173
- * Offers support for deprecated options.
318
+ * A collection of the Y axes in the chart.
319
+ *
320
+ * @name Highcharts.Chart#yAxis
321
+ * @type {Array<Highcharts.Axis>}
174
322
  *
175
- * @private
176
- * @function Highcharts.Chart#setZoomOptions
323
+ * @todo
324
+ * Make events official: Fire the event `afterInit`.
177
325
  */
178
- setZoomOptions(): void;
326
+ yAxis: Array<AxisType>;
179
327
  /**
180
328
  * Overridable function that initializes the chart. The constructor's
181
329
  * arguments are passed on directly.
@@ -189,54 +337,10 @@ declare class Chart {
189
337
  * Function to run when the chart has loaded and all external
190
338
  * images are loaded.
191
339
  *
192
- *
193
340
  * @emits Highcharts.Chart#event:init
194
341
  * @emits Highcharts.Chart#event:afterInit
195
342
  */
196
343
  init(userOptions: Partial<Options>, callback?: Chart.CallbackFunction): void;
197
- /**
198
- * Internal function to initialize an individual series.
199
- *
200
- * @private
201
- * @function Highcharts.Chart#initSeries
202
- */
203
- initSeries(options: SeriesOptions): Series;
204
- /**
205
- * Internal function to set data for all series with enabled sorting.
206
- *
207
- * @private
208
- * @function Highcharts.Chart#setSortedData
209
- */
210
- setSortedData(): void;
211
- /**
212
- * Sort and return chart series in order depending on the number of linked
213
- * series.
214
- *
215
- * @private
216
- * @function Highcharts.Series#getSeriesOrderByLinks
217
- */
218
- getSeriesOrderByLinks(): Array<Series>;
219
- /**
220
- * Order all series or axes above a given index. When series or axes are
221
- * added and ordered by configuration, only the last series is handled
222
- * (#248, #1123, #2456, #6112). This function is called on series and axis
223
- * initialization and destroy.
224
- *
225
- * @private
226
- * @function Highcharts.Chart#orderItems
227
- * @param {string} coll The collection name
228
- * @param {number} [fromIndex=0]
229
- * If this is given, only the series above this index are handled.
230
- */
231
- orderItems(coll: ('colorAxis' | 'series' | 'xAxis' | 'yAxis' | 'zAxis'), fromIndex?: number): void;
232
- /**
233
- * Get the clipping for a series. Could be called for a series to initialate
234
- * animating the clip or to set the final clip (only width and x).
235
- *
236
- * @private
237
- * @function Highcharts.Chart#getClipBox
238
- */
239
- getClipBox(series?: Series, chartCoords?: boolean): BBoxObject;
240
344
  /**
241
345
  * Check whether a given point is within the plot area.
242
346
  *
@@ -294,15 +398,6 @@ declare class Chart {
294
398
  * The retrieved item.
295
399
  */
296
400
  get(id: string): (Axis | Series | Point | undefined);
297
- /**
298
- * Create the Axis instances based on the config options.
299
- *
300
- * @private
301
- * @function Highcharts.Chart#createAxes
302
- * @emits Highcharts.Chart#event:afterCreateAxes
303
- * @emits Highcharts.Chart#event:createAxes
304
- */
305
- createAxes(): void;
306
401
  /**
307
402
  * Returns an array of all currently selected points in the chart. Points
308
403
  * can be selected by clicking or programmatically by the
@@ -360,61 +455,6 @@ declare class Chart {
360
455
  * `chart.redraw()`.
361
456
  */
362
457
  setTitle(titleOptions?: Chart.TitleOptions, subtitleOptions?: Chart.SubtitleOptions, redraw?: boolean): void;
363
- /**
364
- * Apply a title, subtitle or caption for the chart
365
- *
366
- * @private
367
- * @function Highcharts.Chart#applyDescription
368
- * @param key {string}
369
- * Either title, subtitle or caption
370
- * @param {Highcharts.TitleOptions|Highcharts.SubtitleOptions|Highcharts.CaptionOptions|undefined} explicitOptions
371
- * The options to set, will be merged with default options.
372
- */
373
- applyDescription(key: Chart.DescriptionKey, explicitOptions?: Chart.DescriptionOptionsType): void;
374
- /**
375
- * Internal function to lay out the chart title, subtitle and caption, and
376
- * cache the full offset height for use in `getMargins`. The result is
377
- * stored in `this.titleOffset`.
378
- *
379
- * @private
380
- * @function Highcharts.Chart#layOutTitles
381
- *
382
- * @param {boolean} [redraw=true]
383
- * @emits Highcharts.Chart#event:afterLayOutTitles
384
- */
385
- layOutTitles(redraw?: boolean): void;
386
- /**
387
- * Internal function to get the available size of the container element
388
- *
389
- * @private
390
- * @function Highcharts.Chart#getContainerBox
391
- */
392
- getContainerBox(): {
393
- width: number;
394
- height: number;
395
- };
396
- /**
397
- * Internal function to get the chart width and height according to options
398
- * and container size. Sets {@link Chart.chartWidth} and
399
- * {@link Chart.chartHeight}.
400
- *
401
- * @private
402
- * @function Highcharts.Chart#getChartSize
403
- */
404
- getChartSize(): void;
405
- /**
406
- * If the renderTo element has no offsetWidth, most likely one or more of
407
- * its parents are hidden. Loop up the DOM tree to temporarily display the
408
- * parents, then save the original display properties, and when the true
409
- * size is retrieved, reset them. Used on first render and on redraws.
410
- *
411
- * @private
412
- * @function Highcharts.Chart#temporaryDisplay
413
- *
414
- * @param {boolean} [revert]
415
- * Revert to the saved original styles.
416
- */
417
- temporaryDisplay(revert?: boolean): void;
418
458
  /**
419
459
  * Set the {@link Chart.container|chart container's} class name, in
420
460
  * addition to `highcharts-container`.
@@ -425,30 +465,6 @@ declare class Chart {
425
465
  * The additional class name.
426
466
  */
427
467
  setClassName(className?: string): void;
428
- /**
429
- * Get the containing element, determine the size and create the inner
430
- * container div to hold the chart.
431
- *
432
- * @private
433
- * @function Highcharts.Chart#afterGetContainer
434
- * @emits Highcharts.Chart#event:afterGetContainer
435
- */
436
- getContainer(): void;
437
- /**
438
- * Calculate margins by rendering axis labels in a preliminary position.
439
- * Title, subtitle and legend have already been rendered at this stage, but
440
- * will be moved into their final positions.
441
- *
442
- * @private
443
- * @function Highcharts.Chart#getMargins
444
- * @emits Highcharts.Chart#event:getMargins
445
- */
446
- getMargins(skipAxes?: boolean): void;
447
- /**
448
- * @private
449
- * @function Highcharts.Chart#getAxisMargins
450
- */
451
- getAxisMargins(): void;
452
468
  /**
453
469
  * Return the current options of the chart, but only those that differ from
454
470
  * default options. Items that can be either an object or an array of
@@ -479,14 +495,6 @@ declare class Chart {
479
495
  * internally as a response to window resize.
480
496
  */
481
497
  reflow(e?: Event): void;
482
- /**
483
- * Toggle the event handlers necessary for auto resizing, depending on the
484
- * `chart.reflow` option.
485
- *
486
- * @private
487
- * @function Highcharts.Chart#setReflow
488
- */
489
- setReflow(): void;
490
498
  /**
491
499
  * Resize the chart to a given width and height. In order to set the width
492
500
  * only, the height argument may be skipped. To set the height only, pass
@@ -521,64 +529,6 @@ declare class Chart {
521
529
  * @emits Highcharts.Chart#event:resize
522
530
  */
523
531
  setSize(width?: (number | null), height?: (number | null), animation?: (boolean | Partial<AnimationOptions>)): void;
524
- /**
525
- * Set the public chart properties. This is done before and after the
526
- * pre-render to determine margin sizes.
527
- *
528
- * @private
529
- * @function Highcharts.Chart#setChartSize
530
- * @emits Highcharts.Chart#event:afterSetChartSize
531
- */
532
- setChartSize(skipAxes?: boolean): void;
533
- /**
534
- * Initial margins before auto size margins are applied.
535
- *
536
- * @private
537
- * @function Highcharts.Chart#resetMargins
538
- */
539
- resetMargins(): void;
540
- /**
541
- * Internal function to draw or redraw the borders and backgrounds for chart
542
- * and plot area.
543
- *
544
- * @private
545
- * @function Highcharts.Chart#drawChartBox
546
- * @emits Highcharts.Chart#event:afterDrawChartBox
547
- */
548
- drawChartBox(): void;
549
- /**
550
- * Detect whether a certain chart property is needed based on inspecting its
551
- * options and series. This mainly applies to the chart.inverted property,
552
- * and in extensions to the chart.angular and chart.polar properties.
553
- *
554
- * @private
555
- * @function Highcharts.Chart#propFromSeries
556
- */
557
- propFromSeries(): void;
558
- /**
559
- * Internal function to link two or more series together, based on the
560
- * `linkedTo` option. This is done from `Chart.render`, and after
561
- * `Chart.addSeries` and `Series.remove`.
562
- *
563
- * @private
564
- * @function Highcharts.Chart#linkSeries
565
- * @emits Highcharts.Chart#event:afterLinkSeries
566
- */
567
- linkSeries(isUpdating?: boolean): void;
568
- /**
569
- * Render series for the chart.
570
- *
571
- * @private
572
- * @function Highcharts.Chart#renderSeries
573
- */
574
- renderSeries(): void;
575
- /**
576
- * Render all graphics for the chart. Runs internally on initialization.
577
- *
578
- * @private
579
- * @function Highcharts.Chart#render
580
- */
581
- render(): void;
582
532
  /**
583
533
  * Set a new credits label for the chart.
584
534
  *
@@ -606,35 +556,6 @@ declare class Chart {
606
556
  * @emits Highcharts.Chart#event:destroy
607
557
  */
608
558
  destroy(): void;
609
- /**
610
- * Prepare for first rendering after all data are loaded.
611
- *
612
- * @private
613
- * @function Highcharts.Chart#firstRender
614
- * @emits Highcharts.Chart#event:beforeRender
615
- */
616
- firstRender(): void;
617
- /**
618
- * Internal function that runs on chart load, async if any images are loaded
619
- * in the chart. Runs the callbacks and triggers the `load` and `render`
620
- * events.
621
- *
622
- * @private
623
- * @function Highcharts.Chart#onload
624
- * @emits Highcharts.Chart#event:load
625
- * @emits Highcharts.Chart#event:render
626
- */
627
- onload(): void;
628
- /**
629
- * Emit console warning if the a11y module is not loaded.
630
- * @private
631
- */
632
- warnIfA11yModuleNotLoaded(): void;
633
- /**
634
- * Emit console warning if the highcharts.css file is not loaded.
635
- * @private
636
- */
637
- warnIfCSSNotLoaded(): void;
638
559
  /**
639
560
  * Add a series to the chart after render time. Note that this method should
640
561
  * never be used when adding data synchronously at chart render time, as it
@@ -723,23 +644,7 @@ declare class Chart {
723
644
  * @return {Highcharts.Axis}
724
645
  * The newly generated Axis object.
725
646
  */
726
- addColorAxis(options: ColorAxis.Options, redraw?: boolean, animation?: boolean): Axis;
727
- /**
728
- * Factory for creating different axis types.
729
- *
730
- * @private
731
- * @function Highcharts.Chart#createAxis
732
- *
733
- * @param {string} coll
734
- * An axis type.
735
- *
736
- * @param {...Array<*>} arguments
737
- * All arguments for the constructor.
738
- *
739
- * @return {Highcharts.Axis}
740
- * The newly generated Axis object.
741
- */
742
- createAxis(coll: AxisCollectionKey, options: Chart.CreateAxisOptionsObject): Axis;
647
+ addColorAxis(options: ColorAxisOptions, redraw?: boolean, animation?: boolean): Axis;
743
648
  /**
744
649
  * Dim the chart and show a loading text or symbol. Options for the loading
745
650
  * screen are defined in {@link
@@ -871,93 +776,206 @@ declare class Chart {
871
776
  * @emits Highcharts.Chart#event:selection
872
777
  */
873
778
  zoomOut(): void;
874
- /**
875
- * Pan the chart by dragging the mouse across the pane. This function is
876
- * called on mouse move, and the distance to pan is computed from chartX
877
- * compared to the first chartX position in the dragging operation.
878
- *
879
- * @private
880
- * @function Highcharts.Chart#pan
881
- * @param {Highcharts.PointerEventObject} event
882
- * @param {string} panning
883
- */
884
- pan(event: PointerEvent, panning: ChartPanningOptions | boolean): void;
885
- /**
886
- * Pan and scale the chart. Used internally by mouse-pan, touch-pan,
887
- * touch-zoom, and mousewheel zoom.
888
- *
889
- * The main positioning logic is created around two imaginary boxes. What is
890
- * currently within the `from` rectangle, should be transformed to fill up
891
- * the `to` rectangle.
892
- * - In a mouse zoom, the `from` rectangle is the selection, while the `to`
893
- * rectangle is the full plot area.
894
- * - In a touch zoom, the `from` rectangle is made up of the last two-finger
895
- * touch, while the `to`` rectangle is the current touch.
896
- * - In a mousewheel zoom, the `to` rectangle is a 10x10 px square,
897
- * while the `to` rectangle reflects the scale around that.
898
- *
899
- * @private
900
- * @function Highcharts.Chart#transform
901
- */
902
- transform(params: Chart.ChartTransformParams): boolean;
903
779
  }
904
780
  interface Chart extends ChartBase {
905
- callbacks: Array<Chart.CallbackFunction>;
906
- collectionsWithInit: Record<string, [Function, Array<any>?]>;
907
- collectionsWithUpdate: Array<string>;
908
- propsRequireDirtyBox: Array<string>;
909
- propsRequireReflow: Array<string>;
910
- propsRequireUpdateSeries: Array<string>;
911
781
  }
912
782
  declare namespace Chart {
913
- interface AfterUpdateEventObject {
914
- animation: (boolean | Partial<AnimationOptions>);
915
- options: Options;
916
- redraw: boolean;
917
- }
783
+ /**
784
+ * Callback for chart constructors.
785
+ *
786
+ * @param {Highcharts.Chart} chart
787
+ * Created chart.
788
+ */
918
789
  interface CallbackFunction {
919
790
  (this: Chart, chart: Chart): void;
920
791
  }
792
+ /**
793
+ * The chart's caption, which will render below the chart and will be part
794
+ * of exported charts. The caption can be updated after chart initialization
795
+ * through the `Chart.update` or `Chart.caption.update` methods.
796
+ *
797
+ * @sample highcharts/caption/text/
798
+ * A chart with a caption
799
+ *
800
+ * @since 7.2.0
801
+ */
921
802
  interface CaptionOptions {
803
+ /**
804
+ * The horizontal alignment of the caption. Can be one of "left",
805
+ * "center" and "right".
806
+ */
922
807
  align?: AlignValue;
808
+ /**
809
+ * When the caption is floating, the plot area will not move to make
810
+ * space for it.
811
+ *
812
+ * @default false
813
+ */
923
814
  floating?: boolean;
815
+ /**
816
+ * The margin between the caption and the plot area.
817
+ */
924
818
  margin?: number;
819
+ /**
820
+ * CSS styles for the caption.
821
+ *
822
+ * In styled mode, the caption style is given in the
823
+ * `.highcharts-caption` class.
824
+ *
825
+ * @sample {highcharts} highcharts/css/titles/
826
+ * Styled mode
827
+ *
828
+ * @default {"color": "#666666"}
829
+ */
925
830
  style: CSSObject;
831
+ /**
832
+ * The caption text of the chart.
833
+ *
834
+ * @sample {highcharts} highcharts/caption/text/
835
+ * Custom caption
836
+ */
926
837
  text?: string;
838
+ /**
839
+ * Whether to
840
+ * [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
841
+ * to render the text.
842
+ *
843
+ * @default false
844
+ */
927
845
  useHTML?: boolean;
846
+ /**
847
+ * The vertical alignment of the caption. Can be one of `"top"`,
848
+ * `"middle"` and `"bottom"`. When middle, the caption behaves as
849
+ * floating.
850
+ */
928
851
  verticalAlign?: VerticalAlignValue;
929
- width?: number;
852
+ /**
853
+ * The x position of the caption relative to the alignment within
854
+ * `chart.spacingLeft` and `chart.spacingRight`.
855
+ *
856
+ * @default 0
857
+ */
930
858
  x?: number;
859
+ /**
860
+ * The y position of the caption relative to the alignment within
861
+ * `chart.spacingTop` and `chart.spacingBottom`.
862
+ */
931
863
  y?: number;
932
- zIndex?: number;
933
- }
934
- interface ChartTransformParams {
935
- axes?: Array<Axis>;
936
- event?: PointerEvent;
937
- to?: Partial<BBoxObject>;
938
- reset?: boolean;
939
- selection?: Pointer.SelectEventObject;
940
- from?: Partial<BBoxObject>;
941
- trigger?: string;
942
- allowResetButton?: boolean;
943
- hasZoomed?: boolean;
944
- }
945
- interface CreateAxisOptionsObject {
946
- animation: (undefined | boolean | Partial<AnimationOptions>);
947
- axis: (DeepPartial<AxisOptions> | DeepPartial<ColorAxis.Options>);
948
- redraw: (undefined | boolean);
949
864
  }
865
+ /**
866
+ * Highchart by default puts a credits label in the lower right corner
867
+ * of the chart. This can be changed using these options.
868
+ */
950
869
  interface CreditsOptions {
870
+ /**
871
+ * Whether to show the credits text.
872
+ *
873
+ * @sample {highcharts} highcharts/credits/enabled-false/
874
+ * Credits disabled
875
+ * @sample {highstock} stock/credits/enabled/
876
+ * Credits disabled
877
+ * @sample {highmaps} maps/credits/enabled-false/
878
+ * Credits disabled
879
+ */
951
880
  enabled?: boolean;
881
+ /**
882
+ * The URL for the credits label.
883
+ *
884
+ * @sample {highcharts} highcharts/credits/href/
885
+ * Custom URL and text
886
+ * @sample {highmaps} maps/credits/customized/
887
+ * Custom URL and text
888
+ *
889
+ * @default https://www.highcharts.com?credits
890
+ */
952
891
  href?: string;
892
+ /**
893
+ * Events for the credits label.
894
+ *
895
+ * @declare Highcharts.CreditsEventsOptionsObject
896
+ */
897
+ events?: {
898
+ /**
899
+ * Callback function to handle click events on the credits label.
900
+ * The callback can call `event.preventDefault()` to prevent the
901
+ * default navigation behavior. Alternatively, you can add a general
902
+ * event handler using `Highcharts.addEvent(chart, 'creditsClick',
903
+ * callback)` instead of providing it in the options tree.
904
+ *
905
+ * @sample {highcharts} highcharts/credits/events-click/
906
+ * Custom click handler
907
+ *
908
+ * @param {Event} event
909
+ * The click event object.
910
+ */
911
+ click?: (event: Event) => void;
912
+ };
913
+ /**
914
+ * Credits for map source to be concatenated with conventional credit
915
+ * text. By default this is a format string that collects copyright
916
+ * information from the map if available.
917
+ *
918
+ * @see [mapTextFull](#credits.mapTextFull)
919
+ * @see [text](#credits.text)
920
+ *
921
+ * @default \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>
922
+ * @since 4.2.2
923
+ * @product highmaps
924
+ */
953
925
  mapText?: string;
926
+ /**
927
+ * Detailed credits for map source to be displayed on hover of credits
928
+ * text. By default this is a format string that collects copyright
929
+ * information from the map if available.
930
+ *
931
+ * @see [mapText](#credits.mapText)
932
+ * @see [text](#credits.text)
933
+ *
934
+ * @default {geojson.copyright}
935
+ * @since 4.2.2
936
+ * @product highmaps
937
+ */
954
938
  mapTextFull?: string;
939
+ /**
940
+ * Position configuration for the credits label.
941
+ *
942
+ * @sample {highcharts} highcharts/credits/position-left/
943
+ * Left aligned
944
+ * @sample {highcharts} highcharts/credits/position-left/
945
+ * Left aligned
946
+ * @sample {highmaps} maps/credits/customized/
947
+ * Left aligned
948
+ * @sample {highmaps} maps/credits/customized/
949
+ * Left aligned
950
+ *
951
+ * @since 2.1
952
+ */
955
953
  position?: AlignObject;
954
+ /**
955
+ * CSS styles for the credits label.
956
+ *
957
+ * @see In styled mode, credits styles can be set with the
958
+ * `.highcharts-credits` class.
959
+ */
956
960
  style: CSSObject;
961
+ /**
962
+ * The text for the credits label.
963
+ *
964
+ * @productdesc {highmaps}
965
+ * If a map is loaded as GeoJSON, the text defaults to
966
+ * `Highcharts @ {map-credits}`. Otherwise, it defaults to
967
+ * `Highcharts.com`.
968
+ *
969
+ * @sample {highcharts} highcharts/credits/href/
970
+ * Custom URL and text
971
+ * @sample {highmaps} maps/credits/customized/
972
+ * Custom URL and text
973
+ */
957
974
  text?: string;
958
975
  }
959
- type DescriptionOptionsType = (TitleOptions | SubtitleOptions | CaptionOptions);
960
- type DescriptionKey = 'title' | 'subtitle' | 'caption';
976
+ /**
977
+ * Options for the Chart.isInsidePlot function.
978
+ */
961
979
  interface IsInsideOptionsObject {
962
980
  axis?: Axis;
963
981
  ignoreX?: boolean;
@@ -967,43 +985,284 @@ declare namespace Chart {
967
985
  series?: Series;
968
986
  visiblePlotOnly?: boolean;
969
987
  }
970
- interface LabelCollectorFunction {
971
- (): (Array<(SVGElement | undefined)> | undefined);
972
- }
973
- interface LayoutTitleEventObject {
974
- alignTo: BBoxObject;
975
- key: Chart.DescriptionKey;
976
- textPxLength: number;
977
- }
978
- interface Renderer extends SVGRenderer {
979
- plotBox: BBoxObject;
980
- spacingBox: BBoxObject;
981
- }
988
+ /**
989
+ * The chart's subtitle. This can be used both to display a subtitle below
990
+ * the main title, and to display random text anywhere in the chart. The
991
+ * subtitle can be updated after chart initialization through the
992
+ * `Chart.setTitle` method.
993
+ *
994
+ * @sample {highcharts} highcharts/title/align-auto/
995
+ * Default title alignment
996
+ * @sample {highmaps} maps/title/subtitle/
997
+ * Subtitle options demonstrated
998
+ */
982
999
  interface SubtitleOptions {
1000
+ /**
1001
+ * The horizontal alignment of the subtitle. Can be one of "left",
1002
+ * "center" and "right". Since v12, it defaults to `undefined`, meaning
1003
+ * the actual alignment is inherited from the alignment of the main
1004
+ * title.
1005
+ *
1006
+ * @sample {highcharts} highcharts/title/align-auto/
1007
+ * Default title and subtitle alignment, dynamic
1008
+ * @sample {highcharts} highcharts/subtitle/align/
1009
+ * Footnote at right of plot area
1010
+ * @sample {highstock} stock/chart/subtitle-footnote
1011
+ * Footnote at bottom right of plot area
1012
+ *
1013
+ * @since 2.0
1014
+ */
983
1015
  align?: AlignValue;
1016
+ /**
1017
+ * When the subtitle is floating, the plot area will not move to make
1018
+ * space for it.
1019
+ *
1020
+ * @sample {highcharts} highcharts/subtitle/floating/
1021
+ * Floating title and subtitle
1022
+ * @sample {highstock} stock/chart/subtitle-footnote
1023
+ * Footnote floating at bottom right of plot area
1024
+ *
1025
+ * @default false
1026
+ * @since 2.1
1027
+ */
984
1028
  floating?: boolean;
1029
+ /**
1030
+ * CSS styles for the title.
1031
+ *
1032
+ * In styled mode, the subtitle style is given in the
1033
+ * `.highcharts-subtitle` class.
1034
+ *
1035
+ * @sample {highcharts} highcharts/subtitle/style/
1036
+ * Custom color and weight
1037
+ * @sample {highcharts} highcharts/css/titles/
1038
+ * Styled mode
1039
+ * @sample {highstock} stock/chart/subtitle-style
1040
+ * Custom color and weight
1041
+ * @sample {highstock} highcharts/css/titles/
1042
+ * Styled mode
1043
+ * @sample {highmaps} highcharts/css/titles/
1044
+ * Styled mode
1045
+ *
1046
+ * @default {"color": "#666666"}
1047
+ */
985
1048
  style: CSSObject;
1049
+ /**
1050
+ * The subtitle of the chart.
1051
+ *
1052
+ * @sample {highcharts|highstock} highcharts/subtitle/text/
1053
+ * Custom subtitle
1054
+ * @sample {highcharts|highstock} highcharts/subtitle/text-formatted/
1055
+ * Formatted and linked text.
1056
+ */
986
1057
  text?: string;
1058
+ /**
1059
+ * Whether to
1060
+ * [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
1061
+ * to render the text.
1062
+ *
1063
+ * @default false
1064
+ */
987
1065
  useHTML?: boolean;
1066
+ /**
1067
+ * The vertical alignment of the title. Can be one of `"top"`,
1068
+ * `"middle"` and `"bottom"`. When middle, the subtitle behaves as
1069
+ * floating.
1070
+ *
1071
+ * @sample {highcharts} highcharts/subtitle/verticalalign/
1072
+ * Footnote at the bottom right of plot area
1073
+ * @sample {highstock} stock/chart/subtitle-footnote
1074
+ * Footnote at the bottom right of plot area
1075
+ *
1076
+ * @since 2.1
1077
+ */
988
1078
  verticalAlign?: VerticalAlignValue;
989
- width?: number;
1079
+ /**
1080
+ * The x position of the subtitle relative to the alignment within
1081
+ * `chart.spacingLeft` and `chart.spacingRight`.
1082
+ *
1083
+ * @sample {highcharts} highcharts/subtitle/align/
1084
+ * Footnote at right of plot area
1085
+ * @sample {highstock} stock/chart/subtitle-footnote
1086
+ * Footnote at the bottom right of plot area
1087
+ *
1088
+ * @default 0
1089
+ * @since 2.0
1090
+ */
990
1091
  x?: number;
1092
+ /**
1093
+ * The y position of the subtitle relative to the alignment within
1094
+ * `chart.spacingTop` and `chart.spacingBottom`. By default the subtitle
1095
+ * is laid out below the title unless the title is floating.
1096
+ *
1097
+ * @sample {highcharts} highcharts/subtitle/verticalalign/
1098
+ * Footnote at the bottom right of plot area
1099
+ * @sample {highstock} stock/chart/subtitle-footnote
1100
+ * Footnote at the bottom right of plot area
1101
+ *
1102
+ * @since 2.0
1103
+ */
991
1104
  y?: number;
992
- zIndex?: number;
993
1105
  }
1106
+ /**
1107
+ * The chart's main title.
1108
+ *
1109
+ * @sample {highmaps} maps/title/title/
1110
+ * Title options demonstrated
1111
+ * @sample {highcharts} highcharts/title/align-auto/
1112
+ * Default title alignment
1113
+ */
994
1114
  interface TitleOptions {
1115
+ /**
1116
+ * The horizontal alignment of the title. Can be one of "left", "center"
1117
+ * and "right".
1118
+ *
1119
+ * Since v12 it defaults to `undefined`, meaning the alignment is
1120
+ * computed for best fit. If the text fits in one line, it aligned to
1121
+ * the center, but if it is wrapped into multiple lines, it is aligned
1122
+ * to the left.
1123
+ *
1124
+ * @sample {highcharts} highcharts/title/align-auto/
1125
+ * Default alignment, dynamic
1126
+ * @sample {highcharts} highcharts/title/align/
1127
+ * Aligned to the plot area (x = 70px = margin left - spacing
1128
+ * left)
1129
+ * @sample {highstock} stock/chart/title-align/
1130
+ * Aligned to the plot area (x = 50px = margin left - spacing
1131
+ * left)
1132
+ *
1133
+ * @since 2.0
1134
+ */
995
1135
  align?: AlignValue;
1136
+ /**
1137
+ * When the title is floating, the plot area will not move to make space
1138
+ * for it.
1139
+ *
1140
+ * @sample {highcharts} highcharts/chart/zoomtype-none/
1141
+ * False by default
1142
+ * @sample {highcharts} highcharts/title/floating/
1143
+ * True - title on top of the plot area
1144
+ * @sample {highstock} stock/chart/title-floating/
1145
+ * True - title on top of the plot area
1146
+ *
1147
+ * @default false
1148
+ * @since 2.1
1149
+ */
996
1150
  floating?: boolean;
1151
+ /**
1152
+ * The margin between the title and the plot area, or if a subtitle
1153
+ * is present, the margin between the subtitle and the plot area.
1154
+ *
1155
+ * @sample {highcharts} highcharts/title/margin-50/
1156
+ * A chart title margin of 50
1157
+ * @sample {highcharts} highcharts/title/margin-subtitle/
1158
+ * The same margin applied with a subtitle
1159
+ * @sample {highstock} stock/chart/title-margin/
1160
+ * A chart title margin of 50
1161
+ *
1162
+ * @since 2.1
1163
+ */
997
1164
  margin?: number;
1165
+ /**
1166
+ * When the title is too wide to fit in the chart, the default behavior
1167
+ * is to scale it down to fit, or apply word wrap if it is scaled down
1168
+ * to `minScale` and still doesn't fit.
1169
+ *
1170
+ * The default value reflects the scale, when using default font sizes,
1171
+ * when the title font size matches that of the subtitle. The title
1172
+ * still stands out as it is bold by default.
1173
+ *
1174
+ * Set `minScale` to 1 to avoid downscaling.
1175
+ *
1176
+ * @sample {highcharts} highcharts/title/align-auto/
1177
+ * Downscaling demonstrated
1178
+ *
1179
+ * @since 12.0.0
1180
+ */
998
1181
  minScale?: number;
1182
+ /**
1183
+ * CSS styles for the title. Use this for font styling, but use `align`,
1184
+ * `x` and `y` for text alignment.
1185
+ *
1186
+ * Note that the default [title.minScale](#title.minScale) option also
1187
+ * affects the rendered font size. In order to keep the font size fixed
1188
+ * regardless of title length, set `minScale` to 1.
1189
+ *
1190
+ * In styled mode, the title style is given in the `.highcharts-title`
1191
+ * class.
1192
+ *
1193
+ * @sample {highcharts} highcharts/title/style/
1194
+ * Custom color and weight
1195
+ * @sample {highstock} stock/chart/title-style/
1196
+ * Custom color and weight
1197
+ * @sample highcharts/css/titles/
1198
+ * Styled mode
1199
+ *
1200
+ * @default {highcharts|highmaps} { "color": "#333333", "fontSize": "18px" }
1201
+ * @default {highstock} { "color": "#333333", "fontSize": "16px" }
1202
+ */
999
1203
  style: CSSObject;
1204
+ /**
1205
+ * The title of the chart. To disable the title, set the `text` to
1206
+ * `undefined`.
1207
+ *
1208
+ * @sample {highcharts} highcharts/title/text/
1209
+ * Custom title
1210
+ * @sample {highstock} stock/chart/title-text/
1211
+ * Custom title
1212
+ *
1213
+ * @default {highcharts|highmaps} Chart title
1214
+ * @default {highstock} undefined
1215
+ */
1000
1216
  text?: string;
1217
+ /**
1218
+ * Whether to
1219
+ * [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
1220
+ * to render the text.
1221
+ *
1222
+ * @default false
1223
+ */
1001
1224
  useHTML?: boolean;
1225
+ /**
1226
+ * The vertical alignment of the title. Can be one of `"top"`,
1227
+ * `"middle"` and `"bottom"`. When a value is given, the title behaves
1228
+ * as if [floating](#title.floating) were `true`.
1229
+ *
1230
+ * @sample {highcharts} highcharts/title/verticalalign/
1231
+ * Chart title in bottom right corner
1232
+ * @sample {highstock} stock/chart/title-verticalalign/
1233
+ * Chart title in bottom right corner
1234
+ *
1235
+ * @since 2.1
1236
+ */
1002
1237
  verticalAlign?: VerticalAlignValue;
1003
- width?: number;
1238
+ /**
1239
+ * The x position of the title relative to the alignment within
1240
+ * `chart.spacingLeft` and `chart.spacingRight`.
1241
+ *
1242
+ * @sample {highcharts} highcharts/title/align/
1243
+ * Aligned to the plot area (x = 70px = margin left - spacing
1244
+ * left)
1245
+ * @sample {highstock} stock/chart/title-align/
1246
+ * Aligned to the plot area (x = 50px = margin left - spacing
1247
+ * left)
1248
+ *
1249
+ * @default 0
1250
+ * @since 2.0
1251
+ */
1004
1252
  x?: number;
1253
+ /**
1254
+ * The y position of the title relative to the alignment within
1255
+ * [chart.spacingTop](#chart.spacingTop) and [chart.spacingBottom](
1256
+ * #chart.spacingBottom). By default it depends on the font size.
1257
+ *
1258
+ * @sample {highcharts} highcharts/title/y/
1259
+ * Title inside the plot area
1260
+ * @sample {highstock} stock/chart/title-verticalalign/
1261
+ * Chart title in bottom right corner
1262
+ *
1263
+ * @since 2.0
1264
+ */
1005
1265
  y?: number;
1006
- zIndex?: number;
1007
1266
  }
1008
1267
  }
1009
1268
  export default Chart;