@amcharts/amcharts5 5.7.4 → 5.7.5

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 (197) hide show
  1. package/.internal/charts/map/ClusteredPointSeries.d.ts +1 -0
  2. package/.internal/charts/map/ClusteredPointSeries.d.ts.map +1 -1
  3. package/.internal/charts/map/ClusteredPointSeries.js +13 -0
  4. package/.internal/charts/map/ClusteredPointSeries.js.map +1 -1
  5. package/.internal/charts/map/MapChartDefaultTheme.d.ts.map +1 -1
  6. package/.internal/charts/map/MapChartDefaultTheme.js +10 -2
  7. package/.internal/charts/map/MapChartDefaultTheme.js.map +1 -1
  8. package/.internal/charts/map/ZoomControl.d.ts +9 -4
  9. package/.internal/charts/map/ZoomControl.d.ts.map +1 -1
  10. package/.internal/charts/map/ZoomControl.js +23 -6
  11. package/.internal/charts/map/ZoomControl.js.map +1 -1
  12. package/.internal/charts/stock/SettingsModal.d.ts.map +1 -1
  13. package/.internal/charts/stock/SettingsModal.js +15 -0
  14. package/.internal/charts/stock/SettingsModal.js.map +1 -1
  15. package/.internal/charts/stock/StockChartDefaultTheme.d.ts.map +1 -1
  16. package/.internal/charts/stock/StockChartDefaultTheme.js +23 -1
  17. package/.internal/charts/stock/StockChartDefaultTheme.js.map +1 -1
  18. package/.internal/charts/stock/indicators/Indicator.d.ts +2 -0
  19. package/.internal/charts/stock/indicators/Indicator.d.ts.map +1 -1
  20. package/.internal/charts/stock/indicators/Indicator.js.map +1 -1
  21. package/.internal/charts/stock/indicators/MACross.d.ts +42 -0
  22. package/.internal/charts/stock/indicators/MACross.d.ts.map +1 -0
  23. package/.internal/charts/stock/indicators/MACross.js +105 -0
  24. package/.internal/charts/stock/indicators/MACross.js.map +1 -0
  25. package/.internal/charts/stock/indicators/PVT.d.ts +38 -0
  26. package/.internal/charts/stock/indicators/PVT.d.ts.map +1 -0
  27. package/.internal/charts/stock/indicators/PVT.js +84 -0
  28. package/.internal/charts/stock/indicators/PVT.js.map +1 -0
  29. package/.internal/charts/stock/indicators/VolumeProfile.d.ts +1 -2
  30. package/.internal/charts/stock/indicators/VolumeProfile.d.ts.map +1 -1
  31. package/.internal/charts/stock/indicators/VolumeProfile.js +3 -2
  32. package/.internal/charts/stock/indicators/VolumeProfile.js.map +1 -1
  33. package/.internal/charts/stock/toolbar/IndicatorControl.d.ts +1 -1
  34. package/.internal/charts/stock/toolbar/IndicatorControl.d.ts.map +1 -1
  35. package/.internal/charts/stock/toolbar/IndicatorControl.js +18 -1
  36. package/.internal/charts/stock/toolbar/IndicatorControl.js.map +1 -1
  37. package/.internal/core/Classes.d.ts +4 -0
  38. package/.internal/core/Classes.d.ts.map +1 -1
  39. package/.internal/core/Classes.js.map +1 -1
  40. package/.internal/core/Registry.js +1 -1
  41. package/.internal/core/Registry.js.map +1 -1
  42. package/.internal/core/util/Utils.js +4 -4
  43. package/.internal/core/util/Utils.js.map +1 -1
  44. package/.internal/plugins/exporting/Annotator.d.ts +26 -0
  45. package/.internal/plugins/exporting/Annotator.d.ts.map +1 -1
  46. package/.internal/plugins/exporting/Annotator.js +4 -0
  47. package/.internal/plugins/exporting/Annotator.js.map +1 -1
  48. package/CHANGELOG.md +14 -0
  49. package/examples/javascript/flow-arc-horizontal/package.json +1 -1
  50. package/examples/javascript/flow-arc-vertical/package.json +1 -1
  51. package/examples/javascript/flow-chord/package.json +1 -1
  52. package/examples/javascript/flow-chord-directed/package.json +1 -1
  53. package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
  54. package/examples/javascript/flow-sankey/package.json +1 -1
  55. package/examples/javascript/gauge/package.json +1 -1
  56. package/examples/javascript/gauge-bands/package.json +1 -1
  57. package/examples/javascript/hierarchy-force-directed/package.json +1 -1
  58. package/examples/javascript/hierarchy-pack/package.json +1 -1
  59. package/examples/javascript/hierarchy-partition/package.json +1 -1
  60. package/examples/javascript/hierarchy-sunburst/package.json +1 -1
  61. package/examples/javascript/hierarchy-tree/package.json +1 -1
  62. package/examples/javascript/hierarchy-treemap/package.json +1 -1
  63. package/examples/javascript/hierarchy-voronoi-treemap/package.json +1 -1
  64. package/examples/javascript/jest/package.json +1 -1
  65. package/examples/javascript/json-pie/package.json +1 -1
  66. package/examples/javascript/json-xy/package.json +1 -1
  67. package/examples/javascript/map-animating-along-lines/package.json +1 -1
  68. package/examples/javascript/map-clustered-points/package.json +1 -1
  69. package/examples/javascript/map-day-and-night/package.json +1 -1
  70. package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
  71. package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
  72. package/examples/javascript/map-with-bubbles/package.json +1 -1
  73. package/examples/javascript/map-zoom-to-country/index.js +2 -1
  74. package/examples/javascript/map-zoom-to-country/package.json +1 -1
  75. package/examples/javascript/misc-40-charts/package.json +1 -1
  76. package/examples/javascript/misc-microchart-grid/package.json +1 -1
  77. package/examples/javascript/pie-chart/package.json +1 -1
  78. package/examples/javascript/pie-donut-chart/package.json +1 -1
  79. package/examples/javascript/pie-variable-radius/package.json +1 -1
  80. package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
  81. package/examples/javascript/radar-heat-map/package.json +1 -1
  82. package/examples/javascript/radar-line/package.json +1 -1
  83. package/examples/javascript/radar-time-line/package.json +1 -1
  84. package/examples/javascript/sliced-funnel/package.json +1 -1
  85. package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
  86. package/examples/javascript/sliced-pyramid/package.json +1 -1
  87. package/examples/javascript/stock-chart/package.json +1 -1
  88. package/examples/javascript/stock-chart-comparing-stocks/package.json +1 -1
  89. package/examples/javascript/stock-chart-data-granularity/package.json +1 -1
  90. package/examples/javascript/stock-chart-data-grouping/package.json +1 -1
  91. package/examples/javascript/stock-chart-intraday/package.json +1 -1
  92. package/examples/javascript/stock-chart-live/package.json +1 -1
  93. package/examples/javascript/stock-chart-volume-separate-panel/package.json +1 -1
  94. package/examples/javascript/venn-diagram/package.json +1 -1
  95. package/examples/javascript/wordcloud-with-data/package.json +1 -1
  96. package/examples/javascript/wordcloud-with-text/package.json +1 -1
  97. package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
  98. package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  99. package/examples/javascript/xy-bubble/package.json +1 -1
  100. package/examples/javascript/xy-candlestick/package.json +1 -1
  101. package/examples/javascript/xy-clustered-column/package.json +1 -1
  102. package/examples/javascript/xy-column/package.json +1 -1
  103. package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
  104. package/examples/javascript/xy-data-grouping/package.json +1 -1
  105. package/examples/javascript/xy-draggable-range/package.json +1 -1
  106. package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  107. package/examples/javascript/xy-dumbbell plot/package.json +1 -1
  108. package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
  109. package/examples/javascript/xy-line/package.json +1 -1
  110. package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
  111. package/examples/javascript/xy-live-data/package.json +1 -1
  112. package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
  113. package/examples/javascript/xy-ohlc/package.json +1 -1
  114. package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
  115. package/examples/javascript/xy-smoothed-line/package.json +1 -1
  116. package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
  117. package/examples/javascript/xy-stacked-column/package.json +1 -1
  118. package/examples/javascript/xy-stacked-step/package.json +1 -1
  119. package/examples/javascript/xy-stock/package.json +1 -1
  120. package/examples/javascript/xy-stock-comparing/package.json +1 -1
  121. package/examples/typescript/flow-arc-horizontal/package.json +1 -1
  122. package/examples/typescript/flow-arc-vertical/package.json +1 -1
  123. package/examples/typescript/flow-chord/package.json +1 -1
  124. package/examples/typescript/flow-chord-directed/package.json +1 -1
  125. package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
  126. package/examples/typescript/flow-sankey/package.json +1 -1
  127. package/examples/typescript/gauge/package.json +1 -1
  128. package/examples/typescript/gauge-bands/package.json +1 -1
  129. package/examples/typescript/hierarchy-force-directed/package.json +1 -1
  130. package/examples/typescript/hierarchy-pack/package.json +1 -1
  131. package/examples/typescript/hierarchy-partition/package.json +1 -1
  132. package/examples/typescript/hierarchy-sunburst/package.json +1 -1
  133. package/examples/typescript/hierarchy-tree/package.json +1 -1
  134. package/examples/typescript/hierarchy-treemap/package.json +1 -1
  135. package/examples/typescript/hierarchy-voronoi-treemap/package.json +1 -1
  136. package/examples/typescript/jest/package.json +1 -1
  137. package/examples/typescript/json-pie/package.json +1 -1
  138. package/examples/typescript/json-xy/package.json +1 -1
  139. package/examples/typescript/map-animating-along-lines/package.json +1 -1
  140. package/examples/typescript/map-clustered-points/package.json +1 -1
  141. package/examples/typescript/map-day-and-night/package.json +1 -1
  142. package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
  143. package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
  144. package/examples/typescript/map-with-bubbles/package.json +1 -1
  145. package/examples/typescript/map-zoom-to-country/index.ts +2 -1
  146. package/examples/typescript/map-zoom-to-country/package.json +1 -1
  147. package/examples/typescript/misc-40-charts/package.json +1 -1
  148. package/examples/typescript/misc-microchart-grid/package.json +1 -1
  149. package/examples/typescript/pie-chart/package.json +1 -1
  150. package/examples/typescript/pie-donut-chart/package.json +1 -1
  151. package/examples/typescript/pie-variable-radius/package.json +1 -1
  152. package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
  153. package/examples/typescript/radar-heat-map/package.json +1 -1
  154. package/examples/typescript/radar-line/package.json +1 -1
  155. package/examples/typescript/radar-time-line/package.json +1 -1
  156. package/examples/typescript/sliced-funnel/package.json +1 -1
  157. package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
  158. package/examples/typescript/sliced-pyramid/package.json +1 -1
  159. package/examples/typescript/stock-chart/package.json +1 -1
  160. package/examples/typescript/stock-chart-comparing-stocks/package.json +1 -1
  161. package/examples/typescript/stock-chart-data-granularity/package.json +1 -1
  162. package/examples/typescript/stock-chart-data-grouping/package.json +1 -1
  163. package/examples/typescript/stock-chart-intraday/package.json +1 -1
  164. package/examples/typescript/stock-chart-live/package.json +1 -1
  165. package/examples/typescript/stock-chart-volume-separate-panel/package.json +1 -1
  166. package/examples/typescript/venn-diagram/package.json +1 -1
  167. package/examples/typescript/wordcloud-with-data/package.json +1 -1
  168. package/examples/typescript/wordcloud-with-text/package.json +1 -1
  169. package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
  170. package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  171. package/examples/typescript/xy-bubble/package.json +1 -1
  172. package/examples/typescript/xy-candlestick/package.json +1 -1
  173. package/examples/typescript/xy-clustered-column/package.json +1 -1
  174. package/examples/typescript/xy-column/package.json +1 -1
  175. package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
  176. package/examples/typescript/xy-data-grouping/package.json +1 -1
  177. package/examples/typescript/xy-draggable-range/package.json +1 -1
  178. package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  179. package/examples/typescript/xy-dumbbell plot/package.json +1 -1
  180. package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
  181. package/examples/typescript/xy-line/package.json +1 -1
  182. package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
  183. package/examples/typescript/xy-live-data/package.json +1 -1
  184. package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
  185. package/examples/typescript/xy-ohlc/package.json +1 -1
  186. package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
  187. package/examples/typescript/xy-smoothed-line/package.json +1 -1
  188. package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
  189. package/examples/typescript/xy-stacked-column/package.json +1 -1
  190. package/examples/typescript/xy-stacked-step/package.json +1 -1
  191. package/examples/typescript/xy-stock/package.json +1 -1
  192. package/examples/typescript/xy-stock-comparing/package.json +1 -1
  193. package/package.json +1 -1
  194. package/stock.d.ts +1 -0
  195. package/stock.d.ts.map +1 -1
  196. package/stock.js +1 -0
  197. package/stock.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Classes.js","sourceRoot":"","sources":["../../../../src/.internal/core/Classes.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is automatically generated by `yarn generate-classes`.\n * DO NOT MANUALLY EDIT IT OR YOUR CHANGES WILL BE LOST!\n */\n\nimport type { AccumulationDistribution } from \"./../charts/stock/indicators/AccumulationDistribution.js\";\nimport type { AccumulativeSwingIndex } from \"./../charts/stock/indicators/AccumulativeSwingIndex.js\";\nimport type { Annotator } from \"./../plugins/exporting/Annotator.js\";\nimport type { ArcDiagram } from \"./../charts/flow/ArcDiagram.js\";\nimport type { ArcDiagramLink } from \"./../charts/flow/ArcDiagramLink.js\";\nimport type { ArcDiagramNodes } from \"./../charts/flow/ArcDiagramNodes.js\";\nimport type { Aroon } from \"./../charts/stock/indicators/Aroon.js\";\nimport type { AverageSeries } from \"./../charts/stock/drawing/AverageSeries.js\";\nimport type { AwesomeOscillator } from \"./../charts/stock/indicators/AwesomeOscillator.js\";\nimport type { Axis } from \"./../charts/xy/axes/Axis.js\";\nimport type { AxisBullet } from \"./../charts/xy/axes/AxisBullet.js\";\nimport type { AxisLabel } from \"./../charts/xy/axes/AxisLabel.js\";\nimport type { AxisLabelRadial } from \"./../charts/xy/axes/AxisLabelRadial.js\";\nimport type { AxisRenderer } from \"./../charts/xy/axes/AxisRenderer.js\";\nimport type { AxisRendererCircular } from \"./../charts/radar/AxisRendererCircular.js\";\nimport type { AxisRendererRadial } from \"./../charts/radar/AxisRendererRadial.js\";\nimport type { AxisRendererX } from \"./../charts/xy/axes/AxisRendererX.js\";\nimport type { AxisRendererY } from \"./../charts/xy/axes/AxisRendererY.js\";\nimport type { AxisTick } from \"./../charts/xy/axes/AxisTick.js\";\nimport type { BaseColumnSeries } from \"./../charts/xy/series/BaseColumnSeries.js\";\nimport type { BollingerBands } from \"./../charts/stock/indicators/BollingerBands.js\";\nimport type { AccelerationBands } from \"./../charts/stock/indicators/AccelerationBands.js\";\nimport type { BreadcrumbBar } from \"./../charts/hierarchy/BreadcrumbBar.js\";\nimport type { Bullet } from \"./render/Bullet.js\";\nimport type { BullBearPower } from \"./../charts/stock/indicators/BullBearPower.js\";\nimport type { Button } from \"./render/Button.js\";\nimport type { CalloutSeries } from \"./../charts/stock/drawing/CalloutSeries.js\";\nimport type { Candlestick } from \"./../charts/xy/series/Candlestick.js\";\nimport type { CandlestickSeries } from \"./../charts/xy/series/CandlestickSeries.js\";\nimport type { CategoryAxis } from \"./../charts/xy/axes/CategoryAxis.js\";\nimport type { CategoryDateAxis } from \"./../charts/xy/axes/CategoryDateAxis.js\";\nimport type { ChaikinMoneyFlow } from \"./../charts/stock/indicators/ChaikinMoneyFlow.js\";\nimport type { ChaikinOscillator } from \"./../charts/stock/indicators/ChaikinOscillator.js\";\nimport type { Chart } from \"./render/Chart.js\";\nimport type { ChartIndicator } from \"./../charts/stock/indicators/ChartIndicator.js\";\nimport type { Chord } from \"./../charts/flow/Chord.js\";\nimport type { ChordDirected } from \"./../charts/flow/ChordDirected.js\";\nimport type { ChordLink } from \"./../charts/flow/ChordLink.js\";\nimport type { ChordLinkDirected } from \"./../charts/flow/ChordLinkDirected.js\";\nimport type { ChordNodes } from \"./../charts/flow/ChordNodes.js\";\nimport type { ChordNonRibbon } from \"./../charts/flow/ChordNonRibbon.js\";\nimport type { Circle } from \"./render/Circle.js\";\nimport type { CirclePattern } from \"./render/patterns/CirclePattern.js\";\nimport type { ClockHand } from \"./../charts/radar/ClockHand.js\";\nimport type { ClusteredPointSeries } from \"./../charts/map/ClusteredPointSeries.js\";\nimport type { ColorControl } from \"./../charts/stock/toolbar/ColorControl.js\";\nimport type { ColorSet } from \"./util/ColorSet.js\";\nimport type { ColumnSeries } from \"./../charts/xy/series/ColumnSeries.js\";\nimport type { CommodityChannelIndex } from \"./../charts/stock/indicators/CommodityChannelIndex.js\";\nimport type { ComparisonControl } from \"./../charts/stock/toolbar/ComparisonControl.js\";\nimport type { Component } from \"./render/Component.js\";\nimport type { Container } from \"./render/Container.js\";\nimport type { DataSaveControl } from \"./../charts/stock/toolbar/DataSaveControl.js\";\nimport type { DateAxis } from \"./../charts/xy/axes/DateAxis.js\";\nimport type { DateRangeSelector } from \"./../charts/stock/toolbar/DateRangeSelector.js\";\nimport type { DisparityIndex } from \"./../charts/stock/indicators/DisparityIndex.js\";\nimport type { DoodleSeries } from \"./../charts/stock/drawing/DoodleSeries.js\";\nimport type { DrawingControl } from \"./../charts/stock/toolbar/DrawingControl.js\";\nimport type { DrawingSeries } from \"./../charts/stock/drawing/DrawingSeries.js\";\nimport type { DrawingToolControl } from \"./../charts/stock/toolbar/DrawingToolControl.js\";\nimport type { Dropdown } from \"./../charts/stock/toolbar/Dropdown.js\";\nimport type { DropdownColors } from \"./../charts/stock/toolbar/DropdownColors.js\";\nimport type { DropdownControl } from \"./../charts/stock/toolbar/DropdownControl.js\";\nimport type { DropdownList } from \"./../charts/stock/toolbar/DropdownList.js\";\nimport type { DropdownListControl } from \"./../charts/stock/toolbar/DropdownListControl.js\";\nimport type { DurationAxis } from \"./../charts/xy/axes/DurationAxis.js\";\nimport type { Ellipse } from \"./render/Ellipse.js\";\nimport type { EllipseSeries } from \"./../charts/stock/drawing/EllipseSeries.js\";\nimport type { Entity } from \"./util/Entity.js\";\nimport type { Exporting } from \"./../plugins/exporting/Exporting.js\";\nimport type { ExportingMenu } from \"./../plugins/exporting/ExportingMenu.js\";\nimport type { FibonacciSeries } from \"./../charts/stock/drawing/FibonacciSeries.js\";\nimport type { FibonacciTimezoneSeries } from \"./../charts/stock/drawing/FibonacciTimezoneSeries.js\";\nimport type { Flow } from \"./../charts/flow/Flow.js\";\nimport type { FlowLink } from \"./../charts/flow/FlowLink.js\";\nimport type { FlowNode } from \"./../charts/flow/FlowNode.js\";\nimport type { FlowNodes } from \"./../charts/flow/FlowNodes.js\";\nimport type { ForceDirected } from \"./../charts/hierarchy/ForceDirected.js\";\nimport type { FunnelSeries } from \"./../charts/funnel/FunnelSeries.js\";\nimport type { FunnelSlice } from \"./../charts/funnel/FunnelSlice.js\";\nimport type { GaplessDateAxis } from \"./../charts/xy/axes/GaplessDateAxis.js\";\nimport type { Gradient } from \"./render/gradients/Gradient.js\";\nimport type { GrainPattern } from \"./render/patterns/GrainPattern.js\";\nimport type { Graphics } from \"./render/Graphics.js\";\nimport type { GraticuleSeries } from \"./../charts/map/GraticuleSeries.js\";\nimport type { Grid } from \"./../charts/xy/axes/Grid.js\";\nimport type { GridLayout } from \"./render/GridLayout.js\";\nimport type { HeatLegend } from \"./render/HeatLegend.js\";\nimport type { Hierarchy } from \"./../charts/hierarchy/Hierarchy.js\";\nimport type { HierarchyLink } from \"./../charts/hierarchy/HierarchyLink.js\";\nimport type { HierarchyNode } from \"./../charts/hierarchy/HierarchyNode.js\";\nimport type { HorizontalLayout } from \"./render/HorizontalLayout.js\";\nimport type { HorizontalLineSeries } from \"./../charts/stock/drawing/HorizontalLineSeries.js\";\nimport type { HorizontalRaySeries } from \"./../charts/stock/drawing/HorizontalRaySeries.js\";\nimport type { IconControl } from \"./../charts/stock/toolbar/IconControl.js\";\nimport type { IconSeries } from \"./../charts/stock/drawing/IconSeries.js\";\nimport type { Indicator } from \"./../charts/stock/indicators/Indicator.js\";\nimport type { IndicatorControl } from \"./../charts/stock/toolbar/IndicatorControl.js\";\nimport type { InterfaceColors } from \"./util/InterfaceColors.js\";\nimport type { IntervalControl } from \"./../charts/stock/toolbar/IntervalControl.js\";\nimport type { Label } from \"./render/Label.js\";\nimport type { LabelSeries } from \"./../charts/stock/drawing/LabelSeries.js\";\nimport type { Layout } from \"./render/Layout.js\";\nimport type { Legend } from \"./render/Legend.js\";\nimport type { Line } from \"./render/Line.js\";\nimport type { LinePattern } from \"./render/patterns/LinePattern.js\";\nimport type { LineSeries } from \"./../charts/xy/series/LineSeries.js\";\nimport type { LinearGradient } from \"./render/gradients/LinearGradient.js\";\nimport type { LinkedHierarchy } from \"./../charts/hierarchy/LinkedHierarchy.js\";\nimport type { LinkedHierarchyNode } from \"./../charts/hierarchy/LinkedHierarchyNode.js\";\nimport type { MACD } from \"./../charts/stock/indicators/MACD.js\";\nimport type { MapChart } from \"./../charts/map/MapChart.js\";\nimport type { MapLine } from \"./../charts/map/MapLine.js\";\nimport type { MapLineSeries } from \"./../charts/map/MapLineSeries.js\";\nimport type { MapPointSeries } from \"./../charts/map/MapPointSeries.js\";\nimport type { MapPolygon } from \"./../charts/map/MapPolygon.js\";\nimport type { MapPolygonSeries } from \"./../charts/map/MapPolygonSeries.js\";\nimport type { MapSeries } from \"./../charts/map/MapSeries.js\";\nimport type { Measure } from \"./../charts/stock/drawing/Measure.js\";\nimport type { MedianPrice } from \"./../charts/stock/indicators/MedianPrice.js\";\nimport type { Modal } from \"./util/Modal.js\";\nimport type { Momentum } from \"./../charts/stock/indicators/Momentum.js\";\nimport type { MovingAverage } from \"./../charts/stock/indicators/MovingAverage.js\";\nimport type { MovingAverageDeviation } from \"./../charts/stock/indicators/MovingAverageDeviation.js\";\nimport type { MovingAverageEnvelope } from \"./../charts/stock/indicators/MovingAverageEnvelope.js\";\nimport type { OHLC } from \"./../charts/xy/series/OHLC.js\";\nimport type { OHLCSeries } from \"./../charts/xy/series/OHLCSeries.js\";\nimport type { OnBalanceVolume } from \"./../charts/stock/indicators/OnBalanceVolume.js\";\nimport type { OverboughtOversold } from \"./../charts/stock/indicators/OverboughtOversold.js\";\nimport type { Pack } from \"./../charts/hierarchy/Pack.js\";\nimport type { PanelControls } from \"./../charts/stock/PanelControls.js\";\nimport type { ParallelChannelSeries } from \"./../charts/stock/drawing/ParallelChannelSeries.js\";\nimport type { Partition } from \"./../charts/hierarchy/Partition.js\";\nimport type { PathPattern } from \"./render/patterns/PathPattern.js\";\nimport type { Pattern } from \"./render/patterns/Pattern.js\";\nimport type { PercentChart } from \"./../charts/percent/PercentChart.js\";\nimport type { PercentSeries } from \"./../charts/percent/PercentSeries.js\";\nimport type { PeriodSelector } from \"./../charts/stock/toolbar/PeriodSelector.js\";\nimport type { PictorialStackedSeries } from \"./../charts/funnel/PictorialStackedSeries.js\";\nimport type { Picture } from \"./render/Picture.js\";\nimport type { PicturePattern } from \"./render/patterns/PicturePattern.js\";\nimport type { PieChart } from \"./../charts/pie/PieChart.js\";\nimport type { PieSeries } from \"./../charts/pie/PieSeries.js\";\nimport type { PointedRectangle } from \"./render/PointedRectangle.js\";\nimport type { Polygon } from \"./render/Polygon.js\";\nimport type { PolylineSeries } from \"./../charts/stock/drawing/PolylineSeries.js\";\nimport type { PyramidSeries } from \"./../charts/funnel/PyramidSeries.js\";\nimport type { QuadrantLineSeries } from \"./../charts/stock/drawing/QuadrantLineSeries.js\";\nimport type { RadarChart } from \"./../charts/radar/RadarChart.js\";\nimport type { RadarColumnSeries } from \"./../charts/radar/RadarColumnSeries.js\";\nimport type { RadarCursor } from \"./../charts/radar/RadarCursor.js\";\nimport type { RadarLineSeries } from \"./../charts/radar/RadarLineSeries.js\";\nimport type { RadialGradient } from \"./render/gradients/RadialGradient.js\";\nimport type { RadialLabel } from \"./render/RadialLabel.js\";\nimport type { RadialText } from \"./render/RadialText.js\";\nimport type { Rectangle } from \"./render/Rectangle.js\";\nimport type { RectanglePattern } from \"./render/patterns/RectanglePattern.js\";\nimport type { RectangleSeries } from \"./../charts/stock/drawing/RectangleSeries.js\";\nimport type { RegressionSeries } from \"./../charts/stock/drawing/RegressionSeries.js\";\nimport type { RelativeStrengthIndex } from \"./../charts/stock/indicators/RelativeStrengthIndex.js\";\nimport type { ResetControl } from \"./../charts/stock/toolbar/ResetControl.js\";\nimport type { RoundedRectangle } from \"./render/RoundedRectangle.js\";\nimport type { Sankey } from \"./../charts/flow/Sankey.js\";\nimport type { SankeyLink } from \"./../charts/flow/SankeyLink.js\";\nimport type { SankeyNodes } from \"./../charts/flow/SankeyNodes.js\";\nimport type { Scrollbar } from \"./render/Scrollbar.js\";\nimport type { SerialChart } from \"./render/SerialChart.js\";\nimport type { Serializer } from \"./../plugins/json/Serializer.js\";\nimport type { Series } from \"./render/Series.js\";\nimport type { SeriesTypeControl } from \"./../charts/stock/toolbar/SeriesTypeControl.js\";\nimport type { SettingsControl } from \"./../charts/stock/toolbar/SettingsControl.js\";\nimport type { SettingsModal } from \"./../charts/stock/SettingsModal.js\";\nimport type { SimpleLineSeries } from \"./../charts/stock/drawing/SimpleLineSeries.js\";\nimport type { Slice } from \"./render/Slice.js\";\nimport type { SliceGrouper } from \"./../plugins/sliceGrouper/SliceGrouper.js\";\nimport type { SlicedChart } from \"./../charts/funnel/SlicedChart.js\";\nimport type { Slider } from \"./render/Slider.js\";\nimport type { SmoothedRadarLineSeries } from \"./../charts/radar/SmoothedRadarLineSeries.js\";\nimport type { SmoothedXLineSeries } from \"./../charts/xy/series/SmoothedXLineSeries.js\";\nimport type { SmoothedXYLineSeries } from \"./../charts/xy/series/SmoothedXYLineSeries.js\";\nimport type { SmoothedYLineSeries } from \"./../charts/xy/series/SmoothedYLineSeries.js\";\nimport type { Sprite } from \"./render/Sprite.js\";\nimport type { SpriteResizer } from \"./render/SpriteResizer.js\";\nimport type { StandardDeviation } from \"./../charts/stock/indicators/StandardDeviation.js\";\nimport type { Star } from \"./render/Star.js\";\nimport type { StepLineSeries } from \"./../charts/xy/series/StepLineSeries.js\";\nimport type { StochasticMomentumIndex } from \"./../charts/stock/indicators/StochasticMomentumIndex.js\";\nimport type { StochasticOscillator } from \"./../charts/stock/indicators/StochasticOscillator.js\";\nimport type { StockChart } from \"./../charts/stock/StockChart.js\";\nimport type { StockControl } from \"./../charts/stock/toolbar/StockControl.js\";\nimport type { StockLegend } from \"./../charts/stock/StockLegend.js\";\nimport type { StockPanel } from \"./../charts/stock/StockPanel.js\";\nimport type { StockToolbar } from \"./../charts/stock/toolbar/StockToolbar.js\";\nimport type { Sunburst } from \"./../charts/hierarchy/Sunburst.js\";\nimport type { Text } from \"./render/Text.js\";\nimport type { Tick } from \"./render/Tick.js\";\nimport type { Tooltip } from \"./render/Tooltip.js\";\nimport type { Tree } from \"./../charts/hierarchy/Tree.js\";\nimport type { Treemap } from \"./../charts/hierarchy/Treemap.js\";\nimport type { TrendLineSeries } from \"./../charts/stock/drawing/TrendLineSeries.js\";\nimport type { Triangle } from \"./render/Triangle.js\";\nimport type { Trix } from \"./../charts/stock/indicators/Trix.js\";\nimport type { TypicalPrice } from \"./../charts/stock/indicators/TypicalPrice.js\";\nimport type { VWAP } from \"./../charts/stock/indicators/VWAP.js\";\nimport type { ValueAxis } from \"./../charts/xy/axes/ValueAxis.js\";\nimport type { Venn } from \"./../charts/venn/Venn.js\";\nimport type { VerticalLayout } from \"./render/VerticalLayout.js\";\nimport type { VerticalLineSeries } from \"./../charts/stock/drawing/VerticalLineSeries.js\";\nimport type { Volume } from \"./../charts/stock/indicators/Volume.js\";\nimport type { VolumeProfile } from \"./../charts/stock/indicators/VolumeProfile.js\";\nimport type { VoronoiTreemap } from \"./../charts/hierarchy/VoronoiTreemap.js\";\nimport type { WilliamsR } from \"./../charts/stock/indicators/WilliamsR.js\";\nimport type { WordCloud } from \"./../charts/wordcloud/WordCloud.js\";\nimport type { XYChart } from \"./../charts/xy/XYChart.js\";\nimport type { XYChartScrollbar } from \"./../charts/xy/XYChartScrollbar.js\";\nimport type { XYCursor } from \"./../charts/xy/XYCursor.js\";\nimport type { XYSeries } from \"./../charts/xy/series/XYSeries.js\";\nimport type { ZigZag } from \"./../charts/stock/indicators/ZigZag.js\";\nimport type { ZoomControl } from \"./../charts/map/ZoomControl.js\";\n\nexport interface IClasses {\n\t\"AccumulationDistribution\": AccumulationDistribution;\n\t\"AccumulativeSwingIndex\": AccumulativeSwingIndex;\n\t\"Annotator\": Annotator;\n\t\"ArcDiagram\": ArcDiagram;\n\t\"ArcDiagramLink\": ArcDiagramLink;\n\t\"ArcDiagramNodes\": ArcDiagramNodes;\n\t\"Aroon\": Aroon;\n\t\"AverageSeries\": AverageSeries;\n\t\"AwesomeOscillator\": AwesomeOscillator;\n\t\"Axis\": Axis<AxisRenderer>;\n\t\"AxisBullet\": AxisBullet;\n\t\"AxisLabel\": AxisLabel;\n\t\"AxisLabelRadial\": AxisLabelRadial;\n\t\"AxisRenderer\": AxisRenderer;\n\t\"AxisRendererCircular\": AxisRendererCircular;\n\t\"AxisRendererRadial\": AxisRendererRadial;\n\t\"AxisRendererX\": AxisRendererX;\n\t\"AxisRendererY\": AxisRendererY;\n\t\"AxisTick\": AxisTick;\n\t\"BaseColumnSeries\": BaseColumnSeries;\n\t\"BollingerBands\": BollingerBands;\n\t\"BullBearPower\": BullBearPower;\n\t\"AccelerationBands\": AccelerationBands;\n\t\"BreadcrumbBar\": BreadcrumbBar;\n\t\"Bullet\": Bullet;\n\t\"Button\": Button;\n\t\"CalloutSeries\": CalloutSeries;\n\t\"Candlestick\": Candlestick;\n\t\"CandlestickSeries\": CandlestickSeries;\n\t\"CategoryAxis\": CategoryAxis<AxisRenderer>;\n\t\"CategoryDateAxis\": CategoryDateAxis<AxisRenderer>;\n\t\"ChaikinMoneyFlow\": ChaikinMoneyFlow;\n\t\"ChaikinOscillator\": ChaikinOscillator;\n\t\"Chart\": Chart;\n\t\"ChartIndicator\": ChartIndicator;\n\t\"Chord\": Chord;\n\t\"ChordDirected\": ChordDirected;\n\t\"ChordLink\": ChordLink;\n\t\"ChordLinkDirected\": ChordLinkDirected;\n\t\"ChordNodes\": ChordNodes;\n\t\"ChordNonRibbon\": ChordNonRibbon;\n\t\"Circle\": Circle;\n\t\"CirclePattern\": CirclePattern;\n\t\"ClockHand\": ClockHand;\n\t\"ClusteredPointSeries\": ClusteredPointSeries;\n\t\"ColorControl\": ColorControl;\n\t\"ColorSet\": ColorSet;\n\t\"ColumnSeries\": ColumnSeries;\n\t\"CommodityChannelIndex\": CommodityChannelIndex;\n\t\"ComparisonControl\": ComparisonControl;\n\t\"Component\": Component;\n\t\"Container\": Container;\n\t\"DataSaveControl\": DataSaveControl;\n\t\"DateAxis\": DateAxis<AxisRenderer>;\n\t\"DateRangeSelector\": DateRangeSelector;\n\t\"DisparityIndex\": DisparityIndex;\n\t\"DoodleSeries\": DoodleSeries;\n\t\"DrawingControl\": DrawingControl;\n\t\"DrawingSeries\": DrawingSeries;\n\t\"DrawingToolControl\": DrawingToolControl;\n\t\"Dropdown\": Dropdown;\n\t\"DropdownColors\": DropdownColors;\n\t\"DropdownControl\": DropdownControl;\n\t\"DropdownList\": DropdownList;\n\t\"DropdownListControl\": DropdownListControl;\n\t\"DurationAxis\": DurationAxis<AxisRenderer>;\n\t\"Ellipse\": Ellipse;\n\t\"EllipseSeries\": EllipseSeries;\n\t\"Entity\": Entity;\n\t\"Exporting\": Exporting;\n\t\"ExportingMenu\": ExportingMenu;\n\t\"FibonacciSeries\": FibonacciSeries;\n\t\"FibonacciTimezoneSeries\": FibonacciTimezoneSeries;\n\t\"Flow\": Flow;\n\t\"FlowLink\": FlowLink;\n\t\"FlowNode\": FlowNode;\n\t\"FlowNodes\": FlowNodes;\n\t\"ForceDirected\": ForceDirected;\n\t\"FunnelSeries\": FunnelSeries;\n\t\"FunnelSlice\": FunnelSlice;\n\t\"GaplessDateAxis\": GaplessDateAxis<AxisRenderer>;\n\t\"Gradient\": Gradient;\n\t\"GrainPattern\": GrainPattern;\n\t\"Graphics\": Graphics;\n\t\"GraticuleSeries\": GraticuleSeries;\n\t\"Grid\": Grid;\n\t\"GridLayout\": GridLayout;\n\t\"HeatLegend\": HeatLegend;\n\t\"Hierarchy\": Hierarchy;\n\t\"HierarchyLink\": HierarchyLink;\n\t\"HierarchyNode\": HierarchyNode;\n\t\"HorizontalLayout\": HorizontalLayout;\n\t\"HorizontalLineSeries\": HorizontalLineSeries;\n\t\"HorizontalRaySeries\": HorizontalRaySeries;\n\t\"IconControl\": IconControl;\n\t\"IconSeries\": IconSeries;\n\t\"Indicator\": Indicator;\n\t\"IndicatorControl\": IndicatorControl;\n\t\"InterfaceColors\": InterfaceColors;\n\t\"IntervalControl\": IntervalControl;\n\t\"Label\": Label;\n\t\"LabelSeries\": LabelSeries;\n\t\"Layout\": Layout;\n\t\"Legend\": Legend;\n\t\"Line\": Line;\n\t\"LinePattern\": LinePattern;\n\t\"LineSeries\": LineSeries;\n\t\"LinearGradient\": LinearGradient;\n\t\"LinkedHierarchy\": LinkedHierarchy;\n\t\"LinkedHierarchyNode\": LinkedHierarchyNode;\n\t\"MACD\": MACD;\n\t\"MapChart\": MapChart;\n\t\"MapLine\": MapLine;\n\t\"MapLineSeries\": MapLineSeries;\n\t\"MapPointSeries\": MapPointSeries;\n\t\"MapPolygon\": MapPolygon;\n\t\"MapPolygonSeries\": MapPolygonSeries;\n\t\"MapSeries\": MapSeries;\n\t\"Measure\": Measure;\n\t\"MedianPrice\": MedianPrice;\n\t\"Modal\": Modal;\n\t\"Momentum\": Momentum;\n\t\"MovingAverage\": MovingAverage;\n\t\"MovingAverageDeviation\": MovingAverageDeviation;\n\t\"MovingAverageEnvelope\": MovingAverageEnvelope;\n\t\"OHLC\": OHLC;\n\t\"OHLCSeries\": OHLCSeries;\n\t\"OnBalanceVolume\": OnBalanceVolume;\n\t\"OverboughtOversold\": OverboughtOversold;\n\t\"Pack\": Pack;\n\t\"PanelControls\": PanelControls;\n\t\"ParallelChannelSeries\": ParallelChannelSeries;\n\t\"Partition\": Partition;\n\t\"PathPattern\": PathPattern;\n\t\"Pattern\": Pattern;\n\t\"PercentChart\": PercentChart;\n\t\"PercentSeries\": PercentSeries;\n\t\"PeriodSelector\": PeriodSelector;\n\t\"PictorialStackedSeries\": PictorialStackedSeries;\n\t\"Picture\": Picture;\n\t\"PicturePattern\": PicturePattern;\n\t\"PieChart\": PieChart;\n\t\"PieSeries\": PieSeries;\n\t\"PointedRectangle\": PointedRectangle;\n\t\"Polygon\": Polygon;\n\t\"PolylineSeries\": PolylineSeries;\n\t\"PyramidSeries\": PyramidSeries;\n\t\"QuadrantLineSeries\": QuadrantLineSeries;\n\t\"RadarChart\": RadarChart;\n\t\"RadarColumnSeries\": RadarColumnSeries;\n\t\"RadarCursor\": RadarCursor;\n\t\"RadarLineSeries\": RadarLineSeries;\n\t\"RadialGradient\": RadialGradient;\n\t\"RadialLabel\": RadialLabel;\n\t\"RadialText\": RadialText;\n\t\"Rectangle\": Rectangle;\n\t\"RectanglePattern\": RectanglePattern;\n\t\"RectangleSeries\": RectangleSeries;\n\t\"RegressionSeries\": RegressionSeries;\n\t\"RelativeStrengthIndex\": RelativeStrengthIndex;\n\t\"ResetControl\": ResetControl;\n\t\"RoundedRectangle\": RoundedRectangle;\n\t\"Sankey\": Sankey;\n\t\"SankeyLink\": SankeyLink;\n\t\"SankeyNodes\": SankeyNodes;\n\t\"Scrollbar\": Scrollbar;\n\t\"SerialChart\": SerialChart;\n\t\"Serializer\": Serializer;\n\t\"Series\": Series;\n\t\"SeriesTypeControl\": SeriesTypeControl;\n\t\"SettingsControl\": SettingsControl;\n\t\"SettingsModal\": SettingsModal;\n\t\"SimpleLineSeries\": SimpleLineSeries;\n\t\"Slice\": Slice;\n\t\"SliceGrouper\": SliceGrouper;\n\t\"SlicedChart\": SlicedChart;\n\t\"Slider\": Slider;\n\t\"SmoothedRadarLineSeries\": SmoothedRadarLineSeries;\n\t\"SmoothedXLineSeries\": SmoothedXLineSeries;\n\t\"SmoothedXYLineSeries\": SmoothedXYLineSeries;\n\t\"SmoothedYLineSeries\": SmoothedYLineSeries;\n\t\"Sprite\": Sprite;\n\t\"SpriteResizer\": SpriteResizer;\n\t\"StandardDeviation\": StandardDeviation;\n\t\"Star\": Star;\n\t\"StepLineSeries\": StepLineSeries;\n\t\"StochasticMomentumIndex\": StochasticMomentumIndex;\n\t\"StochasticOscillator\": StochasticOscillator;\n\t\"StockChart\": StockChart;\n\t\"StockControl\": StockControl;\n\t\"StockLegend\": StockLegend;\n\t\"StockPanel\": StockPanel;\n\t\"StockToolbar\": StockToolbar;\n\t\"Sunburst\": Sunburst;\n\t\"Text\": Text;\n\t\"Tick\": Tick;\n\t\"Tooltip\": Tooltip;\n\t\"Tree\": Tree;\n\t\"Treemap\": Treemap;\n\t\"TrendLineSeries\": TrendLineSeries;\n\t\"Triangle\": Triangle;\n\t\"Trix\": Trix;\n\t\"TypicalPrice\": TypicalPrice;\n\t\"VWAP\": VWAP;\n\t\"ValueAxis\": ValueAxis<AxisRenderer>;\n\t\"Venn\": Venn;\n\t\"VerticalLayout\": VerticalLayout;\n\t\"VerticalLineSeries\": VerticalLineSeries;\n\t\"Volume\": Volume;\n\t\"VolumeProfile\": VolumeProfile;\n\t\"VoronoiTreemap\": VoronoiTreemap;\n\t\"WilliamsR\": WilliamsR;\n\t\"WordCloud\": WordCloud;\n\t\"XYChart\": XYChart;\n\t\"XYChartScrollbar\": XYChartScrollbar;\n\t\"XYCursor\": XYCursor;\n\t\"XYSeries\": XYSeries;\n\t\"ZigZag\": ZigZag;\n\t\"ZoomControl\": ZoomControl;\n}\n"]}
1
+ {"version":3,"file":"Classes.js","sourceRoot":"","sources":["../../../../src/.internal/core/Classes.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is automatically generated by `yarn generate-classes`.\n * DO NOT MANUALLY EDIT IT OR YOUR CHANGES WILL BE LOST!\n */\n\nimport type { AccumulationDistribution } from \"./../charts/stock/indicators/AccumulationDistribution.js\";\nimport type { AccumulativeSwingIndex } from \"./../charts/stock/indicators/AccumulativeSwingIndex.js\";\nimport type { Annotator } from \"./../plugins/exporting/Annotator.js\";\nimport type { ArcDiagram } from \"./../charts/flow/ArcDiagram.js\";\nimport type { ArcDiagramLink } from \"./../charts/flow/ArcDiagramLink.js\";\nimport type { ArcDiagramNodes } from \"./../charts/flow/ArcDiagramNodes.js\";\nimport type { Aroon } from \"./../charts/stock/indicators/Aroon.js\";\nimport type { AverageSeries } from \"./../charts/stock/drawing/AverageSeries.js\";\nimport type { AwesomeOscillator } from \"./../charts/stock/indicators/AwesomeOscillator.js\";\nimport type { Axis } from \"./../charts/xy/axes/Axis.js\";\nimport type { AxisBullet } from \"./../charts/xy/axes/AxisBullet.js\";\nimport type { AxisLabel } from \"./../charts/xy/axes/AxisLabel.js\";\nimport type { AxisLabelRadial } from \"./../charts/xy/axes/AxisLabelRadial.js\";\nimport type { AxisRenderer } from \"./../charts/xy/axes/AxisRenderer.js\";\nimport type { AxisRendererCircular } from \"./../charts/radar/AxisRendererCircular.js\";\nimport type { AxisRendererRadial } from \"./../charts/radar/AxisRendererRadial.js\";\nimport type { AxisRendererX } from \"./../charts/xy/axes/AxisRendererX.js\";\nimport type { AxisRendererY } from \"./../charts/xy/axes/AxisRendererY.js\";\nimport type { AxisTick } from \"./../charts/xy/axes/AxisTick.js\";\nimport type { BaseColumnSeries } from \"./../charts/xy/series/BaseColumnSeries.js\";\nimport type { BollingerBands } from \"./../charts/stock/indicators/BollingerBands.js\";\nimport type { AccelerationBands } from \"./../charts/stock/indicators/AccelerationBands.js\";\nimport type { BreadcrumbBar } from \"./../charts/hierarchy/BreadcrumbBar.js\";\nimport type { Bullet } from \"./render/Bullet.js\";\nimport type { BullBearPower } from \"./../charts/stock/indicators/BullBearPower.js\";\nimport type { Button } from \"./render/Button.js\";\nimport type { CalloutSeries } from \"./../charts/stock/drawing/CalloutSeries.js\";\nimport type { Candlestick } from \"./../charts/xy/series/Candlestick.js\";\nimport type { CandlestickSeries } from \"./../charts/xy/series/CandlestickSeries.js\";\nimport type { CategoryAxis } from \"./../charts/xy/axes/CategoryAxis.js\";\nimport type { CategoryDateAxis } from \"./../charts/xy/axes/CategoryDateAxis.js\";\nimport type { ChaikinMoneyFlow } from \"./../charts/stock/indicators/ChaikinMoneyFlow.js\";\nimport type { ChaikinOscillator } from \"./../charts/stock/indicators/ChaikinOscillator.js\";\nimport type { Chart } from \"./render/Chart.js\";\nimport type { ChartIndicator } from \"./../charts/stock/indicators/ChartIndicator.js\";\nimport type { Chord } from \"./../charts/flow/Chord.js\";\nimport type { ChordDirected } from \"./../charts/flow/ChordDirected.js\";\nimport type { ChordLink } from \"./../charts/flow/ChordLink.js\";\nimport type { ChordLinkDirected } from \"./../charts/flow/ChordLinkDirected.js\";\nimport type { ChordNodes } from \"./../charts/flow/ChordNodes.js\";\nimport type { ChordNonRibbon } from \"./../charts/flow/ChordNonRibbon.js\";\nimport type { Circle } from \"./render/Circle.js\";\nimport type { CirclePattern } from \"./render/patterns/CirclePattern.js\";\nimport type { ClockHand } from \"./../charts/radar/ClockHand.js\";\nimport type { ClusteredPointSeries } from \"./../charts/map/ClusteredPointSeries.js\";\nimport type { ColorControl } from \"./../charts/stock/toolbar/ColorControl.js\";\nimport type { ColorSet } from \"./util/ColorSet.js\";\nimport type { ColumnSeries } from \"./../charts/xy/series/ColumnSeries.js\";\nimport type { CommodityChannelIndex } from \"./../charts/stock/indicators/CommodityChannelIndex.js\";\nimport type { ComparisonControl } from \"./../charts/stock/toolbar/ComparisonControl.js\";\nimport type { Component } from \"./render/Component.js\";\nimport type { Container } from \"./render/Container.js\";\nimport type { DataSaveControl } from \"./../charts/stock/toolbar/DataSaveControl.js\";\nimport type { DateAxis } from \"./../charts/xy/axes/DateAxis.js\";\nimport type { DateRangeSelector } from \"./../charts/stock/toolbar/DateRangeSelector.js\";\nimport type { DisparityIndex } from \"./../charts/stock/indicators/DisparityIndex.js\";\nimport type { DoodleSeries } from \"./../charts/stock/drawing/DoodleSeries.js\";\nimport type { DrawingControl } from \"./../charts/stock/toolbar/DrawingControl.js\";\nimport type { DrawingSeries } from \"./../charts/stock/drawing/DrawingSeries.js\";\nimport type { DrawingToolControl } from \"./../charts/stock/toolbar/DrawingToolControl.js\";\nimport type { Dropdown } from \"./../charts/stock/toolbar/Dropdown.js\";\nimport type { DropdownColors } from \"./../charts/stock/toolbar/DropdownColors.js\";\nimport type { DropdownControl } from \"./../charts/stock/toolbar/DropdownControl.js\";\nimport type { DropdownList } from \"./../charts/stock/toolbar/DropdownList.js\";\nimport type { DropdownListControl } from \"./../charts/stock/toolbar/DropdownListControl.js\";\nimport type { DurationAxis } from \"./../charts/xy/axes/DurationAxis.js\";\nimport type { Ellipse } from \"./render/Ellipse.js\";\nimport type { EllipseSeries } from \"./../charts/stock/drawing/EllipseSeries.js\";\nimport type { Entity } from \"./util/Entity.js\";\nimport type { Exporting } from \"./../plugins/exporting/Exporting.js\";\nimport type { ExportingMenu } from \"./../plugins/exporting/ExportingMenu.js\";\nimport type { FibonacciSeries } from \"./../charts/stock/drawing/FibonacciSeries.js\";\nimport type { FibonacciTimezoneSeries } from \"./../charts/stock/drawing/FibonacciTimezoneSeries.js\";\nimport type { Flow } from \"./../charts/flow/Flow.js\";\nimport type { FlowLink } from \"./../charts/flow/FlowLink.js\";\nimport type { FlowNode } from \"./../charts/flow/FlowNode.js\";\nimport type { FlowNodes } from \"./../charts/flow/FlowNodes.js\";\nimport type { ForceDirected } from \"./../charts/hierarchy/ForceDirected.js\";\nimport type { FunnelSeries } from \"./../charts/funnel/FunnelSeries.js\";\nimport type { FunnelSlice } from \"./../charts/funnel/FunnelSlice.js\";\nimport type { GaplessDateAxis } from \"./../charts/xy/axes/GaplessDateAxis.js\";\nimport type { Gradient } from \"./render/gradients/Gradient.js\";\nimport type { GrainPattern } from \"./render/patterns/GrainPattern.js\";\nimport type { Graphics } from \"./render/Graphics.js\";\nimport type { GraticuleSeries } from \"./../charts/map/GraticuleSeries.js\";\nimport type { Grid } from \"./../charts/xy/axes/Grid.js\";\nimport type { GridLayout } from \"./render/GridLayout.js\";\nimport type { HeatLegend } from \"./render/HeatLegend.js\";\nimport type { Hierarchy } from \"./../charts/hierarchy/Hierarchy.js\";\nimport type { HierarchyLink } from \"./../charts/hierarchy/HierarchyLink.js\";\nimport type { HierarchyNode } from \"./../charts/hierarchy/HierarchyNode.js\";\nimport type { HorizontalLayout } from \"./render/HorizontalLayout.js\";\nimport type { HorizontalLineSeries } from \"./../charts/stock/drawing/HorizontalLineSeries.js\";\nimport type { HorizontalRaySeries } from \"./../charts/stock/drawing/HorizontalRaySeries.js\";\nimport type { IconControl } from \"./../charts/stock/toolbar/IconControl.js\";\nimport type { IconSeries } from \"./../charts/stock/drawing/IconSeries.js\";\nimport type { Indicator } from \"./../charts/stock/indicators/Indicator.js\";\nimport type { IndicatorControl } from \"./../charts/stock/toolbar/IndicatorControl.js\";\nimport type { InterfaceColors } from \"./util/InterfaceColors.js\";\nimport type { IntervalControl } from \"./../charts/stock/toolbar/IntervalControl.js\";\nimport type { Label } from \"./render/Label.js\";\nimport type { LabelSeries } from \"./../charts/stock/drawing/LabelSeries.js\";\nimport type { Layout } from \"./render/Layout.js\";\nimport type { Legend } from \"./render/Legend.js\";\nimport type { Line } from \"./render/Line.js\";\nimport type { LinePattern } from \"./render/patterns/LinePattern.js\";\nimport type { LineSeries } from \"./../charts/xy/series/LineSeries.js\";\nimport type { LinearGradient } from \"./render/gradients/LinearGradient.js\";\nimport type { LinkedHierarchy } from \"./../charts/hierarchy/LinkedHierarchy.js\";\nimport type { LinkedHierarchyNode } from \"./../charts/hierarchy/LinkedHierarchyNode.js\";\nimport type { MACD } from \"./../charts/stock/indicators/MACD.js\";\nimport type { MACross } from \"./../charts/stock/indicators/MACross.js\";\nimport type { MapChart } from \"./../charts/map/MapChart.js\";\nimport type { MapLine } from \"./../charts/map/MapLine.js\";\nimport type { MapLineSeries } from \"./../charts/map/MapLineSeries.js\";\nimport type { MapPointSeries } from \"./../charts/map/MapPointSeries.js\";\nimport type { MapPolygon } from \"./../charts/map/MapPolygon.js\";\nimport type { MapPolygonSeries } from \"./../charts/map/MapPolygonSeries.js\";\nimport type { MapSeries } from \"./../charts/map/MapSeries.js\";\nimport type { Measure } from \"./../charts/stock/drawing/Measure.js\";\nimport type { MedianPrice } from \"./../charts/stock/indicators/MedianPrice.js\";\nimport type { Modal } from \"./util/Modal.js\";\nimport type { Momentum } from \"./../charts/stock/indicators/Momentum.js\";\nimport type { MovingAverage } from \"./../charts/stock/indicators/MovingAverage.js\";\nimport type { MovingAverageDeviation } from \"./../charts/stock/indicators/MovingAverageDeviation.js\";\nimport type { MovingAverageEnvelope } from \"./../charts/stock/indicators/MovingAverageEnvelope.js\";\nimport type { OHLC } from \"./../charts/xy/series/OHLC.js\";\nimport type { OHLCSeries } from \"./../charts/xy/series/OHLCSeries.js\";\nimport type { OnBalanceVolume } from \"./../charts/stock/indicators/OnBalanceVolume.js\";\nimport type { OverboughtOversold } from \"./../charts/stock/indicators/OverboughtOversold.js\";\nimport type { Pack } from \"./../charts/hierarchy/Pack.js\";\nimport type { PanelControls } from \"./../charts/stock/PanelControls.js\";\nimport type { ParallelChannelSeries } from \"./../charts/stock/drawing/ParallelChannelSeries.js\";\nimport type { Partition } from \"./../charts/hierarchy/Partition.js\";\nimport type { PathPattern } from \"./render/patterns/PathPattern.js\";\nimport type { Pattern } from \"./render/patterns/Pattern.js\";\nimport type { PercentChart } from \"./../charts/percent/PercentChart.js\";\nimport type { PercentSeries } from \"./../charts/percent/PercentSeries.js\";\nimport type { PeriodSelector } from \"./../charts/stock/toolbar/PeriodSelector.js\";\nimport type { PictorialStackedSeries } from \"./../charts/funnel/PictorialStackedSeries.js\";\nimport type { Picture } from \"./render/Picture.js\";\nimport type { PicturePattern } from \"./render/patterns/PicturePattern.js\";\nimport type { PieChart } from \"./../charts/pie/PieChart.js\";\nimport type { PieSeries } from \"./../charts/pie/PieSeries.js\";\nimport type { PointedRectangle } from \"./render/PointedRectangle.js\";\nimport type { Polygon } from \"./render/Polygon.js\";\nimport type { PolylineSeries } from \"./../charts/stock/drawing/PolylineSeries.js\";\nimport type { PyramidSeries } from \"./../charts/funnel/PyramidSeries.js\";\nimport type { PVT } from \"./../charts/stock/indicators/PVT.js\";\nimport type { QuadrantLineSeries } from \"./../charts/stock/drawing/QuadrantLineSeries.js\";\nimport type { RadarChart } from \"./../charts/radar/RadarChart.js\";\nimport type { RadarColumnSeries } from \"./../charts/radar/RadarColumnSeries.js\";\nimport type { RadarCursor } from \"./../charts/radar/RadarCursor.js\";\nimport type { RadarLineSeries } from \"./../charts/radar/RadarLineSeries.js\";\nimport type { RadialGradient } from \"./render/gradients/RadialGradient.js\";\nimport type { RadialLabel } from \"./render/RadialLabel.js\";\nimport type { RadialText } from \"./render/RadialText.js\";\nimport type { Rectangle } from \"./render/Rectangle.js\";\nimport type { RectanglePattern } from \"./render/patterns/RectanglePattern.js\";\nimport type { RectangleSeries } from \"./../charts/stock/drawing/RectangleSeries.js\";\nimport type { RegressionSeries } from \"./../charts/stock/drawing/RegressionSeries.js\";\nimport type { RelativeStrengthIndex } from \"./../charts/stock/indicators/RelativeStrengthIndex.js\";\nimport type { ResetControl } from \"./../charts/stock/toolbar/ResetControl.js\";\nimport type { RoundedRectangle } from \"./render/RoundedRectangle.js\";\nimport type { Sankey } from \"./../charts/flow/Sankey.js\";\nimport type { SankeyLink } from \"./../charts/flow/SankeyLink.js\";\nimport type { SankeyNodes } from \"./../charts/flow/SankeyNodes.js\";\nimport type { Scrollbar } from \"./render/Scrollbar.js\";\nimport type { SerialChart } from \"./render/SerialChart.js\";\nimport type { Serializer } from \"./../plugins/json/Serializer.js\";\nimport type { Series } from \"./render/Series.js\";\nimport type { SeriesTypeControl } from \"./../charts/stock/toolbar/SeriesTypeControl.js\";\nimport type { SettingsControl } from \"./../charts/stock/toolbar/SettingsControl.js\";\nimport type { SettingsModal } from \"./../charts/stock/SettingsModal.js\";\nimport type { SimpleLineSeries } from \"./../charts/stock/drawing/SimpleLineSeries.js\";\nimport type { Slice } from \"./render/Slice.js\";\nimport type { SliceGrouper } from \"./../plugins/sliceGrouper/SliceGrouper.js\";\nimport type { SlicedChart } from \"./../charts/funnel/SlicedChart.js\";\nimport type { Slider } from \"./render/Slider.js\";\nimport type { SmoothedRadarLineSeries } from \"./../charts/radar/SmoothedRadarLineSeries.js\";\nimport type { SmoothedXLineSeries } from \"./../charts/xy/series/SmoothedXLineSeries.js\";\nimport type { SmoothedXYLineSeries } from \"./../charts/xy/series/SmoothedXYLineSeries.js\";\nimport type { SmoothedYLineSeries } from \"./../charts/xy/series/SmoothedYLineSeries.js\";\nimport type { Sprite } from \"./render/Sprite.js\";\nimport type { SpriteResizer } from \"./render/SpriteResizer.js\";\nimport type { StandardDeviation } from \"./../charts/stock/indicators/StandardDeviation.js\";\nimport type { Star } from \"./render/Star.js\";\nimport type { StepLineSeries } from \"./../charts/xy/series/StepLineSeries.js\";\nimport type { StochasticMomentumIndex } from \"./../charts/stock/indicators/StochasticMomentumIndex.js\";\nimport type { StochasticOscillator } from \"./../charts/stock/indicators/StochasticOscillator.js\";\nimport type { StockChart } from \"./../charts/stock/StockChart.js\";\nimport type { StockControl } from \"./../charts/stock/toolbar/StockControl.js\";\nimport type { StockLegend } from \"./../charts/stock/StockLegend.js\";\nimport type { StockPanel } from \"./../charts/stock/StockPanel.js\";\nimport type { StockToolbar } from \"./../charts/stock/toolbar/StockToolbar.js\";\nimport type { Sunburst } from \"./../charts/hierarchy/Sunburst.js\";\nimport type { Text } from \"./render/Text.js\";\nimport type { Tick } from \"./render/Tick.js\";\nimport type { Tooltip } from \"./render/Tooltip.js\";\nimport type { Tree } from \"./../charts/hierarchy/Tree.js\";\nimport type { Treemap } from \"./../charts/hierarchy/Treemap.js\";\nimport type { TrendLineSeries } from \"./../charts/stock/drawing/TrendLineSeries.js\";\nimport type { Triangle } from \"./render/Triangle.js\";\nimport type { Trix } from \"./../charts/stock/indicators/Trix.js\";\nimport type { TypicalPrice } from \"./../charts/stock/indicators/TypicalPrice.js\";\nimport type { VWAP } from \"./../charts/stock/indicators/VWAP.js\";\nimport type { ValueAxis } from \"./../charts/xy/axes/ValueAxis.js\";\nimport type { Venn } from \"./../charts/venn/Venn.js\";\nimport type { VerticalLayout } from \"./render/VerticalLayout.js\";\nimport type { VerticalLineSeries } from \"./../charts/stock/drawing/VerticalLineSeries.js\";\nimport type { Volume } from \"./../charts/stock/indicators/Volume.js\";\nimport type { VolumeProfile } from \"./../charts/stock/indicators/VolumeProfile.js\";\nimport type { VoronoiTreemap } from \"./../charts/hierarchy/VoronoiTreemap.js\";\nimport type { WilliamsR } from \"./../charts/stock/indicators/WilliamsR.js\";\nimport type { WordCloud } from \"./../charts/wordcloud/WordCloud.js\";\nimport type { XYChart } from \"./../charts/xy/XYChart.js\";\nimport type { XYChartScrollbar } from \"./../charts/xy/XYChartScrollbar.js\";\nimport type { XYCursor } from \"./../charts/xy/XYCursor.js\";\nimport type { XYSeries } from \"./../charts/xy/series/XYSeries.js\";\nimport type { ZigZag } from \"./../charts/stock/indicators/ZigZag.js\";\nimport type { ZoomControl } from \"./../charts/map/ZoomControl.js\";\n\nexport interface IClasses {\n\t\"AccumulationDistribution\": AccumulationDistribution;\n\t\"AccumulativeSwingIndex\": AccumulativeSwingIndex;\n\t\"Annotator\": Annotator;\n\t\"ArcDiagram\": ArcDiagram;\n\t\"ArcDiagramLink\": ArcDiagramLink;\n\t\"ArcDiagramNodes\": ArcDiagramNodes;\n\t\"Aroon\": Aroon;\n\t\"AverageSeries\": AverageSeries;\n\t\"AwesomeOscillator\": AwesomeOscillator;\n\t\"Axis\": Axis<AxisRenderer>;\n\t\"AxisBullet\": AxisBullet;\n\t\"AxisLabel\": AxisLabel;\n\t\"AxisLabelRadial\": AxisLabelRadial;\n\t\"AxisRenderer\": AxisRenderer;\n\t\"AxisRendererCircular\": AxisRendererCircular;\n\t\"AxisRendererRadial\": AxisRendererRadial;\n\t\"AxisRendererX\": AxisRendererX;\n\t\"AxisRendererY\": AxisRendererY;\n\t\"AxisTick\": AxisTick;\n\t\"BaseColumnSeries\": BaseColumnSeries;\n\t\"BollingerBands\": BollingerBands;\n\t\"BullBearPower\": BullBearPower;\n\t\"AccelerationBands\": AccelerationBands;\n\t\"BreadcrumbBar\": BreadcrumbBar;\n\t\"Bullet\": Bullet;\n\t\"Button\": Button;\n\t\"CalloutSeries\": CalloutSeries;\n\t\"Candlestick\": Candlestick;\n\t\"CandlestickSeries\": CandlestickSeries;\n\t\"CategoryAxis\": CategoryAxis<AxisRenderer>;\n\t\"CategoryDateAxis\": CategoryDateAxis<AxisRenderer>;\n\t\"ChaikinMoneyFlow\": ChaikinMoneyFlow;\n\t\"ChaikinOscillator\": ChaikinOscillator;\n\t\"Chart\": Chart;\n\t\"ChartIndicator\": ChartIndicator;\n\t\"Chord\": Chord;\n\t\"ChordDirected\": ChordDirected;\n\t\"ChordLink\": ChordLink;\n\t\"ChordLinkDirected\": ChordLinkDirected;\n\t\"ChordNodes\": ChordNodes;\n\t\"ChordNonRibbon\": ChordNonRibbon;\n\t\"Circle\": Circle;\n\t\"CirclePattern\": CirclePattern;\n\t\"ClockHand\": ClockHand;\n\t\"ClusteredPointSeries\": ClusteredPointSeries;\n\t\"ColorControl\": ColorControl;\n\t\"ColorSet\": ColorSet;\n\t\"ColumnSeries\": ColumnSeries;\n\t\"CommodityChannelIndex\": CommodityChannelIndex;\n\t\"ComparisonControl\": ComparisonControl;\n\t\"Component\": Component;\n\t\"Container\": Container;\n\t\"DataSaveControl\": DataSaveControl;\n\t\"DateAxis\": DateAxis<AxisRenderer>;\n\t\"DateRangeSelector\": DateRangeSelector;\n\t\"DisparityIndex\": DisparityIndex;\n\t\"DoodleSeries\": DoodleSeries;\n\t\"DrawingControl\": DrawingControl;\n\t\"DrawingSeries\": DrawingSeries;\n\t\"DrawingToolControl\": DrawingToolControl;\n\t\"Dropdown\": Dropdown;\n\t\"DropdownColors\": DropdownColors;\n\t\"DropdownControl\": DropdownControl;\n\t\"DropdownList\": DropdownList;\n\t\"DropdownListControl\": DropdownListControl;\n\t\"DurationAxis\": DurationAxis<AxisRenderer>;\n\t\"Ellipse\": Ellipse;\n\t\"EllipseSeries\": EllipseSeries;\n\t\"Entity\": Entity;\n\t\"Exporting\": Exporting;\n\t\"ExportingMenu\": ExportingMenu;\n\t\"FibonacciSeries\": FibonacciSeries;\n\t\"FibonacciTimezoneSeries\": FibonacciTimezoneSeries;\n\t\"Flow\": Flow;\n\t\"FlowLink\": FlowLink;\n\t\"FlowNode\": FlowNode;\n\t\"FlowNodes\": FlowNodes;\n\t\"ForceDirected\": ForceDirected;\n\t\"FunnelSeries\": FunnelSeries;\n\t\"FunnelSlice\": FunnelSlice;\n\t\"GaplessDateAxis\": GaplessDateAxis<AxisRenderer>;\n\t\"Gradient\": Gradient;\n\t\"GrainPattern\": GrainPattern;\n\t\"Graphics\": Graphics;\n\t\"GraticuleSeries\": GraticuleSeries;\n\t\"Grid\": Grid;\n\t\"GridLayout\": GridLayout;\n\t\"HeatLegend\": HeatLegend;\n\t\"Hierarchy\": Hierarchy;\n\t\"HierarchyLink\": HierarchyLink;\n\t\"HierarchyNode\": HierarchyNode;\n\t\"HorizontalLayout\": HorizontalLayout;\n\t\"HorizontalLineSeries\": HorizontalLineSeries;\n\t\"HorizontalRaySeries\": HorizontalRaySeries;\n\t\"IconControl\": IconControl;\n\t\"IconSeries\": IconSeries;\n\t\"Indicator\": Indicator;\n\t\"IndicatorControl\": IndicatorControl;\n\t\"InterfaceColors\": InterfaceColors;\n\t\"IntervalControl\": IntervalControl;\n\t\"Label\": Label;\n\t\"LabelSeries\": LabelSeries;\n\t\"Layout\": Layout;\n\t\"Legend\": Legend;\n\t\"Line\": Line;\n\t\"LinePattern\": LinePattern;\n\t\"LineSeries\": LineSeries;\n\t\"LinearGradient\": LinearGradient;\n\t\"LinkedHierarchy\": LinkedHierarchy;\n\t\"LinkedHierarchyNode\": LinkedHierarchyNode;\n\t\"MACD\": MACD;\n\t\"MACross\": MACross;\n\t\"MapChart\": MapChart;\n\t\"MapLine\": MapLine;\n\t\"MapLineSeries\": MapLineSeries;\n\t\"MapPointSeries\": MapPointSeries;\n\t\"MapPolygon\": MapPolygon;\n\t\"MapPolygonSeries\": MapPolygonSeries;\n\t\"MapSeries\": MapSeries;\n\t\"Measure\": Measure;\n\t\"MedianPrice\": MedianPrice;\n\t\"Modal\": Modal;\n\t\"Momentum\": Momentum;\n\t\"MovingAverage\": MovingAverage;\n\t\"MovingAverageDeviation\": MovingAverageDeviation;\n\t\"MovingAverageEnvelope\": MovingAverageEnvelope;\n\t\"OHLC\": OHLC;\n\t\"OHLCSeries\": OHLCSeries;\n\t\"OnBalanceVolume\": OnBalanceVolume;\n\t\"OverboughtOversold\": OverboughtOversold;\n\t\"Pack\": Pack;\n\t\"PanelControls\": PanelControls;\n\t\"ParallelChannelSeries\": ParallelChannelSeries;\n\t\"Partition\": Partition;\n\t\"PathPattern\": PathPattern;\n\t\"Pattern\": Pattern;\n\t\"PercentChart\": PercentChart;\n\t\"PercentSeries\": PercentSeries;\n\t\"PeriodSelector\": PeriodSelector;\n\t\"PictorialStackedSeries\": PictorialStackedSeries;\n\t\"Picture\": Picture;\n\t\"PicturePattern\": PicturePattern;\n\t\"PieChart\": PieChart;\n\t\"PieSeries\": PieSeries;\n\t\"PointedRectangle\": PointedRectangle;\n\t\"Polygon\": Polygon;\n\t\"PolylineSeries\": PolylineSeries;\n\t\"PyramidSeries\": PyramidSeries;\n\t\"PVT\": PVT;\n\t\"QuadrantLineSeries\": QuadrantLineSeries;\n\t\"RadarChart\": RadarChart;\n\t\"RadarColumnSeries\": RadarColumnSeries;\n\t\"RadarCursor\": RadarCursor;\n\t\"RadarLineSeries\": RadarLineSeries;\n\t\"RadialGradient\": RadialGradient;\n\t\"RadialLabel\": RadialLabel;\n\t\"RadialText\": RadialText;\n\t\"Rectangle\": Rectangle;\n\t\"RectanglePattern\": RectanglePattern;\n\t\"RectangleSeries\": RectangleSeries;\n\t\"RegressionSeries\": RegressionSeries;\n\t\"RelativeStrengthIndex\": RelativeStrengthIndex;\n\t\"ResetControl\": ResetControl;\n\t\"RoundedRectangle\": RoundedRectangle;\n\t\"Sankey\": Sankey;\n\t\"SankeyLink\": SankeyLink;\n\t\"SankeyNodes\": SankeyNodes;\n\t\"Scrollbar\": Scrollbar;\n\t\"SerialChart\": SerialChart;\n\t\"Serializer\": Serializer;\n\t\"Series\": Series;\n\t\"SeriesTypeControl\": SeriesTypeControl;\n\t\"SettingsControl\": SettingsControl;\n\t\"SettingsModal\": SettingsModal;\n\t\"SimpleLineSeries\": SimpleLineSeries;\n\t\"Slice\": Slice;\n\t\"SliceGrouper\": SliceGrouper;\n\t\"SlicedChart\": SlicedChart;\n\t\"Slider\": Slider;\n\t\"SmoothedRadarLineSeries\": SmoothedRadarLineSeries;\n\t\"SmoothedXLineSeries\": SmoothedXLineSeries;\n\t\"SmoothedXYLineSeries\": SmoothedXYLineSeries;\n\t\"SmoothedYLineSeries\": SmoothedYLineSeries;\n\t\"Sprite\": Sprite;\n\t\"SpriteResizer\": SpriteResizer;\n\t\"StandardDeviation\": StandardDeviation;\n\t\"Star\": Star;\n\t\"StepLineSeries\": StepLineSeries;\n\t\"StochasticMomentumIndex\": StochasticMomentumIndex;\n\t\"StochasticOscillator\": StochasticOscillator;\n\t\"StockChart\": StockChart;\n\t\"StockControl\": StockControl;\n\t\"StockLegend\": StockLegend;\n\t\"StockPanel\": StockPanel;\n\t\"StockToolbar\": StockToolbar;\n\t\"Sunburst\": Sunburst;\n\t\"Text\": Text;\n\t\"Tick\": Tick;\n\t\"Tooltip\": Tooltip;\n\t\"Tree\": Tree;\n\t\"Treemap\": Treemap;\n\t\"TrendLineSeries\": TrendLineSeries;\n\t\"Triangle\": Triangle;\n\t\"Trix\": Trix;\n\t\"TypicalPrice\": TypicalPrice;\n\t\"VWAP\": VWAP;\n\t\"ValueAxis\": ValueAxis<AxisRenderer>;\n\t\"Venn\": Venn;\n\t\"VerticalLayout\": VerticalLayout;\n\t\"VerticalLineSeries\": VerticalLineSeries;\n\t\"Volume\": Volume;\n\t\"VolumeProfile\": VolumeProfile;\n\t\"VoronoiTreemap\": VoronoiTreemap;\n\t\"WilliamsR\": WilliamsR;\n\t\"WordCloud\": WordCloud;\n\t\"XYChart\": XYChart;\n\t\"XYChartScrollbar\": XYChartScrollbar;\n\t\"XYCursor\": XYCursor;\n\t\"XYSeries\": XYSeries;\n\t\"ZigZag\": ZigZag;\n\t\"ZoomControl\": ZoomControl;\n}\n"]}
@@ -10,7 +10,7 @@ export class Registry {
10
10
  enumerable: true,
11
11
  configurable: true,
12
12
  writable: true,
13
- value: "5.7.4"
13
+ value: "5.7.5"
14
14
  });
15
15
  /**
16
16
  * List of applied licenses.
@@ -1 +1 @@
1
- {"version":3,"file":"Registry.js","sourceRoot":"","sources":["../../../../src/.internal/core/Registry.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,OAAO,QAAQ;IAArB;QACC;;WAEG;QACH;;;;mBAA2B,OAAO;WAAC;QAEnC;;;WAGG;QACH;;;;mBAAqB,EAAE;WAAC;QAExB;;WAEG;QACH;;;;mBAAyC,EAAE;WAAC;QAE5C;;WAEG;QACH;;;;mBAAsB,EAAE;WAAC;IAE1B,CAAC;CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;AAEvC;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,UAAU,CAAC,OAAe;IACzC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC;AAGD;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACrC,IAAI,IAAI,CAAC;IACT,OAAM,IAAI,GAAG,QAAQ,CAAC,YAAY,CAAC,GAAG,EAAE,EAAE;QACzC,IAAI,CAAC,OAAO,EAAE,CAAC;KACf;AACF,CAAC","sourcesContent":["\r\n/**\r\n * @ignore\r\n */\r\nexport class Registry {\r\n\t/**\r\n\t * Currently running version of amCharts.\r\n\t */\r\n\treadonly version: string = \"5.7.4\";\r\n\r\n\t/**\r\n\t * List of applied licenses.\r\n\t * @ignore\r\n\t */\r\n\tlicenses: String[] = [];\r\n\r\n\t/**\r\n\t * Entities that have their `id` setting set.\r\n\t */\r\n\tentitiesById: { [index: string]: any } = {};\r\n\r\n\t/**\r\n\t * All created [[Root]] elements.\r\n\t */\r\n\trootElements: any[] = [];\r\n\r\n}\r\n\r\n/**\r\n\t* @ignore\r\n */\r\nexport const registry = new Registry();\r\n\r\n/**\r\n * Adds a license, e.g.:\r\n *\r\n * ```TypeScript\r\n * am5.addLicense(\"xxxxxxxx\");\r\n * ```\r\n * ```JavaScript\r\n * am5.addLicense(\"xxxxxxxx\");\r\n * ```\r\n *\r\n * Multiple licenses can be added to cover for multiple products.\r\n *\r\n * @param license License key\r\n */\r\nexport function addLicense(license: string): void {\r\n\tregistry.licenses.push(license);\r\n}\r\n\r\n\r\n/**\r\n * Disposes all [[Root]] elements.\r\n */\r\nexport function disposeAllRootElements(): void {\r\n\tlet root;\r\n\twhile(root = registry.rootElements.pop()) {\r\n\t\troot.dispose();\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"Registry.js","sourceRoot":"","sources":["../../../../src/.internal/core/Registry.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,OAAO,QAAQ;IAArB;QACC;;WAEG;QACH;;;;mBAA2B,OAAO;WAAC;QAEnC;;;WAGG;QACH;;;;mBAAqB,EAAE;WAAC;QAExB;;WAEG;QACH;;;;mBAAyC,EAAE;WAAC;QAE5C;;WAEG;QACH;;;;mBAAsB,EAAE;WAAC;IAE1B,CAAC;CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;AAEvC;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,UAAU,CAAC,OAAe;IACzC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC;AAGD;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACrC,IAAI,IAAI,CAAC;IACT,OAAM,IAAI,GAAG,QAAQ,CAAC,YAAY,CAAC,GAAG,EAAE,EAAE;QACzC,IAAI,CAAC,OAAO,EAAE,CAAC;KACf;AACF,CAAC","sourcesContent":["\r\n/**\r\n * @ignore\r\n */\r\nexport class Registry {\r\n\t/**\r\n\t * Currently running version of amCharts.\r\n\t */\r\n\treadonly version: string = \"5.7.5\";\r\n\r\n\t/**\r\n\t * List of applied licenses.\r\n\t * @ignore\r\n\t */\r\n\tlicenses: String[] = [];\r\n\r\n\t/**\r\n\t * Entities that have their `id` setting set.\r\n\t */\r\n\tentitiesById: { [index: string]: any } = {};\r\n\r\n\t/**\r\n\t * All created [[Root]] elements.\r\n\t */\r\n\trootElements: any[] = [];\r\n\r\n}\r\n\r\n/**\r\n\t* @ignore\r\n */\r\nexport const registry = new Registry();\r\n\r\n/**\r\n * Adds a license, e.g.:\r\n *\r\n * ```TypeScript\r\n * am5.addLicense(\"xxxxxxxx\");\r\n * ```\r\n * ```JavaScript\r\n * am5.addLicense(\"xxxxxxxx\");\r\n * ```\r\n *\r\n * Multiple licenses can be added to cover for multiple products.\r\n *\r\n * @param license License key\r\n */\r\nexport function addLicense(license: string): void {\r\n\tregistry.licenses.push(license);\r\n}\r\n\r\n\r\n/**\r\n * Disposes all [[Root]] elements.\r\n */\r\nexport function disposeAllRootElements(): void {\r\n\tlet root;\r\n\twhile(root = registry.rootElements.pop()) {\r\n\t\troot.dispose();\r\n\t}\r\n}\r\n"]}
@@ -391,14 +391,14 @@ export class StyleRule extends DisposerClass {
391
391
  this._root = getStylesheet(element, nonce);
392
392
  try {
393
393
  this._rule = appendStylesheet(this._root, selector);
394
- $object.each(styles, (key, value) => {
395
- this.setStyle(key, value);
396
- });
397
394
  }
398
395
  catch (err) {
399
396
  // Create an empty rule on failed selectors
400
- this._rule = new CSSStyleRule();
397
+ this._rule = appendStylesheet(this._root, ":not(*)");
401
398
  }
399
+ $object.each(styles, (key, value) => {
400
+ this.setStyle(key, value);
401
+ });
402
402
  }
403
403
  /**
404
404
  * A CSS selector text.
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../../../src/.internal/core/util/Utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,UAAU,CAAC;AAGpC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAa,MAAM,YAAY,CAAC;AAEhE;;;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ACpJ,IAAI,KAAK,GAAG,gBAAgB,CAAC;IAC7B,IAAI,IAAI,GAAG,eAAe,CAAC;IAC3B,IAAI,OAAO,CAAC,eAAe,CAAC,EAAE;QAC7B,KAAK,GAAG,eAAe,CAAC;QACxB,IAAI,GAAG,gBAAgB,CAAC;KACxB;IACD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,KAA2B,EAAE,KAAe;IACrE,IAAI,CAAC,KAAK,EAAE;QACX,KAAK,GAAG,EAAE,CAAC;KACX;IACD,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IACtC,CAAC,CAAC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,CAAU,EAAE,CAAW;IACjD,IAAI,CAAC,CAAC,EAAE;QACP,OAAO,KAAK,CAAC;KACb;IACD,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,EAAE;QACrB,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,EAAE;QACvB,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,EAAE;QACnB,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,EAAE;QACzB,OAAO,KAAK,CAAA;KACZ;IACD,OAAO,IAAI,CAAC;AACb,CAAC","sourcesContent":["import type { Percent } from \"./Percent\";\nimport type { IPointerEvent } from \"../render/backend/Renderer\";\nimport type { Sprite } from \"../render/Sprite\";\n\nimport * as $type from \"./Type\";\nimport * as $array from \"./Array\";\nimport * as $object from \"./Object\";\nimport type { IBounds } from \"./IBounds\";\n\nimport { Disposer, DisposerClass, IDisposer } from \"./Disposer\";\n\n/**\n * ============================================================================\n * DOM FUNCTIONS\n * ============================================================================\n * @hidden\n */\n\n/**\n * Execute a function when DOM is ready.\n *\n * @since 5.0.2\n * @param f Callback\n */\nexport function ready(f: () => void): void {\n\tif (document.readyState !== \"loading\") {\n\t\tf();\n\n\t} else {\n\t\tconst listener = () => {\n\t\t\tif (document.readyState !== \"loading\") {\n\t\t\t\tdocument.removeEventListener(\"readystatechange\", listener);\n\t\t\t\tf();\n\t\t\t}\n\t\t};\n\n\t\tdocument.addEventListener(\"readystatechange\", listener);\n\t}\n}\n\n/**\n * Removes a DOM element.\n * @param el Target element\n */\nexport function removeElement(el: HTMLElement): void {\n\tif (el.parentNode) {\n\t\tel.parentNode.removeChild(el);\n\t}\n}\n\n/**\n * Function that adds a disposable event listener directly to a DOM element.\n *\n * @ignore Exclude from docs\n * @param dom A DOM element to add event to\n * @param type Event type\n * @param listener Event listener\n * @returns Disposable event\n */\nexport function addEventListener<E extends Event>(dom: EventTarget, type: string, listener: (event: E) => void, options?: any): IDisposer {\n\t//@todo proper type check for options: EventListenerOptions | boolean (TS for some reason gives error on passive parameter)\n\tdom.addEventListener(type, <EventListener>listener, options || false);\n\n\treturn new Disposer(() => {\n\t\tdom.removeEventListener(type, <EventListener>listener, options || false);\n\t});\n}\n\n/**\n * Function that adds an event listener which is triggered when the browser's zoom changes.\n *\n * @param listener Event listener\n * @returns Disposable event\n */\nexport function onZoom(listener: () => void): IDisposer {\n\t// TODO use matchMedia instead ?\n\treturn addEventListener(window, \"resize\", (_ev) => {\n\t\tlistener();\n\t});\n}\n\n/**\n * @ignore\n */\nexport function supports(cap: \"touchevents\" | \"pointerevents\" | \"mouseevents\" | \"wheelevents\" | \"keyboardevents\"): boolean {\n\tswitch (cap) {\n\t\tcase \"touchevents\":\n\t\t\t//return \"ontouchstart\" in document.documentElement;\n\t\t\treturn window.hasOwnProperty(\"TouchEvent\");\n\n\t\tcase \"pointerevents\":\n\t\t\treturn window.hasOwnProperty(\"PointerEvent\");\n\n\t\tcase \"mouseevents\":\n\t\t\treturn window.hasOwnProperty(\"MouseEvent\");\n\n\t\tcase \"wheelevents\":\n\t\t\treturn window.hasOwnProperty(\"WheelEvent\");\n\n\t\tcase \"keyboardevents\":\n\t\t\treturn window.hasOwnProperty(\"KeyboardEvent\");\n\t}\n\treturn false;\n}\n\n/**\n * @ignore\n */\nexport function getPointerId(event: IPointerEvent) {\n\tlet id = (<any>event).pointerId || 0;\n\treturn id;\n}\n\n/**\n * Removes focus from any element by shifting focus to body.\n *\n * @ignore\n */\nexport function blur(): void {\n\tif (document.activeElement && document.activeElement != document.body) {\n\t\tif ((<any>document.activeElement).blur) {\n\t\t\t(<any>document.activeElement).blur();\n\t\t}\n\t\telse {\n\t\t\tlet input = document.createElement(\"button\");\n\t\t\tinput.style.position = \"fixed\";\n\t\t\tinput.style.top = \"0px\";\n\t\t\tinput.style.left = \"-10000px\";\n\t\t\tdocument.body.appendChild(input);\n\t\t\tinput.focus();\n\t\t\tinput.blur();\n\t\t\tdocument.body.removeChild(input);\n\t\t}\n\t}\n}\n\n/**\n * Focuses element.\n *\n * @ignore\n */\nexport function focus(el: HTMLElement): void {\n\tif (el) {\n\t\tel.focus();\n\t}\n}\n\n/**\n * @ignore\n */\nexport function getRendererEvent(key: string): string {\n\tif (supports(\"pointerevents\")) {\n\t\treturn key;\n\t}\n\telse if (supports(\"touchevents\")) {\n\t\tswitch (key) {\n\t\t\tcase \"pointerover\": return \"touchstart\";\n\t\t\tcase \"pointerout\": return \"touchend\";\n\t\t\tcase \"pointerleave\": return \"touchend\";\n\t\t\tcase \"pointerdown\": return \"touchstart\";\n\t\t\tcase \"pointermove\": return \"touchmove\";\n\t\t\tcase \"pointerup\": return \"touchend\";\n\t\t\tcase \"click\": return \"click\";\n\t\t\tcase \"dblclick\": return \"dblclick\";\n\n\t\t}\n\t}\n\telse if (supports(\"mouseevents\")) {\n\t\tswitch (key) {\n\t\t\tcase \"pointerover\": return \"mouseover\";\n\t\t\tcase \"pointerout\": return \"mouseout\";\n\t\t\tcase \"pointerleave\": return \"mouseleave\";\n\t\t\tcase \"pointerdown\": return \"mousedown\";\n\t\t\tcase \"pointermove\": return \"mousemove\";\n\t\t\tcase \"pointerup\": return \"mouseup\";\n\t\t\tcase \"click\": return \"click\";\n\t\t\tcase \"dblclick\": return \"dblclick\";\n\n\t\t}\n\t}\n\treturn key;\n}\n\n/**\n * Determines if pointer event originated from a touch pointer or mouse.\n *\n * @param ev Original event\n * @return Touch pointer?\n */\nexport function isTouchEvent(ev: MouseEvent | Touch): boolean {\n\tif (typeof Touch !== \"undefined\" && ev instanceof Touch) {\n\t\treturn true;\n\t}\n\telse if (typeof PointerEvent !== \"undefined\" && ev instanceof PointerEvent && (<any>ev).pointerType != null) {\n\t\tswitch ((<any>ev).pointerType) {\n\t\t\tcase \"touch\":\n\t\t\tcase \"pen\":\n\t\t\tcase 2:\n\t\t\t\treturn true;\n\t\t\tcase \"mouse\":\n\t\t\tcase 4:\n\t\t\t\treturn false;\n\t\t\tdefault:\n\t\t\t\treturn !(ev instanceof MouseEvent);\n\t\t}\n\t}\n\telse if ((<any>ev).type != null) {\n\t\tif ((<any>ev).type.match(/^mouse/)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n}\n\n/**\n * Sets style property on DOM element.\n *\n * @ignore Exclude from docs\n */\nexport function setStyle(dom: HTMLElement, property: string, value: string | undefined): void {\n\t(<any>dom.style)[property] = value;\n}\n\nexport function getStyle(dom: HTMLElement, property: string): string | undefined {\n\treturn (<any>dom.style)[property];\n}\n\n/**\n * Gets the target of the event, works for shadow DOM too.\n */\nexport function getEventTarget(event: Event | Touch): Node | null {\n\tif ((event as any).composedPath) {\n\t\tconst path = (event as Event).composedPath();\n\n\t\tif (path.length === 0) {\n\t\t\treturn null;\n\n\t\t} else {\n\t\t\treturn path[0] as Node;\n\t\t}\n\n\t} else {\n\t\treturn event.target as Node | null;\n\t}\n}\n\n/**\n * Checks of element `a` contains element `b`.\n *\n * @param a Aleged ascendant\n * @param b Aleged descendant\n * @return Contains?\n */\nexport function contains(a: Element, b: Element): boolean {\n\tlet cursor: Node = b;\n\n\twhile (true) {\n\t\tif (a === cursor) {\n\t\t\treturn true;\n\n\t\t} else if (cursor.parentNode === null) {\n\t\t\t// TODO better ShadowRoot detection\n\t\t\tif ((<ShadowRoot>cursor).host == null) {\n\t\t\t\treturn false;\n\n\t\t\t} else {\n\t\t\t\tcursor = (<ShadowRoot>cursor).host;\n\t\t\t}\n\n\t\t} else {\n\t\t\tcursor = cursor.parentNode;\n\t\t}\n\t}\n}\n\n/**\n * Returns `true` if pointer event originated on an element within Root.\n *\n * @since 5.2.8\n * @param event Event\n * @param target Target element\n */\nexport function isLocalEvent(event: IPointerEvent, target: Sprite) {\n\treturn event.target && contains(target.root.dom, <Element>event.target);\n}\n\n/**\n * Disables or enables interactivity of a DOM element.\n *\n * @param target Target element\n * @param interactive Interactive?\n */\nexport function setInteractive(target: HTMLElement, interactive: boolean): void {\n\tif (interactive) {\n\t\ttarget.style.pointerEvents = \"auto\";\n\t}\n\telse {\n\t\ttarget.style.pointerEvents = \"none\";\n\t}\n}\n\n/**\n * Returns the shadow root of the element or null\n *\n * @param a Node\n * @return Root\n */\nexport function getShadowRoot(a: Node): ShadowRoot | null {\n\tlet cursor: Node = a;\n\n\twhile (true) {\n\t\tif (cursor.parentNode === null) {\n\t\t\t// TODO better ShadowRoot detection\n\t\t\tif ((<ShadowRoot>cursor).host != null) {\n\t\t\t\treturn <ShadowRoot>cursor;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t} else {\n\t\t\tcursor = cursor.parentNode;\n\t\t}\n\t}\n}\n\n/**\n * [rootStylesheet description]\n *\n * @ignore Exclude from docs\n * @todo Description\n */\nlet rootStylesheet: $type.Optional<CSSStyleSheet>;\n\n/**\n * @ignore Exclude from docs\n */\nfunction createStylesheet(element: ShadowRoot | null, text: string, nonce: string = \"\"): HTMLStyleElement {\n\t// TODO use createElementNS ?\n\tconst e = document.createElement(\"style\");\n\te.type = \"text/css\";\n\tif (nonce != \"\") {\n\t\te.setAttribute(\"nonce\", nonce)\n\t}\n\te.textContent = text;\n\n\tif (element === null) {\n\t\tdocument.head.appendChild(e);\n\t} else {\n\t\telement.appendChild(e);\n\t}\n\n\treturn e;\n}\n\n/**\n * [getStylesheet description]\n *\n * @ignore Exclude from docs\n * @todo Description\n * @return [description]\n */\nfunction getStylesheet(element: ShadowRoot | null, nonce: string = \"\"): CSSStyleSheet {\n\tif (element === null) {\n\t\tif (rootStylesheet == null) {\n\t\t\t// TODO use createElementNS ?\n\t\t\tconst e = document.createElement(\"style\");\n\t\t\te.type = \"text/css\";\n\t\t\tif (nonce != \"\") {\n\t\t\t\te.setAttribute(\"nonce\", nonce)\n\t\t\t}\n\t\t\tdocument.head.appendChild(e);\n\t\t\trootStylesheet = e.sheet as CSSStyleSheet;\n\t\t}\n\n\t\treturn rootStylesheet;\n\n\t} else {\n\t\t// TODO use createElementNS ?\n\t\tconst e = document.createElement(\"style\");\n\t\te.type = \"text/css\";\n\t\tif (nonce != \"\") {\n\t\t\te.setAttribute(\"nonce\", nonce)\n\t\t}\n\t\telement.appendChild(e);\n\t\treturn e.sheet as CSSStyleSheet;\n\t}\n}\n\n/**\n * [makeStylesheet description]\n *\n * @ignore Exclude from docs\n * @todo Description\n * @param selector [description]\n * @return [description]\n */\nfunction appendStylesheet(root: CSSStyleSheet, selector: string): CSSStyleRule {\n\tconst index = root.cssRules.length;\n\troot.insertRule(selector + \"{}\", index);\n\n\treturn root.cssRules[index] as CSSStyleRule;\n}\n\n/**\n * Defines a class for a CSS rule.\n *\n * Can be used to dynamically add CSS to the document.\n */\nexport class StyleRule extends DisposerClass {\n\tprivate _root: CSSStyleSheet;\n\n\t/**\n\t * CSS rule.\n\t */\n\tprivate _rule: CSSStyleRule;\n\n\t/**\n\t * A CSS selector text.\n\t *\n\t * E.g.: `.myClass p`\n\t *\n\t * @param selector CSS selector\n\t */\n\tpublic set selector(selector: string) {\n\t\tthis._rule.selectorText = selector;\n\t}\n\n\t/**\n\t * @return CSS selector\n\t */\n\tpublic get selector(): string {\n\t\treturn this._rule.selectorText;\n\t}\n\n\t/**\n\t * Constructor.\n\t *\n\t * @param selector CSS selector\n\t * @param styles An object of style attribute - value pairs\n\t */\n\tconstructor(element: ShadowRoot | null, selector: string, styles: { [name: string]: string }, nonce: string = \"\") {\n\t\tsuper();\n\n\t\tthis._root = getStylesheet(element, nonce);\n\n\t\ttry {\n\t\t\tthis._rule = appendStylesheet(this._root, selector);\n\n\t\t\t$object.each(styles, (key, value) => {\n\t\t\t\tthis.setStyle(<string>key, value);\n\t\t\t});\n\t\t}\n\t\tcatch (err) {\n\t\t\t// Create an empty rule on failed selectors\n\t\t\tthis._rule = new CSSStyleRule();\n\t\t}\n\t}\n\n\t// TODO test this\n\tprotected _dispose(): void {\n\t\t// TODO a bit hacky\n\t\tconst index = $array.indexOf(this._root.cssRules, this._rule);\n\n\t\tif (index === -1) {\n\t\t\tthrow new Error(\"Could not dispose StyleRule\");\n\n\t\t} else {\n\t\t\t// TODO if it's empty remove it from the DOM ?\n\t\t\tthis._root.deleteRule(index);\n\t\t}\n\t}\n\n\t/**\n\t * Sets the same style properties with browser-specific prefixes.\n\t *\n\t * @param name Attribute name\n\t * @param value Attribute value\n\t */\n\tprivate _setVendorPrefixName(name: string, value: string): void {\n\t\tconst style = this._rule.style;\n\t\tstyle.setProperty(\"-webkit-\" + name, value, \"\");\n\t\tstyle.setProperty(\"-moz-\" + name, value, \"\");\n\t\tstyle.setProperty(\"-ms-\" + name, value, \"\");\n\t\tstyle.setProperty(\"-o-\" + name, value, \"\");\n\t\tstyle.setProperty(name, value, \"\");\n\t}\n\n\t/**\n\t * Sets a value for specific style attribute.\n\t *\n\t * @param name Attribute\n\t * @param value Value\n\t */\n\tpublic setStyle(name: string, value: string): void {\n\t\tif (name === \"transition\") {\n\t\t\tthis._setVendorPrefixName(name, value);\n\n\t\t} else {\n\t\t\tthis._rule.style.setProperty(name, value, \"\");\n\t\t}\n\t}\n}\n\n/**\n * Defines a class for an entire CSS style sheet.\n *\n * Can be used to dynamically add CSS to the document.\n */\nexport class StyleSheet extends DisposerClass {\n\tprivate _element: HTMLStyleElement;\n\n\t/**\n\t * Constructor.\n\t *\n\t * @param text CSS stylesheet\n\t */\n\tconstructor(element: ShadowRoot | null, text: string, nonce: string = \"\") {\n\t\tsuper();\n\t\tthis._element = createStylesheet(element, text, nonce);\n\t}\n\n\tprotected _dispose(): void {\n\t\tif (this._element.parentNode) {\n\t\t\tthis._element.parentNode.removeChild(this._element);\n\t\t}\n\t}\n}\n\n\n/**\n * Adds a class name to an HTML or SVG element.\n *\n * @ignore Exclude from docs\n * @param element Element\n * @param className Class name to add\n */\nexport function addClass(element: HTMLElement | SVGElement, className: string): void {\n\tif (!element) {\n\t\treturn;\n\t}\n\tif (element.classList) {\n\t\tconst classes = className.split(\" \");\n\t\t$array.each(classes, (name) => {\n\t\t\telement.classList.add(name);\n\t\t});\n\t}\n\telse {\n\t\tlet currentClassName = element.getAttribute(\"class\");\n\t\tif (currentClassName) {\n\t\t\telement.setAttribute(\"class\", currentClassName.split(\" \").filter((item) => {\n\t\t\t\treturn item !== className;\n\t\t\t}).join(\" \") + \" \" + className);\n\t\t}\n\t\telse {\n\t\t\telement.setAttribute(\"class\", className);\n\t\t}\n\t}\n}\n\n/**\n * Removes a class name from an HTML or SVG element.\n *\n * @ignore Exclude from docs\n * @param element Element\n * @param className Class name to add\n */\nexport function removeClass(element: HTMLElement, className: string): void {\n\tif (!element) {\n\t\treturn;\n\t}\n\tif (element.classList) {\n\t\telement.classList.remove(className);\n\t}\n\telse {\n\t\tlet currentClassName = element.getAttribute(\"class\");\n\t\tif (currentClassName) {\n\t\t\telement.setAttribute(\"class\", currentClassName.split(\" \").filter((item) => {\n\t\t\t\treturn item !== className;\n\t\t\t}).join(\" \"));\n\t\t}\n\t}\n}\n\n// /**\n// * Applies a set of styles to an element. Stores the original styles so they\n// * can be restored later.\n// *\n// * @ignore\n// * @param io Element\n// */\n// export function prepElementForDrag(dom: HTMLElement): void {\n\n// \t// @todo: save current values\n\n// \t// Define possible props\n// \tlet props = [\n// \t\t\"touchAction\", \"webkitTouchAction\", \"MozTouchAction\", \"MSTouchAction\", \"msTouchAction\", \"oTouchAction\",\n// \t\t\"userSelect\", \"webkitUserSelect\", \"MozUserSelect\", \"MSUserSelect\", \"msUserSelect\", \"oUserSelect\",\n// \t\t\"touchSelect\", \"webkitTouchSelect\", \"MozTouchSelect\", \"MSTouchSelect\", \"msTouchSelect\", \"oTouchSelect\",\n// \t\t\"touchCallout\", \"webkitTouchCallout\", \"MozTouchCallout\", \"MSTouchCallout\", \"msTouchCallout\", \"oTouchCallout\",\n// \t\t\"contentZooming\", \"webkitContentZooming\", \"MozContentZooming\", \"MSContentZooming\", \"msContentZooming\", \"oContentZooming\",\n// \t\t\"userDrag\", \"webkitUserDrag\", \"MozUserDrag\", \"MSUserDrag\", \"msUserDrag\", \"oUserDrag\"\n// \t];\n// \tfor (let i = 0; i < props.length; i++) {\n// \t\tif (props[i] in dom.style) {\n// \t\t\tsetStyle(dom, props[i], \"none\");\n// \t\t}\n// \t}\n\n// \t// Remove iOS-specific selection;\n// \tsetStyle(dom, \"tapHighlightColor\", \"rgba(0, 0, 0, 0)\");\n\n// }\n\n// /**\n// * Restores replaced styles\n// *\n// * @ignore\n// * @param io Element\n// */\n// export function unprepElementForDrag(dom: HTMLElement): void {\n\n// \t// Define possible props\n// \tlet props = [\n// \t\t\"touchAction\", \"webkitTouchAction\", \"MozTouchAction\", \"MSTouchAction\", \"msTouchAction\", \"oTouchAction\",\n// \t\t\"userSelect\", \"webkitUserSelect\", \"MozUserSelect\", \"MSUserSelect\", \"msUserSelect\", \"oUserSelect\",\n// \t\t\"touchSelect\", \"webkitTouchSelect\", \"MozTouchSelect\", \"MSTouchSelect\", \"msTouchSelect\", \"oTouchSelect\",\n// \t\t\"touchCallout\", \"webkitTouchCallout\", \"MozTouchCallout\", \"MSTouchCallout\", \"msTouchCallout\", \"oTouchCallout\",\n// \t\t\"contentZooming\", \"webkitContentZooming\", \"MozContentZooming\", \"MSContentZooming\", \"msContentZooming\", \"oContentZooming\",\n// \t\t\"userDrag\", \"webkitUserDrag\", \"MozUserDrag\", \"MSUserDrag\", \"msUserDrag\", \"oUserDrag\"\n// \t];\n// \tfor (let i = 0; i < props.length; i++) {\n// \t\tif (props[i] in dom.style) {\n// \t\t\tsetStyle(dom, props[i], \"\");\n// \t\t}\n// \t}\n\n// \t// Remove iOS-specific selection;\n// \tsetStyle(dom, \"tapHighlightColor\", \"\");\n\n// }\n\nexport function iOS(): boolean {\n\treturn /apple/i.test(navigator.vendor) && \"ontouchend\" in document;\n}\n\nexport function getSafeResolution(): number | undefined {\n\treturn iOS() ? 1 : undefined;\n}\n\nexport function relativeToValue(percent: number | Percent | undefined | null, full: number): number {\n\tif ($type.isNumber(percent)) {\n\t\treturn percent;\n\t} else if (percent != null && $type.isNumber(percent.value) && $type.isNumber(full)) {\n\t\treturn full * percent.value;\n\n\t} else {\n\t\treturn 0;\n\t}\n}\n\n\n\n/**\n * Returns number of decimals\n *\n * @ignore Exclude from docs\n * @param number Input number\n * @return Number of decimals\n */\nexport function decimalPlaces(number: number): number {\n\tlet match = ('' + number).match(/(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$/);\n\tif (!match) { return 0; }\n\treturn Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0));\n}\n\n\n/**\n * ============================================================================\n * STRING FORMATTING FUNCTIONS\n * ============================================================================\n * @hidden\n */\n\n/**\n * Pads a string with additional characters to certain length.\n *\n * @param value A numeric value\n * @param len Result string length in characters\n * @param char A character to use for padding\n * @return Padded value as string\n */\nexport function padString(value: any, len: number = 0, char: string = \"0\"): string {\n\tif (typeof value !== \"string\") {\n\t\tvalue = value.toString();\n\t}\n\n\treturn len > value.length ? Array(len - value.length + 1).join(char) + value : value;\n}\n\nexport function trimLeft(text: string): string {\n\treturn text.replace(/^[\\s]*/, \"\");\n}\n\nexport function trimRight(text: string): string {\n\treturn text.replace(/[\\s]*$/, \"\");\n}\n\nexport function trim(text: string): string {\n\treturn trimLeft(trimRight(text));\n}\n\nexport function truncateTextWithEllipsis(text: string, maxLength: number, breakWords: boolean = false, ellipsis: string = \"...\") {\n\tif (text.length > maxLength) {\n\t\t// Find the last non-alphanumeric character before maxLength\n\t\tlet lastNonAlphanumericIndex = maxLength - 1;\n\t\twhile (lastNonAlphanumericIndex >= 0 && text.charAt(lastNonAlphanumericIndex).match(/\\w/)) {\n\t\t\tlastNonAlphanumericIndex--;\n\t\t}\n\n\t\tif (lastNonAlphanumericIndex >= 0 && breakWords == false) {\n\t\t\treturn text.substring(0, lastNonAlphanumericIndex + 1) + '...';\n\t\t} else {\n\t\t\t// If no non-alphanumeric character found, truncate without breaking words\n\t\t\treturn text.substring(0, maxLength) + ellipsis;\n\t\t}\n\t} else {\n\t\treturn text;\n\t}\n}\n\n/**\n * Tries to determine format type.\n *\n * @ignore Exclude from docs\n * @param format Format string\n * @return Format type (\"string\" | \"number\" | \"date\" | \"duration\")\n */\nexport function getFormat(format: string): string {\n\n\t// Undefined?\n\tif (typeof format === \"undefined\") {\n\t\treturn \"string\";\n\t}\n\n\t// Cleanup and lowercase format\n\tformat = format.toLowerCase().replace(/^\\[[^\\]]*\\]/, \"\");\n\n\t// Remove style tags\n\tformat = format.replace(/\\[[^\\]]+\\]/, \"\");\n\n\t// Trim\n\tformat = format.trim();\n\n\t// Check for any explicit format hints (i.e. /Date)\n\tlet hints: RegExpMatchArray | null = format.match(/\\/(date|number|duration)$/);\n\n\tif (hints) {\n\t\treturn hints[1];\n\t}\n\n\t// Check for explicit hints\n\tif (format === \"number\") {\n\t\treturn \"number\";\n\t}\n\n\tif (format === \"date\") {\n\t\treturn \"date\";\n\t}\n\n\tif (format === \"duration\") {\n\t\treturn \"duration\";\n\t}\n\n\t// Detect number formatting symbols\n\tif (format.match(/[#0]/)) {\n\t\treturn \"number\";\n\t}\n\n\t// Detect date formatting symbols\n\tif (format.match(/[ymwdhnsqaxkzgtei]/)) {\n\t\treturn \"date\";\n\t}\n\n\t// Nothing? Let's display as string\n\treturn \"string\";\n}\n\n/**\n * Cleans up format:\n * * Strips out formatter hints\n *\n * @ignore Exclude from docs\n * @param format Format\n * @return Cleaned format\n */\nexport function cleanFormat(format: string): string {\n\treturn format.replace(/\\/(date|number|duration)$/i, \"\");\n}\n\n/**\n * Strips all tags from the string.\n *\n * @param text Source string\n * @return String without tags\n */\nexport function stripTags(text: string): string {\n\treturn text ? text.replace(/<[^>]*>/g, \"\") : text;\n}\n\n/**\n * Removes new lines and tags from a string.\n *\n * @param text String to conver\n * @return Converted string\n */\nexport function plainText(text: string): string {\n\treturn text ? stripTags((\"\" + text).replace(/[\\n\\r]+/g, \". \")) : text;\n}\n\n/**\n * Escapes string so it can safely be used in a Regex.\n *\n * @param value Unsescaped string\n * @return Escaped string\n */\nexport function escapeForRgex(value: string): string {\n\treturn value.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n}\n\n/**\n * Adds space before each uppercase letter.\n *\n * @param str Input string\n * @return Output string\n */\nexport function addSpacing(str: string): string {\n\tlet result = \"\";\n\tfor (let i = 0; i < str.length; i++) {\n\t\tconst char = str.charAt(i);\n\t\tif (char.toUpperCase() == char && i != 0) {\n\t\t\tresult += \" \";\n\t\t}\n\t\tresult += char;\n\t}\n\treturn result;\n}\n\n/**\n * ============================================================================\n * DATE-RELATED FUNCTIONS\n * ============================================================================\n * @hidden\n */\n\n/**\n * Returns a year day.\n *\n * @param date Date\n * @param utc Assume UTC dates?\n * @return Year day\n * @todo Account for UTC\n */\nexport function getYearDay(date: Date, utc: boolean = false): number {\n\t// TODO: utc needed?\n\tutc;\n\tconst start = new Date(date.getFullYear(), 0, 0);\n\tconst diff = (date.getTime() - start.getTime()) + ((start.getTimezoneOffset() - date.getTimezoneOffset()) * 60 * 1000);\n\tconst oneDay = 1000 * 60 * 60 * 24;\n\treturn Math.floor(diff / oneDay);\n}\n\n/**\n * Returns week number for a given date.\n *\n * @param date Date\n * @param utc Assume UTC dates?\n * @return Week number\n * @todo Account for UTC\n */\nexport function getWeek(date: Date, _utc: boolean = false): number {\n\tconst d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));\n\tconst day = d.getUTCDay() || 7;\n\td.setUTCDate(d.getUTCDate() + 4 - day);\n\tconst firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));\n\treturn Math.ceil((((d.getTime() - firstDay.getTime()) / 86400000) + 1) / 7);\n}\n\n/**\n * Returns a \"week year\" of the given date.\n *\n * @param date Date\n * @param utc Assume UTC dates?\n * @return Year of week\n * @since 5.3.0\n * @todo Account for UTC\n */\nexport function getWeekYear(date: Date, _utc: boolean = false): number {\n\tconst d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));\n\tconst day = d.getUTCDay() || 7;\n\td.setUTCDate(d.getUTCDate() + 4 - day);\n\tconst firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));\n\treturn firstDay.getFullYear();\n}\n\n/**\n * Returns a week number in the month.\n *\n * @param date Source Date\n * @param utc Assume UTC dates?\n * @return Week number in month\n */\nexport function getMonthWeek(date: Date, utc: boolean = false): number {\n\tconst firstWeek = getWeek(new Date(date.getFullYear(), date.getMonth(), 1), utc);\n\tlet currentWeek = getWeek(date, utc);\n\tif (currentWeek == 1) {\n\t\tcurrentWeek = 53;\n\t}\n\treturn currentWeek - firstWeek + 1;\n}\n\n/**\n * Returns a year day out of the given week number.\n *\n * @param week Week\n * @param year Year\n * @param weekday Weekday\n * @param utc Assume UTC dates\n * @return Day in a year\n */\nexport function getDayFromWeek(week: number, year: number, weekday: number = 1, utc: boolean = false): number {\n\tlet date = new Date(year, 0, 4, 0, 0, 0, 0);\n\tif (utc) {\n\t\tdate.setUTCFullYear(year);\n\t}\n\tlet day = week * 7 + weekday - ((date.getDay() || 7) + 3);\n\treturn day;\n}\n\n/**\n * Returns 12-hour representation out of the 24-hour hours.\n *\n * @param hours 24-hour number\n * @return 12-hour number\n */\nexport function get12Hours(hours: number, base?: number): number {\n\tif (hours > 12) {\n\t\thours -= 12;\n\t}\n\telse if (hours === 0) {\n\t\thours = 12;\n\t}\n\treturn base != null ? hours + (base - 1) : hours;\n}\n\n/**\n * Returns a string name of the time zone.\n *\n * @param date Date object\n * @param long Should return long (\"Pacific Standard Time\") or short abbreviation (\"PST\")\n * @param savings Include information if it's in daylight savings mode\n * @param utc Assume UTC dates\n * @return Time zone name\n */\nexport function getTimeZone(date: Date, long: boolean = false, savings: boolean = false, utc: boolean = false, timezone?: string): string {\n\tif (utc) {\n\t\treturn long ? \"Coordinated Universal Time\" : \"UTC\";\n\t}\n\telse if (timezone) {\n\t\tconst d1 = date.toLocaleString(\"en-US\", { timeZone: timezone });\n\t\tconst d2 = date.toLocaleString(\"en-US\", { timeZone: timezone, timeZoneName: long ? \"long\" : \"short\" });\n\t\treturn trim(d2.substr(d1.length));\n\t}\n\tlet wotz = date.toLocaleString(\"UTC\");\n\tlet wtz = date.toLocaleString(\"UTC\", { timeZoneName: long ? \"long\" : \"short\" }).substr(wotz.length);\n\t//wtz = wtz.replace(/[+-]+[0-9]+$/, \"\");\n\tif (savings === false) {\n\t\twtz = wtz.replace(/ (standard|daylight|summer|winter) /i, \" \");\n\t}\n\treturn trim(wtz);\n}\n\nexport function getTimezoneOffset(timezone: string): number {\n\tconst date = new Date(Date.UTC(2012, 0, 1, 0, 0, 0, 0));\n\tconst utcDate = new Date(date.toLocaleString(\"en-US\", { timeZone: \"UTC\" }));\n\tconst tzDate = new Date(date.toLocaleString(\"en-US\", { timeZone: timezone }));\n\treturn (tzDate.getTime() - utcDate.getTime()) / 6e4 * -1;\n}\n\n\nexport function capitalizeFirst(text: string): string {\n\treturn text.charAt(0).toUpperCase() + text.slice(1);\n}\n\n\n/**\n * ============================================================================\n * COLOR UTILS\n * ============================================================================\n */\n\n\n/**\n * Represents an interface for an object that represents an RGB color.\n */\nexport interface iRGB {\n\tr: number;\n\tg: number;\n\tb: number;\n\ta?: number;\n}\n\n/**\n * Represents an interface for an object that represents an HSL color.\n */\nexport interface iHSL {\n\th: number;\n\ts: number;\n\tl: number;\n\ta?: number;\n}\n\n/**\n * The functions below are taken and adapted from Garry Tan's blog post:\n * http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c\n *\n * The further attributions go mjijackson.com, which now seems to be defunct.\n */\n\n\n/**\n * Converts an HSL color value to RGB. Conversion formula\n * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n * Assumes h, s, and l are contained in the set [0, 1] and\n * returns r, g, and b in the set [0, 255].\n *\n * Function adapted from:\n * http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c\n *\n * @ignore Exclude from docs\n * @param h The hue\n * @param s The saturation\n * @param l The lightness\n * @return The RGB representation\n */\nexport function hslToRgb(color: iHSL): iRGB {\n\tlet r, g, b;\n\tlet h = color.h;\n\tlet s = color.s;\n\tlet l = color.l;\n\n\tif (s == 0) {\n\t\tr = g = b = l; // achromatic\n\t} else {\n\t\tlet hue2rgb = function hue2rgb(p: number, q: number, t: number) {\n\t\t\tif (t < 0) { t += 1; }\n\t\t\tif (t > 1) { t -= 1; }\n\t\t\tif (t < 1 / 6) { return p + (q - p) * 6 * t; }\n\t\t\tif (t < 1 / 2) { return q; }\n\t\t\tif (t < 2 / 3) { return p + (q - p) * (2 / 3 - t) * 6; }\n\t\t\treturn p;\n\t\t}\n\n\t\tlet q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n\t\tlet p = 2 * l - q;\n\t\tr = hue2rgb(p, q, h + 1 / 3);\n\t\tg = hue2rgb(p, q, h);\n\t\tb = hue2rgb(p, q, h - 1 / 3);\n\t}\n\n\treturn {\n\t\tr: Math.round(r * 255),\n\t\tg: Math.round(g * 255),\n\t\tb: Math.round(b * 255)\n\t};\n}\n\n/**\n * Converts an RGB color value to HSL. Conversion formula\n * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n * Assumes r, g, and b are contained in the set [0, 255] and\n * returns h, s, and l in the set [0, 1].\n *\n * Function adapted from:\n * http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c\n *\n * @ignore Exclude from docs\n * @param r The red color value\n * @param g The green color value\n * @param b The blue color value\n * @return The HSL representation\n */\nexport function rgbToHsl(color: iRGB): iHSL {\n\tlet r = color.r / 255;\n\tlet g = color.g / 255;\n\tlet b = color.b / 255;\n\tlet max = Math.max(r, g, b);\n\tlet min = Math.min(r, g, b);\n\tlet h = 0;\n\tlet s = 0;\n\tlet l = (max + min) / 2;\n\n\tif (max === min) {\n\t\th = s = 0; // achromatic\n\n\t} else {\n\t\tlet d = max - min;\n\n\t\ts = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n\t\tswitch (max) {\n\t\t\tcase r: h = (g - b) / d + (g < b ? 6 : 0); break;\n\t\t\tcase g: h = (b - r) / d + 2; break;\n\t\t\tcase b: h = (r - g) / d + 4; break;\n\t\t}\n\n\t\th /= 6;\n\t}\n\n\treturn {\n\t\th: h,\n\t\ts: s,\n\t\tl: l\n\t};\n}\n\n/**\n * Returns a color that is `percent` brighter than the reference color.\n *\n * @ignore Exclude from docs\n * @param color Reference color\n * @param percent Brightness percent\n * @return Hex code of the new color\n */\nexport function lighten(rgb: $type.Optional<iRGB>, percent: number): $type.Optional<iRGB> {\n\tif (rgb) {\n\t\treturn {\n\t\t\tr: Math.max(0, Math.min(255, rgb.r + getLightnessStep(rgb.r, percent))),\n\t\t\tg: Math.max(0, Math.min(255, rgb.g + getLightnessStep(rgb.g, percent))),\n\t\t\tb: Math.max(0, Math.min(255, rgb.b + getLightnessStep(rgb.b, percent))),\n\t\t\ta: rgb.a\n\t\t};\n\n\t} else {\n\t\t// TODO is this correct ?\n\t\treturn rgb;\n\t}\n};\n\n/**\n * Gets lightness step.\n *\n * @ignore Exclude from docs\n * @param value Value\n * @param percent Percent\n * @return Step\n */\nexport function getLightnessStep(value: number, percent: number): number {\n\tlet base = percent > 0 ? 255 - value : value;\n\treturn Math.round(base * percent);\n}\n\n/**\n * Returns a color that is `percent` brighter than the source `color`.\n *\n * @ignore Exclude from docs\n * @param color Source color\n * @param percent Brightness percent\n * @return New color\n */\nexport function brighten(rgb: $type.Optional<iRGB>, percent: number): $type.Optional<iRGB> {\n\tif (rgb) {\n\t\tlet base = Math.min(Math.max(rgb.r, rgb.g, rgb.b), 230);\n\t\t//let base = Math.max(rgb.r, rgb.g, rgb.b);\n\t\tlet step = getLightnessStep(base, percent);\n\t\treturn {\n\t\t\tr: Math.max(0, Math.min(255, Math.round(rgb.r + step))),\n\t\t\tg: Math.max(0, Math.min(255, Math.round(rgb.g + step))),\n\t\t\tb: Math.max(0, Math.min(255, Math.round(rgb.b + step))),\n\t\t\ta: rgb.a\n\t\t};\n\n\t} else {\n\t\t// TODO is this correct ?\n\t\treturn rgb;\n\t}\n};\n\n/**\n * Returns brightness step.\n *\n * @ignore Exclude from docs\n * @param value Value\n * @param percent Percent\n * @return Step\n */\nexport function getBrightnessStep(_value: number, percent: number): number {\n\tlet base = 255; //percent > 0 ? 255 - value : value;\n\treturn Math.round(base * percent);\n}\n\n/**\n * Returns `true` if color is \"light\". Useful indetermining which contrasting\n * color to use for elements over this color. E.g.: you would want to use\n * black text over light background, and vice versa.\n *\n * @ignore Exclude from docs\n * @param color Source color\n * @return Light?\n */\nexport function isLight(color: iRGB): boolean {\n\treturn ((color.r * 299) + (color.g * 587) + (color.b * 114)) / 1000 >= 128;\n}\n\n/**\n * Returns a new [[iRGB]] object based on `rgb` parameter with specific\n * saturation applied.\n *\n * `saturation` can be in the range of 0 (fully desaturated) to 1 (fully\n * saturated).\n *\n * @ignore Exclude from docs\n * @param color Base color\n * @param saturation Saturation (0-1)\n * @return New color\n */\nexport function saturate(rgb: $type.Optional<iRGB>, saturation: number): $type.Optional<iRGB> {\n\tif (rgb === undefined || saturation == 1) {\n\t\treturn rgb;\n\t}\n\n\tlet hsl = rgbToHsl(rgb);\n\thsl.s = saturation;\n\treturn hslToRgb(hsl);\n}\n\nexport function alternativeColor(color: iRGB, lightAlternative: iRGB = { r: 255, g: 255, b: 255 }, darkAlternative: iRGB = { r: 255, g: 255, b: 255 }): iRGB {\n\tlet light = lightAlternative;\n\tlet dark = darkAlternative;\n\tif (isLight(darkAlternative)) {\n\t\tlight = darkAlternative;\n\t\tdark = lightAlternative;\n\t}\n\treturn isLight(color) ? dark : light;\n}\n\n/**\n * @ignore\n */\nexport function mergeTags(tags1: string[] | undefined, tags2: string[]): string[] {\n\tif (!tags1) {\n\t\ttags1 = [];\n\t}\n\treturn [...tags1, ...tags2].filter((value, index, self) => {\n\t\treturn self.indexOf(value) === index;\n\t});\n}\n\n/**\n * @ignore\n */\nexport function sameBounds(a: IBounds, b?: IBounds): boolean {\n\tif (!b) {\n\t\treturn false;\n\t}\n\tif (a.left != b.left) {\n\t\treturn false\n\t}\n\tif (a.right != b.right) {\n\t\treturn false\n\t}\n\tif (a.top != b.top) {\n\t\treturn false\n\t}\n\tif (a.bottom != b.bottom) {\n\t\treturn false\n\t}\n\treturn true;\n}\n"]}
1
+ {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../../../src/.internal/core/util/Utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,UAAU,CAAC;AAGpC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAa,MAAM,YAAY,CAAC;AAEhE;;;;;GAKG;AAEH;;;;;GAKG;AACH,MAAM,UAAU,KAAK,CAAC,CAAa;IAClC,IAAI,Q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7B,IAAI,IAAI,GAAG,eAAe,CAAC;IAC3B,IAAI,OAAO,CAAC,eAAe,CAAC,EAAE;QAC7B,KAAK,GAAG,eAAe,CAAC;QACxB,IAAI,GAAG,gBAAgB,CAAC;KACxB;IACD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,KAA2B,EAAE,KAAe;IACrE,IAAI,CAAC,KAAK,EAAE;QACX,KAAK,GAAG,EAAE,CAAC;KACX;IACD,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IACtC,CAAC,CAAC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,CAAU,EAAE,CAAW;IACjD,IAAI,CAAC,CAAC,EAAE;QACP,OAAO,KAAK,CAAC;KACb;IACD,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,EAAE;QACrB,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,EAAE;QACvB,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,EAAE;QACnB,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,EAAE;QACzB,OAAO,KAAK,CAAA;KACZ;IACD,OAAO,IAAI,CAAC;AACb,CAAC","sourcesContent":["import type { Percent } from \"./Percent\";\nimport type { IPointerEvent } from \"../render/backend/Renderer\";\nimport type { Sprite } from \"../render/Sprite\";\n\nimport * as $type from \"./Type\";\nimport * as $array from \"./Array\";\nimport * as $object from \"./Object\";\nimport type { IBounds } from \"./IBounds\";\n\nimport { Disposer, DisposerClass, IDisposer } from \"./Disposer\";\n\n/**\n * ============================================================================\n * DOM FUNCTIONS\n * ============================================================================\n * @hidden\n */\n\n/**\n * Execute a function when DOM is ready.\n *\n * @since 5.0.2\n * @param f Callback\n */\nexport function ready(f: () => void): void {\n\tif (document.readyState !== \"loading\") {\n\t\tf();\n\n\t} else {\n\t\tconst listener = () => {\n\t\t\tif (document.readyState !== \"loading\") {\n\t\t\t\tdocument.removeEventListener(\"readystatechange\", listener);\n\t\t\t\tf();\n\t\t\t}\n\t\t};\n\n\t\tdocument.addEventListener(\"readystatechange\", listener);\n\t}\n}\n\n/**\n * Removes a DOM element.\n * @param el Target element\n */\nexport function removeElement(el: HTMLElement): void {\n\tif (el.parentNode) {\n\t\tel.parentNode.removeChild(el);\n\t}\n}\n\n/**\n * Function that adds a disposable event listener directly to a DOM element.\n *\n * @ignore Exclude from docs\n * @param dom A DOM element to add event to\n * @param type Event type\n * @param listener Event listener\n * @returns Disposable event\n */\nexport function addEventListener<E extends Event>(dom: EventTarget, type: string, listener: (event: E) => void, options?: any): IDisposer {\n\t//@todo proper type check for options: EventListenerOptions | boolean (TS for some reason gives error on passive parameter)\n\tdom.addEventListener(type, <EventListener>listener, options || false);\n\n\treturn new Disposer(() => {\n\t\tdom.removeEventListener(type, <EventListener>listener, options || false);\n\t});\n}\n\n/**\n * Function that adds an event listener which is triggered when the browser's zoom changes.\n *\n * @param listener Event listener\n * @returns Disposable event\n */\nexport function onZoom(listener: () => void): IDisposer {\n\t// TODO use matchMedia instead ?\n\treturn addEventListener(window, \"resize\", (_ev) => {\n\t\tlistener();\n\t});\n}\n\n/**\n * @ignore\n */\nexport function supports(cap: \"touchevents\" | \"pointerevents\" | \"mouseevents\" | \"wheelevents\" | \"keyboardevents\"): boolean {\n\tswitch (cap) {\n\t\tcase \"touchevents\":\n\t\t\t//return \"ontouchstart\" in document.documentElement;\n\t\t\treturn window.hasOwnProperty(\"TouchEvent\");\n\n\t\tcase \"pointerevents\":\n\t\t\treturn window.hasOwnProperty(\"PointerEvent\");\n\n\t\tcase \"mouseevents\":\n\t\t\treturn window.hasOwnProperty(\"MouseEvent\");\n\n\t\tcase \"wheelevents\":\n\t\t\treturn window.hasOwnProperty(\"WheelEvent\");\n\n\t\tcase \"keyboardevents\":\n\t\t\treturn window.hasOwnProperty(\"KeyboardEvent\");\n\t}\n\treturn false;\n}\n\n/**\n * @ignore\n */\nexport function getPointerId(event: IPointerEvent) {\n\tlet id = (<any>event).pointerId || 0;\n\treturn id;\n}\n\n/**\n * Removes focus from any element by shifting focus to body.\n *\n * @ignore\n */\nexport function blur(): void {\n\tif (document.activeElement && document.activeElement != document.body) {\n\t\tif ((<any>document.activeElement).blur) {\n\t\t\t(<any>document.activeElement).blur();\n\t\t}\n\t\telse {\n\t\t\tlet input = document.createElement(\"button\");\n\t\t\tinput.style.position = \"fixed\";\n\t\t\tinput.style.top = \"0px\";\n\t\t\tinput.style.left = \"-10000px\";\n\t\t\tdocument.body.appendChild(input);\n\t\t\tinput.focus();\n\t\t\tinput.blur();\n\t\t\tdocument.body.removeChild(input);\n\t\t}\n\t}\n}\n\n/**\n * Focuses element.\n *\n * @ignore\n */\nexport function focus(el: HTMLElement): void {\n\tif (el) {\n\t\tel.focus();\n\t}\n}\n\n/**\n * @ignore\n */\nexport function getRendererEvent(key: string): string {\n\tif (supports(\"pointerevents\")) {\n\t\treturn key;\n\t}\n\telse if (supports(\"touchevents\")) {\n\t\tswitch (key) {\n\t\t\tcase \"pointerover\": return \"touchstart\";\n\t\t\tcase \"pointerout\": return \"touchend\";\n\t\t\tcase \"pointerleave\": return \"touchend\";\n\t\t\tcase \"pointerdown\": return \"touchstart\";\n\t\t\tcase \"pointermove\": return \"touchmove\";\n\t\t\tcase \"pointerup\": return \"touchend\";\n\t\t\tcase \"click\": return \"click\";\n\t\t\tcase \"dblclick\": return \"dblclick\";\n\n\t\t}\n\t}\n\telse if (supports(\"mouseevents\")) {\n\t\tswitch (key) {\n\t\t\tcase \"pointerover\": return \"mouseover\";\n\t\t\tcase \"pointerout\": return \"mouseout\";\n\t\t\tcase \"pointerleave\": return \"mouseleave\";\n\t\t\tcase \"pointerdown\": return \"mousedown\";\n\t\t\tcase \"pointermove\": return \"mousemove\";\n\t\t\tcase \"pointerup\": return \"mouseup\";\n\t\t\tcase \"click\": return \"click\";\n\t\t\tcase \"dblclick\": return \"dblclick\";\n\n\t\t}\n\t}\n\treturn key;\n}\n\n/**\n * Determines if pointer event originated from a touch pointer or mouse.\n *\n * @param ev Original event\n * @return Touch pointer?\n */\nexport function isTouchEvent(ev: MouseEvent | Touch): boolean {\n\tif (typeof Touch !== \"undefined\" && ev instanceof Touch) {\n\t\treturn true;\n\t}\n\telse if (typeof PointerEvent !== \"undefined\" && ev instanceof PointerEvent && (<any>ev).pointerType != null) {\n\t\tswitch ((<any>ev).pointerType) {\n\t\t\tcase \"touch\":\n\t\t\tcase \"pen\":\n\t\t\tcase 2:\n\t\t\t\treturn true;\n\t\t\tcase \"mouse\":\n\t\t\tcase 4:\n\t\t\t\treturn false;\n\t\t\tdefault:\n\t\t\t\treturn !(ev instanceof MouseEvent);\n\t\t}\n\t}\n\telse if ((<any>ev).type != null) {\n\t\tif ((<any>ev).type.match(/^mouse/)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n}\n\n/**\n * Sets style property on DOM element.\n *\n * @ignore Exclude from docs\n */\nexport function setStyle(dom: HTMLElement, property: string, value: string | undefined): void {\n\t(<any>dom.style)[property] = value;\n}\n\nexport function getStyle(dom: HTMLElement, property: string): string | undefined {\n\treturn (<any>dom.style)[property];\n}\n\n/**\n * Gets the target of the event, works for shadow DOM too.\n */\nexport function getEventTarget(event: Event | Touch): Node | null {\n\tif ((event as any).composedPath) {\n\t\tconst path = (event as Event).composedPath();\n\n\t\tif (path.length === 0) {\n\t\t\treturn null;\n\n\t\t} else {\n\t\t\treturn path[0] as Node;\n\t\t}\n\n\t} else {\n\t\treturn event.target as Node | null;\n\t}\n}\n\n/**\n * Checks of element `a` contains element `b`.\n *\n * @param a Aleged ascendant\n * @param b Aleged descendant\n * @return Contains?\n */\nexport function contains(a: Element, b: Element): boolean {\n\tlet cursor: Node = b;\n\n\twhile (true) {\n\t\tif (a === cursor) {\n\t\t\treturn true;\n\n\t\t} else if (cursor.parentNode === null) {\n\t\t\t// TODO better ShadowRoot detection\n\t\t\tif ((<ShadowRoot>cursor).host == null) {\n\t\t\t\treturn false;\n\n\t\t\t} else {\n\t\t\t\tcursor = (<ShadowRoot>cursor).host;\n\t\t\t}\n\n\t\t} else {\n\t\t\tcursor = cursor.parentNode;\n\t\t}\n\t}\n}\n\n/**\n * Returns `true` if pointer event originated on an element within Root.\n *\n * @since 5.2.8\n * @param event Event\n * @param target Target element\n */\nexport function isLocalEvent(event: IPointerEvent, target: Sprite) {\n\treturn event.target && contains(target.root.dom, <Element>event.target);\n}\n\n/**\n * Disables or enables interactivity of a DOM element.\n *\n * @param target Target element\n * @param interactive Interactive?\n */\nexport function setInteractive(target: HTMLElement, interactive: boolean): void {\n\tif (interactive) {\n\t\ttarget.style.pointerEvents = \"auto\";\n\t}\n\telse {\n\t\ttarget.style.pointerEvents = \"none\";\n\t}\n}\n\n/**\n * Returns the shadow root of the element or null\n *\n * @param a Node\n * @return Root\n */\nexport function getShadowRoot(a: Node): ShadowRoot | null {\n\tlet cursor: Node = a;\n\n\twhile (true) {\n\t\tif (cursor.parentNode === null) {\n\t\t\t// TODO better ShadowRoot detection\n\t\t\tif ((<ShadowRoot>cursor).host != null) {\n\t\t\t\treturn <ShadowRoot>cursor;\n\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t} else {\n\t\t\tcursor = cursor.parentNode;\n\t\t}\n\t}\n}\n\n/**\n * [rootStylesheet description]\n *\n * @ignore Exclude from docs\n * @todo Description\n */\nlet rootStylesheet: $type.Optional<CSSStyleSheet>;\n\n/**\n * @ignore Exclude from docs\n */\nfunction createStylesheet(element: ShadowRoot | null, text: string, nonce: string = \"\"): HTMLStyleElement {\n\t// TODO use createElementNS ?\n\tconst e = document.createElement(\"style\");\n\te.type = \"text/css\";\n\tif (nonce != \"\") {\n\t\te.setAttribute(\"nonce\", nonce)\n\t}\n\te.textContent = text;\n\n\tif (element === null) {\n\t\tdocument.head.appendChild(e);\n\t} else {\n\t\telement.appendChild(e);\n\t}\n\n\treturn e;\n}\n\n/**\n * [getStylesheet description]\n *\n * @ignore Exclude from docs\n * @todo Description\n * @return [description]\n */\nfunction getStylesheet(element: ShadowRoot | null, nonce: string = \"\"): CSSStyleSheet {\n\tif (element === null) {\n\t\tif (rootStylesheet == null) {\n\t\t\t// TODO use createElementNS ?\n\t\t\tconst e = document.createElement(\"style\");\n\t\t\te.type = \"text/css\";\n\t\t\tif (nonce != \"\") {\n\t\t\t\te.setAttribute(\"nonce\", nonce)\n\t\t\t}\n\t\t\tdocument.head.appendChild(e);\n\t\t\trootStylesheet = e.sheet as CSSStyleSheet;\n\t\t}\n\n\t\treturn rootStylesheet;\n\n\t} else {\n\t\t// TODO use createElementNS ?\n\t\tconst e = document.createElement(\"style\");\n\t\te.type = \"text/css\";\n\t\tif (nonce != \"\") {\n\t\t\te.setAttribute(\"nonce\", nonce)\n\t\t}\n\t\telement.appendChild(e);\n\t\treturn e.sheet as CSSStyleSheet;\n\t}\n}\n\n/**\n * [makeStylesheet description]\n *\n * @ignore Exclude from docs\n * @todo Description\n * @param selector [description]\n * @return [description]\n */\nfunction appendStylesheet(root: CSSStyleSheet, selector: string): CSSStyleRule {\n\tconst index = root.cssRules.length;\n\troot.insertRule(selector + \"{}\", index);\n\n\treturn root.cssRules[index] as CSSStyleRule;\n}\n\n/**\n * Defines a class for a CSS rule.\n *\n * Can be used to dynamically add CSS to the document.\n */\nexport class StyleRule extends DisposerClass {\n\tprivate _root: CSSStyleSheet;\n\n\t/**\n\t * CSS rule.\n\t */\n\tprivate _rule: CSSStyleRule;\n\n\t/**\n\t * A CSS selector text.\n\t *\n\t * E.g.: `.myClass p`\n\t *\n\t * @param selector CSS selector\n\t */\n\tpublic set selector(selector: string) {\n\t\tthis._rule.selectorText = selector;\n\t}\n\n\t/**\n\t * @return CSS selector\n\t */\n\tpublic get selector(): string {\n\t\treturn this._rule.selectorText;\n\t}\n\n\t/**\n\t * Constructor.\n\t *\n\t * @param selector CSS selector\n\t * @param styles An object of style attribute - value pairs\n\t */\n\tconstructor(element: ShadowRoot | null, selector: string, styles: { [name: string]: string }, nonce: string = \"\") {\n\t\tsuper();\n\n\t\tthis._root = getStylesheet(element, nonce);\n\n\t\ttry {\n\t\t\tthis._rule = appendStylesheet(this._root, selector);\n\t\t}\n\t\tcatch (err) {\n\t\t\t// Create an empty rule on failed selectors\n\t\t\tthis._rule = appendStylesheet(this._root, \":not(*)\");\n\t\t}\n\n\t\t$object.each(styles, (key, value) => {\n\t\t\tthis.setStyle(<string>key, value);\n\t\t});\n\t}\n\n\t// TODO test this\n\tprotected _dispose(): void {\n\t\t// TODO a bit hacky\n\t\tconst index = $array.indexOf(this._root.cssRules, this._rule);\n\n\t\tif (index === -1) {\n\t\t\tthrow new Error(\"Could not dispose StyleRule\");\n\n\t\t} else {\n\t\t\t// TODO if it's empty remove it from the DOM ?\n\t\t\tthis._root.deleteRule(index);\n\t\t}\n\t}\n\n\t/**\n\t * Sets the same style properties with browser-specific prefixes.\n\t *\n\t * @param name Attribute name\n\t * @param value Attribute value\n\t */\n\tprivate _setVendorPrefixName(name: string, value: string): void {\n\t\tconst style = this._rule.style;\n\t\tstyle.setProperty(\"-webkit-\" + name, value, \"\");\n\t\tstyle.setProperty(\"-moz-\" + name, value, \"\");\n\t\tstyle.setProperty(\"-ms-\" + name, value, \"\");\n\t\tstyle.setProperty(\"-o-\" + name, value, \"\");\n\t\tstyle.setProperty(name, value, \"\");\n\t}\n\n\t/**\n\t * Sets a value for specific style attribute.\n\t *\n\t * @param name Attribute\n\t * @param value Value\n\t */\n\tpublic setStyle(name: string, value: string): void {\n\t\tif (name === \"transition\") {\n\t\t\tthis._setVendorPrefixName(name, value);\n\n\t\t} else {\n\t\t\tthis._rule.style.setProperty(name, value, \"\");\n\t\t}\n\t}\n}\n\n/**\n * Defines a class for an entire CSS style sheet.\n *\n * Can be used to dynamically add CSS to the document.\n */\nexport class StyleSheet extends DisposerClass {\n\tprivate _element: HTMLStyleElement;\n\n\t/**\n\t * Constructor.\n\t *\n\t * @param text CSS stylesheet\n\t */\n\tconstructor(element: ShadowRoot | null, text: string, nonce: string = \"\") {\n\t\tsuper();\n\t\tthis._element = createStylesheet(element, text, nonce);\n\t}\n\n\tprotected _dispose(): void {\n\t\tif (this._element.parentNode) {\n\t\t\tthis._element.parentNode.removeChild(this._element);\n\t\t}\n\t}\n}\n\n\n/**\n * Adds a class name to an HTML or SVG element.\n *\n * @ignore Exclude from docs\n * @param element Element\n * @param className Class name to add\n */\nexport function addClass(element: HTMLElement | SVGElement, className: string): void {\n\tif (!element) {\n\t\treturn;\n\t}\n\tif (element.classList) {\n\t\tconst classes = className.split(\" \");\n\t\t$array.each(classes, (name) => {\n\t\t\telement.classList.add(name);\n\t\t});\n\t}\n\telse {\n\t\tlet currentClassName = element.getAttribute(\"class\");\n\t\tif (currentClassName) {\n\t\t\telement.setAttribute(\"class\", currentClassName.split(\" \").filter((item) => {\n\t\t\t\treturn item !== className;\n\t\t\t}).join(\" \") + \" \" + className);\n\t\t}\n\t\telse {\n\t\t\telement.setAttribute(\"class\", className);\n\t\t}\n\t}\n}\n\n/**\n * Removes a class name from an HTML or SVG element.\n *\n * @ignore Exclude from docs\n * @param element Element\n * @param className Class name to add\n */\nexport function removeClass(element: HTMLElement, className: string): void {\n\tif (!element) {\n\t\treturn;\n\t}\n\tif (element.classList) {\n\t\telement.classList.remove(className);\n\t}\n\telse {\n\t\tlet currentClassName = element.getAttribute(\"class\");\n\t\tif (currentClassName) {\n\t\t\telement.setAttribute(\"class\", currentClassName.split(\" \").filter((item) => {\n\t\t\t\treturn item !== className;\n\t\t\t}).join(\" \"));\n\t\t}\n\t}\n}\n\n// /**\n// * Applies a set of styles to an element. Stores the original styles so they\n// * can be restored later.\n// *\n// * @ignore\n// * @param io Element\n// */\n// export function prepElementForDrag(dom: HTMLElement): void {\n\n// \t// @todo: save current values\n\n// \t// Define possible props\n// \tlet props = [\n// \t\t\"touchAction\", \"webkitTouchAction\", \"MozTouchAction\", \"MSTouchAction\", \"msTouchAction\", \"oTouchAction\",\n// \t\t\"userSelect\", \"webkitUserSelect\", \"MozUserSelect\", \"MSUserSelect\", \"msUserSelect\", \"oUserSelect\",\n// \t\t\"touchSelect\", \"webkitTouchSelect\", \"MozTouchSelect\", \"MSTouchSelect\", \"msTouchSelect\", \"oTouchSelect\",\n// \t\t\"touchCallout\", \"webkitTouchCallout\", \"MozTouchCallout\", \"MSTouchCallout\", \"msTouchCallout\", \"oTouchCallout\",\n// \t\t\"contentZooming\", \"webkitContentZooming\", \"MozContentZooming\", \"MSContentZooming\", \"msContentZooming\", \"oContentZooming\",\n// \t\t\"userDrag\", \"webkitUserDrag\", \"MozUserDrag\", \"MSUserDrag\", \"msUserDrag\", \"oUserDrag\"\n// \t];\n// \tfor (let i = 0; i < props.length; i++) {\n// \t\tif (props[i] in dom.style) {\n// \t\t\tsetStyle(dom, props[i], \"none\");\n// \t\t}\n// \t}\n\n// \t// Remove iOS-specific selection;\n// \tsetStyle(dom, \"tapHighlightColor\", \"rgba(0, 0, 0, 0)\");\n\n// }\n\n// /**\n// * Restores replaced styles\n// *\n// * @ignore\n// * @param io Element\n// */\n// export function unprepElementForDrag(dom: HTMLElement): void {\n\n// \t// Define possible props\n// \tlet props = [\n// \t\t\"touchAction\", \"webkitTouchAction\", \"MozTouchAction\", \"MSTouchAction\", \"msTouchAction\", \"oTouchAction\",\n// \t\t\"userSelect\", \"webkitUserSelect\", \"MozUserSelect\", \"MSUserSelect\", \"msUserSelect\", \"oUserSelect\",\n// \t\t\"touchSelect\", \"webkitTouchSelect\", \"MozTouchSelect\", \"MSTouchSelect\", \"msTouchSelect\", \"oTouchSelect\",\n// \t\t\"touchCallout\", \"webkitTouchCallout\", \"MozTouchCallout\", \"MSTouchCallout\", \"msTouchCallout\", \"oTouchCallout\",\n// \t\t\"contentZooming\", \"webkitContentZooming\", \"MozContentZooming\", \"MSContentZooming\", \"msContentZooming\", \"oContentZooming\",\n// \t\t\"userDrag\", \"webkitUserDrag\", \"MozUserDrag\", \"MSUserDrag\", \"msUserDrag\", \"oUserDrag\"\n// \t];\n// \tfor (let i = 0; i < props.length; i++) {\n// \t\tif (props[i] in dom.style) {\n// \t\t\tsetStyle(dom, props[i], \"\");\n// \t\t}\n// \t}\n\n// \t// Remove iOS-specific selection;\n// \tsetStyle(dom, \"tapHighlightColor\", \"\");\n\n// }\n\nexport function iOS(): boolean {\n\treturn /apple/i.test(navigator.vendor) && \"ontouchend\" in document;\n}\n\nexport function getSafeResolution(): number | undefined {\n\treturn iOS() ? 1 : undefined;\n}\n\nexport function relativeToValue(percent: number | Percent | undefined | null, full: number): number {\n\tif ($type.isNumber(percent)) {\n\t\treturn percent;\n\t} else if (percent != null && $type.isNumber(percent.value) && $type.isNumber(full)) {\n\t\treturn full * percent.value;\n\n\t} else {\n\t\treturn 0;\n\t}\n}\n\n\n\n/**\n * Returns number of decimals\n *\n * @ignore Exclude from docs\n * @param number Input number\n * @return Number of decimals\n */\nexport function decimalPlaces(number: number): number {\n\tlet match = ('' + number).match(/(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$/);\n\tif (!match) { return 0; }\n\treturn Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0));\n}\n\n\n/**\n * ============================================================================\n * STRING FORMATTING FUNCTIONS\n * ============================================================================\n * @hidden\n */\n\n/**\n * Pads a string with additional characters to certain length.\n *\n * @param value A numeric value\n * @param len Result string length in characters\n * @param char A character to use for padding\n * @return Padded value as string\n */\nexport function padString(value: any, len: number = 0, char: string = \"0\"): string {\n\tif (typeof value !== \"string\") {\n\t\tvalue = value.toString();\n\t}\n\n\treturn len > value.length ? Array(len - value.length + 1).join(char) + value : value;\n}\n\nexport function trimLeft(text: string): string {\n\treturn text.replace(/^[\\s]*/, \"\");\n}\n\nexport function trimRight(text: string): string {\n\treturn text.replace(/[\\s]*$/, \"\");\n}\n\nexport function trim(text: string): string {\n\treturn trimLeft(trimRight(text));\n}\n\nexport function truncateTextWithEllipsis(text: string, maxLength: number, breakWords: boolean = false, ellipsis: string = \"...\") {\n\tif (text.length > maxLength) {\n\t\t// Find the last non-alphanumeric character before maxLength\n\t\tlet lastNonAlphanumericIndex = maxLength - 1;\n\t\twhile (lastNonAlphanumericIndex >= 0 && text.charAt(lastNonAlphanumericIndex).match(/\\w/)) {\n\t\t\tlastNonAlphanumericIndex--;\n\t\t}\n\n\t\tif (lastNonAlphanumericIndex >= 0 && breakWords == false) {\n\t\t\treturn text.substring(0, lastNonAlphanumericIndex + 1) + '...';\n\t\t} else {\n\t\t\t// If no non-alphanumeric character found, truncate without breaking words\n\t\t\treturn text.substring(0, maxLength) + ellipsis;\n\t\t}\n\t} else {\n\t\treturn text;\n\t}\n}\n\n/**\n * Tries to determine format type.\n *\n * @ignore Exclude from docs\n * @param format Format string\n * @return Format type (\"string\" | \"number\" | \"date\" | \"duration\")\n */\nexport function getFormat(format: string): string {\n\n\t// Undefined?\n\tif (typeof format === \"undefined\") {\n\t\treturn \"string\";\n\t}\n\n\t// Cleanup and lowercase format\n\tformat = format.toLowerCase().replace(/^\\[[^\\]]*\\]/, \"\");\n\n\t// Remove style tags\n\tformat = format.replace(/\\[[^\\]]+\\]/, \"\");\n\n\t// Trim\n\tformat = format.trim();\n\n\t// Check for any explicit format hints (i.e. /Date)\n\tlet hints: RegExpMatchArray | null = format.match(/\\/(date|number|duration)$/);\n\n\tif (hints) {\n\t\treturn hints[1];\n\t}\n\n\t// Check for explicit hints\n\tif (format === \"number\") {\n\t\treturn \"number\";\n\t}\n\n\tif (format === \"date\") {\n\t\treturn \"date\";\n\t}\n\n\tif (format === \"duration\") {\n\t\treturn \"duration\";\n\t}\n\n\t// Detect number formatting symbols\n\tif (format.match(/[#0]/)) {\n\t\treturn \"number\";\n\t}\n\n\t// Detect date formatting symbols\n\tif (format.match(/[ymwdhnsqaxkzgtei]/)) {\n\t\treturn \"date\";\n\t}\n\n\t// Nothing? Let's display as string\n\treturn \"string\";\n}\n\n/**\n * Cleans up format:\n * * Strips out formatter hints\n *\n * @ignore Exclude from docs\n * @param format Format\n * @return Cleaned format\n */\nexport function cleanFormat(format: string): string {\n\treturn format.replace(/\\/(date|number|duration)$/i, \"\");\n}\n\n/**\n * Strips all tags from the string.\n *\n * @param text Source string\n * @return String without tags\n */\nexport function stripTags(text: string): string {\n\treturn text ? text.replace(/<[^>]*>/g, \"\") : text;\n}\n\n/**\n * Removes new lines and tags from a string.\n *\n * @param text String to conver\n * @return Converted string\n */\nexport function plainText(text: string): string {\n\treturn text ? stripTags((\"\" + text).replace(/[\\n\\r]+/g, \". \")) : text;\n}\n\n/**\n * Escapes string so it can safely be used in a Regex.\n *\n * @param value Unsescaped string\n * @return Escaped string\n */\nexport function escapeForRgex(value: string): string {\n\treturn value.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n}\n\n/**\n * Adds space before each uppercase letter.\n *\n * @param str Input string\n * @return Output string\n */\nexport function addSpacing(str: string): string {\n\tlet result = \"\";\n\tfor (let i = 0; i < str.length; i++) {\n\t\tconst char = str.charAt(i);\n\t\tif (char.toUpperCase() == char && i != 0) {\n\t\t\tresult += \" \";\n\t\t}\n\t\tresult += char;\n\t}\n\treturn result;\n}\n\n/**\n * ============================================================================\n * DATE-RELATED FUNCTIONS\n * ============================================================================\n * @hidden\n */\n\n/**\n * Returns a year day.\n *\n * @param date Date\n * @param utc Assume UTC dates?\n * @return Year day\n * @todo Account for UTC\n */\nexport function getYearDay(date: Date, utc: boolean = false): number {\n\t// TODO: utc needed?\n\tutc;\n\tconst start = new Date(date.getFullYear(), 0, 0);\n\tconst diff = (date.getTime() - start.getTime()) + ((start.getTimezoneOffset() - date.getTimezoneOffset()) * 60 * 1000);\n\tconst oneDay = 1000 * 60 * 60 * 24;\n\treturn Math.floor(diff / oneDay);\n}\n\n/**\n * Returns week number for a given date.\n *\n * @param date Date\n * @param utc Assume UTC dates?\n * @return Week number\n * @todo Account for UTC\n */\nexport function getWeek(date: Date, _utc: boolean = false): number {\n\tconst d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));\n\tconst day = d.getUTCDay() || 7;\n\td.setUTCDate(d.getUTCDate() + 4 - day);\n\tconst firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));\n\treturn Math.ceil((((d.getTime() - firstDay.getTime()) / 86400000) + 1) / 7);\n}\n\n/**\n * Returns a \"week year\" of the given date.\n *\n * @param date Date\n * @param utc Assume UTC dates?\n * @return Year of week\n * @since 5.3.0\n * @todo Account for UTC\n */\nexport function getWeekYear(date: Date, _utc: boolean = false): number {\n\tconst d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));\n\tconst day = d.getUTCDay() || 7;\n\td.setUTCDate(d.getUTCDate() + 4 - day);\n\tconst firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));\n\treturn firstDay.getFullYear();\n}\n\n/**\n * Returns a week number in the month.\n *\n * @param date Source Date\n * @param utc Assume UTC dates?\n * @return Week number in month\n */\nexport function getMonthWeek(date: Date, utc: boolean = false): number {\n\tconst firstWeek = getWeek(new Date(date.getFullYear(), date.getMonth(), 1), utc);\n\tlet currentWeek = getWeek(date, utc);\n\tif (currentWeek == 1) {\n\t\tcurrentWeek = 53;\n\t}\n\treturn currentWeek - firstWeek + 1;\n}\n\n/**\n * Returns a year day out of the given week number.\n *\n * @param week Week\n * @param year Year\n * @param weekday Weekday\n * @param utc Assume UTC dates\n * @return Day in a year\n */\nexport function getDayFromWeek(week: number, year: number, weekday: number = 1, utc: boolean = false): number {\n\tlet date = new Date(year, 0, 4, 0, 0, 0, 0);\n\tif (utc) {\n\t\tdate.setUTCFullYear(year);\n\t}\n\tlet day = week * 7 + weekday - ((date.getDay() || 7) + 3);\n\treturn day;\n}\n\n/**\n * Returns 12-hour representation out of the 24-hour hours.\n *\n * @param hours 24-hour number\n * @return 12-hour number\n */\nexport function get12Hours(hours: number, base?: number): number {\n\tif (hours > 12) {\n\t\thours -= 12;\n\t}\n\telse if (hours === 0) {\n\t\thours = 12;\n\t}\n\treturn base != null ? hours + (base - 1) : hours;\n}\n\n/**\n * Returns a string name of the time zone.\n *\n * @param date Date object\n * @param long Should return long (\"Pacific Standard Time\") or short abbreviation (\"PST\")\n * @param savings Include information if it's in daylight savings mode\n * @param utc Assume UTC dates\n * @return Time zone name\n */\nexport function getTimeZone(date: Date, long: boolean = false, savings: boolean = false, utc: boolean = false, timezone?: string): string {\n\tif (utc) {\n\t\treturn long ? \"Coordinated Universal Time\" : \"UTC\";\n\t}\n\telse if (timezone) {\n\t\tconst d1 = date.toLocaleString(\"en-US\", { timeZone: timezone });\n\t\tconst d2 = date.toLocaleString(\"en-US\", { timeZone: timezone, timeZoneName: long ? \"long\" : \"short\" });\n\t\treturn trim(d2.substr(d1.length));\n\t}\n\tlet wotz = date.toLocaleString(\"UTC\");\n\tlet wtz = date.toLocaleString(\"UTC\", { timeZoneName: long ? \"long\" : \"short\" }).substr(wotz.length);\n\t//wtz = wtz.replace(/[+-]+[0-9]+$/, \"\");\n\tif (savings === false) {\n\t\twtz = wtz.replace(/ (standard|daylight|summer|winter) /i, \" \");\n\t}\n\treturn trim(wtz);\n}\n\nexport function getTimezoneOffset(timezone: string): number {\n\tconst date = new Date(Date.UTC(2012, 0, 1, 0, 0, 0, 0));\n\tconst utcDate = new Date(date.toLocaleString(\"en-US\", { timeZone: \"UTC\" }));\n\tconst tzDate = new Date(date.toLocaleString(\"en-US\", { timeZone: timezone }));\n\treturn (tzDate.getTime() - utcDate.getTime()) / 6e4 * -1;\n}\n\n\nexport function capitalizeFirst(text: string): string {\n\treturn text.charAt(0).toUpperCase() + text.slice(1);\n}\n\n\n/**\n * ============================================================================\n * COLOR UTILS\n * ============================================================================\n */\n\n\n/**\n * Represents an interface for an object that represents an RGB color.\n */\nexport interface iRGB {\n\tr: number;\n\tg: number;\n\tb: number;\n\ta?: number;\n}\n\n/**\n * Represents an interface for an object that represents an HSL color.\n */\nexport interface iHSL {\n\th: number;\n\ts: number;\n\tl: number;\n\ta?: number;\n}\n\n/**\n * The functions below are taken and adapted from Garry Tan's blog post:\n * http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c\n *\n * The further attributions go mjijackson.com, which now seems to be defunct.\n */\n\n\n/**\n * Converts an HSL color value to RGB. Conversion formula\n * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n * Assumes h, s, and l are contained in the set [0, 1] and\n * returns r, g, and b in the set [0, 255].\n *\n * Function adapted from:\n * http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c\n *\n * @ignore Exclude from docs\n * @param h The hue\n * @param s The saturation\n * @param l The lightness\n * @return The RGB representation\n */\nexport function hslToRgb(color: iHSL): iRGB {\n\tlet r, g, b;\n\tlet h = color.h;\n\tlet s = color.s;\n\tlet l = color.l;\n\n\tif (s == 0) {\n\t\tr = g = b = l; // achromatic\n\t} else {\n\t\tlet hue2rgb = function hue2rgb(p: number, q: number, t: number) {\n\t\t\tif (t < 0) { t += 1; }\n\t\t\tif (t > 1) { t -= 1; }\n\t\t\tif (t < 1 / 6) { return p + (q - p) * 6 * t; }\n\t\t\tif (t < 1 / 2) { return q; }\n\t\t\tif (t < 2 / 3) { return p + (q - p) * (2 / 3 - t) * 6; }\n\t\t\treturn p;\n\t\t}\n\n\t\tlet q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n\t\tlet p = 2 * l - q;\n\t\tr = hue2rgb(p, q, h + 1 / 3);\n\t\tg = hue2rgb(p, q, h);\n\t\tb = hue2rgb(p, q, h - 1 / 3);\n\t}\n\n\treturn {\n\t\tr: Math.round(r * 255),\n\t\tg: Math.round(g * 255),\n\t\tb: Math.round(b * 255)\n\t};\n}\n\n/**\n * Converts an RGB color value to HSL. Conversion formula\n * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n * Assumes r, g, and b are contained in the set [0, 255] and\n * returns h, s, and l in the set [0, 1].\n *\n * Function adapted from:\n * http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c\n *\n * @ignore Exclude from docs\n * @param r The red color value\n * @param g The green color value\n * @param b The blue color value\n * @return The HSL representation\n */\nexport function rgbToHsl(color: iRGB): iHSL {\n\tlet r = color.r / 255;\n\tlet g = color.g / 255;\n\tlet b = color.b / 255;\n\tlet max = Math.max(r, g, b);\n\tlet min = Math.min(r, g, b);\n\tlet h = 0;\n\tlet s = 0;\n\tlet l = (max + min) / 2;\n\n\tif (max === min) {\n\t\th = s = 0; // achromatic\n\n\t} else {\n\t\tlet d = max - min;\n\n\t\ts = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\n\t\tswitch (max) {\n\t\t\tcase r: h = (g - b) / d + (g < b ? 6 : 0); break;\n\t\t\tcase g: h = (b - r) / d + 2; break;\n\t\t\tcase b: h = (r - g) / d + 4; break;\n\t\t}\n\n\t\th /= 6;\n\t}\n\n\treturn {\n\t\th: h,\n\t\ts: s,\n\t\tl: l\n\t};\n}\n\n/**\n * Returns a color that is `percent` brighter than the reference color.\n *\n * @ignore Exclude from docs\n * @param color Reference color\n * @param percent Brightness percent\n * @return Hex code of the new color\n */\nexport function lighten(rgb: $type.Optional<iRGB>, percent: number): $type.Optional<iRGB> {\n\tif (rgb) {\n\t\treturn {\n\t\t\tr: Math.max(0, Math.min(255, rgb.r + getLightnessStep(rgb.r, percent))),\n\t\t\tg: Math.max(0, Math.min(255, rgb.g + getLightnessStep(rgb.g, percent))),\n\t\t\tb: Math.max(0, Math.min(255, rgb.b + getLightnessStep(rgb.b, percent))),\n\t\t\ta: rgb.a\n\t\t};\n\n\t} else {\n\t\t// TODO is this correct ?\n\t\treturn rgb;\n\t}\n};\n\n/**\n * Gets lightness step.\n *\n * @ignore Exclude from docs\n * @param value Value\n * @param percent Percent\n * @return Step\n */\nexport function getLightnessStep(value: number, percent: number): number {\n\tlet base = percent > 0 ? 255 - value : value;\n\treturn Math.round(base * percent);\n}\n\n/**\n * Returns a color that is `percent` brighter than the source `color`.\n *\n * @ignore Exclude from docs\n * @param color Source color\n * @param percent Brightness percent\n * @return New color\n */\nexport function brighten(rgb: $type.Optional<iRGB>, percent: number): $type.Optional<iRGB> {\n\tif (rgb) {\n\t\tlet base = Math.min(Math.max(rgb.r, rgb.g, rgb.b), 230);\n\t\t//let base = Math.max(rgb.r, rgb.g, rgb.b);\n\t\tlet step = getLightnessStep(base, percent);\n\t\treturn {\n\t\t\tr: Math.max(0, Math.min(255, Math.round(rgb.r + step))),\n\t\t\tg: Math.max(0, Math.min(255, Math.round(rgb.g + step))),\n\t\t\tb: Math.max(0, Math.min(255, Math.round(rgb.b + step))),\n\t\t\ta: rgb.a\n\t\t};\n\n\t} else {\n\t\t// TODO is this correct ?\n\t\treturn rgb;\n\t}\n};\n\n/**\n * Returns brightness step.\n *\n * @ignore Exclude from docs\n * @param value Value\n * @param percent Percent\n * @return Step\n */\nexport function getBrightnessStep(_value: number, percent: number): number {\n\tlet base = 255; //percent > 0 ? 255 - value : value;\n\treturn Math.round(base * percent);\n}\n\n/**\n * Returns `true` if color is \"light\". Useful indetermining which contrasting\n * color to use for elements over this color. E.g.: you would want to use\n * black text over light background, and vice versa.\n *\n * @ignore Exclude from docs\n * @param color Source color\n * @return Light?\n */\nexport function isLight(color: iRGB): boolean {\n\treturn ((color.r * 299) + (color.g * 587) + (color.b * 114)) / 1000 >= 128;\n}\n\n/**\n * Returns a new [[iRGB]] object based on `rgb` parameter with specific\n * saturation applied.\n *\n * `saturation` can be in the range of 0 (fully desaturated) to 1 (fully\n * saturated).\n *\n * @ignore Exclude from docs\n * @param color Base color\n * @param saturation Saturation (0-1)\n * @return New color\n */\nexport function saturate(rgb: $type.Optional<iRGB>, saturation: number): $type.Optional<iRGB> {\n\tif (rgb === undefined || saturation == 1) {\n\t\treturn rgb;\n\t}\n\n\tlet hsl = rgbToHsl(rgb);\n\thsl.s = saturation;\n\treturn hslToRgb(hsl);\n}\n\nexport function alternativeColor(color: iRGB, lightAlternative: iRGB = { r: 255, g: 255, b: 255 }, darkAlternative: iRGB = { r: 255, g: 255, b: 255 }): iRGB {\n\tlet light = lightAlternative;\n\tlet dark = darkAlternative;\n\tif (isLight(darkAlternative)) {\n\t\tlight = darkAlternative;\n\t\tdark = lightAlternative;\n\t}\n\treturn isLight(color) ? dark : light;\n}\n\n/**\n * @ignore\n */\nexport function mergeTags(tags1: string[] | undefined, tags2: string[]): string[] {\n\tif (!tags1) {\n\t\ttags1 = [];\n\t}\n\treturn [...tags1, ...tags2].filter((value, index, self) => {\n\t\treturn self.indexOf(value) === index;\n\t});\n}\n\n/**\n * @ignore\n */\nexport function sameBounds(a: IBounds, b?: IBounds): boolean {\n\tif (!b) {\n\t\treturn false;\n\t}\n\tif (a.left != b.left) {\n\t\treturn false\n\t}\n\tif (a.right != b.right) {\n\t\treturn false\n\t}\n\tif (a.top != b.top) {\n\t\treturn false\n\t}\n\tif (a.bottom != b.bottom) {\n\t\treturn false\n\t}\n\treturn true;\n}\n"]}
@@ -37,6 +37,32 @@ export interface IAnnotatorSettings extends IEntitySettings {
37
37
  markerSettings?: {
38
38
  [index: string]: any;
39
39
  };
40
+ /**
41
+ * MarkerArea style settings for user interface elements.E.g.:
42
+ *
43
+ * ```TypeScript
44
+ * let annotator = am5plugins_exporting.Annotator.new(root, {
45
+ * markerStyleSettings: {
46
+ * toolboxColor: "#F472B6",
47
+ * toolboxAccentColor: "#BE185D"
48
+ * }
49
+ *});
50
+ * ```
51
+ * ```JavaScript
52
+ * var annotator = am5plugins_exporting.Annotator.new(root, {
53
+ * markerStyleSettings: {
54
+ * toolboxColor: "#F472B6",
55
+ * toolboxAccentColor: "#BE185D"
56
+ * }
57
+ *});
58
+ * ```
59
+ *
60
+ * @see {@link https://markerjs.com/reference/classes/settings.html} for a full list of settings
61
+ * @since 5.7.5
62
+ */
63
+ markerStyleSettings?: {
64
+ [index: string]: any;
65
+ };
40
66
  }
41
67
  export interface IAnnotatorPrivate extends IEntityPrivate {
42
68
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Annotator.d.ts","sourceRoot":"","sources":["../../../../../src/.internal/plugins/exporting/Annotator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAQ/F,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IAE1D;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC;IAElB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,cAAc,CAAC,EAAE;QAAC,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;CAExC;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc;CACxD;AAED,MAAM,WAAW,gBAAiB,SAAQ,aAAa;CACtD;AAID;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,MAAM;IACpC,OAAc,SAAS,EAAE,MAAM,CAAe;IAC9C,OAAc,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAmD;IAE3E,SAAS,EAAE,kBAAkB,CAAC;IAC9B,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,OAAO,EAAE,gBAAgB,CAAC;IAEzC,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,OAAO,CAAC,WAAW,CAAC,CAAM;IAC1B,OAAO,CAAC,WAAW,CAAC,CAAkB;IAKtC,SAAS,CAAC,SAAS;IAMZ,cAAc;IAQrB;;;OAGG;IACU,IAAI;IA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AW,CAAC,CAAM;IAC1B,OAAO,CAAC,WAAW,CAAC,CAAkB;IAKtC,SAAS,CAAC,SAAS;IAMZ,cAAc;IAQrB;;;OAGG;IACU,IAAI;IAeJ,YAAY;IAQzB;;OAEG;IACU,KAAK;IAOlB;;;OAGG;IACU,MAAM;IASnB;;OAEG;IACI,KAAK;IAOC,MAAM;IAUZ,OAAO,IAAI,IAAI;YAOR,UAAU;IAyDxB;;OAEG;YACW,YAAY;IAI1B;;;;;OAKG;IACU,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC;CAK1C"}
@@ -158,6 +158,10 @@ export class Annotator extends Entity {
158
158
  $object.each(markerSettings, (key, value) => {
159
159
  markerArea.settings[key] = value;
160
160
  });
161
+ const markerStyleSettings = this.get("markerStyleSettings", {});
162
+ $object.each(markerStyleSettings, (key, value) => {
163
+ markerArea.uiStyleSettings[key] = value;
164
+ });
161
165
  this._disposers.push($utils.addEventListener(markerArea, "close", () => {
162
166
  this._root._renderer.interactionsEnabled = true;
163
167
  this._picture.show(0);