@elastic/charts 57.0.1 → 58.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1025) hide show
  1. package/dist/chart_types/flame_chart/flame_api.d.ts +8 -2
  2. package/dist/chart_types/flame_chart/flame_api.d.ts.map +1 -1
  3. package/dist/chart_types/flame_chart/flame_api.js +11 -22
  4. package/dist/chart_types/flame_chart/flame_api.js.map +1 -1
  5. package/dist/chart_types/flame_chart/flame_chart.js +582 -638
  6. package/dist/chart_types/flame_chart/flame_chart.js.map +1 -1
  7. package/dist/chart_types/flame_chart/internal_chart_state.js +26 -27
  8. package/dist/chart_types/flame_chart/internal_chart_state.js.map +1 -1
  9. package/dist/chart_types/flame_chart/navigation.js +41 -89
  10. package/dist/chart_types/flame_chart/navigation.js.map +1 -1
  11. package/dist/chart_types/flame_chart/render/common.js +2 -4
  12. package/dist/chart_types/flame_chart/render/common.js.map +1 -1
  13. package/dist/chart_types/flame_chart/render/draw_a_frame.js +47 -53
  14. package/dist/chart_types/flame_chart/render/draw_a_frame.js.map +1 -1
  15. package/dist/chart_types/flame_chart/render/draw_canvas.js +42 -65
  16. package/dist/chart_types/flame_chart/render/draw_canvas.js.map +1 -1
  17. package/dist/chart_types/flame_chart/render/draw_webgl.js +36 -38
  18. package/dist/chart_types/flame_chart/render/draw_webgl.js.map +1 -1
  19. package/dist/chart_types/flame_chart/render/ensure_webgl.js +12 -12
  20. package/dist/chart_types/flame_chart/render/ensure_webgl.js.map +1 -1
  21. package/dist/chart_types/flame_chart/render/upload_to_webgl.js +2 -2
  22. package/dist/chart_types/flame_chart/render/upload_to_webgl.js.map +1 -1
  23. package/dist/chart_types/flame_chart/shaders.js +168 -12
  24. package/dist/chart_types/flame_chart/shaders.js.map +1 -1
  25. package/dist/chart_types/flame_chart/types.js +2 -2
  26. package/dist/chart_types/flame_chart/types.js.map +1 -1
  27. package/dist/chart_types/goal_chart/layout/config/config.js +1 -1
  28. package/dist/chart_types/goal_chart/layout/config/config.js.map +1 -1
  29. package/dist/chart_types/goal_chart/layout/types/viewmodel_types.js +42 -40
  30. package/dist/chart_types/goal_chart/layout/types/viewmodel_types.js.map +1 -1
  31. package/dist/chart_types/goal_chart/layout/viewmodel/geoms.js +194 -226
  32. package/dist/chart_types/goal_chart/layout/viewmodel/geoms.js.map +1 -1
  33. package/dist/chart_types/goal_chart/layout/viewmodel/utils.js +26 -54
  34. package/dist/chart_types/goal_chart/layout/viewmodel/utils.js.map +1 -1
  35. package/dist/chart_types/goal_chart/layout/viewmodel/viewmodel.js +65 -102
  36. package/dist/chart_types/goal_chart/layout/viewmodel/viewmodel.js.map +1 -1
  37. package/dist/chart_types/goal_chart/renderer/canvas/canvas_renderers.js +4 -4
  38. package/dist/chart_types/goal_chart/renderer/canvas/canvas_renderers.js.map +1 -1
  39. package/dist/chart_types/goal_chart/renderer/canvas/connected_component.js +50 -81
  40. package/dist/chart_types/goal_chart/renderer/canvas/connected_component.js.map +1 -1
  41. package/dist/chart_types/goal_chart/specs/index.js +28 -27
  42. package/dist/chart_types/goal_chart/specs/index.js.map +1 -1
  43. package/dist/chart_types/goal_chart/state/chart_state.js +59 -60
  44. package/dist/chart_types/goal_chart/state/chart_state.js.map +1 -1
  45. package/dist/chart_types/goal_chart/state/selectors/geometries.js +14 -14
  46. package/dist/chart_types/goal_chart/state/selectors/geometries.js.map +1 -1
  47. package/dist/chart_types/goal_chart/state/selectors/get_chart_type_description.js +4 -4
  48. package/dist/chart_types/goal_chart/state/selectors/get_chart_type_description.js.map +1 -1
  49. package/dist/chart_types/goal_chart/state/selectors/get_goal_chart_data.js +7 -7
  50. package/dist/chart_types/goal_chart/state/selectors/get_goal_chart_data.js.map +1 -1
  51. package/dist/chart_types/goal_chart/state/selectors/get_goal_spec.js +3 -3
  52. package/dist/chart_types/goal_chart/state/selectors/get_goal_spec.js.map +1 -1
  53. package/dist/chart_types/goal_chart/state/selectors/is_tooltip_visible.js +5 -6
  54. package/dist/chart_types/goal_chart/state/selectors/is_tooltip_visible.js.map +1 -1
  55. package/dist/chart_types/goal_chart/state/selectors/on_element_click_caller.js +10 -10
  56. package/dist/chart_types/goal_chart/state/selectors/on_element_click_caller.js.map +1 -1
  57. package/dist/chart_types/goal_chart/state/selectors/on_element_out_caller.js +9 -9
  58. package/dist/chart_types/goal_chart/state/selectors/on_element_out_caller.js.map +1 -1
  59. package/dist/chart_types/goal_chart/state/selectors/on_element_over_caller.js +9 -9
  60. package/dist/chart_types/goal_chart/state/selectors/on_element_over_caller.js.map +1 -1
  61. package/dist/chart_types/goal_chart/state/selectors/picked_shapes.js +21 -53
  62. package/dist/chart_types/goal_chart/state/selectors/picked_shapes.js.map +1 -1
  63. package/dist/chart_types/goal_chart/state/selectors/scenegraph.js +1 -1
  64. package/dist/chart_types/goal_chart/state/selectors/scenegraph.js.map +1 -1
  65. package/dist/chart_types/goal_chart/state/selectors/tooltip.js +12 -14
  66. package/dist/chart_types/goal_chart/state/selectors/tooltip.js.map +1 -1
  67. package/dist/chart_types/heatmap/layout/types/viewmodel_types.js +10 -10
  68. package/dist/chart_types/heatmap/layout/types/viewmodel_types.js.map +1 -1
  69. package/dist/chart_types/heatmap/layout/viewmodel/scenegraph.js +3 -3
  70. package/dist/chart_types/heatmap/layout/viewmodel/scenegraph.js.map +1 -1
  71. package/dist/chart_types/heatmap/layout/viewmodel/viewmodel.js +198 -203
  72. package/dist/chart_types/heatmap/layout/viewmodel/viewmodel.js.map +1 -1
  73. package/dist/chart_types/heatmap/renderer/canvas/canvas_renderers.js +71 -83
  74. package/dist/chart_types/heatmap/renderer/canvas/canvas_renderers.js.map +1 -1
  75. package/dist/chart_types/heatmap/renderer/canvas/connected_component.js +46 -66
  76. package/dist/chart_types/heatmap/renderer/canvas/connected_component.js.map +1 -1
  77. package/dist/chart_types/heatmap/renderer/canvas/utils.js +15 -20
  78. package/dist/chart_types/heatmap/renderer/canvas/utils.js.map +1 -1
  79. package/dist/chart_types/heatmap/renderer/dom/cursor_band.js +28 -59
  80. package/dist/chart_types/heatmap/renderer/dom/cursor_band.js.map +1 -1
  81. package/dist/chart_types/heatmap/renderer/dom/highlighter.js +6 -7
  82. package/dist/chart_types/heatmap/renderer/dom/highlighter.js.map +1 -1
  83. package/dist/chart_types/heatmap/renderer/dom/highlighter_brush.js +20 -20
  84. package/dist/chart_types/heatmap/renderer/dom/highlighter_brush.js.map +1 -1
  85. package/dist/chart_types/heatmap/scales/band_color_scale.js +18 -22
  86. package/dist/chart_types/heatmap/scales/band_color_scale.js.map +1 -1
  87. package/dist/chart_types/heatmap/specs/heatmap.d.ts +1 -1
  88. package/dist/chart_types/heatmap/specs/heatmap.js +13 -27
  89. package/dist/chart_types/heatmap/specs/heatmap.js.map +1 -1
  90. package/dist/chart_types/heatmap/specs/scale_defaults.js +1 -1
  91. package/dist/chart_types/heatmap/specs/scale_defaults.js.map +1 -1
  92. package/dist/chart_types/heatmap/state/chart_state.js +69 -70
  93. package/dist/chart_types/heatmap/state/chart_state.js.map +1 -1
  94. package/dist/chart_types/heatmap/state/selectors/compute_axes_sizes.js +33 -37
  95. package/dist/chart_types/heatmap/state/selectors/compute_axes_sizes.js.map +1 -1
  96. package/dist/chart_types/heatmap/state/selectors/compute_chart_dimensions.js +7 -8
  97. package/dist/chart_types/heatmap/state/selectors/compute_chart_dimensions.js.map +1 -1
  98. package/dist/chart_types/heatmap/state/selectors/compute_chart_element_sizes.js +13 -15
  99. package/dist/chart_types/heatmap/state/selectors/compute_chart_element_sizes.js.map +1 -1
  100. package/dist/chart_types/heatmap/state/selectors/compute_legend.js +11 -16
  101. package/dist/chart_types/heatmap/state/selectors/compute_legend.js.map +1 -1
  102. package/dist/chart_types/heatmap/state/selectors/get_brush_area.js +12 -14
  103. package/dist/chart_types/heatmap/state/selectors/get_brush_area.js.map +1 -1
  104. package/dist/chart_types/heatmap/state/selectors/get_brushed_highlighted_shapes.js +4 -4
  105. package/dist/chart_types/heatmap/state/selectors/get_brushed_highlighted_shapes.js.map +1 -1
  106. package/dist/chart_types/heatmap/state/selectors/get_color_scale.js +4 -4
  107. package/dist/chart_types/heatmap/state/selectors/get_color_scale.js.map +1 -1
  108. package/dist/chart_types/heatmap/state/selectors/get_cursor_band.js +19 -24
  109. package/dist/chart_types/heatmap/state/selectors/get_cursor_band.js.map +1 -1
  110. package/dist/chart_types/heatmap/state/selectors/get_cursor_pointer.js +6 -6
  111. package/dist/chart_types/heatmap/state/selectors/get_cursor_pointer.js.map +1 -1
  112. package/dist/chart_types/heatmap/state/selectors/get_debug_state.js +46 -80
  113. package/dist/chart_types/heatmap/state/selectors/get_debug_state.js.map +1 -1
  114. package/dist/chart_types/heatmap/state/selectors/get_heatmap_container_size.js +8 -10
  115. package/dist/chart_types/heatmap/state/selectors/get_heatmap_container_size.js.map +1 -1
  116. package/dist/chart_types/heatmap/state/selectors/get_heatmap_spec.js +6 -6
  117. package/dist/chart_types/heatmap/state/selectors/get_heatmap_spec.js.map +1 -1
  118. package/dist/chart_types/heatmap/state/selectors/get_heatmap_table.js +37 -70
  119. package/dist/chart_types/heatmap/state/selectors/get_heatmap_table.js.map +1 -1
  120. package/dist/chart_types/heatmap/state/selectors/get_highlighted_area.js +7 -7
  121. package/dist/chart_types/heatmap/state/selectors/get_highlighted_area.js.map +1 -1
  122. package/dist/chart_types/heatmap/state/selectors/get_highlighted_legend_bands.js +5 -12
  123. package/dist/chart_types/heatmap/state/selectors/get_highlighted_legend_bands.js.map +1 -1
  124. package/dist/chart_types/heatmap/state/selectors/get_highlighted_legend_item.js +6 -15
  125. package/dist/chart_types/heatmap/state/selectors/get_highlighted_legend_item.js.map +1 -1
  126. package/dist/chart_types/heatmap/state/selectors/get_legend_items_labels.js +9 -13
  127. package/dist/chart_types/heatmap/state/selectors/get_legend_items_labels.js.map +1 -1
  128. package/dist/chart_types/heatmap/state/selectors/get_per_panel_heatmap_geometries.js +18 -28
  129. package/dist/chart_types/heatmap/state/selectors/get_per_panel_heatmap_geometries.js.map +1 -1
  130. package/dist/chart_types/heatmap/state/selectors/get_picked_cells.js +11 -12
  131. package/dist/chart_types/heatmap/state/selectors/get_picked_cells.js.map +1 -1
  132. package/dist/chart_types/heatmap/state/selectors/get_tooltip_anchor.js +15 -17
  133. package/dist/chart_types/heatmap/state/selectors/get_tooltip_anchor.js.map +1 -1
  134. package/dist/chart_types/heatmap/state/selectors/is_brush_available.js +5 -12
  135. package/dist/chart_types/heatmap/state/selectors/is_brush_available.js.map +1 -1
  136. package/dist/chart_types/heatmap/state/selectors/is_empty.js +3 -3
  137. package/dist/chart_types/heatmap/state/selectors/is_empty.js.map +1 -1
  138. package/dist/chart_types/heatmap/state/selectors/is_tooltip_visible.js +7 -12
  139. package/dist/chart_types/heatmap/state/selectors/is_tooltip_visible.js.map +1 -1
  140. package/dist/chart_types/heatmap/state/selectors/on_brush_end_caller.js +14 -15
  141. package/dist/chart_types/heatmap/state/selectors/on_brush_end_caller.js.map +1 -1
  142. package/dist/chart_types/heatmap/state/selectors/on_element_click_caller.js +16 -16
  143. package/dist/chart_types/heatmap/state/selectors/on_element_click_caller.js.map +1 -1
  144. package/dist/chart_types/heatmap/state/selectors/on_element_out_caller.js +11 -11
  145. package/dist/chart_types/heatmap/state/selectors/on_element_out_caller.js.map +1 -1
  146. package/dist/chart_types/heatmap/state/selectors/on_element_over_caller.js +16 -16
  147. package/dist/chart_types/heatmap/state/selectors/on_element_over_caller.js.map +1 -1
  148. package/dist/chart_types/heatmap/state/selectors/on_pointer_update_caller.js +23 -36
  149. package/dist/chart_types/heatmap/state/selectors/on_pointer_update_caller.js.map +1 -1
  150. package/dist/chart_types/heatmap/state/selectors/picked_shapes.js +9 -14
  151. package/dist/chart_types/heatmap/state/selectors/picked_shapes.js.map +1 -1
  152. package/dist/chart_types/heatmap/state/selectors/tooltip.js +16 -19
  153. package/dist/chart_types/heatmap/state/selectors/tooltip.js.map +1 -1
  154. package/dist/chart_types/heatmap/state/utils/axis.js +62 -96
  155. package/dist/chart_types/heatmap/state/utils/axis.js.map +1 -1
  156. package/dist/chart_types/metric/renderer/dom/index.js +63 -107
  157. package/dist/chart_types/metric/renderer/dom/index.js.map +1 -1
  158. package/dist/chart_types/metric/renderer/dom/metric.js +41 -63
  159. package/dist/chart_types/metric/renderer/dom/metric.js.map +1 -1
  160. package/dist/chart_types/metric/renderer/dom/progress.js +11 -23
  161. package/dist/chart_types/metric/renderer/dom/progress.js.map +1 -1
  162. package/dist/chart_types/metric/renderer/dom/sparkline.js +18 -35
  163. package/dist/chart_types/metric/renderer/dom/sparkline.js.map +1 -1
  164. package/dist/chart_types/metric/renderer/dom/text.js +76 -100
  165. package/dist/chart_types/metric/renderer/dom/text.js.map +1 -1
  166. package/dist/chart_types/metric/specs/index.js +3 -3
  167. package/dist/chart_types/metric/specs/index.js.map +1 -1
  168. package/dist/chart_types/metric/state/chart_state.js +32 -33
  169. package/dist/chart_types/metric/state/chart_state.js.map +1 -1
  170. package/dist/chart_types/metric/state/selectors/chart_size.js +4 -15
  171. package/dist/chart_types/metric/state/selectors/chart_size.js.map +1 -1
  172. package/dist/chart_types/metric/state/selectors/data.js +3 -3
  173. package/dist/chart_types/metric/state/selectors/data.js.map +1 -1
  174. package/dist/chart_types/partition_chart/layout/config.js +44 -33
  175. package/dist/chart_types/partition_chart/layout/config.js.map +1 -1
  176. package/dist/chart_types/partition_chart/layout/types/config_types.d.ts.map +1 -1
  177. package/dist/chart_types/partition_chart/layout/types/viewmodel_types.js +56 -69
  178. package/dist/chart_types/partition_chart/layout/types/viewmodel_types.js.map +1 -1
  179. package/dist/chart_types/partition_chart/layout/utils/circline_geometry.js +84 -111
  180. package/dist/chart_types/partition_chart/layout/utils/circline_geometry.js.map +1 -1
  181. package/dist/chart_types/partition_chart/layout/utils/group_by_rollup.js +74 -116
  182. package/dist/chart_types/partition_chart/layout/utils/group_by_rollup.js.map +1 -1
  183. package/dist/chart_types/partition_chart/layout/utils/highlighted_geoms.js +11 -59
  184. package/dist/chart_types/partition_chart/layout/utils/highlighted_geoms.js.map +1 -1
  185. package/dist/chart_types/partition_chart/layout/utils/legend_labels.js +17 -70
  186. package/dist/chart_types/partition_chart/layout/utils/legend_labels.js.map +1 -1
  187. package/dist/chart_types/partition_chart/layout/utils/sunburst.js +12 -15
  188. package/dist/chart_types/partition_chart/layout/utils/sunburst.js.map +1 -1
  189. package/dist/chart_types/partition_chart/layout/utils/treemap.js +51 -80
  190. package/dist/chart_types/partition_chart/layout/utils/treemap.js.map +1 -1
  191. package/dist/chart_types/partition_chart/layout/utils/waffle.js +38 -63
  192. package/dist/chart_types/partition_chart/layout/utils/waffle.js.map +1 -1
  193. package/dist/chart_types/partition_chart/layout/viewmodel/fill_text_layout.js +139 -150
  194. package/dist/chart_types/partition_chart/layout/viewmodel/fill_text_layout.js.map +1 -1
  195. package/dist/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.js +31 -69
  196. package/dist/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.js.map +1 -1
  197. package/dist/chart_types/partition_chart/layout/viewmodel/link_text_layout.js +81 -93
  198. package/dist/chart_types/partition_chart/layout/viewmodel/link_text_layout.js.map +1 -1
  199. package/dist/chart_types/partition_chart/layout/viewmodel/picked_shapes.js +26 -55
  200. package/dist/chart_types/partition_chart/layout/viewmodel/picked_shapes.js.map +1 -1
  201. package/dist/chart_types/partition_chart/layout/viewmodel/scenegraph.js +8 -8
  202. package/dist/chart_types/partition_chart/layout/viewmodel/scenegraph.js.map +1 -1
  203. package/dist/chart_types/partition_chart/layout/viewmodel/viewmodel.js +165 -218
  204. package/dist/chart_types/partition_chart/layout/viewmodel/viewmodel.js.map +1 -1
  205. package/dist/chart_types/partition_chart/renderer/canvas/canvas_linear_renderers.js +27 -31
  206. package/dist/chart_types/partition_chart/renderer/canvas/canvas_linear_renderers.js.map +1 -1
  207. package/dist/chart_types/partition_chart/renderer/canvas/canvas_renderers.js +58 -92
  208. package/dist/chart_types/partition_chart/renderer/canvas/canvas_renderers.js.map +1 -1
  209. package/dist/chart_types/partition_chart/renderer/canvas/canvas_wrapped_renderers.js +12 -14
  210. package/dist/chart_types/partition_chart/renderer/canvas/canvas_wrapped_renderers.js.map +1 -1
  211. package/dist/chart_types/partition_chart/renderer/canvas/partition.js +69 -109
  212. package/dist/chart_types/partition_chart/renderer/canvas/partition.js.map +1 -1
  213. package/dist/chart_types/partition_chart/renderer/dom/highlighter.js +86 -121
  214. package/dist/chart_types/partition_chart/renderer/dom/highlighter.js.map +1 -1
  215. package/dist/chart_types/partition_chart/renderer/dom/highlighter_hover.js +16 -16
  216. package/dist/chart_types/partition_chart/renderer/dom/highlighter_hover.js.map +1 -1
  217. package/dist/chart_types/partition_chart/renderer/dom/highlighter_legend.js +17 -17
  218. package/dist/chart_types/partition_chart/renderer/dom/highlighter_legend.js.map +1 -1
  219. package/dist/chart_types/partition_chart/renderer/dom/layered_partition_chart.js +5 -5
  220. package/dist/chart_types/partition_chart/renderer/dom/layered_partition_chart.js.map +1 -1
  221. package/dist/chart_types/partition_chart/specs/index.d.ts +2 -2
  222. package/dist/chart_types/partition_chart/specs/index.js +17 -28
  223. package/dist/chart_types/partition_chart/specs/index.js.map +1 -1
  224. package/dist/chart_types/partition_chart/state/chart_state.js +58 -59
  225. package/dist/chart_types/partition_chart/state/chart_state.js.map +1 -1
  226. package/dist/chart_types/partition_chart/state/selectors/compute_legend.js +54 -99
  227. package/dist/chart_types/partition_chart/state/selectors/compute_legend.js.map +1 -1
  228. package/dist/chart_types/partition_chart/state/selectors/drilldown_active.js +5 -6
  229. package/dist/chart_types/partition_chart/state/selectors/drilldown_active.js.map +1 -1
  230. package/dist/chart_types/partition_chart/state/selectors/geometries.js +76 -89
  231. package/dist/chart_types/partition_chart/state/selectors/geometries.js.map +1 -1
  232. package/dist/chart_types/partition_chart/state/selectors/get_chart_type_description.js +4 -4
  233. package/dist/chart_types/partition_chart/state/selectors/get_chart_type_description.js.map +1 -1
  234. package/dist/chart_types/partition_chart/state/selectors/get_cursor_pointer.js +6 -7
  235. package/dist/chart_types/partition_chart/state/selectors/get_cursor_pointer.js.map +1 -1
  236. package/dist/chart_types/partition_chart/state/selectors/get_debug_state.js +21 -24
  237. package/dist/chart_types/partition_chart/state/selectors/get_debug_state.js.map +1 -1
  238. package/dist/chart_types/partition_chart/state/selectors/get_highlighted_shapes.js +7 -11
  239. package/dist/chart_types/partition_chart/state/selectors/get_highlighted_shapes.js.map +1 -1
  240. package/dist/chart_types/partition_chart/state/selectors/get_legend_items_extra.js +11 -51
  241. package/dist/chart_types/partition_chart/state/selectors/get_legend_items_extra.js.map +1 -1
  242. package/dist/chart_types/partition_chart/state/selectors/get_legend_items_labels.js +8 -17
  243. package/dist/chart_types/partition_chart/state/selectors/get_legend_items_labels.js.map +1 -1
  244. package/dist/chart_types/partition_chart/state/selectors/get_partition_specs.js +6 -6
  245. package/dist/chart_types/partition_chart/state/selectors/get_partition_specs.js.map +1 -1
  246. package/dist/chart_types/partition_chart/state/selectors/get_screen_reader_data.js +21 -42
  247. package/dist/chart_types/partition_chart/state/selectors/get_screen_reader_data.js.map +1 -1
  248. package/dist/chart_types/partition_chart/state/selectors/is_tooltip_visible.js +5 -6
  249. package/dist/chart_types/partition_chart/state/selectors/is_tooltip_visible.js.map +1 -1
  250. package/dist/chart_types/partition_chart/state/selectors/on_element_click_caller.js +10 -10
  251. package/dist/chart_types/partition_chart/state/selectors/on_element_click_caller.js.map +1 -1
  252. package/dist/chart_types/partition_chart/state/selectors/on_element_out_caller.js +9 -9
  253. package/dist/chart_types/partition_chart/state/selectors/on_element_out_caller.js.map +1 -1
  254. package/dist/chart_types/partition_chart/state/selectors/on_element_over_caller.js +9 -9
  255. package/dist/chart_types/partition_chart/state/selectors/on_element_over_caller.js.map +1 -1
  256. package/dist/chart_types/partition_chart/state/selectors/partition_spec.js +3 -3
  257. package/dist/chart_types/partition_chart/state/selectors/partition_spec.js.map +1 -1
  258. package/dist/chart_types/partition_chart/state/selectors/picked_shapes.js +4 -4
  259. package/dist/chart_types/partition_chart/state/selectors/picked_shapes.js.map +1 -1
  260. package/dist/chart_types/partition_chart/state/selectors/tooltip.js +7 -7
  261. package/dist/chart_types/partition_chart/state/selectors/tooltip.js.map +1 -1
  262. package/dist/chart_types/partition_chart/state/selectors/tree.js +28 -61
  263. package/dist/chart_types/partition_chart/state/selectors/tree.js.map +1 -1
  264. package/dist/chart_types/timeslip/internal_chart_state.js +27 -28
  265. package/dist/chart_types/timeslip/internal_chart_state.js.map +1 -1
  266. package/dist/chart_types/timeslip/projections/axis_model.js +26 -52
  267. package/dist/chart_types/timeslip/projections/axis_model.js.map +1 -1
  268. package/dist/chart_types/timeslip/projections/domain_tween.js +11 -11
  269. package/dist/chart_types/timeslip/projections/domain_tween.js.map +1 -1
  270. package/dist/chart_types/timeslip/projections/scale.js +8 -8
  271. package/dist/chart_types/timeslip/projections/scale.js.map +1 -1
  272. package/dist/chart_types/timeslip/projections/zoom_pan.js +61 -62
  273. package/dist/chart_types/timeslip/projections/zoom_pan.js.map +1 -1
  274. package/dist/chart_types/timeslip/timeslip/config.js +43 -30
  275. package/dist/chart_types/timeslip/timeslip/config.js.map +1 -1
  276. package/dist/chart_types/timeslip/timeslip/data.js +4 -5
  277. package/dist/chart_types/timeslip/timeslip/data.js.map +1 -1
  278. package/dist/chart_types/timeslip/timeslip/data_fetch.js +4 -4
  279. package/dist/chart_types/timeslip/timeslip/data_fetch.js.map +1 -1
  280. package/dist/chart_types/timeslip/timeslip/render/annotations/chart_title.js +2 -2
  281. package/dist/chart_types/timeslip/timeslip/render/annotations/chart_title.js.map +1 -1
  282. package/dist/chart_types/timeslip/timeslip/render/annotations/time_extent.js +2 -3
  283. package/dist/chart_types/timeslip/timeslip/render/annotations/time_extent.js.map +1 -1
  284. package/dist/chart_types/timeslip/timeslip/render/annotations/time_unit.js +6 -6
  285. package/dist/chart_types/timeslip/timeslip/render/annotations/time_unit.js.map +1 -1
  286. package/dist/chart_types/timeslip/timeslip/render/cartesian.js +11 -12
  287. package/dist/chart_types/timeslip/timeslip/render/cartesian.js.map +1 -1
  288. package/dist/chart_types/timeslip/timeslip/render/column.js +75 -111
  289. package/dist/chart_types/timeslip/timeslip/render/column.js.map +1 -1
  290. package/dist/chart_types/timeslip/timeslip/render/glyphs/bar.js +7 -7
  291. package/dist/chart_types/timeslip/timeslip/render/glyphs/bar.js.map +1 -1
  292. package/dist/chart_types/timeslip/timeslip/render/glyphs/boxplot.js +15 -15
  293. package/dist/chart_types/timeslip/timeslip/render/glyphs/boxplot.js.map +1 -1
  294. package/dist/chart_types/timeslip/timeslip/render/raster.js +91 -178
  295. package/dist/chart_types/timeslip/timeslip/render/raster.js.map +1 -1
  296. package/dist/chart_types/timeslip/timeslip/timeslip_render.js +102 -128
  297. package/dist/chart_types/timeslip/timeslip/timeslip_render.js.map +1 -1
  298. package/dist/chart_types/timeslip/timeslip_api.js +8 -19
  299. package/dist/chart_types/timeslip/timeslip_api.js.map +1 -1
  300. package/dist/chart_types/timeslip/timeslip_chart.js +63 -94
  301. package/dist/chart_types/timeslip/timeslip_chart.js.map +1 -1
  302. package/dist/chart_types/timeslip/utils/animation.js +7 -7
  303. package/dist/chart_types/timeslip/utils/animation.js.map +1 -1
  304. package/dist/chart_types/timeslip/utils/dom.js +11 -11
  305. package/dist/chart_types/timeslip/utils/dom.js.map +1 -1
  306. package/dist/chart_types/timeslip/utils/math.js +3 -3
  307. package/dist/chart_types/timeslip/utils/math.js.map +1 -1
  308. package/dist/chart_types/timeslip/utils/multitouch.js +14 -51
  309. package/dist/chart_types/timeslip/utils/multitouch.js.map +1 -1
  310. package/dist/chart_types/wordcloud/layout/types/viewmodel_types.js +12 -18
  311. package/dist/chart_types/wordcloud/layout/types/viewmodel_types.js.map +1 -1
  312. package/dist/chart_types/wordcloud/layout/viewmodel/viewmodel.js +27 -29
  313. package/dist/chart_types/wordcloud/layout/viewmodel/viewmodel.js.map +1 -1
  314. package/dist/chart_types/wordcloud/renderer/svg/connected_component.js +75 -139
  315. package/dist/chart_types/wordcloud/renderer/svg/connected_component.js.map +1 -1
  316. package/dist/chart_types/wordcloud/specs/index.js +7 -16
  317. package/dist/chart_types/wordcloud/specs/index.js.map +1 -1
  318. package/dist/chart_types/wordcloud/state/chart_state.js +51 -52
  319. package/dist/chart_types/wordcloud/state/chart_state.js.map +1 -1
  320. package/dist/chart_types/wordcloud/state/selectors/geometries.js +11 -11
  321. package/dist/chart_types/wordcloud/state/selectors/geometries.js.map +1 -1
  322. package/dist/chart_types/wordcloud/state/selectors/on_element_click_caller.js +10 -10
  323. package/dist/chart_types/wordcloud/state/selectors/on_element_click_caller.js.map +1 -1
  324. package/dist/chart_types/wordcloud/state/selectors/on_element_out_caller.js +9 -9
  325. package/dist/chart_types/wordcloud/state/selectors/on_element_out_caller.js.map +1 -1
  326. package/dist/chart_types/wordcloud/state/selectors/on_element_over_caller.js +9 -9
  327. package/dist/chart_types/wordcloud/state/selectors/on_element_over_caller.js.map +1 -1
  328. package/dist/chart_types/wordcloud/state/selectors/picked_shapes.js +10 -10
  329. package/dist/chart_types/wordcloud/state/selectors/picked_shapes.js.map +1 -1
  330. package/dist/chart_types/wordcloud/state/selectors/scenegraph.js +1 -1
  331. package/dist/chart_types/wordcloud/state/selectors/scenegraph.js.map +1 -1
  332. package/dist/chart_types/wordcloud/state/selectors/wordcloud_spec.js +3 -3
  333. package/dist/chart_types/wordcloud/state/selectors/wordcloud_spec.js.map +1 -1
  334. package/dist/chart_types/xy_chart/annotations/line/dimensions.js +92 -119
  335. package/dist/chart_types/xy_chart/annotations/line/dimensions.js.map +1 -1
  336. package/dist/chart_types/xy_chart/annotations/rect/dimensions.js +81 -115
  337. package/dist/chart_types/xy_chart/annotations/rect/dimensions.js.map +1 -1
  338. package/dist/chart_types/xy_chart/annotations/rect/tooltip.js +29 -51
  339. package/dist/chart_types/xy_chart/annotations/rect/tooltip.js.map +1 -1
  340. package/dist/chart_types/xy_chart/annotations/tooltip.js +34 -44
  341. package/dist/chart_types/xy_chart/annotations/tooltip.js.map +1 -1
  342. package/dist/chart_types/xy_chart/annotations/utils.js +22 -26
  343. package/dist/chart_types/xy_chart/annotations/utils.js.map +1 -1
  344. package/dist/chart_types/xy_chart/axes/axes_sizes.js +27 -55
  345. package/dist/chart_types/xy_chart/axes/axes_sizes.js.map +1 -1
  346. package/dist/chart_types/xy_chart/axes/timeslip/chrono/cached_chrono.js +15 -15
  347. package/dist/chart_types/xy_chart/axes/timeslip/chrono/cached_chrono.js.map +1 -1
  348. package/dist/chart_types/xy_chart/axes/timeslip/chrono/chrono.js +6 -12
  349. package/dist/chart_types/xy_chart/axes/timeslip/chrono/chrono.js.map +1 -1
  350. package/dist/chart_types/xy_chart/axes/timeslip/chrono/chrono_luxon/chrono_luxon.js +7 -25
  351. package/dist/chart_types/xy_chart/axes/timeslip/chrono/chrono_luxon/chrono_luxon.js.map +1 -1
  352. package/dist/chart_types/xy_chart/axes/timeslip/continuous_time_rasters.js +363 -470
  353. package/dist/chart_types/xy_chart/axes/timeslip/continuous_time_rasters.js.map +1 -1
  354. package/dist/chart_types/xy_chart/axes/timeslip/multilayer_ticks.js +37 -73
  355. package/dist/chart_types/xy_chart/axes/timeslip/multilayer_ticks.js.map +1 -1
  356. package/dist/chart_types/xy_chart/axes/timeslip/numerical_rasters.js +28 -77
  357. package/dist/chart_types/xy_chart/axes/timeslip/numerical_rasters.js.map +1 -1
  358. package/dist/chart_types/xy_chart/crosshair/crosshair_utils.js +41 -43
  359. package/dist/chart_types/xy_chart/crosshair/crosshair_utils.js.map +1 -1
  360. package/dist/chart_types/xy_chart/domains/x_domain.js +34 -58
  361. package/dist/chart_types/xy_chart/domains/x_domain.js.map +1 -1
  362. package/dist/chart_types/xy_chart/domains/y_domain.js +54 -127
  363. package/dist/chart_types/xy_chart/domains/y_domain.js.map +1 -1
  364. package/dist/chart_types/xy_chart/legend/legend.js +61 -103
  365. package/dist/chart_types/xy_chart/legend/legend.js.map +1 -1
  366. package/dist/chart_types/xy_chart/renderer/canvas/animations/animation.js +30 -33
  367. package/dist/chart_types/xy_chart/renderer/canvas/animations/animation.js.map +1 -1
  368. package/dist/chart_types/xy_chart/renderer/canvas/animations/index.js +30 -58
  369. package/dist/chart_types/xy_chart/renderer/canvas/animations/index.js.map +1 -1
  370. package/dist/chart_types/xy_chart/renderer/canvas/annotations/index.js +13 -14
  371. package/dist/chart_types/xy_chart/renderer/canvas/annotations/index.js.map +1 -1
  372. package/dist/chart_types/xy_chart/renderer/canvas/annotations/lines.js +9 -14
  373. package/dist/chart_types/xy_chart/renderer/canvas/annotations/lines.js.map +1 -1
  374. package/dist/chart_types/xy_chart/renderer/canvas/annotations/rect.js +12 -40
  375. package/dist/chart_types/xy_chart/renderer/canvas/annotations/rect.js.map +1 -1
  376. package/dist/chart_types/xy_chart/renderer/canvas/areas.js +34 -39
  377. package/dist/chart_types/xy_chart/renderer/canvas/areas.js.map +1 -1
  378. package/dist/chart_types/xy_chart/renderer/canvas/axes/index.js +8 -8
  379. package/dist/chart_types/xy_chart/renderer/canvas/axes/index.js.map +1 -1
  380. package/dist/chart_types/xy_chart/renderer/canvas/axes/line.js +2 -3
  381. package/dist/chart_types/xy_chart/renderer/canvas/axes/line.js.map +1 -1
  382. package/dist/chart_types/xy_chart/renderer/canvas/axes/tick.js +27 -31
  383. package/dist/chart_types/xy_chart/renderer/canvas/axes/tick.js.map +1 -1
  384. package/dist/chart_types/xy_chart/renderer/canvas/axes/tick_label.js +15 -27
  385. package/dist/chart_types/xy_chart/renderer/canvas/axes/tick_label.js.map +1 -1
  386. package/dist/chart_types/xy_chart/renderer/canvas/bars.js +12 -17
  387. package/dist/chart_types/xy_chart/renderer/canvas/bars.js.map +1 -1
  388. package/dist/chart_types/xy_chart/renderer/canvas/bubbles.js +7 -8
  389. package/dist/chart_types/xy_chart/renderer/canvas/bubbles.js.map +1 -1
  390. package/dist/chart_types/xy_chart/renderer/canvas/grids.js +7 -12
  391. package/dist/chart_types/xy_chart/renderer/canvas/grids.js.map +1 -1
  392. package/dist/chart_types/xy_chart/renderer/canvas/lines.js +24 -28
  393. package/dist/chart_types/xy_chart/renderer/canvas/lines.js.map +1 -1
  394. package/dist/chart_types/xy_chart/renderer/canvas/panel_clipping.js +5 -5
  395. package/dist/chart_types/xy_chart/renderer/canvas/panel_clipping.js.map +1 -1
  396. package/dist/chart_types/xy_chart/renderer/canvas/panels/panels.js +39 -57
  397. package/dist/chart_types/xy_chart/renderer/canvas/panels/panels.js.map +1 -1
  398. package/dist/chart_types/xy_chart/renderer/canvas/panels/title.js +31 -43
  399. package/dist/chart_types/xy_chart/renderer/canvas/panels/title.js.map +1 -1
  400. package/dist/chart_types/xy_chart/renderer/canvas/points.js +25 -41
  401. package/dist/chart_types/xy_chart/renderer/canvas/points.js.map +1 -1
  402. package/dist/chart_types/xy_chart/renderer/canvas/primitives/line.js +9 -31
  403. package/dist/chart_types/xy_chart/renderer/canvas/primitives/line.js.map +1 -1
  404. package/dist/chart_types/xy_chart/renderer/canvas/primitives/path.js +9 -10
  405. package/dist/chart_types/xy_chart/renderer/canvas/primitives/path.js.map +1 -1
  406. package/dist/chart_types/xy_chart/renderer/canvas/primitives/rect.js +7 -10
  407. package/dist/chart_types/xy_chart/renderer/canvas/primitives/rect.js.map +1 -1
  408. package/dist/chart_types/xy_chart/renderer/canvas/primitives/shapes.js +9 -28
  409. package/dist/chart_types/xy_chart/renderer/canvas/primitives/shapes.js.map +1 -1
  410. package/dist/chart_types/xy_chart/renderer/canvas/primitives/text.js +37 -42
  411. package/dist/chart_types/xy_chart/renderer/canvas/primitives/text.js.map +1 -1
  412. package/dist/chart_types/xy_chart/renderer/canvas/renderers.js +63 -80
  413. package/dist/chart_types/xy_chart/renderer/canvas/renderers.js.map +1 -1
  414. package/dist/chart_types/xy_chart/renderer/canvas/styles/area.js +7 -7
  415. package/dist/chart_types/xy_chart/renderer/canvas/styles/area.js.map +1 -1
  416. package/dist/chart_types/xy_chart/renderer/canvas/styles/bar.js +10 -10
  417. package/dist/chart_types/xy_chart/renderer/canvas/styles/bar.js.map +1 -1
  418. package/dist/chart_types/xy_chart/renderer/canvas/styles/line.js +3 -3
  419. package/dist/chart_types/xy_chart/renderer/canvas/styles/line.js.map +1 -1
  420. package/dist/chart_types/xy_chart/renderer/canvas/utils/debug.js +12 -29
  421. package/dist/chart_types/xy_chart/renderer/canvas/utils/debug.js.map +1 -1
  422. package/dist/chart_types/xy_chart/renderer/canvas/utils/has_mostly_rtl.js +5 -13
  423. package/dist/chart_types/xy_chart/renderer/canvas/utils/has_mostly_rtl.js.map +1 -1
  424. package/dist/chart_types/xy_chart/renderer/canvas/utils/panel_transform.js +6 -6
  425. package/dist/chart_types/xy_chart/renderer/canvas/utils/panel_transform.js.map +1 -1
  426. package/dist/chart_types/xy_chart/renderer/canvas/values/bar.js +67 -82
  427. package/dist/chart_types/xy_chart/renderer/canvas/values/bar.js.map +1 -1
  428. package/dist/chart_types/xy_chart/renderer/canvas/xy_chart.js +66 -86
  429. package/dist/chart_types/xy_chart/renderer/canvas/xy_chart.js.map +1 -1
  430. package/dist/chart_types/xy_chart/renderer/common/utils.js +18 -24
  431. package/dist/chart_types/xy_chart/renderer/common/utils.js.map +1 -1
  432. package/dist/chart_types/xy_chart/renderer/dom/annotations/annotation_tooltip.js +22 -41
  433. package/dist/chart_types/xy_chart/renderer/dom/annotations/annotation_tooltip.js.map +1 -1
  434. package/dist/chart_types/xy_chart/renderer/dom/annotations/annotations.js +44 -70
  435. package/dist/chart_types/xy_chart/renderer/dom/annotations/annotations.js.map +1 -1
  436. package/dist/chart_types/xy_chart/renderer/dom/annotations/line_marker.js +41 -49
  437. package/dist/chart_types/xy_chart/renderer/dom/annotations/line_marker.js.map +1 -1
  438. package/dist/chart_types/xy_chart/renderer/dom/annotations/tooltip_content.js +12 -13
  439. package/dist/chart_types/xy_chart/renderer/dom/annotations/tooltip_content.js.map +1 -1
  440. package/dist/chart_types/xy_chart/renderer/dom/cursor_band.js +32 -63
  441. package/dist/chart_types/xy_chart/renderer/dom/cursor_band.js.map +1 -1
  442. package/dist/chart_types/xy_chart/renderer/dom/cursor_crossline.js +30 -61
  443. package/dist/chart_types/xy_chart/renderer/dom/cursor_crossline.js.map +1 -1
  444. package/dist/chart_types/xy_chart/renderer/dom/cursor_line.js +34 -65
  445. package/dist/chart_types/xy_chart/renderer/dom/cursor_line.js.map +1 -1
  446. package/dist/chart_types/xy_chart/renderer/dom/highlighter.js +48 -85
  447. package/dist/chart_types/xy_chart/renderer/dom/highlighter.js.map +1 -1
  448. package/dist/chart_types/xy_chart/renderer/shapes_paths.js +29 -41
  449. package/dist/chart_types/xy_chart/renderer/shapes_paths.js.map +1 -1
  450. package/dist/chart_types/xy_chart/rendering/area.js +26 -29
  451. package/dist/chart_types/xy_chart/rendering/area.js.map +1 -1
  452. package/dist/chart_types/xy_chart/rendering/bars.js +68 -76
  453. package/dist/chart_types/xy_chart/rendering/bars.js.map +1 -1
  454. package/dist/chart_types/xy_chart/rendering/bubble.js +7 -7
  455. package/dist/chart_types/xy_chart/rendering/bubble.js.map +1 -1
  456. package/dist/chart_types/xy_chart/rendering/line.js +18 -21
  457. package/dist/chart_types/xy_chart/rendering/line.js.map +1 -1
  458. package/dist/chart_types/xy_chart/rendering/point_style.js +5 -5
  459. package/dist/chart_types/xy_chart/rendering/point_style.js.map +1 -1
  460. package/dist/chart_types/xy_chart/rendering/points.js +69 -97
  461. package/dist/chart_types/xy_chart/rendering/points.js.map +1 -1
  462. package/dist/chart_types/xy_chart/rendering/utils.js +41 -75
  463. package/dist/chart_types/xy_chart/rendering/utils.js.map +1 -1
  464. package/dist/chart_types/xy_chart/scales/get_api_scales.js +1 -1
  465. package/dist/chart_types/xy_chart/scales/get_api_scales.js.map +1 -1
  466. package/dist/chart_types/xy_chart/scales/scale_defaults.js +2 -2
  467. package/dist/chart_types/xy_chart/scales/scale_defaults.js.map +1 -1
  468. package/dist/chart_types/xy_chart/specs/area_series.d.ts +2 -2
  469. package/dist/chart_types/xy_chart/specs/area_series.d.ts.map +1 -1
  470. package/dist/chart_types/xy_chart/specs/area_series.js +10 -21
  471. package/dist/chart_types/xy_chart/specs/area_series.js.map +1 -1
  472. package/dist/chart_types/xy_chart/specs/axis.d.ts +1 -1
  473. package/dist/chart_types/xy_chart/specs/axis.d.ts.map +1 -1
  474. package/dist/chart_types/xy_chart/specs/axis.js +5 -5
  475. package/dist/chart_types/xy_chart/specs/axis.js.map +1 -1
  476. package/dist/chart_types/xy_chart/specs/bar_series.d.ts +2 -2
  477. package/dist/chart_types/xy_chart/specs/bar_series.d.ts.map +1 -1
  478. package/dist/chart_types/xy_chart/specs/bar_series.js +10 -21
  479. package/dist/chart_types/xy_chart/specs/bar_series.js.map +1 -1
  480. package/dist/chart_types/xy_chart/specs/bubble_series.d.ts +2 -2
  481. package/dist/chart_types/xy_chart/specs/bubble_series.d.ts.map +1 -1
  482. package/dist/chart_types/xy_chart/specs/bubble_series.js +10 -21
  483. package/dist/chart_types/xy_chart/specs/bubble_series.js.map +1 -1
  484. package/dist/chart_types/xy_chart/specs/histogram_bar_series.d.ts +2 -2
  485. package/dist/chart_types/xy_chart/specs/histogram_bar_series.d.ts.map +1 -1
  486. package/dist/chart_types/xy_chart/specs/histogram_bar_series.js +10 -21
  487. package/dist/chart_types/xy_chart/specs/histogram_bar_series.js.map +1 -1
  488. package/dist/chart_types/xy_chart/specs/line_annotation.d.ts +2 -2
  489. package/dist/chart_types/xy_chart/specs/line_annotation.js +10 -21
  490. package/dist/chart_types/xy_chart/specs/line_annotation.js.map +1 -1
  491. package/dist/chart_types/xy_chart/specs/line_series.d.ts +2 -2
  492. package/dist/chart_types/xy_chart/specs/line_series.d.ts.map +1 -1
  493. package/dist/chart_types/xy_chart/specs/line_series.js +10 -21
  494. package/dist/chart_types/xy_chart/specs/line_series.js.map +1 -1
  495. package/dist/chart_types/xy_chart/specs/rect_annotation.d.ts +1 -1
  496. package/dist/chart_types/xy_chart/specs/rect_annotation.d.ts.map +1 -1
  497. package/dist/chart_types/xy_chart/specs/rect_annotation.js +5 -5
  498. package/dist/chart_types/xy_chart/specs/rect_annotation.js.map +1 -1
  499. package/dist/chart_types/xy_chart/state/chart_state.js +76 -77
  500. package/dist/chart_types/xy_chart/state/chart_state.js.map +1 -1
  501. package/dist/chart_types/xy_chart/state/selectors/axis_tick_formatter.js +20 -50
  502. package/dist/chart_types/xy_chart/state/selectors/axis_tick_formatter.js.map +1 -1
  503. package/dist/chart_types/xy_chart/state/selectors/compute_annotations.js +10 -17
  504. package/dist/chart_types/xy_chart/state/selectors/compute_annotations.js.map +1 -1
  505. package/dist/chart_types/xy_chart/state/selectors/compute_axes_geometries.js +8 -8
  506. package/dist/chart_types/xy_chart/state/selectors/compute_axes_geometries.js.map +1 -1
  507. package/dist/chart_types/xy_chart/state/selectors/compute_axis_ticks_dimensions.js +64 -114
  508. package/dist/chart_types/xy_chart/state/selectors/compute_axis_ticks_dimensions.js.map +1 -1
  509. package/dist/chart_types/xy_chart/state/selectors/compute_chart_dimensions.js +8 -8
  510. package/dist/chart_types/xy_chart/state/selectors/compute_chart_dimensions.js.map +1 -1
  511. package/dist/chart_types/xy_chart/state/selectors/compute_chart_transform.js +5 -7
  512. package/dist/chart_types/xy_chart/state/selectors/compute_chart_transform.js.map +1 -1
  513. package/dist/chart_types/xy_chart/state/selectors/compute_legend.js +11 -12
  514. package/dist/chart_types/xy_chart/state/selectors/compute_legend.js.map +1 -1
  515. package/dist/chart_types/xy_chart/state/selectors/compute_per_panel_axes_geoms.js +21 -42
  516. package/dist/chart_types/xy_chart/state/selectors/compute_per_panel_axes_geoms.js.map +1 -1
  517. package/dist/chart_types/xy_chart/state/selectors/compute_series_domains.js +7 -7
  518. package/dist/chart_types/xy_chart/state/selectors/compute_series_domains.js.map +1 -1
  519. package/dist/chart_types/xy_chart/state/selectors/compute_series_geometries.js +13 -15
  520. package/dist/chart_types/xy_chart/state/selectors/compute_series_geometries.js.map +1 -1
  521. package/dist/chart_types/xy_chart/state/selectors/count_bars_in_cluster.js +13 -17
  522. package/dist/chart_types/xy_chart/state/selectors/count_bars_in_cluster.js.map +1 -1
  523. package/dist/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.js +24 -35
  524. package/dist/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.js.map +1 -1
  525. package/dist/chart_types/xy_chart/state/selectors/get_api_scale_configs.js +35 -39
  526. package/dist/chart_types/xy_chart/state/selectors/get_api_scale_configs.js.map +1 -1
  527. package/dist/chart_types/xy_chart/state/selectors/get_axis_styles.js +9 -25
  528. package/dist/chart_types/xy_chart/state/selectors/get_axis_styles.js.map +1 -1
  529. package/dist/chart_types/xy_chart/state/selectors/get_bar_paddings.js +4 -6
  530. package/dist/chart_types/xy_chart/state/selectors/get_bar_paddings.js.map +1 -1
  531. package/dist/chart_types/xy_chart/state/selectors/get_brush_area.js +36 -45
  532. package/dist/chart_types/xy_chart/state/selectors/get_brush_area.js.map +1 -1
  533. package/dist/chart_types/xy_chart/state/selectors/get_chart_type_description.js +6 -31
  534. package/dist/chart_types/xy_chart/state/selectors/get_chart_type_description.js.map +1 -1
  535. package/dist/chart_types/xy_chart/state/selectors/get_computed_scales.js +3 -6
  536. package/dist/chart_types/xy_chart/state/selectors/get_computed_scales.js.map +1 -1
  537. package/dist/chart_types/xy_chart/state/selectors/get_cursor_band.js +28 -41
  538. package/dist/chart_types/xy_chart/state/selectors/get_cursor_band.js.map +1 -1
  539. package/dist/chart_types/xy_chart/state/selectors/get_cursor_line.js +6 -8
  540. package/dist/chart_types/xy_chart/state/selectors/get_cursor_line.js.map +1 -1
  541. package/dist/chart_types/xy_chart/state/selectors/get_cursor_pointer.js +15 -16
  542. package/dist/chart_types/xy_chart/state/selectors/get_cursor_pointer.js.map +1 -1
  543. package/dist/chart_types/xy_chart/state/selectors/get_debug_state.js +81 -160
  544. package/dist/chart_types/xy_chart/state/selectors/get_debug_state.js.map +1 -1
  545. package/dist/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.js +14 -16
  546. package/dist/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.js.map +1 -1
  547. package/dist/chart_types/xy_chart/state/selectors/get_geometries_index.js +3 -6
  548. package/dist/chart_types/xy_chart/state/selectors/get_geometries_index.js.map +1 -1
  549. package/dist/chart_types/xy_chart/state/selectors/get_geometries_index_keys.js +4 -4
  550. package/dist/chart_types/xy_chart/state/selectors/get_geometries_index_keys.js.map +1 -1
  551. package/dist/chart_types/xy_chart/state/selectors/get_grid_lines.js +6 -6
  552. package/dist/chart_types/xy_chart/state/selectors/get_grid_lines.js.map +1 -1
  553. package/dist/chart_types/xy_chart/state/selectors/get_highlighted_annotation_ids_selector.js +11 -17
  554. package/dist/chart_types/xy_chart/state/selectors/get_highlighted_annotation_ids_selector.js.map +1 -1
  555. package/dist/chart_types/xy_chart/state/selectors/get_highlighted_series.js +6 -15
  556. package/dist/chart_types/xy_chart/state/selectors/get_highlighted_series.js.map +1 -1
  557. package/dist/chart_types/xy_chart/state/selectors/get_legend_item_extra_values.js +4 -7
  558. package/dist/chart_types/xy_chart/state/selectors/get_legend_item_extra_values.js.map +1 -1
  559. package/dist/chart_types/xy_chart/state/selectors/get_legend_items_labels.js +11 -15
  560. package/dist/chart_types/xy_chart/state/selectors/get_legend_items_labels.js.map +1 -1
  561. package/dist/chart_types/xy_chart/state/selectors/get_multiple_rectangle_annotations.js +16 -20
  562. package/dist/chart_types/xy_chart/state/selectors/get_multiple_rectangle_annotations.js.map +1 -1
  563. package/dist/chart_types/xy_chart/state/selectors/get_oriented_projected_pointer_position.js +10 -11
  564. package/dist/chart_types/xy_chart/state/selectors/get_oriented_projected_pointer_position.js.map +1 -1
  565. package/dist/chart_types/xy_chart/state/selectors/get_projected_pointer_position.js +19 -24
  566. package/dist/chart_types/xy_chart/state/selectors/get_projected_pointer_position.js.map +1 -1
  567. package/dist/chart_types/xy_chart/state/selectors/get_projected_scaled_values.js +8 -38
  568. package/dist/chart_types/xy_chart/state/selectors/get_projected_scaled_values.js.map +1 -1
  569. package/dist/chart_types/xy_chart/state/selectors/get_series_color_map.js +8 -9
  570. package/dist/chart_types/xy_chart/state/selectors/get_series_color_map.js.map +1 -1
  571. package/dist/chart_types/xy_chart/state/selectors/get_si_dataseries_map.js +6 -7
  572. package/dist/chart_types/xy_chart/state/selectors/get_si_dataseries_map.js.map +1 -1
  573. package/dist/chart_types/xy_chart/state/selectors/get_specs.js +9 -13
  574. package/dist/chart_types/xy_chart/state/selectors/get_specs.js.map +1 -1
  575. package/dist/chart_types/xy_chart/state/selectors/get_tooltip_anchor_position.js +13 -14
  576. package/dist/chart_types/xy_chart/state/selectors/get_tooltip_anchor_position.js.map +1 -1
  577. package/dist/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.js +58 -95
  578. package/dist/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.js.map +1 -1
  579. package/dist/chart_types/xy_chart/state/selectors/has_single_series.js +3 -5
  580. package/dist/chart_types/xy_chart/state/selectors/has_single_series.js.map +1 -1
  581. package/dist/chart_types/xy_chart/state/selectors/is_annotation_tooltip_visible.js +3 -3
  582. package/dist/chart_types/xy_chart/state/selectors/is_annotation_tooltip_visible.js.map +1 -1
  583. package/dist/chart_types/xy_chart/state/selectors/is_brush_available.js +5 -5
  584. package/dist/chart_types/xy_chart/state/selectors/is_brush_available.js.map +1 -1
  585. package/dist/chart_types/xy_chart/state/selectors/is_chart_empty.js +4 -6
  586. package/dist/chart_types/xy_chart/state/selectors/is_chart_empty.js.map +1 -1
  587. package/dist/chart_types/xy_chart/state/selectors/is_histogram_mode_enabled.js +4 -4
  588. package/dist/chart_types/xy_chart/state/selectors/is_histogram_mode_enabled.js.map +1 -1
  589. package/dist/chart_types/xy_chart/state/selectors/is_tooltip_snap_enabled.js +4 -7
  590. package/dist/chart_types/xy_chart/state/selectors/is_tooltip_snap_enabled.js.map +1 -1
  591. package/dist/chart_types/xy_chart/state/selectors/is_tooltip_visible.js +13 -16
  592. package/dist/chart_types/xy_chart/state/selectors/is_tooltip_visible.js.map +1 -1
  593. package/dist/chart_types/xy_chart/state/selectors/merge_y_custom_domains.js +8 -8
  594. package/dist/chart_types/xy_chart/state/selectors/merge_y_custom_domains.js.map +1 -1
  595. package/dist/chart_types/xy_chart/state/selectors/on_brush_end_caller.js +59 -78
  596. package/dist/chart_types/xy_chart/state/selectors/on_brush_end_caller.js.map +1 -1
  597. package/dist/chart_types/xy_chart/state/selectors/on_click_caller.js +25 -29
  598. package/dist/chart_types/xy_chart/state/selectors/on_click_caller.js.map +1 -1
  599. package/dist/chart_types/xy_chart/state/selectors/on_element_out_caller.js +12 -13
  600. package/dist/chart_types/xy_chart/state/selectors/on_element_out_caller.js.map +1 -1
  601. package/dist/chart_types/xy_chart/state/selectors/on_element_over_caller.js +17 -22
  602. package/dist/chart_types/xy_chart/state/selectors/on_element_over_caller.js.map +1 -1
  603. package/dist/chart_types/xy_chart/state/selectors/on_pointer_move_caller.js +34 -77
  604. package/dist/chart_types/xy_chart/state/selectors/on_pointer_move_caller.js.map +1 -1
  605. package/dist/chart_types/xy_chart/state/selectors/on_projection_area_caller.js +11 -24
  606. package/dist/chart_types/xy_chart/state/selectors/on_projection_area_caller.js.map +1 -1
  607. package/dist/chart_types/xy_chart/state/selectors/visible_ticks.js +123 -168
  608. package/dist/chart_types/xy_chart/state/selectors/visible_ticks.js.map +1 -1
  609. package/dist/chart_types/xy_chart/state/utils/common.js +11 -35
  610. package/dist/chart_types/xy_chart/state/utils/common.js.map +1 -1
  611. package/dist/chart_types/xy_chart/state/utils/get_last_value.js +10 -10
  612. package/dist/chart_types/xy_chart/state/utils/get_last_value.js.map +1 -1
  613. package/dist/chart_types/xy_chart/state/utils/spec.js +5 -6
  614. package/dist/chart_types/xy_chart/state/utils/spec.js.map +1 -1
  615. package/dist/chart_types/xy_chart/state/utils/utils.js +138 -216
  616. package/dist/chart_types/xy_chart/state/utils/utils.js.map +1 -1
  617. package/dist/chart_types/xy_chart/tooltip/tooltip.js +41 -43
  618. package/dist/chart_types/xy_chart/tooltip/tooltip.js.map +1 -1
  619. package/dist/chart_types/xy_chart/utils/axis_type_utils.js +1 -1
  620. package/dist/chart_types/xy_chart/utils/axis_type_utils.js.map +1 -1
  621. package/dist/chart_types/xy_chart/utils/axis_utils.js +63 -103
  622. package/dist/chart_types/xy_chart/utils/axis_utils.js.map +1 -1
  623. package/dist/chart_types/xy_chart/utils/dimensions.js +5 -5
  624. package/dist/chart_types/xy_chart/utils/dimensions.js.map +1 -1
  625. package/dist/chart_types/xy_chart/utils/diverging_offsets.js +38 -39
  626. package/dist/chart_types/xy_chart/utils/diverging_offsets.js.map +1 -1
  627. package/dist/chart_types/xy_chart/utils/fill_series.js +22 -52
  628. package/dist/chart_types/xy_chart/utils/fill_series.js.map +1 -1
  629. package/dist/chart_types/xy_chart/utils/fit_function.js +111 -73
  630. package/dist/chart_types/xy_chart/utils/fit_function.js.map +1 -1
  631. package/dist/chart_types/xy_chart/utils/fit_function_utils.js +13 -32
  632. package/dist/chart_types/xy_chart/utils/fit_function_utils.js.map +1 -1
  633. package/dist/chart_types/xy_chart/utils/get_linear_ticks.js +21 -25
  634. package/dist/chart_types/xy_chart/utils/get_linear_ticks.js.map +1 -1
  635. package/dist/chart_types/xy_chart/utils/grid_lines.js +31 -71
  636. package/dist/chart_types/xy_chart/utils/grid_lines.js.map +1 -1
  637. package/dist/chart_types/xy_chart/utils/group_data_series.js +6 -7
  638. package/dist/chart_types/xy_chart/utils/group_data_series.js.map +1 -1
  639. package/dist/chart_types/xy_chart/utils/indexed_geometry_linear_map.js +19 -49
  640. package/dist/chart_types/xy_chart/utils/indexed_geometry_linear_map.js.map +1 -1
  641. package/dist/chart_types/xy_chart/utils/indexed_geometry_map.js +37 -98
  642. package/dist/chart_types/xy_chart/utils/indexed_geometry_map.js.map +1 -1
  643. package/dist/chart_types/xy_chart/utils/indexed_geometry_spatial_map.js +40 -80
  644. package/dist/chart_types/xy_chart/utils/indexed_geometry_spatial_map.js.map +1 -1
  645. package/dist/chart_types/xy_chart/utils/scales.js +45 -62
  646. package/dist/chart_types/xy_chart/utils/scales.js.map +1 -1
  647. package/dist/chart_types/xy_chart/utils/series.js +157 -253
  648. package/dist/chart_types/xy_chart/utils/series.js.map +1 -1
  649. package/dist/chart_types/xy_chart/utils/specs.d.ts +0 -23
  650. package/dist/chart_types/xy_chart/utils/specs.d.ts.map +1 -1
  651. package/dist/chart_types/xy_chart/utils/specs.js.map +1 -1
  652. package/dist/chart_types/xy_chart/utils/stacked_series_utils.js +49 -93
  653. package/dist/chart_types/xy_chart/utils/stacked_series_utils.js.map +1 -1
  654. package/dist/chart_types/xy_chart/utils/texture.js +28 -45
  655. package/dist/chart_types/xy_chart/utils/texture.js.map +1 -1
  656. package/dist/common/apca_color_contrast.js +22 -40
  657. package/dist/common/apca_color_contrast.js.map +1 -1
  658. package/dist/common/color_calcs.js +17 -48
  659. package/dist/common/color_calcs.js.map +1 -1
  660. package/dist/common/color_library_wrappers.js +20 -46
  661. package/dist/common/color_library_wrappers.js.map +1 -1
  662. package/dist/common/config_objects.js +14 -61
  663. package/dist/common/config_objects.js.map +1 -1
  664. package/dist/common/data_structures.js +11 -13
  665. package/dist/common/data_structures.js.map +1 -1
  666. package/dist/common/event_handler_selectors.js +50 -56
  667. package/dist/common/event_handler_selectors.js.map +1 -1
  668. package/dist/common/fill_text_color.js +7 -8
  669. package/dist/common/fill_text_color.js.map +1 -1
  670. package/dist/common/geometry.js +4 -5
  671. package/dist/common/geometry.js.map +1 -1
  672. package/dist/common/hooks/use_render_skip.js +5 -22
  673. package/dist/common/hooks/use_render_skip.js.map +1 -1
  674. package/dist/common/iterables.js +14 -131
  675. package/dist/common/iterables.js.map +1 -1
  676. package/dist/common/kingly.js +168 -219
  677. package/dist/common/kingly.js.map +1 -1
  678. package/dist/common/math.js +5 -5
  679. package/dist/common/math.js.map +1 -1
  680. package/dist/common/panel_utils.js +30 -75
  681. package/dist/common/panel_utils.js.map +1 -1
  682. package/dist/common/predicate.js +14 -16
  683. package/dist/common/predicate.js.map +1 -1
  684. package/dist/common/text_utils.js +17 -43
  685. package/dist/common/text_utils.js.map +1 -1
  686. package/dist/common/wcag2_color_contrast.js +6 -23
  687. package/dist/common/wcag2_color_contrast.js.map +1 -1
  688. package/dist/components/accessibility/description.js +1 -1
  689. package/dist/components/accessibility/description.js.map +1 -1
  690. package/dist/components/accessibility/goal_semantic_description.js +8 -10
  691. package/dist/components/accessibility/goal_semantic_description.js.map +1 -1
  692. package/dist/components/accessibility/label.js +5 -6
  693. package/dist/components/accessibility/label.js.map +1 -1
  694. package/dist/components/accessibility/partitions_data_table.js +28 -46
  695. package/dist/components/accessibility/partitions_data_table.js.map +1 -1
  696. package/dist/components/accessibility/screen_reader_summary.js +15 -27
  697. package/dist/components/accessibility/screen_reader_summary.js.map +1 -1
  698. package/dist/components/accessibility/types.js +3 -4
  699. package/dist/components/accessibility/types.js.map +1 -1
  700. package/dist/components/brush/brush.js +43 -61
  701. package/dist/components/brush/brush.js.map +1 -1
  702. package/dist/components/chart.js +66 -111
  703. package/dist/components/chart.js.map +1 -1
  704. package/dist/components/chart_background.js +13 -32
  705. package/dist/components/chart_background.js.map +1 -1
  706. package/dist/components/chart_container.js +86 -111
  707. package/dist/components/chart_container.js.map +1 -1
  708. package/dist/components/chart_resizer.js +37 -57
  709. package/dist/components/chart_resizer.js.map +1 -1
  710. package/dist/components/chart_status.js +24 -42
  711. package/dist/components/chart_status.js.map +1 -1
  712. package/dist/components/error_boundary/error_boundary.js +14 -32
  713. package/dist/components/error_boundary/error_boundary.js.map +1 -1
  714. package/dist/components/error_boundary/errors.js +5 -23
  715. package/dist/components/error_boundary/errors.js.map +1 -1
  716. package/dist/components/icons/assets/alert.js +2 -13
  717. package/dist/components/icons/assets/alert.js.map +1 -1
  718. package/dist/components/icons/assets/dot.js +9 -40
  719. package/dist/components/icons/assets/dot.js.map +1 -1
  720. package/dist/components/icons/assets/empty.js +2 -13
  721. package/dist/components/icons/assets/empty.js.map +1 -1
  722. package/dist/components/icons/assets/eye.js +2 -13
  723. package/dist/components/icons/assets/eye.js.map +1 -1
  724. package/dist/components/icons/assets/eye_closed.js +2 -13
  725. package/dist/components/icons/assets/eye_closed.js.map +1 -1
  726. package/dist/components/icons/assets/list.js +2 -13
  727. package/dist/components/icons/assets/list.js.map +1 -1
  728. package/dist/components/icons/assets/question_in_circle.js +2 -13
  729. package/dist/components/icons/assets/question_in_circle.js.map +1 -1
  730. package/dist/components/icons/icon.js +18 -41
  731. package/dist/components/icons/icon.js.map +1 -1
  732. package/dist/components/legend/color.js +7 -8
  733. package/dist/components/legend/color.js.map +1 -1
  734. package/dist/components/legend/custom_legend.js +6 -31
  735. package/dist/components/legend/custom_legend.js.map +1 -1
  736. package/dist/components/legend/extra.js +2 -2
  737. package/dist/components/legend/extra.js.map +1 -1
  738. package/dist/components/legend/label.js +12 -17
  739. package/dist/components/legend/label.js.map +1 -1
  740. package/dist/components/legend/legend.js +60 -83
  741. package/dist/components/legend/legend.js.map +1 -1
  742. package/dist/components/legend/legend_icon.js +14 -27
  743. package/dist/components/legend/legend_icon.js.map +1 -1
  744. package/dist/components/legend/legend_item.js +57 -88
  745. package/dist/components/legend/legend_item.js.map +1 -1
  746. package/dist/components/legend/position_style.js +11 -13
  747. package/dist/components/legend/position_style.js.map +1 -1
  748. package/dist/components/legend/style_utils.js +17 -26
  749. package/dist/components/legend/style_utils.js.map +1 -1
  750. package/dist/components/legend/utils.js +5 -24
  751. package/dist/components/legend/utils.js.map +1 -1
  752. package/dist/components/no_results.js +3 -6
  753. package/dist/components/no_results.js.map +1 -1
  754. package/dist/components/portal/tooltip_portal.js +39 -43
  755. package/dist/components/portal/tooltip_portal.js.map +1 -1
  756. package/dist/components/portal/utils.js +10 -11
  757. package/dist/components/portal/utils.js.map +1 -1
  758. package/dist/components/tooltip/components/tooltip_actions.js +29 -103
  759. package/dist/components/tooltip/components/tooltip_actions.js.map +1 -1
  760. package/dist/components/tooltip/components/tooltip_container.js +6 -6
  761. package/dist/components/tooltip/components/tooltip_container.js.map +1 -1
  762. package/dist/components/tooltip/components/tooltip_divider.js +3 -4
  763. package/dist/components/tooltip/components/tooltip_divider.js.map +1 -1
  764. package/dist/components/tooltip/components/tooltip_footer.js +3 -4
  765. package/dist/components/tooltip/components/tooltip_footer.js.map +1 -1
  766. package/dist/components/tooltip/components/tooltip_header.js +5 -5
  767. package/dist/components/tooltip/components/tooltip_header.js.map +1 -1
  768. package/dist/components/tooltip/components/tooltip_metric_row.js +2 -3
  769. package/dist/components/tooltip/components/tooltip_metric_row.js.map +1 -1
  770. package/dist/components/tooltip/components/tooltip_prompt.js +3 -4
  771. package/dist/components/tooltip/components/tooltip_prompt.js.map +1 -1
  772. package/dist/components/tooltip/components/tooltip_provider.js +8 -22
  773. package/dist/components/tooltip/components/tooltip_provider.js.map +1 -1
  774. package/dist/components/tooltip/components/tooltip_table.js +32 -59
  775. package/dist/components/tooltip/components/tooltip_table.js.map +1 -1
  776. package/dist/components/tooltip/components/tooltip_table_body.js +22 -43
  777. package/dist/components/tooltip/components/tooltip_table_body.js.map +1 -1
  778. package/dist/components/tooltip/components/tooltip_table_cell.js +6 -7
  779. package/dist/components/tooltip/components/tooltip_table_cell.js.map +1 -1
  780. package/dist/components/tooltip/components/tooltip_table_color_cell.js +18 -41
  781. package/dist/components/tooltip/components/tooltip_table_color_cell.js.map +1 -1
  782. package/dist/components/tooltip/components/tooltip_table_footer.js +10 -23
  783. package/dist/components/tooltip/components/tooltip_table_footer.js.map +1 -1
  784. package/dist/components/tooltip/components/tooltip_table_header.js +10 -23
  785. package/dist/components/tooltip/components/tooltip_table_header.js.map +1 -1
  786. package/dist/components/tooltip/components/tooltip_table_row.js +8 -9
  787. package/dist/components/tooltip/components/tooltip_table_row.js.map +1 -1
  788. package/dist/components/tooltip/components/tooltip_wrapper.js +15 -32
  789. package/dist/components/tooltip/components/tooltip_wrapper.js.map +1 -1
  790. package/dist/components/tooltip/placement.js +2 -3
  791. package/dist/components/tooltip/placement.js.map +1 -1
  792. package/dist/components/tooltip/tooltip.js +93 -138
  793. package/dist/components/tooltip/tooltip.js.map +1 -1
  794. package/dist/geoms/path.js +8 -8
  795. package/dist/geoms/path.js.map +1 -1
  796. package/dist/index.d.ts +0 -1
  797. package/dist/index.d.ts.map +1 -1
  798. package/dist/index.js +0 -1
  799. package/dist/index.js.map +1 -1
  800. package/dist/renderers/canvas/index.js +14 -36
  801. package/dist/renderers/canvas/index.js.map +1 -1
  802. package/dist/scales/scale_band.js +28 -55
  803. package/dist/scales/scale_band.js.map +1 -1
  804. package/dist/scales/scale_continuous.js +103 -128
  805. package/dist/scales/scale_continuous.js.map +1 -1
  806. package/dist/scales/types.js +1 -1
  807. package/dist/scales/types.js.map +1 -1
  808. package/dist/scales/utils.js +3 -3
  809. package/dist/scales/utils.js.map +1 -1
  810. package/dist/solvers/monotonic_hill_climb.js +11 -13
  811. package/dist/solvers/monotonic_hill_climb.js.map +1 -1
  812. package/dist/solvers/screenspace_marker_scale_compressor.js +10 -10
  813. package/dist/solvers/screenspace_marker_scale_compressor.js.map +1 -1
  814. package/dist/specs/constants.d.ts +1 -1
  815. package/dist/specs/constants.d.ts.map +1 -1
  816. package/dist/specs/constants.js +27 -19
  817. package/dist/specs/constants.js.map +1 -1
  818. package/dist/specs/group_by.js +8 -19
  819. package/dist/specs/group_by.js.map +1 -1
  820. package/dist/specs/settings.d.ts +0 -6
  821. package/dist/specs/settings.d.ts.map +1 -1
  822. package/dist/specs/settings.js +6 -17
  823. package/dist/specs/settings.js.map +1 -1
  824. package/dist/specs/small_multiples.js +3 -3
  825. package/dist/specs/small_multiples.js.map +1 -1
  826. package/dist/specs/specs_parser.js +13 -15
  827. package/dist/specs/specs_parser.js.map +1 -1
  828. package/dist/specs/tooltip.d.ts +2 -22
  829. package/dist/specs/tooltip.d.ts.map +1 -1
  830. package/dist/specs/tooltip.js +18 -25
  831. package/dist/specs/tooltip.js.map +1 -1
  832. package/dist/state/actions/chart_settings.js +1 -1
  833. package/dist/state/actions/chart_settings.js.map +1 -1
  834. package/dist/state/actions/colors.js +2 -2
  835. package/dist/state/actions/colors.js.map +1 -1
  836. package/dist/state/actions/dom_element.js +1 -1
  837. package/dist/state/actions/dom_element.js.map +1 -1
  838. package/dist/state/actions/events.js +1 -1
  839. package/dist/state/actions/events.js.map +1 -1
  840. package/dist/state/actions/key.js +1 -1
  841. package/dist/state/actions/key.js.map +1 -1
  842. package/dist/state/actions/legend.js +3 -4
  843. package/dist/state/actions/legend.js.map +1 -1
  844. package/dist/state/actions/mouse.js +4 -4
  845. package/dist/state/actions/mouse.js.map +1 -1
  846. package/dist/state/actions/specs.js +2 -2
  847. package/dist/state/actions/specs.js.map +1 -1
  848. package/dist/state/actions/tooltip.js +4 -5
  849. package/dist/state/actions/tooltip.js.map +1 -1
  850. package/dist/state/actions/z_index.js +1 -1
  851. package/dist/state/actions/z_index.js.map +1 -1
  852. package/dist/state/chart_state.js +178 -124
  853. package/dist/state/chart_state.js.map +1 -1
  854. package/dist/state/create_selector.js +31 -63
  855. package/dist/state/create_selector.js.map +1 -1
  856. package/dist/state/reducers/interactions.js +153 -119
  857. package/dist/state/reducers/interactions.js.map +1 -1
  858. package/dist/state/selectors/can_pin_tooltip.js +13 -18
  859. package/dist/state/selectors/can_pin_tooltip.js.map +1 -1
  860. package/dist/state/selectors/compute_panels.js +6 -6
  861. package/dist/state/selectors/compute_panels.js.map +1 -1
  862. package/dist/state/selectors/compute_small_multiple_scales.js +12 -15
  863. package/dist/state/selectors/compute_small_multiple_scales.js.map +1 -1
  864. package/dist/state/selectors/get_accessibility_config.js +10 -11
  865. package/dist/state/selectors/get_accessibility_config.js.map +1 -1
  866. package/dist/state/selectors/get_active_pointer_position.js +3 -4
  867. package/dist/state/selectors/get_active_pointer_position.js.map +1 -1
  868. package/dist/state/selectors/get_chart_container_dimensions.js +20 -23
  869. package/dist/state/selectors/get_chart_container_dimensions.js.map +1 -1
  870. package/dist/state/selectors/get_chart_id.js +1 -1
  871. package/dist/state/selectors/get_chart_id.js.map +1 -1
  872. package/dist/state/selectors/get_chart_rotation.js +3 -3
  873. package/dist/state/selectors/get_chart_rotation.js.map +1 -1
  874. package/dist/state/selectors/get_chart_theme.js +12 -28
  875. package/dist/state/selectors/get_chart_theme.js.map +1 -1
  876. package/dist/state/selectors/get_chart_type_components.js +2 -2
  877. package/dist/state/selectors/get_chart_type_components.js.map +1 -1
  878. package/dist/state/selectors/get_chart_type_description.js +1 -1
  879. package/dist/state/selectors/get_chart_type_description.js.map +1 -1
  880. package/dist/state/selectors/get_debug_state.js +3 -3
  881. package/dist/state/selectors/get_debug_state.js.map +1 -1
  882. package/dist/state/selectors/get_deselected_data_series.js +1 -1
  883. package/dist/state/selectors/get_deselected_data_series.js.map +1 -1
  884. package/dist/state/selectors/get_internal_brush_area.js +1 -1
  885. package/dist/state/selectors/get_internal_brush_area.js.map +1 -1
  886. package/dist/state/selectors/get_internal_cursor_pointer.js +2 -2
  887. package/dist/state/selectors/get_internal_cursor_pointer.js.map +1 -1
  888. package/dist/state/selectors/get_internal_is_brushing.js +1 -1
  889. package/dist/state/selectors/get_internal_is_brushing.js.map +1 -1
  890. package/dist/state/selectors/get_internal_is_brushing_available.js +1 -1
  891. package/dist/state/selectors/get_internal_is_brushing_available.js.map +1 -1
  892. package/dist/state/selectors/get_internal_is_intialized.js +2 -2
  893. package/dist/state/selectors/get_internal_is_intialized.js.map +1 -1
  894. package/dist/state/selectors/get_internal_is_tooltip_visible.js +1 -1
  895. package/dist/state/selectors/get_internal_is_tooltip_visible.js.map +1 -1
  896. package/dist/state/selectors/get_internal_main_projection_area.js +1 -1
  897. package/dist/state/selectors/get_internal_main_projection_area.js.map +1 -1
  898. package/dist/state/selectors/get_internal_projection_container_area.js +1 -1
  899. package/dist/state/selectors/get_internal_projection_container_area.js.map +1 -1
  900. package/dist/state/selectors/get_internal_sm_domains.js +1 -1
  901. package/dist/state/selectors/get_internal_sm_domains.js.map +1 -1
  902. package/dist/state/selectors/get_internal_tooltip_anchor_position.js +1 -1
  903. package/dist/state/selectors/get_internal_tooltip_anchor_position.js.map +1 -1
  904. package/dist/state/selectors/get_internal_tooltip_info.js +1 -1
  905. package/dist/state/selectors/get_internal_tooltip_info.js.map +1 -1
  906. package/dist/state/selectors/get_legend_config_selector.js +18 -19
  907. package/dist/state/selectors/get_legend_config_selector.js.map +1 -1
  908. package/dist/state/selectors/get_legend_items.js +2 -2
  909. package/dist/state/selectors/get_legend_items.js.map +1 -1
  910. package/dist/state/selectors/get_legend_items_labels.js +1 -1
  911. package/dist/state/selectors/get_legend_items_labels.js.map +1 -1
  912. package/dist/state/selectors/get_legend_items_values.js +2 -2
  913. package/dist/state/selectors/get_legend_items_values.js.map +1 -1
  914. package/dist/state/selectors/get_legend_size.js +37 -40
  915. package/dist/state/selectors/get_legend_size.js.map +1 -1
  916. package/dist/state/selectors/get_pointer_value.js +4 -4
  917. package/dist/state/selectors/get_pointer_value.js.map +1 -1
  918. package/dist/state/selectors/get_settings_spec.js +10 -10
  919. package/dist/state/selectors/get_settings_spec.js.map +1 -1
  920. package/dist/state/selectors/get_small_multiples_index_order.js +10 -26
  921. package/dist/state/selectors/get_small_multiples_index_order.js.map +1 -1
  922. package/dist/state/selectors/get_small_multiples_spec.js +7 -11
  923. package/dist/state/selectors/get_small_multiples_spec.js.map +1 -1
  924. package/dist/state/selectors/get_specs.js +1 -4
  925. package/dist/state/selectors/get_specs.js.map +1 -1
  926. package/dist/state/selectors/get_specs_by_type.js +5 -7
  927. package/dist/state/selectors/get_specs_by_type.js.map +1 -1
  928. package/dist/state/selectors/get_tooltip_interaction_state.js +1 -4
  929. package/dist/state/selectors/get_tooltip_interaction_state.js.map +1 -1
  930. package/dist/state/selectors/get_tooltip_selected_items.js +4 -4
  931. package/dist/state/selectors/get_tooltip_selected_items.js.map +1 -1
  932. package/dist/state/selectors/get_tooltip_spec.js +8 -33
  933. package/dist/state/selectors/get_tooltip_spec.js.map +1 -1
  934. package/dist/state/selectors/has_external_pointer_event.js +2 -5
  935. package/dist/state/selectors/has_external_pointer_event.js.map +1 -1
  936. package/dist/state/selectors/is_brushing.js +1 -1
  937. package/dist/state/selectors/is_brushing.js.map +1 -1
  938. package/dist/state/selectors/is_chart_empty.js +1 -1
  939. package/dist/state/selectors/is_chart_empty.js.map +1 -1
  940. package/dist/state/selectors/is_external_tooltip_visible.js +13 -18
  941. package/dist/state/selectors/is_external_tooltip_visible.js.map +1 -1
  942. package/dist/state/spec_factory.d.ts +2 -2
  943. package/dist/state/spec_factory.d.ts.map +1 -1
  944. package/dist/state/spec_factory.js +21 -36
  945. package/dist/state/spec_factory.js.map +1 -1
  946. package/dist/state/utils.js +7 -7
  947. package/dist/state/utils.js.map +1 -1
  948. package/dist/utils/accessor.js +3 -5
  949. package/dist/utils/accessor.js.map +1 -1
  950. package/dist/utils/bbox/canvas_text_bbox_calculator.js +8 -9
  951. package/dist/utils/bbox/canvas_text_bbox_calculator.js.map +1 -1
  952. package/dist/utils/chart_size.js +1 -1
  953. package/dist/utils/chart_size.js.map +1 -1
  954. package/dist/utils/chrono/chrono.js +1 -1
  955. package/dist/utils/chrono/chrono.js.map +1 -1
  956. package/dist/utils/chrono/elasticsearch.js +16 -41
  957. package/dist/utils/chrono/elasticsearch.js.map +1 -1
  958. package/dist/utils/chrono/luxon.js +16 -43
  959. package/dist/utils/chrono/luxon.js.map +1 -1
  960. package/dist/utils/chrono/moment.js +24 -44
  961. package/dist/utils/chrono/moment.js.map +1 -1
  962. package/dist/utils/common.js +68 -120
  963. package/dist/utils/common.js.map +1 -1
  964. package/dist/utils/curves.js +2 -3
  965. package/dist/utils/curves.js.map +1 -1
  966. package/dist/utils/d3-delaunay/index.js +467 -655
  967. package/dist/utils/d3-delaunay/index.js.map +1 -1
  968. package/dist/utils/data/data_processing.js +9 -27
  969. package/dist/utils/data/data_processing.js.map +1 -1
  970. package/dist/utils/data/date_time.js +1 -1
  971. package/dist/utils/data/date_time.js.map +1 -1
  972. package/dist/utils/data/formatters.js +7 -9
  973. package/dist/utils/data/formatters.js.map +1 -1
  974. package/dist/utils/data_generators/data_generator.js +51 -110
  975. package/dist/utils/data_generators/data_generator.js.map +1 -1
  976. package/dist/utils/data_generators/simple_noise.js +15 -20
  977. package/dist/utils/data_generators/simple_noise.js.map +1 -1
  978. package/dist/utils/debounce.js +1 -1
  979. package/dist/utils/debounce.js.map +1 -1
  980. package/dist/utils/dimensions.js +5 -22
  981. package/dist/utils/dimensions.js.map +1 -1
  982. package/dist/utils/domain.js +13 -40
  983. package/dist/utils/domain.js.map +1 -1
  984. package/dist/utils/events.js +3 -3
  985. package/dist/utils/events.js.map +1 -1
  986. package/dist/utils/fast_deep_equal.js +23 -69
  987. package/dist/utils/fast_deep_equal.js.map +1 -1
  988. package/dist/utils/geometry.js.map +1 -1
  989. package/dist/utils/legend.js +3 -7
  990. package/dist/utils/legend.js.map +1 -1
  991. package/dist/utils/logger.js +20 -52
  992. package/dist/utils/logger.js.map +1 -1
  993. package/dist/utils/series_sort.js +4 -13
  994. package/dist/utils/series_sort.js.map +1 -1
  995. package/dist/utils/text/wrap.js +36 -91
  996. package/dist/utils/text/wrap.js.map +1 -1
  997. package/dist/utils/themes/colors.js +8 -8
  998. package/dist/utils/themes/colors.js.map +1 -1
  999. package/dist/utils/themes/dark_theme.d.ts.map +1 -1
  1000. package/dist/utils/themes/dark_theme.js +29 -11
  1001. package/dist/utils/themes/dark_theme.js.map +1 -1
  1002. package/dist/utils/themes/light_theme.d.ts.map +1 -1
  1003. package/dist/utils/themes/light_theme.js +23 -5
  1004. package/dist/utils/themes/light_theme.js.map +1 -1
  1005. package/dist/utils/themes/merge_utils.d.ts +1 -14
  1006. package/dist/utils/themes/merge_utils.d.ts.map +1 -1
  1007. package/dist/utils/themes/merge_utils.js +2 -16
  1008. package/dist/utils/themes/merge_utils.js.map +1 -1
  1009. package/dist/utils/themes/theme.d.ts +3 -7
  1010. package/dist/utils/themes/theme.d.ts.map +1 -1
  1011. package/dist/utils/themes/theme.js +4 -12
  1012. package/dist/utils/themes/theme.js.map +1 -1
  1013. package/dist/utils/themes/theme_common.js +1 -1
  1014. package/dist/utils/themes/theme_common.js.map +1 -1
  1015. package/dist/utils/time_functions.js +6 -6
  1016. package/dist/utils/time_functions.js.map +1 -1
  1017. package/dist/utils/time_zone.js +9 -11
  1018. package/dist/utils/time_zone.js.map +1 -1
  1019. package/dist/utils/use_legend_action.js +4 -4
  1020. package/dist/utils/use_legend_action.js.map +1 -1
  1021. package/package.json +1 -1
  1022. package/dist/chart_types/partition_chart/layout/types/config.d.ts +0 -56
  1023. package/dist/chart_types/partition_chart/layout/types/config.d.ts.map +0 -1
  1024. package/dist/chart_types/partition_chart/layout/types/config.js +0 -3
  1025. package/dist/chart_types/partition_chart/layout/types/config.js.map +0 -1
@@ -1,30 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
3
  if (k2 === undefined) k2 = k;
30
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -48,99 +22,81 @@ var __importStar = (this && this.__importStar) || function (mod) {
48
22
  __setModuleDefault(result, mod);
49
23
  return result;
50
24
  };
51
- var __read = (this && this.__read) || function (o, n) {
52
- var m = typeof Symbol === "function" && o[Symbol.iterator];
53
- if (!m) return o;
54
- var i = m.call(o), r, ar = [], e;
55
- try {
56
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
57
- }
58
- catch (error) { e = { error: error }; }
59
- finally {
60
- try {
61
- if (r && !r.done && (m = i["return"])) m.call(i);
62
- }
63
- finally { if (e) throw e.error; }
64
- }
65
- return ar;
66
- };
67
25
  Object.defineProperty(exports, "__esModule", { value: true });
68
26
  exports.FlameWithTooltip = void 0;
69
- var react_1 = __importStar(require("react"));
70
- var react_redux_1 = require("react-redux");
71
- var redux_1 = require("redux");
72
- var navigation_1 = require("./navigation");
73
- var common_1 = require("./render/common");
74
- var draw_a_frame_1 = require("./render/draw_a_frame");
75
- var ensure_webgl_1 = require("./render/ensure_webgl");
76
- var upload_to_webgl_1 = require("./render/upload_to_webgl");
77
- var shaders_1 = require("./shaders");
78
- var types_1 = require("./types");
79
- var __1 = require("..");
80
- var constants_1 = require("../../common/constants");
81
- var kingly_1 = require("../../common/kingly");
82
- var webgl_constants_1 = require("../../common/webgl_constants");
83
- var tooltip_1 = require("../../components/tooltip/tooltip");
84
- var specs_1 = require("../../specs");
85
- var chart_1 = require("../../state/actions/chart");
86
- var mouse_1 = require("../../state/actions/mouse");
87
- var can_pin_tooltip_1 = require("../../state/selectors/can_pin_tooltip");
88
- var get_accessibility_config_1 = require("../../state/selectors/get_accessibility_config");
89
- var get_chart_theme_1 = require("../../state/selectors/get_chart_theme");
90
- var get_settings_spec_1 = require("../../state/selectors/get_settings_spec");
91
- var get_tooltip_spec_1 = require("../../state/selectors/get_tooltip_spec");
92
- var utils_1 = require("../../state/utils");
93
- var common_2 = require("../../utils/common");
94
- var PINCH_ZOOM_CHECK_INTERVAL_MS = 100;
95
- var SIDE_OVERSHOOT_RATIO = 0.05;
96
- var RECURRENCE_ALPHA_PER_MS_X = 0.01;
97
- var RECURRENCE_ALPHA_PER_MS_Y = 0.0062;
98
- var SINGLE_CLICK_EMPTY_FOCUS = true;
99
- var IS_META_REQUIRED_FOR_ZOOM = false;
100
- var ZOOM_SPEED = 0.0015;
101
- var DEEPEST_ZOOM_RATIO = 1e-7;
102
- var ZOOM_FROM_EDGE_BAND = 16;
103
- var ZOOM_FROM_EDGE_BAND_LEFT = ZOOM_FROM_EDGE_BAND + draw_a_frame_1.PADDING_LEFT;
104
- var ZOOM_FROM_EDGE_BAND_RIGHT = ZOOM_FROM_EDGE_BAND + draw_a_frame_1.PADDING_RIGHT;
105
- var ZOOM_FROM_EDGE_BAND_TOP = ZOOM_FROM_EDGE_BAND + draw_a_frame_1.PADDING_TOP;
106
- var ZOOM_FROM_EDGE_BAND_BOTTOM = ZOOM_FROM_EDGE_BAND + draw_a_frame_1.PADDING_BOTTOM;
107
- var LEFT_MOUSE_BUTTON = 1;
108
- var MINIMAP_SIZE_RATIO_X = 3;
109
- var MINIMAP_SIZE_RATIO_Y = 3;
110
- var SHOWN_ANCESTOR_COUNT = 2;
111
- var SHOULD_DISABLE_WOBBLE = (typeof process === 'object' && process.env && process.env.VRT) === 'true';
112
- var WOBBLE_DURATION = SHOULD_DISABLE_WOBBLE ? 0 : 1000;
113
- var WOBBLE_REPEAT_COUNT = 2;
114
- var WOBBLE_FREQUENCY = SHOULD_DISABLE_WOBBLE ? 0 : 2 * Math.PI * (WOBBLE_REPEAT_COUNT / WOBBLE_DURATION);
115
- var NODE_TWEEN_DURATION_MS = 500;
116
- var unitRowPitch = function (position) { var _a, _b; return (position.length >= 4 ? ((_a = position[1]) !== null && _a !== void 0 ? _a : 0) - ((_b = position[3]) !== null && _b !== void 0 ? _b : 0) : 1); };
117
- var initialPixelRowPitch = function () { return 16; };
118
- var specValueFormatter = function (d) { return d; };
119
- var browserRootWindow = function () {
120
- var rootWindow = window;
27
+ const react_1 = __importStar(require("react"));
28
+ const react_redux_1 = require("react-redux");
29
+ const redux_1 = require("redux");
30
+ const navigation_1 = require("./navigation");
31
+ const common_1 = require("./render/common");
32
+ const draw_a_frame_1 = require("./render/draw_a_frame");
33
+ const ensure_webgl_1 = require("./render/ensure_webgl");
34
+ const upload_to_webgl_1 = require("./render/upload_to_webgl");
35
+ const shaders_1 = require("./shaders");
36
+ const types_1 = require("./types");
37
+ const __1 = require("..");
38
+ const constants_1 = require("../../common/constants");
39
+ const kingly_1 = require("../../common/kingly");
40
+ const webgl_constants_1 = require("../../common/webgl_constants");
41
+ const tooltip_1 = require("../../components/tooltip/tooltip");
42
+ const specs_1 = require("../../specs");
43
+ const chart_1 = require("../../state/actions/chart");
44
+ const mouse_1 = require("../../state/actions/mouse");
45
+ const can_pin_tooltip_1 = require("../../state/selectors/can_pin_tooltip");
46
+ const get_accessibility_config_1 = require("../../state/selectors/get_accessibility_config");
47
+ const get_chart_theme_1 = require("../../state/selectors/get_chart_theme");
48
+ const get_settings_spec_1 = require("../../state/selectors/get_settings_spec");
49
+ const get_tooltip_spec_1 = require("../../state/selectors/get_tooltip_spec");
50
+ const utils_1 = require("../../state/utils");
51
+ const common_2 = require("../../utils/common");
52
+ const PINCH_ZOOM_CHECK_INTERVAL_MS = 100;
53
+ const SIDE_OVERSHOOT_RATIO = 0.05;
54
+ const RECURRENCE_ALPHA_PER_MS_X = 0.01;
55
+ const RECURRENCE_ALPHA_PER_MS_Y = 0.0062;
56
+ const SINGLE_CLICK_EMPTY_FOCUS = true;
57
+ const IS_META_REQUIRED_FOR_ZOOM = false;
58
+ const ZOOM_SPEED = 0.0015;
59
+ const DEEPEST_ZOOM_RATIO = 1e-7;
60
+ const ZOOM_FROM_EDGE_BAND = 16;
61
+ const ZOOM_FROM_EDGE_BAND_LEFT = ZOOM_FROM_EDGE_BAND + draw_a_frame_1.PADDING_LEFT;
62
+ const ZOOM_FROM_EDGE_BAND_RIGHT = ZOOM_FROM_EDGE_BAND + draw_a_frame_1.PADDING_RIGHT;
63
+ const ZOOM_FROM_EDGE_BAND_TOP = ZOOM_FROM_EDGE_BAND + draw_a_frame_1.PADDING_TOP;
64
+ const ZOOM_FROM_EDGE_BAND_BOTTOM = ZOOM_FROM_EDGE_BAND + draw_a_frame_1.PADDING_BOTTOM;
65
+ const LEFT_MOUSE_BUTTON = 1;
66
+ const MINIMAP_SIZE_RATIO_X = 3;
67
+ const MINIMAP_SIZE_RATIO_Y = 3;
68
+ const SHOWN_ANCESTOR_COUNT = 2;
69
+ const SHOULD_DISABLE_WOBBLE = (typeof process === 'object' && process.env && process.env.VRT) === 'true';
70
+ const WOBBLE_DURATION = SHOULD_DISABLE_WOBBLE ? 0 : 1000;
71
+ const WOBBLE_REPEAT_COUNT = 2;
72
+ const WOBBLE_FREQUENCY = SHOULD_DISABLE_WOBBLE ? 0 : 2 * Math.PI * (WOBBLE_REPEAT_COUNT / WOBBLE_DURATION);
73
+ const NODE_TWEEN_DURATION_MS = 500;
74
+ const unitRowPitch = (position) => { var _a, _b; return (position.length >= 4 ? ((_a = position[1]) !== null && _a !== void 0 ? _a : 0) - ((_b = position[3]) !== null && _b !== void 0 ? _b : 0) : 1); };
75
+ const initialPixelRowPitch = () => 16;
76
+ const specValueFormatter = (d) => d;
77
+ const browserRootWindow = () => {
78
+ let rootWindow = window;
121
79
  while (window.parent && window.parent.window !== rootWindow)
122
80
  rootWindow = rootWindow.parent.window;
123
81
  return rootWindow;
124
82
  };
125
- var columnToRowPositions = function (_a, i) {
126
- var _b, _c, _d, _e, _f;
127
- var position1 = _a.position1, size1 = _a.size1;
83
+ const columnToRowPositions = ({ position1, size1 }, i) => {
84
+ var _a, _b, _c, _d, _e;
128
85
  return ({
129
- x0: (_b = position1[i * 2]) !== null && _b !== void 0 ? _b : 0,
130
- x1: ((_c = position1[i * 2]) !== null && _c !== void 0 ? _c : 0) + ((_d = size1[i]) !== null && _d !== void 0 ? _d : 0),
131
- y0: (_e = position1[i * 2 + 1]) !== null && _e !== void 0 ? _e : 0,
132
- y1: ((_f = position1[i * 2 + 1]) !== null && _f !== void 0 ? _f : 0) + unitRowPitch(position1),
86
+ x0: (_a = position1[i * 2]) !== null && _a !== void 0 ? _a : 0,
87
+ x1: ((_b = position1[i * 2]) !== null && _b !== void 0 ? _b : 0) + ((_c = size1[i]) !== null && _c !== void 0 ? _c : 0),
88
+ y0: (_d = position1[i * 2 + 1]) !== null && _d !== void 0 ? _d : 0,
89
+ y1: ((_e = position1[i * 2 + 1]) !== null && _e !== void 0 ? _e : 0) + unitRowPitch(position1),
133
90
  });
134
91
  };
135
- var focusForArea = function (chartHeight, _a) {
136
- var x0 = _a.x0, x1 = _a.x1, y0 = _a.y0, y1 = _a.y1;
137
- var sideOvershoot = SIDE_OVERSHOOT_RATIO * (x1 - x0);
138
- var unitRowHeight = y1 - y0;
139
- var chartHeightInUnit = (chartHeight / initialPixelRowPitch()) * unitRowHeight;
140
- var y = Math.min(1, y1 + unitRowHeight * SHOWN_ANCESTOR_COUNT);
141
- var intendedY0 = y - chartHeightInUnit;
142
- var bottomOvershoot = Math.max(0, -intendedY0);
143
- var top = Math.min(1, y + bottomOvershoot);
92
+ const focusForArea = (chartHeight, { x0, x1, y0, y1 }) => {
93
+ const sideOvershoot = SIDE_OVERSHOOT_RATIO * (x1 - x0);
94
+ const unitRowHeight = y1 - y0;
95
+ const chartHeightInUnit = (chartHeight / initialPixelRowPitch()) * unitRowHeight;
96
+ const y = Math.min(1, y1 + unitRowHeight * SHOWN_ANCESTOR_COUNT);
97
+ const intendedY0 = y - chartHeightInUnit;
98
+ const bottomOvershoot = Math.max(0, -intendedY0);
99
+ const top = Math.min(1, y + bottomOvershoot);
144
100
  return {
145
101
  x0: Math.max(0, x0 - sideOvershoot),
146
102
  x1: Math.min(1, x1 + sideOvershoot),
@@ -148,490 +104,477 @@ var focusForArea = function (chartHeight, _a) {
148
104
  y1: Math.min(1, top),
149
105
  };
150
106
  };
151
- var focusRect = function (columnarViewModel, chartHeight, drilldownDatumIndex) { return focusForArea(chartHeight, columnToRowPositions(columnarViewModel, drilldownDatumIndex || 0)); };
152
- var getColor = function (c, i) {
107
+ const focusRect = (columnarViewModel, chartHeight, drilldownDatumIndex) => focusForArea(chartHeight, columnToRowPositions(columnarViewModel, drilldownDatumIndex || 0));
108
+ const getColor = (c, i) => {
153
109
  var _a, _b, _c;
154
- var r = Math.round(255 * ((_a = c[4 * i]) !== null && _a !== void 0 ? _a : 0));
155
- var g = Math.round(255 * ((_b = c[4 * i + 1]) !== null && _b !== void 0 ? _b : 0));
156
- var b = Math.round(255 * ((_c = c[4 * i + 2]) !== null && _c !== void 0 ? _c : 0));
157
- var a = c[4 * i + 3];
158
- return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(a, ")");
110
+ const r = Math.round(255 * ((_a = c[4 * i]) !== null && _a !== void 0 ? _a : 0));
111
+ const g = Math.round(255 * ((_b = c[4 * i + 1]) !== null && _b !== void 0 ? _b : 0));
112
+ const b = Math.round(255 * ((_c = c[4 * i + 2]) !== null && _c !== void 0 ? _c : 0));
113
+ const a = c[4 * i + 3];
114
+ return `rgba(${r}, ${g}, ${b}, ${a})`;
159
115
  };
160
- var colorToDatumIndex = function (pixel) {
161
- var _a = __read(pixel, 4), _b = _a[0], p0 = _b === void 0 ? 0 : _b, _c = _a[1], p1 = _c === void 0 ? 0 : _c, _d = _a[2], p2 = _d === void 0 ? 0 : _d, _e = _a[3], p3 = _e === void 0 ? 0 : _e;
162
- var isEmptyArea = p0 + p1 + p2 + p3 < shaders_1.GEOM_INDEX_OFFSET;
116
+ const colorToDatumIndex = (pixel) => {
117
+ const [p0 = 0, p1 = 0, p2 = 0, p3 = 0] = pixel;
118
+ const isEmptyArea = p0 + p1 + p2 + p3 < shaders_1.GEOM_INDEX_OFFSET;
163
119
  return isEmptyArea ? NaN : p3 + 256 * (p2 + 256 * (p1 + 256 * p0)) - shaders_1.GEOM_INDEX_OFFSET;
164
120
  };
165
- var getRegExp = function (searchString) {
166
- var regex;
121
+ const getRegExp = (searchString) => {
122
+ let regex;
167
123
  try {
168
124
  regex = new RegExp(searchString);
169
125
  }
170
- catch (_a) {
126
+ catch {
171
127
  return new RegExp('iIUiUYIuiGjhG678987gjhgfytr678576');
172
128
  }
173
129
  return regex;
174
130
  };
175
- var isAttributeKey = function (keyCandidate) {
176
- return keyCandidate in shaders_1.attributeLocations;
177
- };
178
- var FlameComponent = (function (_super) {
179
- __extends(FlameComponent, _super);
180
- function FlameComponent(props) {
181
- var _this = this;
131
+ const isAttributeKey = (keyCandidate) => keyCandidate in shaders_1.attributeLocations;
132
+ class FlameComponent extends react_1.default.Component {
133
+ constructor(props) {
182
134
  var _a, _b;
183
- _this = _super.call(this, props) || this;
184
- _this.ctx = null;
185
- _this.glContext = null;
186
- _this.pickTexture = kingly_1.NullTexture;
187
- _this.glResources = types_1.NULL_GL_RESOURCES;
188
- _this.glCanvasRef = (0, react_1.createRef)();
189
- _this.pinchZoomSetInterval = NaN;
190
- _this.pointerX = NaN;
191
- _this.pointerY = NaN;
192
- _this.pinnedPointerX = NaN;
193
- _this.pinnedPointerY = NaN;
194
- _this.tooltipPinned = false;
195
- _this.tooltipSelectedSeries = [];
196
- _this.hoverIndex = NaN;
197
- _this.tooltipValues = [];
198
- _this.animationRafId = NaN;
199
- _this.prevFocusTime = NaN;
200
- _this.prevNodeTweenTime = NaN;
201
- _this.startOfDragX = NaN;
202
- _this.startOfDragY = NaN;
203
- _this.startOfDragFocusLeft = NaN;
204
- _this.startOfDragFocusTop = NaN;
205
- _this.searchInputRef = (0, react_1.createRef)();
206
- _this.currentSearchString = '';
207
- _this.currentSearchHitCount = 0;
208
- _this.caseSensitive = false;
209
- _this.useRegex = false;
210
- _this.focusedMatchIndex = NaN;
211
- _this.wobbleTimeLeft = 0;
212
- _this.wobbleIndex = NaN;
213
- _this.pinTooltip = function (pinned) {
135
+ super(props);
136
+ this.ctx = null;
137
+ this.glContext = null;
138
+ this.pickTexture = kingly_1.NullTexture;
139
+ this.glResources = types_1.NULL_GL_RESOURCES;
140
+ this.glCanvasRef = (0, react_1.createRef)();
141
+ this.pinchZoomSetInterval = NaN;
142
+ this.pointerX = NaN;
143
+ this.pointerY = NaN;
144
+ this.pinnedPointerX = NaN;
145
+ this.pinnedPointerY = NaN;
146
+ this.tooltipPinned = false;
147
+ this.tooltipSelectedSeries = [];
148
+ this.hoverIndex = NaN;
149
+ this.tooltipValues = [];
150
+ this.animationRafId = NaN;
151
+ this.prevFocusTime = NaN;
152
+ this.prevNodeTweenTime = NaN;
153
+ this.startOfDragX = NaN;
154
+ this.startOfDragY = NaN;
155
+ this.startOfDragFocusLeft = NaN;
156
+ this.startOfDragFocusTop = NaN;
157
+ this.searchInputRef = (0, react_1.createRef)();
158
+ this.currentSearchString = '';
159
+ this.currentSearchHitCount = 0;
160
+ this.caseSensitive = false;
161
+ this.useRegex = false;
162
+ this.focusedMatchIndex = NaN;
163
+ this.wobbleTimeLeft = 0;
164
+ this.wobbleIndex = NaN;
165
+ this.pinTooltip = (pinned) => {
214
166
  if (!pinned) {
215
- _this.unpinTooltip(true);
167
+ this.unpinTooltip(true);
216
168
  return;
217
169
  }
218
- _this.tooltipPinned = true;
219
- _this.tooltipSelectedSeries = _this.tooltipValues;
170
+ this.tooltipPinned = true;
171
+ this.tooltipSelectedSeries = this.tooltipValues;
220
172
  };
221
- _this.toggleSelectedTooltipItem = function (tooltipValue) {
222
- if (!_this.tooltipPinned)
173
+ this.toggleSelectedTooltipItem = (tooltipValue) => {
174
+ if (!this.tooltipPinned)
223
175
  return;
224
- _this.tooltipSelectedSeries = _this.tooltipSelectedSeries.length === 0 ? [tooltipValue] : [];
225
- _this.setState({});
176
+ this.tooltipSelectedSeries = this.tooltipSelectedSeries.length === 0 ? [tooltipValue] : [];
177
+ this.setState({});
226
178
  };
227
- _this.setSelectedTooltipItems = function (tooltipValues) {
228
- _this.tooltipSelectedSeries = tooltipValues;
229
- _this.setState({});
179
+ this.setSelectedTooltipItems = (tooltipValues) => {
180
+ this.tooltipSelectedSeries = tooltipValues;
181
+ this.setState({});
230
182
  };
231
- _this.setupDevicePixelRatioChangeListener = function () {
232
- window.matchMedia("(resolution: ".concat(window.devicePixelRatio, "dppx)")).addEventListener('change', function () {
233
- _this.setState({});
234
- _this.setupDevicePixelRatioChangeListener();
183
+ this.setupDevicePixelRatioChangeListener = () => {
184
+ window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`).addEventListener('change', () => {
185
+ this.setState({});
186
+ this.setupDevicePixelRatioChangeListener();
235
187
  }, { once: true });
236
188
  };
237
- _this.setupViewportScaleChangeListener = function () {
238
- window.clearInterval(_this.pinchZoomSetInterval);
239
- _this.pinchZoomSetInterval = window.setInterval(function () {
189
+ this.setupViewportScaleChangeListener = () => {
190
+ window.clearInterval(this.pinchZoomSetInterval);
191
+ this.pinchZoomSetInterval = window.setInterval(() => {
240
192
  var _a, _b;
241
- var pinchZoomScale = (_b = (_a = browserRootWindow().visualViewport) === null || _a === void 0 ? void 0 : _a.scale) !== null && _b !== void 0 ? _b : 1;
242
- if (pinchZoomScale !== _this.pinchZoomScale) {
243
- _this.pinchZoomScale = pinchZoomScale;
244
- _this.setState({});
193
+ const pinchZoomScale = (_b = (_a = browserRootWindow().visualViewport) === null || _a === void 0 ? void 0 : _a.scale) !== null && _b !== void 0 ? _b : 1;
194
+ if (pinchZoomScale !== this.pinchZoomScale) {
195
+ this.pinchZoomScale = pinchZoomScale;
196
+ this.setState({});
245
197
  }
246
198
  }, PINCH_ZOOM_CHECK_INTERVAL_MS);
247
199
  };
248
- _this.componentDidMount = function () {
200
+ this.componentDidMount = () => {
249
201
  var _a;
250
- _this.tryCanvasContext();
251
- _this.drawCanvas();
252
- _this.props.onChartRendered();
253
- _this.setupDevicePixelRatioChangeListener();
254
- (_a = _this.props.containerRef().current) === null || _a === void 0 ? void 0 : _a.addEventListener('wheel', _this.preventScroll, { passive: false });
202
+ this.tryCanvasContext();
203
+ this.drawCanvas();
204
+ this.props.onChartRendered();
205
+ this.setupDevicePixelRatioChangeListener();
206
+ (_a = this.props.containerRef().current) === null || _a === void 0 ? void 0 : _a.addEventListener('wheel', this.preventScroll, { passive: false });
255
207
  };
256
- _this.ensureTextureAndDraw = function () {
257
- _this.ensurePickTexture();
258
- _this.drawCanvas();
208
+ this.ensureTextureAndDraw = () => {
209
+ this.ensurePickTexture();
210
+ this.drawCanvas();
259
211
  };
260
- _this.componentDidUpdate = function (_a) {
261
- var chartDimensions = _a.chartDimensions;
262
- if (!_this.ctx)
263
- _this.tryCanvasContext();
264
- if (_this.tooltipPinned && _this.chartDimensionsChanged(chartDimensions)) {
265
- _this.unpinTooltip();
212
+ this.componentDidUpdate = ({ chartDimensions }) => {
213
+ if (!this.ctx)
214
+ this.tryCanvasContext();
215
+ if (this.tooltipPinned && this.chartDimensionsChanged(chartDimensions)) {
216
+ this.unpinTooltip();
266
217
  }
267
- _this.bindControls();
268
- _this.ensureTextureAndDraw();
269
- };
270
- _this.pointerInMinimap = function (x, y) {
271
- return x === (0, common_2.clamp)(x, _this.getMinimapLeft(), _this.getMinimapLeft() + _this.getMinimapWidth()) &&
272
- y === (0, common_2.clamp)(y, _this.getMinimapTop(), _this.getMinimapTop() + _this.getMinimapHeight());
273
- };
274
- _this.datumAtXY = function (x, y) {
275
- return _this.glContext ? colorToDatumIndex((0, kingly_1.readPixel)(_this.glContext, x, y)) : NaN;
276
- };
277
- _this.getHoveredDatumIndex = function () {
278
- var pr = window.devicePixelRatio * _this.pinchZoomScale;
279
- var x = _this.tooltipPinned ? _this.pinnedPointerX : _this.pointerX;
280
- var y = _this.tooltipPinned ? _this.pinnedPointerY : _this.pointerY;
281
- return _this.datumAtXY(pr * x, pr * (_this.props.chartDimensions.height - y));
218
+ this.bindControls();
219
+ this.ensureTextureAndDraw();
282
220
  };
283
- _this.getDragDistanceX = function () { return _this.pointerX - _this.startOfDragX; };
284
- _this.getDragDistanceY = function () { return -(_this.pointerY - _this.startOfDragY); };
285
- _this.isDragging = function (_a) {
286
- var buttons = _a.buttons;
287
- return buttons & LEFT_MOUSE_BUTTON;
221
+ this.pointerInMinimap = (x, y) => x === (0, common_2.clamp)(x, this.getMinimapLeft(), this.getMinimapLeft() + this.getMinimapWidth()) &&
222
+ y === (0, common_2.clamp)(y, this.getMinimapTop(), this.getMinimapTop() + this.getMinimapHeight());
223
+ this.datumAtXY = (x, y) => this.glContext ? colorToDatumIndex((0, kingly_1.readPixel)(this.glContext, x, y)) : NaN;
224
+ this.getHoveredDatumIndex = () => {
225
+ const pr = window.devicePixelRatio * this.pinchZoomScale;
226
+ const x = this.tooltipPinned ? this.pinnedPointerX : this.pointerX;
227
+ const y = this.tooltipPinned ? this.pinnedPointerY : this.pointerY;
228
+ return this.datumAtXY(pr * x, pr * (this.props.chartDimensions.height - y));
288
229
  };
289
- _this.handleMouseHoverMove = function (e) {
290
- if (!_this.isDragging(e)) {
230
+ this.getDragDistanceX = () => this.pointerX - this.startOfDragX;
231
+ this.getDragDistanceY = () => -(this.pointerY - this.startOfDragY);
232
+ this.isDragging = ({ buttons }) => buttons & LEFT_MOUSE_BUTTON;
233
+ this.handleMouseHoverMove = (e) => {
234
+ if (!this.isDragging(e)) {
291
235
  e.stopPropagation();
292
- _this.updatePointerLocation(e);
293
- if (!_this.tooltipPinned) {
294
- _this.updateHoverIndex();
236
+ this.updatePointerLocation(e);
237
+ if (!this.tooltipPinned) {
238
+ this.updateHoverIndex();
295
239
  }
296
240
  }
297
241
  };
298
- _this.handleMouseDragMove = function (e) {
242
+ this.handleMouseDragMove = (e) => {
299
243
  e.stopPropagation();
300
- _this.updatePointerLocation(e);
301
- if (_this.isDragging(e)) {
302
- var dragInMinimap = _this.pointerInMinimap(_this.startOfDragX, _this.startOfDragY);
303
- var focusMoveDirection = dragInMinimap ? 1 : -1;
304
- var _a = _this.currentFocus, x0 = _a.x0, x1 = _a.x1, y0 = _a.y0, y1 = _a.y1;
305
- var focusWidth = x1 - x0;
306
- var focusHeight = y1 - y0;
307
- if (Number.isNaN(_this.startOfDragFocusLeft))
308
- _this.startOfDragFocusLeft = x0;
309
- if (Number.isNaN(_this.startOfDragFocusTop))
310
- _this.startOfDragFocusTop = y0;
311
- var dragDistanceX = _this.getDragDistanceX();
312
- var dragDistanceY = _this.getDragDistanceY();
313
- var _b = _this.props.chartDimensions, chartWidth = _b.width, chartHeight = _b.height;
314
- var focusChartWidth = chartWidth - draw_a_frame_1.PADDING_LEFT - draw_a_frame_1.PADDING_RIGHT;
315
- var focusChartHeight = chartHeight - draw_a_frame_1.PADDING_TOP - draw_a_frame_1.PADDING_BOTTOM;
316
- var dragSpeedX = (dragInMinimap ? MINIMAP_SIZE_RATIO_X / focusWidth : 1) / focusChartWidth;
317
- var dragSpeedY = (dragInMinimap ? MINIMAP_SIZE_RATIO_Y / focusHeight : 1) / focusChartHeight;
318
- var deltaIntentX = focusMoveDirection * dragDistanceX * dragSpeedX * focusWidth;
319
- var deltaIntentY = focusMoveDirection * dragDistanceY * dragSpeedY * focusHeight;
320
- var deltaCorrectionX = deltaIntentX > 0
321
- ? Math.min(0, 1 - (_this.startOfDragFocusLeft + focusWidth + deltaIntentX))
322
- : -Math.min(0, _this.startOfDragFocusLeft + deltaIntentX);
323
- var deltaCorrectionY = deltaIntentY > 0
324
- ? Math.min(0, 1 - (_this.startOfDragFocusTop + focusHeight + deltaIntentY))
325
- : -Math.min(0, _this.startOfDragFocusTop + deltaIntentY);
326
- var deltaX = deltaIntentX + deltaCorrectionX;
327
- var deltaY = deltaIntentY + deltaCorrectionY;
328
- var newX0 = (0, common_2.clamp)(_this.startOfDragFocusLeft + deltaX, 0, 1);
329
- var newX1 = (0, common_2.clamp)(_this.startOfDragFocusLeft + focusWidth + deltaX, 0, 1);
330
- var newY0 = (0, common_2.clamp)(_this.startOfDragFocusTop + deltaY, 0, 1);
331
- var newY1 = (0, common_2.clamp)(_this.startOfDragFocusTop + focusHeight + deltaY, 0, 1);
332
- var newFocus = { x0: newX0, x1: newX1, y0: newY0, y1: newY1 };
333
- _this.currentFocus = newFocus;
334
- _this.targetFocus = newFocus;
335
- _this.navigator.add(__assign(__assign({}, newFocus), { index: NaN }));
336
- _this.smartDraw();
244
+ this.updatePointerLocation(e);
245
+ if (this.isDragging(e)) {
246
+ const dragInMinimap = this.pointerInMinimap(this.startOfDragX, this.startOfDragY);
247
+ const focusMoveDirection = dragInMinimap ? 1 : -1;
248
+ const { x0, x1, y0, y1 } = this.currentFocus;
249
+ const focusWidth = x1 - x0;
250
+ const focusHeight = y1 - y0;
251
+ if (Number.isNaN(this.startOfDragFocusLeft))
252
+ this.startOfDragFocusLeft = x0;
253
+ if (Number.isNaN(this.startOfDragFocusTop))
254
+ this.startOfDragFocusTop = y0;
255
+ const dragDistanceX = this.getDragDistanceX();
256
+ const dragDistanceY = this.getDragDistanceY();
257
+ const { width: chartWidth, height: chartHeight } = this.props.chartDimensions;
258
+ const focusChartWidth = chartWidth - draw_a_frame_1.PADDING_LEFT - draw_a_frame_1.PADDING_RIGHT;
259
+ const focusChartHeight = chartHeight - draw_a_frame_1.PADDING_TOP - draw_a_frame_1.PADDING_BOTTOM;
260
+ const dragSpeedX = (dragInMinimap ? MINIMAP_SIZE_RATIO_X / focusWidth : 1) / focusChartWidth;
261
+ const dragSpeedY = (dragInMinimap ? MINIMAP_SIZE_RATIO_Y / focusHeight : 1) / focusChartHeight;
262
+ const deltaIntentX = focusMoveDirection * dragDistanceX * dragSpeedX * focusWidth;
263
+ const deltaIntentY = focusMoveDirection * dragDistanceY * dragSpeedY * focusHeight;
264
+ const deltaCorrectionX = deltaIntentX > 0
265
+ ? Math.min(0, 1 - (this.startOfDragFocusLeft + focusWidth + deltaIntentX))
266
+ : -Math.min(0, this.startOfDragFocusLeft + deltaIntentX);
267
+ const deltaCorrectionY = deltaIntentY > 0
268
+ ? Math.min(0, 1 - (this.startOfDragFocusTop + focusHeight + deltaIntentY))
269
+ : -Math.min(0, this.startOfDragFocusTop + deltaIntentY);
270
+ const deltaX = deltaIntentX + deltaCorrectionX;
271
+ const deltaY = deltaIntentY + deltaCorrectionY;
272
+ const newX0 = (0, common_2.clamp)(this.startOfDragFocusLeft + deltaX, 0, 1);
273
+ const newX1 = (0, common_2.clamp)(this.startOfDragFocusLeft + focusWidth + deltaX, 0, 1);
274
+ const newY0 = (0, common_2.clamp)(this.startOfDragFocusTop + deltaY, 0, 1);
275
+ const newY1 = (0, common_2.clamp)(this.startOfDragFocusTop + focusHeight + deltaY, 0, 1);
276
+ const newFocus = { x0: newX0, x1: newX1, y0: newY0, y1: newY1 };
277
+ this.currentFocus = newFocus;
278
+ this.targetFocus = newFocus;
279
+ this.navigator.add({ ...newFocus, index: NaN });
280
+ this.smartDraw();
337
281
  }
338
282
  };
339
- _this.clearDrag = function () {
340
- _this.startOfDragX = NaN;
341
- _this.startOfDragY = NaN;
342
- _this.startOfDragFocusLeft = NaN;
343
- _this.startOfDragFocusTop = NaN;
283
+ this.clearDrag = () => {
284
+ this.startOfDragX = NaN;
285
+ this.startOfDragY = NaN;
286
+ this.startOfDragFocusLeft = NaN;
287
+ this.startOfDragFocusTop = NaN;
344
288
  };
345
- _this.resetDrag = function () {
346
- _this.startOfDragX = _this.pointerX;
347
- _this.startOfDragY = _this.pointerY;
289
+ this.resetDrag = () => {
290
+ this.startOfDragX = this.pointerX;
291
+ this.startOfDragY = this.pointerY;
348
292
  };
349
- _this.handleMouseDown = function (e) {
293
+ this.handleMouseDown = (e) => {
350
294
  e.stopPropagation();
351
295
  if (e.button === constants_1.SECONDARY_BUTTON || e.ctrlKey)
352
296
  return;
353
- if (Number.isNaN(_this.pointerX + _this.pointerY))
297
+ if (Number.isNaN(this.pointerX + this.pointerY))
354
298
  return;
355
- if (_this.tooltipPinned)
299
+ if (this.tooltipPinned)
356
300
  return;
357
- _this.resetDrag();
358
- window.addEventListener('mousemove', _this.handleMouseDragMove, { passive: true });
359
- window.addEventListener('mouseup', _this.handleMouseUp, { passive: true });
301
+ this.resetDrag();
302
+ window.addEventListener('mousemove', this.handleMouseDragMove, { passive: true });
303
+ window.addEventListener('mouseup', this.handleMouseUp, { passive: true });
360
304
  };
361
- _this.handleContextMenu = function (e) {
305
+ this.handleContextMenu = (e) => {
362
306
  e.stopPropagation();
363
307
  e.preventDefault();
364
- if (_this.tooltipPinned) {
365
- _this.handleUnpinningTooltip();
308
+ if (this.tooltipPinned) {
309
+ this.handleUnpinningTooltip();
366
310
  return;
367
311
  }
368
- if (!Number.isFinite(_this.getHoveredDatumIndex())) {
312
+ if (!Number.isFinite(this.getHoveredDatumIndex())) {
369
313
  return;
370
314
  }
371
- window.addEventListener('keyup', _this.handleKeyUp);
372
- window.addEventListener('click', _this.handleUnpinningTooltip);
373
- window.addEventListener('visibilitychange', _this.handleUnpinningTooltip);
374
- _this.pinTooltip(true);
375
- _this.setState({});
315
+ window.addEventListener('keyup', this.handleKeyUp);
316
+ window.addEventListener('click', this.handleUnpinningTooltip);
317
+ window.addEventListener('visibilitychange', this.handleUnpinningTooltip);
318
+ this.pinTooltip(true);
319
+ this.setState({});
376
320
  };
377
- _this.handleMouseUp = function (e) {
321
+ this.handleMouseUp = (e) => {
378
322
  e.stopPropagation();
379
- window.removeEventListener('mousemove', _this.handleMouseDragMove);
380
- window.removeEventListener('mouseup', _this.handleMouseUp);
381
- if (_this.tooltipPinned) {
382
- _this.unpinTooltip();
383
- _this.clearDrag();
323
+ window.removeEventListener('mousemove', this.handleMouseDragMove);
324
+ window.removeEventListener('mouseup', this.handleMouseUp);
325
+ if (this.tooltipPinned) {
326
+ this.unpinTooltip();
327
+ this.clearDrag();
384
328
  return;
385
329
  }
386
- _this.updatePointerLocation(e);
387
- var dragDistanceX = _this.getDragDistanceX();
388
- var dragDistanceY = _this.getDragDistanceY();
330
+ this.updatePointerLocation(e);
331
+ const dragDistanceX = this.getDragDistanceX();
332
+ const dragDistanceY = this.getDragDistanceY();
389
333
  if (!dragDistanceX && !dragDistanceY) {
390
- var hoveredDatumIndex = _this.getHoveredDatumIndex();
391
- var isDoubleClick = e.detail > 1;
392
- var hasClickedOnRectangle = Number.isFinite(hoveredDatumIndex);
393
- var mustFocus = SINGLE_CLICK_EMPTY_FOCUS || isDoubleClick !== hasClickedOnRectangle;
394
- var isContextClick = e.button === constants_1.SECONDARY_BUTTON || e.ctrlKey;
395
- if (mustFocus && !isContextClick && !_this.pointerInMinimap(_this.pointerX, _this.pointerY)) {
396
- var rect = focusRect(_this.props.columnarViewModel, _this.props.chartDimensions.height, hoveredDatumIndex);
397
- _this.navigator.add(__assign(__assign({}, rect), { index: hoveredDatumIndex }));
398
- _this.focusOnNode(hoveredDatumIndex);
399
- _this.props.onElementClick([{ vmIndex: hoveredDatumIndex }]);
334
+ const hoveredDatumIndex = this.getHoveredDatumIndex();
335
+ const isDoubleClick = e.detail > 1;
336
+ const hasClickedOnRectangle = Number.isFinite(hoveredDatumIndex);
337
+ const mustFocus = SINGLE_CLICK_EMPTY_FOCUS || isDoubleClick !== hasClickedOnRectangle;
338
+ const isContextClick = e.button === constants_1.SECONDARY_BUTTON || e.ctrlKey;
339
+ if (mustFocus && !isContextClick && !this.pointerInMinimap(this.pointerX, this.pointerY)) {
340
+ const rect = focusRect(this.props.columnarViewModel, this.props.chartDimensions.height, hoveredDatumIndex);
341
+ this.navigator.add({ ...rect, index: hoveredDatumIndex });
342
+ this.focusOnNode(hoveredDatumIndex);
343
+ this.props.onElementClick([{ vmIndex: hoveredDatumIndex }]);
400
344
  }
401
345
  }
402
- _this.clearDrag();
403
- _this.setState({});
346
+ this.clearDrag();
347
+ this.setState({});
404
348
  };
405
- _this.handleUnpinningTooltip = function () {
406
- window.removeEventListener('keyup', _this.handleKeyUp);
407
- window.removeEventListener('click', _this.handleUnpinningTooltip);
408
- window.removeEventListener('visibilitychange', _this.handleUnpinningTooltip);
409
- _this.pinTooltip(false);
349
+ this.handleUnpinningTooltip = () => {
350
+ window.removeEventListener('keyup', this.handleKeyUp);
351
+ window.removeEventListener('click', this.handleUnpinningTooltip);
352
+ window.removeEventListener('visibilitychange', this.handleUnpinningTooltip);
353
+ this.pinTooltip(false);
410
354
  };
411
- _this.handleKeyUp = function (_a) {
412
- var key = _a.key;
355
+ this.handleKeyUp = ({ key }) => {
413
356
  if (!FlameComponent.watchedKeys.includes(key))
414
357
  return;
415
- window.removeEventListener('keyup', _this.handleKeyUp);
416
- _this.unpinTooltip();
358
+ window.removeEventListener('keyup', this.handleKeyUp);
359
+ this.unpinTooltip();
417
360
  };
418
- _this.handleMouseLeave = function (e) {
361
+ this.handleMouseLeave = (e) => {
419
362
  e.stopPropagation();
420
- if (!_this.tooltipPinned) {
421
- _this.smartDraw();
363
+ if (!this.tooltipPinned) {
364
+ this.smartDraw();
422
365
  }
423
366
  };
424
- _this.preventScroll = function (e) { return e.metaKey === IS_META_REQUIRED_FOR_ZOOM && e.preventDefault(); };
425
- _this.handleWheel = function (e) {
367
+ this.preventScroll = (e) => e.metaKey === IS_META_REQUIRED_FOR_ZOOM && e.preventDefault();
368
+ this.handleWheel = (e) => {
426
369
  if (e.metaKey !== IS_META_REQUIRED_FOR_ZOOM)
427
370
  return;
428
- _this.unpinTooltip();
429
- _this.updatePointerLocation(e);
430
- var _a = _this.currentFocus, x0 = _a.x0, x1 = _a.x1, y0 = _a.y0, y1 = _a.y1;
431
- var wheelDelta = -e.deltaY;
432
- var delta = wheelDelta * ZOOM_SPEED;
433
- var unitX = _this.pointerX / _this.props.chartDimensions.width;
434
- var unitY = (_this.props.chartDimensions.height - _this.pointerY) / _this.props.chartDimensions.height;
435
- var zoomOut = delta <= 0;
436
- var midX = Math.abs(x0) < draw_a_frame_1.EPSILON && (zoomOut || _this.pointerX < ZOOM_FROM_EDGE_BAND_LEFT)
371
+ this.unpinTooltip();
372
+ this.updatePointerLocation(e);
373
+ const { x0, x1, y0, y1 } = this.currentFocus;
374
+ const wheelDelta = -e.deltaY;
375
+ const delta = wheelDelta * ZOOM_SPEED;
376
+ const unitX = this.pointerX / this.props.chartDimensions.width;
377
+ const unitY = (this.props.chartDimensions.height - this.pointerY) / this.props.chartDimensions.height;
378
+ const zoomOut = delta <= 0;
379
+ const midX = Math.abs(x0) < draw_a_frame_1.EPSILON && (zoomOut || this.pointerX < ZOOM_FROM_EDGE_BAND_LEFT)
437
380
  ? 0
438
381
  : Math.abs(x1 - 1) < draw_a_frame_1.EPSILON &&
439
- (zoomOut || _this.pointerX > _this.props.chartDimensions.width - ZOOM_FROM_EDGE_BAND_RIGHT)
382
+ (zoomOut || this.pointerX > this.props.chartDimensions.width - ZOOM_FROM_EDGE_BAND_RIGHT)
440
383
  ? 1
441
384
  : (0, common_2.clamp)(x0 + unitX * Math.abs(x1 - x0), 0, 1);
442
- var midY = Math.abs(y0) < draw_a_frame_1.EPSILON &&
443
- (zoomOut || _this.pointerY > _this.props.chartDimensions.height - ZOOM_FROM_EDGE_BAND_BOTTOM)
385
+ const midY = Math.abs(y0) < draw_a_frame_1.EPSILON &&
386
+ (zoomOut || this.pointerY > this.props.chartDimensions.height - ZOOM_FROM_EDGE_BAND_BOTTOM)
444
387
  ? 0
445
- : Math.abs(y1 - 1) < draw_a_frame_1.EPSILON && (zoomOut || _this.pointerY < ZOOM_FROM_EDGE_BAND_TOP)
388
+ : Math.abs(y1 - 1) < draw_a_frame_1.EPSILON && (zoomOut || this.pointerY < ZOOM_FROM_EDGE_BAND_TOP)
446
389
  ? 1
447
390
  : (0, common_2.clamp)(y0 + unitY * Math.abs(y1 - y0), 0, 1);
448
- var targetX0 = (0, common_2.clamp)(x0 - delta * (x0 - midX), 0, 1);
449
- var targetX1 = (0, common_2.clamp)(x1 + delta * (midX - x1), 0, 1);
450
- var targetY0 = (0, common_2.clamp)(y0 - delta * (y0 - midY), 0, 1);
451
- var targetY1 = (0, common_2.clamp)(y1 + delta * (midY - y1), 0, 1);
452
- var newX0 = Math.min(targetX0, midX);
453
- var newX1 = Math.max(targetX1, midX);
454
- var newY0 = Math.min(targetY0, midY);
455
- var newY1 = Math.max(targetY1, midY);
456
- var xZoom = (e.ctrlKey || !e.altKey) && newX1 - newX0 >= DEEPEST_ZOOM_RATIO;
457
- var yZoom = (e.ctrlKey || e.altKey) && newY1 - newY0 >= unitRowPitch(_this.props.columnarViewModel.position1);
391
+ const targetX0 = (0, common_2.clamp)(x0 - delta * (x0 - midX), 0, 1);
392
+ const targetX1 = (0, common_2.clamp)(x1 + delta * (midX - x1), 0, 1);
393
+ const targetY0 = (0, common_2.clamp)(y0 - delta * (y0 - midY), 0, 1);
394
+ const targetY1 = (0, common_2.clamp)(y1 + delta * (midY - y1), 0, 1);
395
+ const newX0 = Math.min(targetX0, midX);
396
+ const newX1 = Math.max(targetX1, midX);
397
+ const newY0 = Math.min(targetY0, midY);
398
+ const newY1 = Math.max(targetY1, midY);
399
+ const xZoom = (e.ctrlKey || !e.altKey) && newX1 - newX0 >= DEEPEST_ZOOM_RATIO;
400
+ const yZoom = (e.ctrlKey || e.altKey) && newY1 - newY0 >= unitRowPitch(this.props.columnarViewModel.position1);
458
401
  if (xZoom || yZoom) {
459
- var newFocus = {
402
+ const newFocus = {
460
403
  x0: xZoom ? newX0 : x0,
461
404
  x1: xZoom ? newX1 : x1,
462
405
  y0: yZoom ? newY0 : y0,
463
406
  y1: yZoom ? newY1 : y1,
464
407
  };
465
- _this.navigator.add(__assign(__assign({}, newFocus), { index: NaN }));
466
- _this.currentFocus = newFocus;
467
- _this.targetFocus = newFocus;
408
+ this.navigator.add({ ...newFocus, index: NaN });
409
+ this.currentFocus = newFocus;
410
+ this.targetFocus = newFocus;
468
411
  }
469
- _this.smartDraw();
412
+ this.smartDraw();
470
413
  };
471
- _this.focusOnAllMatches = function () {
414
+ this.focusOnAllMatches = () => {
472
415
  var _a, _b, _c, _d, _e, _f;
473
- _this.currentSearchHitCount = 0;
474
- var searchString = _this.currentSearchString;
475
- var customizedSearchString = _this.caseSensitive ? searchString : searchString.toLowerCase();
476
- var regex = _this.useRegex && getRegExp(searchString);
477
- var columns = _this.props.columnarViewModel;
478
- _this.currentColor = new Float32Array(columns.color);
479
- var labels = columns.label;
480
- var size = columns.size1;
481
- var position = columns.position1;
482
- var rowHeight = unitRowPitch(position);
483
- var datumCount = labels.length;
484
- var x0 = Infinity;
485
- var x1 = -Infinity;
486
- var y0 = Infinity;
487
- var y1 = -Infinity;
488
- for (var i = 0; i < datumCount; i++) {
489
- var label = _this.caseSensitive ? labels[i] : (_a = labels[i]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
416
+ this.currentSearchHitCount = 0;
417
+ const searchString = this.currentSearchString;
418
+ const customizedSearchString = this.caseSensitive ? searchString : searchString.toLowerCase();
419
+ const regex = this.useRegex && getRegExp(searchString);
420
+ const columns = this.props.columnarViewModel;
421
+ this.currentColor = new Float32Array(columns.color);
422
+ const labels = columns.label;
423
+ const size = columns.size1;
424
+ const position = columns.position1;
425
+ const rowHeight = unitRowPitch(position);
426
+ const datumCount = labels.length;
427
+ let x0 = Infinity;
428
+ let x1 = -Infinity;
429
+ let y0 = Infinity;
430
+ let y1 = -Infinity;
431
+ for (let i = 0; i < datumCount; i++) {
432
+ const label = this.caseSensitive ? labels[i] : (_a = labels[i]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
490
433
  if (regex ? label === null || label === void 0 ? void 0 : label.match(regex) : label === null || label === void 0 ? void 0 : label.includes(customizedSearchString)) {
491
- _this.currentSearchHitCount++;
434
+ this.currentSearchHitCount++;
492
435
  x0 = Math.min(x0, (_b = position[2 * i]) !== null && _b !== void 0 ? _b : 0);
493
436
  x1 = Math.max(x1, ((_c = position[2 * i]) !== null && _c !== void 0 ? _c : 0) + ((_d = size[i]) !== null && _d !== void 0 ? _d : 0));
494
437
  y0 = Math.min(y0, (_e = position[2 * i + 1]) !== null && _e !== void 0 ? _e : 0);
495
438
  y1 = Math.max(y1, ((_f = position[2 * i + 1]) !== null && _f !== void 0 ? _f : 0) + rowHeight);
496
439
  }
497
440
  else {
498
- _this.currentColor[4 * i + 3] *= 0.25;
441
+ this.currentColor[4 * i + 3] *= 0.25;
499
442
  }
500
443
  }
501
444
  if (Number.isFinite(x0) && searchString.length > 0) {
502
- Object.assign(_this.targetFocus, focusForArea(_this.props.chartDimensions.height, { x0: x0, x1: x1, y0: y0, y1: y1 }));
445
+ Object.assign(this.targetFocus, focusForArea(this.props.chartDimensions.height, { x0, x1, y0, y1 }));
503
446
  }
504
447
  };
505
- _this.uploadSearchColors = function () {
506
- var colorSetter = _this.glResources.attributes.get('color');
507
- if (_this.glContext && colorSetter && _this.currentColor.length === _this.props.columnarViewModel.color.length) {
508
- (0, upload_to_webgl_1.uploadToWebgl)(_this.glContext, new Map([['color', colorSetter]]), { color: _this.currentColor });
448
+ this.uploadSearchColors = () => {
449
+ const colorSetter = this.glResources.attributes.get('color');
450
+ if (this.glContext && colorSetter && this.currentColor.length === this.props.columnarViewModel.color.length) {
451
+ (0, upload_to_webgl_1.uploadToWebgl)(this.glContext, new Map([['color', colorSetter]]), { color: this.currentColor });
509
452
  }
510
453
  };
511
- _this.searchForText = function (force) {
512
- var input = _this.searchInputRef.current;
513
- var searchString = input === null || input === void 0 ? void 0 : input.value;
514
- if (!input || typeof searchString !== 'string' || (searchString === _this.currentSearchString && !force))
454
+ this.searchForText = (force) => {
455
+ const input = this.searchInputRef.current;
456
+ const searchString = input === null || input === void 0 ? void 0 : input.value;
457
+ if (!input || typeof searchString !== 'string' || (searchString === this.currentSearchString && !force))
515
458
  return;
516
- _this.currentSearchString = searchString;
517
- _this.focusOnAllMatches();
518
- _this.uploadSearchColors();
519
- _this.focusedMatchIndex = NaN;
520
- _this.setState({});
459
+ this.currentSearchString = searchString;
460
+ this.focusOnAllMatches();
461
+ this.uploadSearchColors();
462
+ this.focusedMatchIndex = NaN;
463
+ this.setState({});
521
464
  };
522
- _this.handleEnterKey = function (e) {
465
+ this.handleEnterKey = (e) => {
523
466
  e.stopPropagation();
524
467
  if (e.key === 'Enter') {
525
468
  if (e.shiftKey) {
526
- _this.previousHit();
469
+ this.previousHit();
527
470
  }
528
471
  else {
529
- _this.nextHit();
472
+ this.nextHit();
530
473
  }
531
474
  return true;
532
475
  }
533
476
  return false;
534
477
  };
535
- _this.clearSearchText = function () {
536
- if (!_this.searchInputRef.current)
478
+ this.clearSearchText = () => {
479
+ if (!this.searchInputRef.current)
537
480
  return;
538
- _this.searchInputRef.current.value = '';
539
- _this.searchForText(false);
481
+ this.searchInputRef.current.value = '';
482
+ this.searchForText(false);
540
483
  };
541
- _this.handleEscapeKey = function (e) {
484
+ this.handleEscapeKey = (e) => {
542
485
  if (e.key === 'Escape') {
543
- _this.clearSearchText();
486
+ this.clearSearchText();
544
487
  }
545
488
  };
546
- _this.handleSearchFieldKeyPress = function (e) {
547
- if (_this.handleEnterKey(e)) {
489
+ this.handleSearchFieldKeyPress = (e) => {
490
+ if (this.handleEnterKey(e)) {
548
491
  e.stopPropagation();
549
492
  }
550
493
  };
551
- _this.focusOnHit = function () {
494
+ this.focusOnHit = () => {
552
495
  var _a;
553
- if (Number.isNaN(_this.focusedMatchIndex)) {
554
- _this.focusOnAllMatches();
496
+ if (Number.isNaN(this.focusedMatchIndex)) {
497
+ this.focusOnAllMatches();
555
498
  }
556
499
  else {
557
- var datumIndex = NaN;
558
- var hitEnumerator = -1;
559
- var searchString = _this.currentSearchString;
560
- var customizedSearchString = _this.caseSensitive ? searchString : searchString.toLowerCase();
561
- var regex = _this.useRegex && getRegExp(searchString);
562
- var labels = _this.props.columnarViewModel.label;
563
- for (var i = 0; i < labels.length; i++) {
564
- var label = _this.caseSensitive ? labels[i] : (_a = labels[i]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
500
+ let datumIndex = NaN;
501
+ let hitEnumerator = -1;
502
+ const searchString = this.currentSearchString;
503
+ const customizedSearchString = this.caseSensitive ? searchString : searchString.toLowerCase();
504
+ const regex = this.useRegex && getRegExp(searchString);
505
+ const labels = this.props.columnarViewModel.label;
506
+ for (let i = 0; i < labels.length; i++) {
507
+ const label = this.caseSensitive ? labels[i] : (_a = labels[i]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
565
508
  if (regex ? label === null || label === void 0 ? void 0 : label.match(regex) : label === null || label === void 0 ? void 0 : label.includes(customizedSearchString)) {
566
509
  datumIndex = i;
567
510
  hitEnumerator++;
568
- if (hitEnumerator === _this.focusedMatchIndex)
511
+ if (hitEnumerator === this.focusedMatchIndex)
569
512
  break;
570
513
  }
571
514
  }
572
515
  if (hitEnumerator >= 0) {
573
- _this.targetFocus = focusRect(_this.props.columnarViewModel, _this.props.chartDimensions.height, datumIndex);
574
- _this.prevFocusTime = NaN;
575
- _this.hoverIndex = NaN;
576
- _this.wobbleTimeLeft = WOBBLE_DURATION;
577
- _this.wobbleIndex = datumIndex;
516
+ this.targetFocus = focusRect(this.props.columnarViewModel, this.props.chartDimensions.height, datumIndex);
517
+ this.prevFocusTime = NaN;
518
+ this.hoverIndex = NaN;
519
+ this.wobbleTimeLeft = WOBBLE_DURATION;
520
+ this.wobbleIndex = datumIndex;
578
521
  }
579
522
  }
580
523
  };
581
- _this.previousHit = function () {
582
- var hitCount = _this.currentSearchHitCount;
583
- if (!_this.currentSearchString || hitCount === 0)
524
+ this.previousHit = () => {
525
+ const hitCount = this.currentSearchHitCount;
526
+ if (!this.currentSearchString || hitCount === 0)
584
527
  return;
585
- _this.focusedMatchIndex = Number.isNaN(_this.focusedMatchIndex)
528
+ this.focusedMatchIndex = Number.isNaN(this.focusedMatchIndex)
586
529
  ? hitCount - 1
587
- : _this.focusedMatchIndex === 0
530
+ : this.focusedMatchIndex === 0
588
531
  ? NaN
589
- : _this.focusedMatchIndex - 1;
590
- _this.focusOnHit();
591
- _this.setState({});
532
+ : this.focusedMatchIndex - 1;
533
+ this.focusOnHit();
534
+ this.setState({});
592
535
  };
593
- _this.nextHit = function () {
594
- var hitCount = _this.currentSearchHitCount;
595
- if (!_this.currentSearchString || hitCount === 0)
536
+ this.nextHit = () => {
537
+ const hitCount = this.currentSearchHitCount;
538
+ if (!this.currentSearchString || hitCount === 0)
596
539
  return;
597
- _this.focusedMatchIndex = _this.focusedMatchIndex = Number.isNaN(_this.focusedMatchIndex)
540
+ this.focusedMatchIndex = this.focusedMatchIndex = Number.isNaN(this.focusedMatchIndex)
598
541
  ? 0
599
- : _this.focusedMatchIndex === hitCount - 1
542
+ : this.focusedMatchIndex === hitCount - 1
600
543
  ? NaN
601
- : _this.focusedMatchIndex + 1;
602
- _this.focusOnHit();
603
- _this.setState({});
544
+ : this.focusedMatchIndex + 1;
545
+ this.focusOnHit();
546
+ this.setState({});
604
547
  };
605
- _this.render = function () {
606
- var _a = _this.props, forwardStageRef = _a.forwardStageRef, _b = _a.chartDimensions, requestedWidth = _b.width, requestedHeight = _b.height, a11ySettings = _a.a11ySettings, debugHistory = _a.debugHistory, theme = _a.theme, canPinTooltip = _a.canPinTooltip;
607
- var width = (0, common_1.roundUpSize)(requestedWidth);
608
- var height = (0, common_1.roundUpSize)(requestedHeight);
609
- var style = {
610
- width: width,
611
- height: height,
548
+ this.render = () => {
549
+ const { forwardStageRef, chartDimensions: { width: requestedWidth, height: requestedHeight }, a11ySettings, debugHistory, theme, canPinTooltip, } = this.props;
550
+ const width = (0, common_1.roundUpSize)(requestedWidth);
551
+ const height = (0, common_1.roundUpSize)(requestedHeight);
552
+ const style = {
553
+ width,
554
+ height,
612
555
  top: 0,
613
556
  left: 0,
614
557
  padding: 0,
615
558
  margin: 0,
616
559
  border: 0,
617
560
  position: 'absolute',
618
- cursor: _this.getActiveCursor(),
561
+ cursor: this.getActiveCursor(),
619
562
  };
620
- var dpr = window.devicePixelRatio * _this.pinchZoomScale;
621
- var canvasWidth = width * dpr;
622
- var canvasHeight = height * dpr;
623
- var hitCount = _this.currentSearchHitCount;
624
- var _c = theme.navigation, textColor = _c.textColor, buttonDisabledTextColor = _c.buttonDisabledTextColor, buttonBackgroundColor = _c.buttonBackgroundColor, buttonDisabledBackgroundColor = _c.buttonDisabledBackgroundColor, buttonTextColor = _c.buttonTextColor;
563
+ const dpr = window.devicePixelRatio * this.pinchZoomScale;
564
+ const canvasWidth = width * dpr;
565
+ const canvasHeight = height * dpr;
566
+ const hitCount = this.currentSearchHitCount;
567
+ const { textColor, buttonDisabledTextColor, buttonBackgroundColor, buttonDisabledBackgroundColor, buttonTextColor, } = theme.navigation;
625
568
  return (react_1.default.createElement(react_1.default.Fragment, null,
626
569
  react_1.default.createElement("figure", { "aria-labelledby": a11ySettings.labelId, "aria-describedby": a11ySettings.descriptionId },
627
- react_1.default.createElement("canvas", { ref: _this.glCanvasRef, className: "echCanvasRenderer", width: canvasWidth, height: canvasHeight, style: style, role: "presentation" }),
628
- react_1.default.createElement("canvas", { ref: forwardStageRef, tabIndex: 0, className: "echCanvasRenderer", width: canvasWidth, height: canvasHeight, onMouseMove: _this.handleMouseHoverMove, onMouseDown: _this.handleMouseDown, onContextMenu: canPinTooltip ? _this.handleContextMenu : undefined, onMouseLeave: _this.handleMouseLeave, onKeyPress: _this.handleEnterKey, onKeyUp: _this.handleEscapeKey, onWheel: _this.handleWheel, style: __assign(__assign({}, style), { outline: 'none' }), role: "presentation" })),
570
+ react_1.default.createElement("canvas", { ref: this.glCanvasRef, className: "echCanvasRenderer", width: canvasWidth, height: canvasHeight, style: style, role: "presentation" }),
571
+ react_1.default.createElement("canvas", { ref: forwardStageRef, tabIndex: 0, className: "echCanvasRenderer", width: canvasWidth, height: canvasHeight, onMouseMove: this.handleMouseHoverMove, onMouseDown: this.handleMouseDown, onContextMenu: canPinTooltip ? this.handleContextMenu : undefined, onMouseLeave: this.handleMouseLeave, onKeyPress: this.handleEnterKey, onKeyUp: this.handleEscapeKey, onWheel: this.handleWheel, style: { ...style, outline: 'none' }, role: "presentation" })),
629
572
  react_1.default.createElement("div", { style: {
630
573
  position: 'absolute',
631
- transform: "translateY(".concat(_this.props.chartDimensions.height - draw_a_frame_1.PADDING_BOTTOM + 4, "px)"),
574
+ transform: `translateY(${this.props.chartDimensions.height - draw_a_frame_1.PADDING_BOTTOM + 4}px)`,
632
575
  } },
633
576
  react_1.default.createElement("label", { title: "Navigate back", style: {
634
- color: _this.navigator.canNavBackward() ? buttonTextColor : buttonDisabledTextColor,
577
+ color: this.navigator.canNavBackward() ? buttonTextColor : buttonDisabledTextColor,
635
578
  fontWeight: 500,
636
579
  marginLeft: 16,
637
580
  marginRight: 4,
@@ -642,10 +585,10 @@ var FlameComponent = (function (_super) {
642
585
  height: 16,
643
586
  verticalAlign: 'middle',
644
587
  textAlign: 'center',
645
- backgroundColor: _this.navigator.canNavBackward() ? buttonBackgroundColor : buttonDisabledBackgroundColor,
588
+ backgroundColor: this.navigator.canNavBackward() ? buttonBackgroundColor : buttonDisabledBackgroundColor,
646
589
  } },
647
590
  "\u1438",
648
- react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: function () { return _this.focusOnNavElement(_this.navigator.navBackward()); }, style: { display: 'none' } })),
591
+ react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: () => this.focusOnNavElement(this.navigator.navBackward()), style: { display: 'none' } })),
649
592
  react_1.default.createElement("label", { title: "Reset", style: {
650
593
  color: buttonTextColor,
651
594
  fontWeight: 500,
@@ -655,20 +598,20 @@ var FlameComponent = (function (_super) {
655
598
  backgroundColor: buttonBackgroundColor,
656
599
  } },
657
600
  "\u25B2",
658
- react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: function () { return _this.resetFocus(); }, style: { display: 'none' } })),
601
+ react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: () => this.resetFocus(), style: { display: 'none' } })),
659
602
  react_1.default.createElement("label", { title: "Navigate forward", style: {
660
- color: _this.navigator.canNavForward() ? buttonTextColor : buttonDisabledTextColor,
603
+ color: this.navigator.canNavForward() ? buttonTextColor : buttonDisabledTextColor,
661
604
  fontWeight: 500,
662
605
  marginLeft: 4,
663
606
  marginRight: 16,
664
607
  borderRadius: 4,
665
608
  paddingInline: 4,
666
609
  verticalAlign: 'middle',
667
- backgroundColor: _this.navigator.canNavForward() ? buttonBackgroundColor : buttonDisabledBackgroundColor,
610
+ backgroundColor: this.navigator.canNavForward() ? buttonBackgroundColor : buttonDisabledBackgroundColor,
668
611
  } },
669
612
  "\u1433",
670
- react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: function () { return _this.focusOnNavElement(_this.navigator.navForward()); }, style: { display: 'none' } })),
671
- react_1.default.createElement("input", { ref: _this.searchInputRef, title: "Search string or regex pattern", size: 16, type: "text", tabIndex: 0, placeholder: "Search string", onKeyPress: _this.handleSearchFieldKeyPress, onKeyUp: _this.handleEscapeKey, onChange: function () { return _this.searchForText(false); }, style: {
613
+ react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: () => this.focusOnNavElement(this.navigator.navForward()), style: { display: 'none' } })),
614
+ react_1.default.createElement("input", { ref: this.searchInputRef, title: "Search string or regex pattern", size: 16, type: "text", tabIndex: 0, placeholder: "Search string", onKeyPress: this.handleSearchFieldKeyPress, onKeyUp: this.handleEscapeKey, onChange: () => this.searchForText(false), style: {
672
615
  border: 'none',
673
616
  padding: 3,
674
617
  outline: 'none',
@@ -682,48 +625,48 @@ var FlameComponent = (function (_super) {
682
625
  paddingInline: 4,
683
626
  marginInline: 4,
684
627
  borderRadius: 4,
685
- opacity: _this.currentSearchString ? 1 : 0,
628
+ opacity: this.currentSearchString ? 1 : 0,
686
629
  transition: 'opacity 250ms ease-in-out',
687
630
  } },
688
631
  "Clear",
689
- react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: function () {
690
- if (_this.currentSearchString && _this.searchInputRef.current) {
691
- _this.clearSearchText();
632
+ react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: () => {
633
+ if (this.currentSearchString && this.searchInputRef.current) {
634
+ this.clearSearchText();
692
635
  }
693
636
  }, style: { display: 'none' } })),
694
637
  react_1.default.createElement("label", { title: "Case sensitivity (highlighted: case sensitive)", style: {
695
- backgroundColor: _this.caseSensitive && !_this.useRegex ? buttonBackgroundColor : buttonDisabledBackgroundColor,
696
- color: _this.caseSensitive && !_this.useRegex ? buttonTextColor : buttonDisabledTextColor,
638
+ backgroundColor: this.caseSensitive && !this.useRegex ? buttonBackgroundColor : buttonDisabledBackgroundColor,
639
+ color: this.caseSensitive && !this.useRegex ? buttonTextColor : buttonDisabledTextColor,
697
640
  fontWeight: 500,
698
641
  paddingInline: 4,
699
642
  marginInline: 4,
700
643
  borderRadius: 4,
701
- opacity: _this.currentSearchString ? 1 : 0,
644
+ opacity: this.currentSearchString ? 1 : 0,
702
645
  transition: 'opacity 250ms ease-in-out',
703
646
  } },
704
647
  "Cc",
705
- react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: function () {
706
- if (!_this.currentSearchString)
648
+ react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: () => {
649
+ if (!this.currentSearchString)
707
650
  return;
708
- _this.caseSensitive = !_this.caseSensitive;
709
- _this.searchForText(true);
651
+ this.caseSensitive = !this.caseSensitive;
652
+ this.searchForText(true);
710
653
  }, style: { display: 'none' } })),
711
654
  react_1.default.createElement("label", { title: "Regex matching (highlighted: use regex)", style: {
712
- color: _this.useRegex ? buttonTextColor : buttonDisabledTextColor,
713
- backgroundColor: _this.useRegex ? buttonBackgroundColor : buttonDisabledBackgroundColor,
655
+ color: this.useRegex ? buttonTextColor : buttonDisabledTextColor,
656
+ backgroundColor: this.useRegex ? buttonBackgroundColor : buttonDisabledBackgroundColor,
714
657
  fontWeight: 500,
715
658
  paddingInline: 4,
716
659
  marginInline: 4,
717
660
  borderRadius: 4,
718
- opacity: _this.currentSearchString ? 1 : 0,
661
+ opacity: this.currentSearchString ? 1 : 0,
719
662
  transition: 'opacity 250ms ease-in-out',
720
663
  } },
721
664
  ". *",
722
- react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: function () {
723
- if (!_this.currentSearchString)
665
+ react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: () => {
666
+ if (!this.currentSearchString)
724
667
  return;
725
- _this.useRegex = !_this.useRegex;
726
- _this.searchForText(true);
668
+ this.useRegex = !this.useRegex;
669
+ this.searchForText(true);
727
670
  }, style: { display: 'none' } })),
728
671
  react_1.default.createElement("label", { title: "Previous hit", style: {
729
672
  backgroundColor: hitCount ? buttonBackgroundColor : buttonDisabledBackgroundColor,
@@ -733,162 +676,162 @@ var FlameComponent = (function (_super) {
733
676
  marginRight: 4,
734
677
  paddingInline: 4,
735
678
  borderRadius: 4,
736
- opacity: _this.currentSearchString ? 1 : 0,
679
+ opacity: this.currentSearchString ? 1 : 0,
737
680
  transition: 'opacity 250ms ease-in-out',
738
681
  verticalAlign: 'middle',
739
682
  } },
740
683
  "\u25C0",
741
- react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: _this.previousHit, style: { display: 'none' } })),
684
+ react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: this.previousHit, style: { display: 'none' } })),
742
685
  react_1.default.createElement("label", { title: "Next hit", style: {
743
686
  backgroundColor: hitCount ? buttonBackgroundColor : buttonDisabledBackgroundColor,
744
687
  color: hitCount ? buttonTextColor : buttonDisabledTextColor,
745
688
  fontWeight: 500,
746
689
  paddingInline: 4,
747
690
  borderRadius: 4,
748
- opacity: _this.currentSearchString ? 1 : 0,
691
+ opacity: this.currentSearchString ? 1 : 0,
749
692
  transition: 'opacity 250ms ease-in-out',
750
693
  verticalAlign: 'middle',
751
694
  } },
752
695
  "\u25B6",
753
- react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: _this.nextHit, style: { display: 'none' } })),
696
+ react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: this.nextHit, style: { display: 'none' } })),
754
697
  react_1.default.createElement("p", { style: {
755
698
  float: 'right',
756
699
  padding: 3,
757
- opacity: _this.currentSearchString ? 1 : 0,
700
+ opacity: this.currentSearchString ? 1 : 0,
758
701
  transition: 'opacity 250ms ease-in-out',
759
702
  color: textColor,
760
- } }, "Match".concat(Number.isNaN(_this.focusedMatchIndex) ? 'es:' : ": ".concat(_this.focusedMatchIndex + 1, " /"), " ").concat(hitCount))),
761
- react_1.default.createElement(tooltip_1.BasicTooltip, { canPinTooltip: canPinTooltip, onPointerMove: function () { return ({ type: mouse_1.ON_POINTER_MOVE, position: { x: NaN, y: NaN }, time: NaN }); }, position: _this.tooltipPinned
762
- ? { x: _this.pinnedPointerX, y: _this.pinnedPointerY, width: 0, height: 0 }
763
- : { x: _this.pointerX, y: _this.pointerY, width: 0, height: 0 }, pinned: _this.tooltipPinned, selected: _this.tooltipSelectedSeries, pinTooltip: _this.pinTooltip, toggleSelectedTooltipItem: _this.toggleSelectedTooltipItem, setSelectedTooltipItems: _this.setSelectedTooltipItems, visible: _this.tooltipPinned || (_this.props.tooltipRequired && _this.hoverIndex >= 0 && !(_this.wobbleTimeLeft > 0)), info: {
703
+ } }, `Match${Number.isNaN(this.focusedMatchIndex) ? 'es:' : `: ${this.focusedMatchIndex + 1} /`} ${hitCount}`)),
704
+ react_1.default.createElement(tooltip_1.BasicTooltip, { canPinTooltip: canPinTooltip, onPointerMove: () => ({ type: mouse_1.ON_POINTER_MOVE, position: { x: NaN, y: NaN }, time: NaN }), position: this.tooltipPinned
705
+ ? { x: this.pinnedPointerX, y: this.pinnedPointerY, width: 0, height: 0 }
706
+ : { x: this.pointerX, y: this.pointerY, width: 0, height: 0 }, pinned: this.tooltipPinned, selected: this.tooltipSelectedSeries, pinTooltip: this.pinTooltip, toggleSelectedTooltipItem: this.toggleSelectedTooltipItem, setSelectedTooltipItems: this.setSelectedTooltipItems, visible: this.tooltipPinned || (this.props.tooltipRequired && this.hoverIndex >= 0 && !(this.wobbleTimeLeft > 0)), info: {
764
707
  header: null,
765
- values: _this.tooltipValues,
766
- }, getChartContainerRef: _this.props.containerRef }),
708
+ values: this.tooltipValues,
709
+ }, getChartContainerRef: this.props.containerRef }),
767
710
  debugHistory && (react_1.default.createElement("div", { style: {
768
711
  position: 'absolute',
769
- transform: "translate(20px, 20px)",
712
+ transform: `translate(20px, 20px)`,
770
713
  background: 'beige',
771
714
  opacity: 0.8,
772
715
  } },
773
716
  "history:",
774
- react_1.default.createElement("ul", null, _this.navigator.queue().map(function (d, i) {
775
- return (react_1.default.createElement("li", { key: "".concat(d.index, "-").concat(i) }, "".concat(Number.isNaN(d.index) ? 'ZOOM/PAN' : d.index).concat(_this.navigator.index() === i ? '⬅' : '')));
717
+ react_1.default.createElement("ul", null, this.navigator.queue().map((d, i) => {
718
+ return (react_1.default.createElement("li", { key: `${d.index}-${i}` }, `${Number.isNaN(d.index) ? 'ZOOM/PAN' : d.index}${this.navigator.index() === i ? '⬅' : ''}`));
776
719
  }))))));
777
720
  };
778
- _this.drawCanvas = function () {
779
- if (!_this.ctx || !_this.glContext || !_this.pickTexture)
721
+ this.drawCanvas = () => {
722
+ if (!this.ctx || !this.glContext || !this.pickTexture)
780
723
  return;
781
- var renderFrame = (0, draw_a_frame_1.drawFrame)(_this.ctx, _this.glContext, _this.props.chartDimensions.width, _this.props.chartDimensions.height, _this.getMinimapWidth(), _this.getMinimapHeight(), _this.getMinimapLeft(), _this.getMinimapTop(), window.devicePixelRatio * _this.pinchZoomScale, _this.props.columnarViewModel, _this.pickTexture, _this.glResources.pickTextureRenderer, _this.glResources.roundedRectRenderer, _this.hoverIndex, unitRowPitch(_this.props.columnarViewModel.position1), _this.currentColor, _this.props.theme);
782
- var anim = function (t) {
783
- var focusTimeDeltaMs = Number.isNaN(_this.prevFocusTime) ? 0 : t - _this.prevFocusTime;
784
- _this.prevFocusTime = t;
785
- if (_this.prevNodeTweenTime === Infinity)
786
- _this.prevNodeTweenTime = t;
787
- var nodeTweenTime = (0, common_2.clamp)((t - _this.prevNodeTweenTime) / NODE_TWEEN_DURATION_MS, 0, 1);
788
- var nodeTweenInProgress = nodeTweenTime < 1;
789
- var dx0 = _this.targetFocus.x0 - _this.currentFocus.x0;
790
- var dx1 = _this.targetFocus.x1 - _this.currentFocus.x1;
791
- var dy0 = _this.targetFocus.y0 - _this.currentFocus.y0;
792
- var dy1 = _this.targetFocus.y1 - _this.currentFocus.y1;
793
- var currentExtentX = _this.currentFocus.x1 - _this.currentFocus.x0;
794
- var currentExtentY = _this.currentFocus.y1 - _this.currentFocus.y0;
795
- var relativeExpansionX = Math.max(1, (currentExtentX + dx1 - dx0) / currentExtentX);
796
- var relativeExpansionY = Math.max(1, (currentExtentX + dy1 - dy0) / currentExtentY);
797
- var jointRelativeExpansion = (relativeExpansionX + relativeExpansionY) / 2;
798
- var convergenceRateX = Math.min(1, focusTimeDeltaMs * RECURRENCE_ALPHA_PER_MS_X) / jointRelativeExpansion;
799
- var convergenceRateY = Math.min(1, focusTimeDeltaMs * RECURRENCE_ALPHA_PER_MS_Y) / jointRelativeExpansion;
800
- _this.currentFocus.x0 += convergenceRateX * dx0;
801
- _this.currentFocus.x1 += convergenceRateX * dx1;
802
- _this.currentFocus.y0 += convergenceRateY * dy0;
803
- _this.currentFocus.y1 += convergenceRateY * dy1;
804
- _this.wobbleTimeLeft -= focusTimeDeltaMs;
805
- var wobbleAnimationInProgress = _this.wobbleTimeLeft > 0;
806
- var timeFromWobbleStart = (0, common_2.clamp)(WOBBLE_DURATION - _this.wobbleTimeLeft, 0, WOBBLE_DURATION);
807
- renderFrame([_this.currentFocus.x0, _this.currentFocus.x1, _this.currentFocus.y0, _this.currentFocus.y1], _this.wobbleIndex, wobbleAnimationInProgress ? 0.01 + 0.99 * (0.5 - 0.5 * Math.cos(timeFromWobbleStart * WOBBLE_FREQUENCY)) : 0, nodeTweenTime);
808
- var maxDiff = Math.max(Math.abs(dx0), Math.abs(dx1), Math.abs(dy0), Math.abs(dy1));
809
- var focusAnimationInProgress = maxDiff > 1e-12;
724
+ const renderFrame = (0, draw_a_frame_1.drawFrame)(this.ctx, this.glContext, this.props.chartDimensions.width, this.props.chartDimensions.height, this.getMinimapWidth(), this.getMinimapHeight(), this.getMinimapLeft(), this.getMinimapTop(), window.devicePixelRatio * this.pinchZoomScale, this.props.columnarViewModel, this.pickTexture, this.glResources.pickTextureRenderer, this.glResources.roundedRectRenderer, this.hoverIndex, unitRowPitch(this.props.columnarViewModel.position1), this.currentColor, this.props.theme);
725
+ const anim = (t) => {
726
+ const focusTimeDeltaMs = Number.isNaN(this.prevFocusTime) ? 0 : t - this.prevFocusTime;
727
+ this.prevFocusTime = t;
728
+ if (this.prevNodeTweenTime === Infinity)
729
+ this.prevNodeTweenTime = t;
730
+ const nodeTweenTime = (0, common_2.clamp)((t - this.prevNodeTweenTime) / NODE_TWEEN_DURATION_MS, 0, 1);
731
+ const nodeTweenInProgress = nodeTweenTime < 1;
732
+ const dx0 = this.targetFocus.x0 - this.currentFocus.x0;
733
+ const dx1 = this.targetFocus.x1 - this.currentFocus.x1;
734
+ const dy0 = this.targetFocus.y0 - this.currentFocus.y0;
735
+ const dy1 = this.targetFocus.y1 - this.currentFocus.y1;
736
+ const currentExtentX = this.currentFocus.x1 - this.currentFocus.x0;
737
+ const currentExtentY = this.currentFocus.y1 - this.currentFocus.y0;
738
+ const relativeExpansionX = Math.max(1, (currentExtentX + dx1 - dx0) / currentExtentX);
739
+ const relativeExpansionY = Math.max(1, (currentExtentX + dy1 - dy0) / currentExtentY);
740
+ const jointRelativeExpansion = (relativeExpansionX + relativeExpansionY) / 2;
741
+ const convergenceRateX = Math.min(1, focusTimeDeltaMs * RECURRENCE_ALPHA_PER_MS_X) / jointRelativeExpansion;
742
+ const convergenceRateY = Math.min(1, focusTimeDeltaMs * RECURRENCE_ALPHA_PER_MS_Y) / jointRelativeExpansion;
743
+ this.currentFocus.x0 += convergenceRateX * dx0;
744
+ this.currentFocus.x1 += convergenceRateX * dx1;
745
+ this.currentFocus.y0 += convergenceRateY * dy0;
746
+ this.currentFocus.y1 += convergenceRateY * dy1;
747
+ this.wobbleTimeLeft -= focusTimeDeltaMs;
748
+ const wobbleAnimationInProgress = this.wobbleTimeLeft > 0;
749
+ const timeFromWobbleStart = (0, common_2.clamp)(WOBBLE_DURATION - this.wobbleTimeLeft, 0, WOBBLE_DURATION);
750
+ renderFrame([this.currentFocus.x0, this.currentFocus.x1, this.currentFocus.y0, this.currentFocus.y1], this.wobbleIndex, wobbleAnimationInProgress ? 0.01 + 0.99 * (0.5 - 0.5 * Math.cos(timeFromWobbleStart * WOBBLE_FREQUENCY)) : 0, nodeTweenTime);
751
+ const maxDiff = Math.max(Math.abs(dx0), Math.abs(dx1), Math.abs(dy0), Math.abs(dy1));
752
+ const focusAnimationInProgress = maxDiff > 1e-12;
810
753
  if (focusAnimationInProgress || wobbleAnimationInProgress || nodeTweenInProgress) {
811
- _this.animationRafId = window.requestAnimationFrame(anim);
754
+ this.animationRafId = window.requestAnimationFrame(anim);
812
755
  }
813
756
  else {
814
- _this.prevFocusTime = NaN;
815
- _this.currentFocus.x0 = _this.targetFocus.x0;
816
- _this.currentFocus.x1 = _this.targetFocus.x1;
817
- _this.currentFocus.y0 = _this.targetFocus.y0;
818
- _this.currentFocus.y1 = _this.targetFocus.y1;
757
+ this.prevFocusTime = NaN;
758
+ this.currentFocus.x0 = this.targetFocus.x0;
759
+ this.currentFocus.x1 = this.targetFocus.x1;
760
+ this.currentFocus.y0 = this.targetFocus.y0;
761
+ this.currentFocus.y1 = this.targetFocus.y1;
819
762
  }
820
763
  };
821
- window.cancelAnimationFrame(_this.animationRafId);
822
- _this.animationRafId = window.requestAnimationFrame(anim);
823
- _this.props.onRenderChange(true);
764
+ window.cancelAnimationFrame(this.animationRafId);
765
+ this.animationRafId = window.requestAnimationFrame(anim);
766
+ this.props.onRenderChange(true);
824
767
  };
825
- _this.getMinimapWidth = function () { return _this.props.chartDimensions.width / MINIMAP_SIZE_RATIO_X; };
826
- _this.getMinimapHeight = function () { return _this.props.chartDimensions.height / MINIMAP_SIZE_RATIO_Y; };
827
- _this.getMinimapLeft = function () { return _this.props.chartDimensions.width - _this.getMinimapWidth(); };
828
- _this.getMinimapTop = function () { return _this.props.chartDimensions.height - _this.getMinimapHeight(); };
829
- _this.ensurePickTexture = function () {
768
+ this.getMinimapWidth = () => this.props.chartDimensions.width / MINIMAP_SIZE_RATIO_X;
769
+ this.getMinimapHeight = () => this.props.chartDimensions.height / MINIMAP_SIZE_RATIO_Y;
770
+ this.getMinimapLeft = () => this.props.chartDimensions.width - this.getMinimapWidth();
771
+ this.getMinimapTop = () => this.props.chartDimensions.height - this.getMinimapHeight();
772
+ this.ensurePickTexture = () => {
830
773
  var _a;
831
- var _b = _this.props.chartDimensions, width = _b.width, height = _b.height;
832
- var pr = window.devicePixelRatio * _this.pinchZoomScale;
833
- var textureWidth = pr * width;
834
- var textureHeight = pr * height;
835
- var current = _this.pickTexture;
836
- if (_this.glContext &&
774
+ const { width, height } = this.props.chartDimensions;
775
+ const pr = window.devicePixelRatio * this.pinchZoomScale;
776
+ const textureWidth = pr * width;
777
+ const textureHeight = pr * height;
778
+ const current = this.pickTexture;
779
+ if (this.glContext &&
837
780
  (current === kingly_1.NullTexture || current.width !== textureWidth || current.height !== textureHeight)) {
838
781
  current.delete();
839
- _this.pickTexture =
840
- (_a = (0, kingly_1.createTexture)(_this.glContext, {
782
+ this.pickTexture =
783
+ (_a = (0, kingly_1.createTexture)(this.glContext, {
841
784
  textureIndex: 0,
842
785
  width: textureWidth,
843
786
  height: textureHeight,
844
787
  internalFormat: webgl_constants_1.GL.RGBA8,
845
788
  data: null,
846
789
  })) !== null && _a !== void 0 ? _a : kingly_1.NullTexture;
847
- (0, kingly_1.bindFramebuffer)(_this.glContext, webgl_constants_1.GL.READ_FRAMEBUFFER, _this.pickTexture.target());
790
+ (0, kingly_1.bindFramebuffer)(this.glContext, webgl_constants_1.GL.READ_FRAMEBUFFER, this.pickTexture.target());
848
791
  }
849
792
  };
850
- _this.initializeGL = function (gl) {
851
- _this.glResources = (0, ensure_webgl_1.ensureWebgl)(gl, Object.keys(_this.props.columnarViewModel).filter(isAttributeKey));
852
- (0, upload_to_webgl_1.uploadToWebgl)(gl, _this.glResources.attributes, _this.props.columnarViewModel);
793
+ this.initializeGL = (gl) => {
794
+ this.glResources = (0, ensure_webgl_1.ensureWebgl)(gl, Object.keys(this.props.columnarViewModel).filter(isAttributeKey));
795
+ (0, upload_to_webgl_1.uploadToWebgl)(gl, this.glResources.attributes, this.props.columnarViewModel);
853
796
  };
854
- _this.restoreGL = function (gl) {
855
- _this.initializeGL(gl);
856
- _this.pickTexture = kingly_1.NullTexture;
857
- _this.uploadSearchColors();
858
- _this.ensureTextureAndDraw();
797
+ this.restoreGL = (gl) => {
798
+ this.initializeGL(gl);
799
+ this.pickTexture = kingly_1.NullTexture;
800
+ this.uploadSearchColors();
801
+ this.ensureTextureAndDraw();
859
802
  };
860
- _this.tryCanvasContext = function () {
861
- var canvas = _this.props.forwardStageRef.current;
862
- var glCanvas = _this.glCanvasRef.current;
863
- _this.ctx = canvas && canvas.getContext('2d');
864
- _this.glContext = glCanvas && glCanvas.getContext('webgl2');
865
- _this.ensurePickTexture();
866
- if (glCanvas && _this.glContext && _this.glResources === types_1.NULL_GL_RESOURCES) {
867
- glCanvas.addEventListener('webglcontextlost', _this.contextLossHandler, false);
868
- glCanvas.addEventListener('webglcontextrestored', _this.contextRestoreHandler, false);
869
- _this.initializeGL(_this.glContext);
803
+ this.tryCanvasContext = () => {
804
+ const canvas = this.props.forwardStageRef.current;
805
+ const glCanvas = this.glCanvasRef.current;
806
+ this.ctx = canvas && canvas.getContext('2d');
807
+ this.glContext = glCanvas && glCanvas.getContext('webgl2');
808
+ this.ensurePickTexture();
809
+ if (glCanvas && this.glContext && this.glResources === types_1.NULL_GL_RESOURCES) {
810
+ glCanvas.addEventListener('webglcontextlost', this.contextLossHandler, false);
811
+ glCanvas.addEventListener('webglcontextrestored', this.contextRestoreHandler, false);
812
+ this.initializeGL(this.glContext);
870
813
  }
871
814
  };
872
- _this.contextLossHandler = function (event) {
873
- window.cancelAnimationFrame(_this.animationRafId);
815
+ this.contextLossHandler = (event) => {
816
+ window.cancelAnimationFrame(this.animationRafId);
874
817
  event.preventDefault();
875
818
  };
876
- _this.contextRestoreHandler = function () {
877
- var glCanvas = _this.glCanvasRef.current;
878
- if (!glCanvas || !_this.glContext)
819
+ this.contextRestoreHandler = () => {
820
+ const glCanvas = this.glCanvasRef.current;
821
+ if (!glCanvas || !this.glContext)
879
822
  return;
880
- _this.restoreGL(_this.glContext);
881
- var widthCss = glCanvas.style.width;
882
- var widthNum = parseFloat(widthCss);
883
- glCanvas.style.width = "".concat(widthNum + 0.1, "px");
884
- window.setTimeout(function () {
823
+ this.restoreGL(this.glContext);
824
+ const widthCss = glCanvas.style.width;
825
+ const widthNum = parseFloat(widthCss);
826
+ glCanvas.style.width = `${widthNum + 0.1}px`;
827
+ window.setTimeout(() => {
885
828
  glCanvas.style.width = widthCss;
886
- if (_this.glContext)
887
- _this.restoreGL(_this.glContext);
829
+ if (this.glContext)
830
+ this.restoreGL(this.glContext);
888
831
  }, 0);
889
832
  };
890
- var columns = _this.props.columnarViewModel;
891
- var datumCount = columns.position1.length / 2;
833
+ const columns = this.props.columnarViewModel;
834
+ const datumCount = columns.position1.length / 2;
892
835
  if (datumCount % 1)
893
836
  throw new Error('flame error: position1 vector must have even values (x/y pairs)');
894
837
  if (datumCount * 2 !== columns.position0.length)
@@ -903,19 +846,18 @@ var FlameComponent = (function (_super) {
903
846
  throw new Error('flame error: Mismatch between position1 (xy) and value length');
904
847
  if (datumCount !== columns.label.length)
905
848
  throw new Error('flame error: Mismatch between position1 (xy) and label length');
906
- _this.targetFocus = _this.getFocusOnRoot();
907
- _this.bindControls();
908
- _this.currentFocus = __assign({}, _this.targetFocus);
909
- _this.navigator = new navigation_1.NavButtonControlledZoomPanHistory(__assign(__assign({}, _this.getFocusOnRoot()), { index: 0 }));
910
- _this.pinchZoomSetInterval = NaN;
911
- _this.pinchZoomScale = (_b = (_a = browserRootWindow().visualViewport) === null || _a === void 0 ? void 0 : _a.scale) !== null && _b !== void 0 ? _b : 1;
912
- _this.setupViewportScaleChangeListener();
913
- _this.currentColor = columns.color;
914
- _this.prevNodeTweenTime =
849
+ this.targetFocus = this.getFocusOnRoot();
850
+ this.bindControls();
851
+ this.currentFocus = { ...this.targetFocus };
852
+ this.navigator = new navigation_1.NavButtonControlledZoomPanHistory({ ...this.getFocusOnRoot(), index: 0 });
853
+ this.pinchZoomSetInterval = NaN;
854
+ this.pinchZoomScale = (_b = (_a = browserRootWindow().visualViewport) === null || _a === void 0 ? void 0 : _a.scale) !== null && _b !== void 0 ? _b : 1;
855
+ this.setupViewportScaleChangeListener();
856
+ this.currentColor = columns.color;
857
+ this.prevNodeTweenTime =
915
858
  columns.position0 === columns.position1 && columns.size0 === columns.size1 ? -Infinity : Infinity;
916
- return _this;
917
859
  }
918
- FlameComponent.prototype.focusOnNavElement = function (element) {
860
+ focusOnNavElement(element) {
919
861
  if (!element) {
920
862
  return;
921
863
  }
@@ -925,65 +867,70 @@ var FlameComponent = (function (_super) {
925
867
  else {
926
868
  this.focusOnRect(element);
927
869
  }
928
- };
929
- FlameComponent.prototype.bindControls = function () {
930
- var _this = this;
931
- var controlProviderCallback = this.props.controlProviderCallback;
870
+ }
871
+ bindControls() {
872
+ const { controlProviderCallback } = this.props;
932
873
  if (controlProviderCallback.resetFocus) {
933
- controlProviderCallback.resetFocus(function () { return _this.resetFocus(); });
874
+ controlProviderCallback.resetFocus(() => this.resetFocus());
934
875
  }
935
876
  if (controlProviderCallback.focusOnNode) {
936
- controlProviderCallback.focusOnNode(function (nodeIndex) {
937
- var rect = focusRect(_this.props.columnarViewModel, _this.props.chartDimensions.height, nodeIndex);
938
- _this.navigator.add(__assign(__assign({}, rect), { index: nodeIndex }));
939
- _this.focusOnNode(nodeIndex);
877
+ controlProviderCallback.focusOnNode((nodeIndex) => {
878
+ const rect = focusRect(this.props.columnarViewModel, this.props.chartDimensions.height, nodeIndex);
879
+ this.navigator.add({ ...rect, index: nodeIndex });
880
+ this.focusOnNode(nodeIndex);
940
881
  });
941
882
  }
942
- };
943
- FlameComponent.prototype.resetFocus = function () {
883
+ if (controlProviderCallback.search) {
884
+ controlProviderCallback.search((text) => {
885
+ if (!this.searchInputRef.current)
886
+ return;
887
+ this.searchInputRef.current.value = text;
888
+ this.searchForText(false);
889
+ });
890
+ }
891
+ }
892
+ resetFocus() {
944
893
  this.navigator.reset();
945
894
  this.targetFocus = this.getFocusOnRoot();
946
895
  this.wobble(0);
947
- };
948
- FlameComponent.prototype.focusOnNode = function (nodeIndex) {
896
+ }
897
+ focusOnNode(nodeIndex) {
949
898
  this.targetFocus = focusRect(this.props.columnarViewModel, this.props.chartDimensions.height, nodeIndex);
950
899
  this.wobble(nodeIndex);
951
- };
952
- FlameComponent.prototype.focusOnRect = function (rect) {
900
+ }
901
+ focusOnRect(rect) {
953
902
  this.targetFocus = rect;
954
903
  this.setState({});
955
- };
956
- FlameComponent.prototype.wobble = function (nodeIndex) {
904
+ }
905
+ wobble(nodeIndex) {
957
906
  this.wobbleTimeLeft = WOBBLE_DURATION;
958
907
  this.wobbleIndex = nodeIndex;
959
908
  this.prevFocusTime = NaN;
960
909
  this.hoverIndex = NaN;
961
910
  this.setState({});
962
- };
963
- FlameComponent.prototype.getFocusOnRoot = function () {
911
+ }
912
+ getFocusOnRoot() {
964
913
  return focusRect(this.props.columnarViewModel, this.props.chartDimensions.height, 0);
965
- };
966
- FlameComponent.prototype.componentWillUnmount = function () {
914
+ }
915
+ componentWillUnmount() {
967
916
  var _a;
968
917
  (_a = this.props.containerRef().current) === null || _a === void 0 ? void 0 : _a.removeEventListener('wheel', this.preventScroll);
969
- };
970
- FlameComponent.prototype.chartDimensionsChanged = function (_a) {
971
- var height = _a.height, width = _a.width;
918
+ }
919
+ chartDimensionsChanged({ height, width }) {
972
920
  return this.props.chartDimensions.height !== height || this.props.chartDimensions.width !== width;
973
- };
974
- FlameComponent.prototype.updatePointerLocation = function (e) {
921
+ }
922
+ updatePointerLocation(e) {
975
923
  if (!this.props.forwardStageRef.current || !this.ctx)
976
924
  return;
977
- var box = this.props.forwardStageRef.current.getBoundingClientRect();
925
+ const box = this.props.forwardStageRef.current.getBoundingClientRect();
978
926
  this.pointerX = e.clientX - box.left;
979
927
  this.pointerY = e.clientY - box.top;
980
928
  if (!this.tooltipPinned) {
981
929
  this.pinnedPointerX = this.pointerX;
982
930
  this.pinnedPointerY = this.pointerY;
983
931
  }
984
- };
985
- FlameComponent.prototype.unpinTooltip = function (redraw) {
986
- if (redraw === void 0) { redraw = false; }
932
+ }
933
+ unpinTooltip(redraw = false) {
987
934
  this.pinnedPointerX = NaN;
988
935
  this.pinnedPointerY = NaN;
989
936
  this.tooltipPinned = false;
@@ -992,11 +939,11 @@ var FlameComponent = (function (_super) {
992
939
  if (redraw) {
993
940
  this.smartDraw();
994
941
  }
995
- };
996
- FlameComponent.prototype.updateHoverIndex = function () {
942
+ }
943
+ updateHoverIndex() {
997
944
  var _a;
998
- var hoveredDatumIndex = this.getHoveredDatumIndex();
999
- var prevHoverIndex = this.hoverIndex >= 0 ? this.hoverIndex : NaN;
945
+ const hoveredDatumIndex = this.getHoveredDatumIndex();
946
+ const prevHoverIndex = this.hoverIndex >= 0 ? this.hoverIndex : NaN;
1000
947
  this.hoverIndex = hoveredDatumIndex;
1001
948
  if (!Object.is(this.hoverIndex, prevHoverIndex)) {
1002
949
  if (Number.isFinite(hoveredDatumIndex)) {
@@ -1008,8 +955,8 @@ var FlameComponent = (function (_super) {
1008
955
  }
1009
956
  }
1010
957
  if (prevHoverIndex !== this.hoverIndex) {
1011
- var columns = this.props.columnarViewModel;
1012
- var hoverValue = this.hoverIndex >= 0 ? columns.value[this.hoverIndex] : null;
958
+ const columns = this.props.columnarViewModel;
959
+ const hoverValue = this.hoverIndex >= 0 ? columns.value[this.hoverIndex] : null;
1013
960
  this.tooltipValues = !(0, common_2.isNil)(hoverValue)
1014
961
  ? [
1015
962
  {
@@ -1019,15 +966,15 @@ var FlameComponent = (function (_super) {
1019
966
  isVisible: true,
1020
967
  seriesIdentifier: { specId: '', key: '' },
1021
968
  value: hoverValue,
1022
- formattedValue: "".concat(specValueFormatter(hoverValue)),
969
+ formattedValue: `${specValueFormatter(hoverValue)}`,
1023
970
  valueAccessor: this.hoverIndex,
1024
971
  },
1025
972
  ]
1026
973
  : [];
1027
974
  }
1028
975
  this.setState({});
1029
- };
1030
- FlameComponent.prototype.getActiveCursor = function () {
976
+ }
977
+ getActiveCursor() {
1031
978
  if (this.tooltipPinned)
1032
979
  return constants_1.DEFAULT_CSS_CURSOR;
1033
980
  if (this.startOfDragX)
@@ -1035,8 +982,8 @@ var FlameComponent = (function (_super) {
1035
982
  if (this.hoverIndex >= 0)
1036
983
  return 'pointer';
1037
984
  return 'grab';
1038
- };
1039
- FlameComponent.prototype.smartDraw = function () {
985
+ }
986
+ smartDraw() {
1040
987
  if (Number.isFinite(this.hoverIndex)) {
1041
988
  this.hoverIndex = NaN;
1042
989
  this.setState({});
@@ -1044,16 +991,15 @@ var FlameComponent = (function (_super) {
1044
991
  else {
1045
992
  this.drawCanvas();
1046
993
  }
1047
- };
1048
- FlameComponent.displayName = 'Flame';
1049
- FlameComponent.watchedKeys = ['Escape'];
1050
- return FlameComponent;
1051
- }(react_1.default.Component));
1052
- var mapStateToProps = function (state) {
994
+ }
995
+ }
996
+ FlameComponent.displayName = 'Flame';
997
+ FlameComponent.watchedKeys = ['Escape'];
998
+ const mapStateToProps = (state) => {
1053
999
  var _a, _b, _c, _d, _e, _f, _g;
1054
- var flameSpec = (0, utils_1.getSpecsFromStore)(state.specs, __1.ChartType.Flame, specs_1.SpecType.Series)[0];
1055
- var settingsSpec = (0, get_settings_spec_1.getSettingsSpecSelector)(state);
1056
- var tooltipSpec = (0, get_tooltip_spec_1.getTooltipSpecSelector)(state);
1000
+ const flameSpec = (0, utils_1.getSpecsFromStore)(state.specs, __1.ChartType.Flame, specs_1.SpecType.Series)[0];
1001
+ const settingsSpec = (0, get_settings_spec_1.getSettingsSpecSelector)(state);
1002
+ const tooltipSpec = (0, get_tooltip_spec_1.getTooltipSpecSelector)(state);
1057
1003
  return {
1058
1004
  theme: (0, get_chart_theme_1.getChartThemeSelector)(state).flamegraph,
1059
1005
  debugHistory: settingsSpec.debug,
@@ -1064,18 +1010,16 @@ var mapStateToProps = function (state) {
1064
1010
  a11ySettings: (0, get_accessibility_config_1.getA11ySettingsSelector)(state),
1065
1011
  tooltipRequired: tooltipSpec.type !== specs_1.TooltipType.None,
1066
1012
  canPinTooltip: (0, can_pin_tooltip_1.isPinnableTooltip)(state),
1067
- onElementOver: (_d = settingsSpec.onElementOver) !== null && _d !== void 0 ? _d : (function () { }),
1068
- onElementClick: (_e = settingsSpec.onElementClick) !== null && _e !== void 0 ? _e : (function () { }),
1069
- onElementOut: (_f = settingsSpec.onElementOut) !== null && _f !== void 0 ? _f : (function () { }),
1070
- onRenderChange: (_g = settingsSpec.onRenderChange) !== null && _g !== void 0 ? _g : (function () { }),
1013
+ onElementOver: (_d = settingsSpec.onElementOver) !== null && _d !== void 0 ? _d : (() => { }),
1014
+ onElementClick: (_e = settingsSpec.onElementClick) !== null && _e !== void 0 ? _e : (() => { }),
1015
+ onElementOut: (_f = settingsSpec.onElementOut) !== null && _f !== void 0 ? _f : (() => { }),
1016
+ onRenderChange: (_g = settingsSpec.onRenderChange) !== null && _g !== void 0 ? _g : (() => { }),
1071
1017
  };
1072
1018
  };
1073
- var mapDispatchToProps = function (dispatch) {
1074
- return (0, redux_1.bindActionCreators)({
1075
- onChartRendered: chart_1.onChartRendered,
1076
- }, dispatch);
1077
- };
1078
- var FlameChartLayers = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(FlameComponent);
1079
- var FlameWithTooltip = function (containerRef, forwardStageRef) { return (react_1.default.createElement(FlameChartLayers, { forwardStageRef: forwardStageRef, containerRef: containerRef })); };
1019
+ const mapDispatchToProps = (dispatch) => (0, redux_1.bindActionCreators)({
1020
+ onChartRendered: chart_1.onChartRendered,
1021
+ }, dispatch);
1022
+ const FlameChartLayers = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(FlameComponent);
1023
+ const FlameWithTooltip = (containerRef, forwardStageRef) => (react_1.default.createElement(FlameChartLayers, { forwardStageRef: forwardStageRef, containerRef: containerRef }));
1080
1024
  exports.FlameWithTooltip = FlameWithTooltip;
1081
1025
  //# sourceMappingURL=flame_chart.js.map