@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.
- package/dist/chart_types/flame_chart/flame_api.d.ts +8 -2
- package/dist/chart_types/flame_chart/flame_api.d.ts.map +1 -1
- package/dist/chart_types/flame_chart/flame_api.js +11 -22
- package/dist/chart_types/flame_chart/flame_api.js.map +1 -1
- package/dist/chart_types/flame_chart/flame_chart.js +582 -638
- package/dist/chart_types/flame_chart/flame_chart.js.map +1 -1
- package/dist/chart_types/flame_chart/internal_chart_state.js +26 -27
- package/dist/chart_types/flame_chart/internal_chart_state.js.map +1 -1
- package/dist/chart_types/flame_chart/navigation.js +41 -89
- package/dist/chart_types/flame_chart/navigation.js.map +1 -1
- package/dist/chart_types/flame_chart/render/common.js +2 -4
- package/dist/chart_types/flame_chart/render/common.js.map +1 -1
- package/dist/chart_types/flame_chart/render/draw_a_frame.js +47 -53
- package/dist/chart_types/flame_chart/render/draw_a_frame.js.map +1 -1
- package/dist/chart_types/flame_chart/render/draw_canvas.js +42 -65
- package/dist/chart_types/flame_chart/render/draw_canvas.js.map +1 -1
- package/dist/chart_types/flame_chart/render/draw_webgl.js +36 -38
- package/dist/chart_types/flame_chart/render/draw_webgl.js.map +1 -1
- package/dist/chart_types/flame_chart/render/ensure_webgl.js +12 -12
- package/dist/chart_types/flame_chart/render/ensure_webgl.js.map +1 -1
- package/dist/chart_types/flame_chart/render/upload_to_webgl.js +2 -2
- package/dist/chart_types/flame_chart/render/upload_to_webgl.js.map +1 -1
- package/dist/chart_types/flame_chart/shaders.js +168 -12
- package/dist/chart_types/flame_chart/shaders.js.map +1 -1
- package/dist/chart_types/flame_chart/types.js +2 -2
- package/dist/chart_types/flame_chart/types.js.map +1 -1
- package/dist/chart_types/goal_chart/layout/config/config.js +1 -1
- package/dist/chart_types/goal_chart/layout/config/config.js.map +1 -1
- package/dist/chart_types/goal_chart/layout/types/viewmodel_types.js +42 -40
- package/dist/chart_types/goal_chart/layout/types/viewmodel_types.js.map +1 -1
- package/dist/chart_types/goal_chart/layout/viewmodel/geoms.js +194 -226
- package/dist/chart_types/goal_chart/layout/viewmodel/geoms.js.map +1 -1
- package/dist/chart_types/goal_chart/layout/viewmodel/utils.js +26 -54
- package/dist/chart_types/goal_chart/layout/viewmodel/utils.js.map +1 -1
- package/dist/chart_types/goal_chart/layout/viewmodel/viewmodel.js +65 -102
- package/dist/chart_types/goal_chart/layout/viewmodel/viewmodel.js.map +1 -1
- package/dist/chart_types/goal_chart/renderer/canvas/canvas_renderers.js +4 -4
- package/dist/chart_types/goal_chart/renderer/canvas/canvas_renderers.js.map +1 -1
- package/dist/chart_types/goal_chart/renderer/canvas/connected_component.js +50 -81
- package/dist/chart_types/goal_chart/renderer/canvas/connected_component.js.map +1 -1
- package/dist/chart_types/goal_chart/specs/index.js +28 -27
- package/dist/chart_types/goal_chart/specs/index.js.map +1 -1
- package/dist/chart_types/goal_chart/state/chart_state.js +59 -60
- package/dist/chart_types/goal_chart/state/chart_state.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/geometries.js +14 -14
- package/dist/chart_types/goal_chart/state/selectors/geometries.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/get_chart_type_description.js +4 -4
- package/dist/chart_types/goal_chart/state/selectors/get_chart_type_description.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/get_goal_chart_data.js +7 -7
- package/dist/chart_types/goal_chart/state/selectors/get_goal_chart_data.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/get_goal_spec.js +3 -3
- package/dist/chart_types/goal_chart/state/selectors/get_goal_spec.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/is_tooltip_visible.js +5 -6
- package/dist/chart_types/goal_chart/state/selectors/is_tooltip_visible.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/on_element_click_caller.js +10 -10
- package/dist/chart_types/goal_chart/state/selectors/on_element_click_caller.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/on_element_out_caller.js +9 -9
- package/dist/chart_types/goal_chart/state/selectors/on_element_out_caller.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/on_element_over_caller.js +9 -9
- package/dist/chart_types/goal_chart/state/selectors/on_element_over_caller.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/picked_shapes.js +21 -53
- package/dist/chart_types/goal_chart/state/selectors/picked_shapes.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/scenegraph.js +1 -1
- package/dist/chart_types/goal_chart/state/selectors/scenegraph.js.map +1 -1
- package/dist/chart_types/goal_chart/state/selectors/tooltip.js +12 -14
- package/dist/chart_types/goal_chart/state/selectors/tooltip.js.map +1 -1
- package/dist/chart_types/heatmap/layout/types/viewmodel_types.js +10 -10
- package/dist/chart_types/heatmap/layout/types/viewmodel_types.js.map +1 -1
- package/dist/chart_types/heatmap/layout/viewmodel/scenegraph.js +3 -3
- package/dist/chart_types/heatmap/layout/viewmodel/scenegraph.js.map +1 -1
- package/dist/chart_types/heatmap/layout/viewmodel/viewmodel.js +198 -203
- package/dist/chart_types/heatmap/layout/viewmodel/viewmodel.js.map +1 -1
- package/dist/chart_types/heatmap/renderer/canvas/canvas_renderers.js +71 -83
- package/dist/chart_types/heatmap/renderer/canvas/canvas_renderers.js.map +1 -1
- package/dist/chart_types/heatmap/renderer/canvas/connected_component.js +46 -66
- package/dist/chart_types/heatmap/renderer/canvas/connected_component.js.map +1 -1
- package/dist/chart_types/heatmap/renderer/canvas/utils.js +15 -20
- package/dist/chart_types/heatmap/renderer/canvas/utils.js.map +1 -1
- package/dist/chart_types/heatmap/renderer/dom/cursor_band.js +28 -59
- package/dist/chart_types/heatmap/renderer/dom/cursor_band.js.map +1 -1
- package/dist/chart_types/heatmap/renderer/dom/highlighter.js +6 -7
- package/dist/chart_types/heatmap/renderer/dom/highlighter.js.map +1 -1
- package/dist/chart_types/heatmap/renderer/dom/highlighter_brush.js +20 -20
- package/dist/chart_types/heatmap/renderer/dom/highlighter_brush.js.map +1 -1
- package/dist/chart_types/heatmap/scales/band_color_scale.js +18 -22
- package/dist/chart_types/heatmap/scales/band_color_scale.js.map +1 -1
- package/dist/chart_types/heatmap/specs/heatmap.d.ts +1 -1
- package/dist/chart_types/heatmap/specs/heatmap.js +13 -27
- package/dist/chart_types/heatmap/specs/heatmap.js.map +1 -1
- package/dist/chart_types/heatmap/specs/scale_defaults.js +1 -1
- package/dist/chart_types/heatmap/specs/scale_defaults.js.map +1 -1
- package/dist/chart_types/heatmap/state/chart_state.js +69 -70
- package/dist/chart_types/heatmap/state/chart_state.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/compute_axes_sizes.js +33 -37
- package/dist/chart_types/heatmap/state/selectors/compute_axes_sizes.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/compute_chart_dimensions.js +7 -8
- package/dist/chart_types/heatmap/state/selectors/compute_chart_dimensions.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/compute_chart_element_sizes.js +13 -15
- package/dist/chart_types/heatmap/state/selectors/compute_chart_element_sizes.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/compute_legend.js +11 -16
- package/dist/chart_types/heatmap/state/selectors/compute_legend.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_brush_area.js +12 -14
- package/dist/chart_types/heatmap/state/selectors/get_brush_area.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_brushed_highlighted_shapes.js +4 -4
- package/dist/chart_types/heatmap/state/selectors/get_brushed_highlighted_shapes.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_color_scale.js +4 -4
- package/dist/chart_types/heatmap/state/selectors/get_color_scale.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_cursor_band.js +19 -24
- package/dist/chart_types/heatmap/state/selectors/get_cursor_band.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_cursor_pointer.js +6 -6
- package/dist/chart_types/heatmap/state/selectors/get_cursor_pointer.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_debug_state.js +46 -80
- package/dist/chart_types/heatmap/state/selectors/get_debug_state.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_heatmap_container_size.js +8 -10
- package/dist/chart_types/heatmap/state/selectors/get_heatmap_container_size.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_heatmap_spec.js +6 -6
- package/dist/chart_types/heatmap/state/selectors/get_heatmap_spec.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_heatmap_table.js +37 -70
- package/dist/chart_types/heatmap/state/selectors/get_heatmap_table.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_highlighted_area.js +7 -7
- package/dist/chart_types/heatmap/state/selectors/get_highlighted_area.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_highlighted_legend_bands.js +5 -12
- package/dist/chart_types/heatmap/state/selectors/get_highlighted_legend_bands.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_highlighted_legend_item.js +6 -15
- package/dist/chart_types/heatmap/state/selectors/get_highlighted_legend_item.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_legend_items_labels.js +9 -13
- package/dist/chart_types/heatmap/state/selectors/get_legend_items_labels.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_per_panel_heatmap_geometries.js +18 -28
- package/dist/chart_types/heatmap/state/selectors/get_per_panel_heatmap_geometries.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_picked_cells.js +11 -12
- package/dist/chart_types/heatmap/state/selectors/get_picked_cells.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/get_tooltip_anchor.js +15 -17
- package/dist/chart_types/heatmap/state/selectors/get_tooltip_anchor.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/is_brush_available.js +5 -12
- package/dist/chart_types/heatmap/state/selectors/is_brush_available.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/is_empty.js +3 -3
- package/dist/chart_types/heatmap/state/selectors/is_empty.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/is_tooltip_visible.js +7 -12
- package/dist/chart_types/heatmap/state/selectors/is_tooltip_visible.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/on_brush_end_caller.js +14 -15
- package/dist/chart_types/heatmap/state/selectors/on_brush_end_caller.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/on_element_click_caller.js +16 -16
- package/dist/chart_types/heatmap/state/selectors/on_element_click_caller.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/on_element_out_caller.js +11 -11
- package/dist/chart_types/heatmap/state/selectors/on_element_out_caller.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/on_element_over_caller.js +16 -16
- package/dist/chart_types/heatmap/state/selectors/on_element_over_caller.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/on_pointer_update_caller.js +23 -36
- package/dist/chart_types/heatmap/state/selectors/on_pointer_update_caller.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/picked_shapes.js +9 -14
- package/dist/chart_types/heatmap/state/selectors/picked_shapes.js.map +1 -1
- package/dist/chart_types/heatmap/state/selectors/tooltip.js +16 -19
- package/dist/chart_types/heatmap/state/selectors/tooltip.js.map +1 -1
- package/dist/chart_types/heatmap/state/utils/axis.js +62 -96
- package/dist/chart_types/heatmap/state/utils/axis.js.map +1 -1
- package/dist/chart_types/metric/renderer/dom/index.js +63 -107
- package/dist/chart_types/metric/renderer/dom/index.js.map +1 -1
- package/dist/chart_types/metric/renderer/dom/metric.js +41 -63
- package/dist/chart_types/metric/renderer/dom/metric.js.map +1 -1
- package/dist/chart_types/metric/renderer/dom/progress.js +11 -23
- package/dist/chart_types/metric/renderer/dom/progress.js.map +1 -1
- package/dist/chart_types/metric/renderer/dom/sparkline.js +18 -35
- package/dist/chart_types/metric/renderer/dom/sparkline.js.map +1 -1
- package/dist/chart_types/metric/renderer/dom/text.js +76 -100
- package/dist/chart_types/metric/renderer/dom/text.js.map +1 -1
- package/dist/chart_types/metric/specs/index.js +3 -3
- package/dist/chart_types/metric/specs/index.js.map +1 -1
- package/dist/chart_types/metric/state/chart_state.js +32 -33
- package/dist/chart_types/metric/state/chart_state.js.map +1 -1
- package/dist/chart_types/metric/state/selectors/chart_size.js +4 -15
- package/dist/chart_types/metric/state/selectors/chart_size.js.map +1 -1
- package/dist/chart_types/metric/state/selectors/data.js +3 -3
- package/dist/chart_types/metric/state/selectors/data.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/config.js +44 -33
- package/dist/chart_types/partition_chart/layout/config.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/types/config_types.d.ts.map +1 -1
- package/dist/chart_types/partition_chart/layout/types/viewmodel_types.js +56 -69
- package/dist/chart_types/partition_chart/layout/types/viewmodel_types.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/utils/circline_geometry.js +84 -111
- package/dist/chart_types/partition_chart/layout/utils/circline_geometry.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/utils/group_by_rollup.js +74 -116
- package/dist/chart_types/partition_chart/layout/utils/group_by_rollup.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/utils/highlighted_geoms.js +11 -59
- package/dist/chart_types/partition_chart/layout/utils/highlighted_geoms.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/utils/legend_labels.js +17 -70
- package/dist/chart_types/partition_chart/layout/utils/legend_labels.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/utils/sunburst.js +12 -15
- package/dist/chart_types/partition_chart/layout/utils/sunburst.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/utils/treemap.js +51 -80
- package/dist/chart_types/partition_chart/layout/utils/treemap.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/utils/waffle.js +38 -63
- package/dist/chart_types/partition_chart/layout/utils/waffle.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/viewmodel/fill_text_layout.js +139 -150
- package/dist/chart_types/partition_chart/layout/viewmodel/fill_text_layout.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.js +31 -69
- package/dist/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/viewmodel/link_text_layout.js +81 -93
- package/dist/chart_types/partition_chart/layout/viewmodel/link_text_layout.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/viewmodel/picked_shapes.js +26 -55
- package/dist/chart_types/partition_chart/layout/viewmodel/picked_shapes.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/viewmodel/scenegraph.js +8 -8
- package/dist/chart_types/partition_chart/layout/viewmodel/scenegraph.js.map +1 -1
- package/dist/chart_types/partition_chart/layout/viewmodel/viewmodel.js +165 -218
- package/dist/chart_types/partition_chart/layout/viewmodel/viewmodel.js.map +1 -1
- package/dist/chart_types/partition_chart/renderer/canvas/canvas_linear_renderers.js +27 -31
- package/dist/chart_types/partition_chart/renderer/canvas/canvas_linear_renderers.js.map +1 -1
- package/dist/chart_types/partition_chart/renderer/canvas/canvas_renderers.js +58 -92
- package/dist/chart_types/partition_chart/renderer/canvas/canvas_renderers.js.map +1 -1
- package/dist/chart_types/partition_chart/renderer/canvas/canvas_wrapped_renderers.js +12 -14
- package/dist/chart_types/partition_chart/renderer/canvas/canvas_wrapped_renderers.js.map +1 -1
- package/dist/chart_types/partition_chart/renderer/canvas/partition.js +69 -109
- package/dist/chart_types/partition_chart/renderer/canvas/partition.js.map +1 -1
- package/dist/chart_types/partition_chart/renderer/dom/highlighter.js +86 -121
- package/dist/chart_types/partition_chart/renderer/dom/highlighter.js.map +1 -1
- package/dist/chart_types/partition_chart/renderer/dom/highlighter_hover.js +16 -16
- package/dist/chart_types/partition_chart/renderer/dom/highlighter_hover.js.map +1 -1
- package/dist/chart_types/partition_chart/renderer/dom/highlighter_legend.js +17 -17
- package/dist/chart_types/partition_chart/renderer/dom/highlighter_legend.js.map +1 -1
- package/dist/chart_types/partition_chart/renderer/dom/layered_partition_chart.js +5 -5
- package/dist/chart_types/partition_chart/renderer/dom/layered_partition_chart.js.map +1 -1
- package/dist/chart_types/partition_chart/specs/index.d.ts +2 -2
- package/dist/chart_types/partition_chart/specs/index.js +17 -28
- package/dist/chart_types/partition_chart/specs/index.js.map +1 -1
- package/dist/chart_types/partition_chart/state/chart_state.js +58 -59
- package/dist/chart_types/partition_chart/state/chart_state.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/compute_legend.js +54 -99
- package/dist/chart_types/partition_chart/state/selectors/compute_legend.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/drilldown_active.js +5 -6
- package/dist/chart_types/partition_chart/state/selectors/drilldown_active.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/geometries.js +76 -89
- package/dist/chart_types/partition_chart/state/selectors/geometries.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/get_chart_type_description.js +4 -4
- package/dist/chart_types/partition_chart/state/selectors/get_chart_type_description.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/get_cursor_pointer.js +6 -7
- package/dist/chart_types/partition_chart/state/selectors/get_cursor_pointer.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/get_debug_state.js +21 -24
- package/dist/chart_types/partition_chart/state/selectors/get_debug_state.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/get_highlighted_shapes.js +7 -11
- package/dist/chart_types/partition_chart/state/selectors/get_highlighted_shapes.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/get_legend_items_extra.js +11 -51
- package/dist/chart_types/partition_chart/state/selectors/get_legend_items_extra.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/get_legend_items_labels.js +8 -17
- package/dist/chart_types/partition_chart/state/selectors/get_legend_items_labels.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/get_partition_specs.js +6 -6
- package/dist/chart_types/partition_chart/state/selectors/get_partition_specs.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/get_screen_reader_data.js +21 -42
- package/dist/chart_types/partition_chart/state/selectors/get_screen_reader_data.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/is_tooltip_visible.js +5 -6
- package/dist/chart_types/partition_chart/state/selectors/is_tooltip_visible.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/on_element_click_caller.js +10 -10
- package/dist/chart_types/partition_chart/state/selectors/on_element_click_caller.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/on_element_out_caller.js +9 -9
- package/dist/chart_types/partition_chart/state/selectors/on_element_out_caller.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/on_element_over_caller.js +9 -9
- package/dist/chart_types/partition_chart/state/selectors/on_element_over_caller.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/partition_spec.js +3 -3
- package/dist/chart_types/partition_chart/state/selectors/partition_spec.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/picked_shapes.js +4 -4
- package/dist/chart_types/partition_chart/state/selectors/picked_shapes.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/tooltip.js +7 -7
- package/dist/chart_types/partition_chart/state/selectors/tooltip.js.map +1 -1
- package/dist/chart_types/partition_chart/state/selectors/tree.js +28 -61
- package/dist/chart_types/partition_chart/state/selectors/tree.js.map +1 -1
- package/dist/chart_types/timeslip/internal_chart_state.js +27 -28
- package/dist/chart_types/timeslip/internal_chart_state.js.map +1 -1
- package/dist/chart_types/timeslip/projections/axis_model.js +26 -52
- package/dist/chart_types/timeslip/projections/axis_model.js.map +1 -1
- package/dist/chart_types/timeslip/projections/domain_tween.js +11 -11
- package/dist/chart_types/timeslip/projections/domain_tween.js.map +1 -1
- package/dist/chart_types/timeslip/projections/scale.js +8 -8
- package/dist/chart_types/timeslip/projections/scale.js.map +1 -1
- package/dist/chart_types/timeslip/projections/zoom_pan.js +61 -62
- package/dist/chart_types/timeslip/projections/zoom_pan.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/config.js +43 -30
- package/dist/chart_types/timeslip/timeslip/config.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/data.js +4 -5
- package/dist/chart_types/timeslip/timeslip/data.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/data_fetch.js +4 -4
- package/dist/chart_types/timeslip/timeslip/data_fetch.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/render/annotations/chart_title.js +2 -2
- package/dist/chart_types/timeslip/timeslip/render/annotations/chart_title.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/render/annotations/time_extent.js +2 -3
- package/dist/chart_types/timeslip/timeslip/render/annotations/time_extent.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/render/annotations/time_unit.js +6 -6
- package/dist/chart_types/timeslip/timeslip/render/annotations/time_unit.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/render/cartesian.js +11 -12
- package/dist/chart_types/timeslip/timeslip/render/cartesian.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/render/column.js +75 -111
- package/dist/chart_types/timeslip/timeslip/render/column.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/render/glyphs/bar.js +7 -7
- package/dist/chart_types/timeslip/timeslip/render/glyphs/bar.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/render/glyphs/boxplot.js +15 -15
- package/dist/chart_types/timeslip/timeslip/render/glyphs/boxplot.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/render/raster.js +91 -178
- package/dist/chart_types/timeslip/timeslip/render/raster.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip/timeslip_render.js +102 -128
- package/dist/chart_types/timeslip/timeslip/timeslip_render.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip_api.js +8 -19
- package/dist/chart_types/timeslip/timeslip_api.js.map +1 -1
- package/dist/chart_types/timeslip/timeslip_chart.js +63 -94
- package/dist/chart_types/timeslip/timeslip_chart.js.map +1 -1
- package/dist/chart_types/timeslip/utils/animation.js +7 -7
- package/dist/chart_types/timeslip/utils/animation.js.map +1 -1
- package/dist/chart_types/timeslip/utils/dom.js +11 -11
- package/dist/chart_types/timeslip/utils/dom.js.map +1 -1
- package/dist/chart_types/timeslip/utils/math.js +3 -3
- package/dist/chart_types/timeslip/utils/math.js.map +1 -1
- package/dist/chart_types/timeslip/utils/multitouch.js +14 -51
- package/dist/chart_types/timeslip/utils/multitouch.js.map +1 -1
- package/dist/chart_types/wordcloud/layout/types/viewmodel_types.js +12 -18
- package/dist/chart_types/wordcloud/layout/types/viewmodel_types.js.map +1 -1
- package/dist/chart_types/wordcloud/layout/viewmodel/viewmodel.js +27 -29
- package/dist/chart_types/wordcloud/layout/viewmodel/viewmodel.js.map +1 -1
- package/dist/chart_types/wordcloud/renderer/svg/connected_component.js +75 -139
- package/dist/chart_types/wordcloud/renderer/svg/connected_component.js.map +1 -1
- package/dist/chart_types/wordcloud/specs/index.js +7 -16
- package/dist/chart_types/wordcloud/specs/index.js.map +1 -1
- package/dist/chart_types/wordcloud/state/chart_state.js +51 -52
- package/dist/chart_types/wordcloud/state/chart_state.js.map +1 -1
- package/dist/chart_types/wordcloud/state/selectors/geometries.js +11 -11
- package/dist/chart_types/wordcloud/state/selectors/geometries.js.map +1 -1
- package/dist/chart_types/wordcloud/state/selectors/on_element_click_caller.js +10 -10
- package/dist/chart_types/wordcloud/state/selectors/on_element_click_caller.js.map +1 -1
- package/dist/chart_types/wordcloud/state/selectors/on_element_out_caller.js +9 -9
- package/dist/chart_types/wordcloud/state/selectors/on_element_out_caller.js.map +1 -1
- package/dist/chart_types/wordcloud/state/selectors/on_element_over_caller.js +9 -9
- package/dist/chart_types/wordcloud/state/selectors/on_element_over_caller.js.map +1 -1
- package/dist/chart_types/wordcloud/state/selectors/picked_shapes.js +10 -10
- package/dist/chart_types/wordcloud/state/selectors/picked_shapes.js.map +1 -1
- package/dist/chart_types/wordcloud/state/selectors/scenegraph.js +1 -1
- package/dist/chart_types/wordcloud/state/selectors/scenegraph.js.map +1 -1
- package/dist/chart_types/wordcloud/state/selectors/wordcloud_spec.js +3 -3
- package/dist/chart_types/wordcloud/state/selectors/wordcloud_spec.js.map +1 -1
- package/dist/chart_types/xy_chart/annotations/line/dimensions.js +92 -119
- package/dist/chart_types/xy_chart/annotations/line/dimensions.js.map +1 -1
- package/dist/chart_types/xy_chart/annotations/rect/dimensions.js +81 -115
- package/dist/chart_types/xy_chart/annotations/rect/dimensions.js.map +1 -1
- package/dist/chart_types/xy_chart/annotations/rect/tooltip.js +29 -51
- package/dist/chart_types/xy_chart/annotations/rect/tooltip.js.map +1 -1
- package/dist/chart_types/xy_chart/annotations/tooltip.js +34 -44
- package/dist/chart_types/xy_chart/annotations/tooltip.js.map +1 -1
- package/dist/chart_types/xy_chart/annotations/utils.js +22 -26
- package/dist/chart_types/xy_chart/annotations/utils.js.map +1 -1
- package/dist/chart_types/xy_chart/axes/axes_sizes.js +27 -55
- package/dist/chart_types/xy_chart/axes/axes_sizes.js.map +1 -1
- package/dist/chart_types/xy_chart/axes/timeslip/chrono/cached_chrono.js +15 -15
- package/dist/chart_types/xy_chart/axes/timeslip/chrono/cached_chrono.js.map +1 -1
- package/dist/chart_types/xy_chart/axes/timeslip/chrono/chrono.js +6 -12
- package/dist/chart_types/xy_chart/axes/timeslip/chrono/chrono.js.map +1 -1
- package/dist/chart_types/xy_chart/axes/timeslip/chrono/chrono_luxon/chrono_luxon.js +7 -25
- package/dist/chart_types/xy_chart/axes/timeslip/chrono/chrono_luxon/chrono_luxon.js.map +1 -1
- package/dist/chart_types/xy_chart/axes/timeslip/continuous_time_rasters.js +363 -470
- package/dist/chart_types/xy_chart/axes/timeslip/continuous_time_rasters.js.map +1 -1
- package/dist/chart_types/xy_chart/axes/timeslip/multilayer_ticks.js +37 -73
- package/dist/chart_types/xy_chart/axes/timeslip/multilayer_ticks.js.map +1 -1
- package/dist/chart_types/xy_chart/axes/timeslip/numerical_rasters.js +28 -77
- package/dist/chart_types/xy_chart/axes/timeslip/numerical_rasters.js.map +1 -1
- package/dist/chart_types/xy_chart/crosshair/crosshair_utils.js +41 -43
- package/dist/chart_types/xy_chart/crosshair/crosshair_utils.js.map +1 -1
- package/dist/chart_types/xy_chart/domains/x_domain.js +34 -58
- package/dist/chart_types/xy_chart/domains/x_domain.js.map +1 -1
- package/dist/chart_types/xy_chart/domains/y_domain.js +54 -127
- package/dist/chart_types/xy_chart/domains/y_domain.js.map +1 -1
- package/dist/chart_types/xy_chart/legend/legend.js +61 -103
- package/dist/chart_types/xy_chart/legend/legend.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/animations/animation.js +30 -33
- package/dist/chart_types/xy_chart/renderer/canvas/animations/animation.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/animations/index.js +30 -58
- package/dist/chart_types/xy_chart/renderer/canvas/animations/index.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/annotations/index.js +13 -14
- package/dist/chart_types/xy_chart/renderer/canvas/annotations/index.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/annotations/lines.js +9 -14
- package/dist/chart_types/xy_chart/renderer/canvas/annotations/lines.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/annotations/rect.js +12 -40
- package/dist/chart_types/xy_chart/renderer/canvas/annotations/rect.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/areas.js +34 -39
- package/dist/chart_types/xy_chart/renderer/canvas/areas.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/axes/index.js +8 -8
- package/dist/chart_types/xy_chart/renderer/canvas/axes/index.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/axes/line.js +2 -3
- package/dist/chart_types/xy_chart/renderer/canvas/axes/line.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/axes/tick.js +27 -31
- package/dist/chart_types/xy_chart/renderer/canvas/axes/tick.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/axes/tick_label.js +15 -27
- package/dist/chart_types/xy_chart/renderer/canvas/axes/tick_label.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/bars.js +12 -17
- package/dist/chart_types/xy_chart/renderer/canvas/bars.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/bubbles.js +7 -8
- package/dist/chart_types/xy_chart/renderer/canvas/bubbles.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/grids.js +7 -12
- package/dist/chart_types/xy_chart/renderer/canvas/grids.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/lines.js +24 -28
- package/dist/chart_types/xy_chart/renderer/canvas/lines.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/panel_clipping.js +5 -5
- package/dist/chart_types/xy_chart/renderer/canvas/panel_clipping.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/panels/panels.js +39 -57
- package/dist/chart_types/xy_chart/renderer/canvas/panels/panels.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/panels/title.js +31 -43
- package/dist/chart_types/xy_chart/renderer/canvas/panels/title.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/points.js +25 -41
- package/dist/chart_types/xy_chart/renderer/canvas/points.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/primitives/line.js +9 -31
- package/dist/chart_types/xy_chart/renderer/canvas/primitives/line.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/primitives/path.js +9 -10
- package/dist/chart_types/xy_chart/renderer/canvas/primitives/path.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/primitives/rect.js +7 -10
- package/dist/chart_types/xy_chart/renderer/canvas/primitives/rect.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/primitives/shapes.js +9 -28
- package/dist/chart_types/xy_chart/renderer/canvas/primitives/shapes.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/primitives/text.js +37 -42
- package/dist/chart_types/xy_chart/renderer/canvas/primitives/text.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/renderers.js +63 -80
- package/dist/chart_types/xy_chart/renderer/canvas/renderers.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/styles/area.js +7 -7
- package/dist/chart_types/xy_chart/renderer/canvas/styles/area.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/styles/bar.js +10 -10
- package/dist/chart_types/xy_chart/renderer/canvas/styles/bar.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/styles/line.js +3 -3
- package/dist/chart_types/xy_chart/renderer/canvas/styles/line.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/utils/debug.js +12 -29
- package/dist/chart_types/xy_chart/renderer/canvas/utils/debug.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/utils/has_mostly_rtl.js +5 -13
- package/dist/chart_types/xy_chart/renderer/canvas/utils/has_mostly_rtl.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/utils/panel_transform.js +6 -6
- package/dist/chart_types/xy_chart/renderer/canvas/utils/panel_transform.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/values/bar.js +67 -82
- package/dist/chart_types/xy_chart/renderer/canvas/values/bar.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/canvas/xy_chart.js +66 -86
- package/dist/chart_types/xy_chart/renderer/canvas/xy_chart.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/common/utils.js +18 -24
- package/dist/chart_types/xy_chart/renderer/common/utils.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/dom/annotations/annotation_tooltip.js +22 -41
- package/dist/chart_types/xy_chart/renderer/dom/annotations/annotation_tooltip.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/dom/annotations/annotations.js +44 -70
- package/dist/chart_types/xy_chart/renderer/dom/annotations/annotations.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/dom/annotations/line_marker.js +41 -49
- package/dist/chart_types/xy_chart/renderer/dom/annotations/line_marker.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/dom/annotations/tooltip_content.js +12 -13
- package/dist/chart_types/xy_chart/renderer/dom/annotations/tooltip_content.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/dom/cursor_band.js +32 -63
- package/dist/chart_types/xy_chart/renderer/dom/cursor_band.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/dom/cursor_crossline.js +30 -61
- package/dist/chart_types/xy_chart/renderer/dom/cursor_crossline.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/dom/cursor_line.js +34 -65
- package/dist/chart_types/xy_chart/renderer/dom/cursor_line.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/dom/highlighter.js +48 -85
- package/dist/chart_types/xy_chart/renderer/dom/highlighter.js.map +1 -1
- package/dist/chart_types/xy_chart/renderer/shapes_paths.js +29 -41
- package/dist/chart_types/xy_chart/renderer/shapes_paths.js.map +1 -1
- package/dist/chart_types/xy_chart/rendering/area.js +26 -29
- package/dist/chart_types/xy_chart/rendering/area.js.map +1 -1
- package/dist/chart_types/xy_chart/rendering/bars.js +68 -76
- package/dist/chart_types/xy_chart/rendering/bars.js.map +1 -1
- package/dist/chart_types/xy_chart/rendering/bubble.js +7 -7
- package/dist/chart_types/xy_chart/rendering/bubble.js.map +1 -1
- package/dist/chart_types/xy_chart/rendering/line.js +18 -21
- package/dist/chart_types/xy_chart/rendering/line.js.map +1 -1
- package/dist/chart_types/xy_chart/rendering/point_style.js +5 -5
- package/dist/chart_types/xy_chart/rendering/point_style.js.map +1 -1
- package/dist/chart_types/xy_chart/rendering/points.js +69 -97
- package/dist/chart_types/xy_chart/rendering/points.js.map +1 -1
- package/dist/chart_types/xy_chart/rendering/utils.js +41 -75
- package/dist/chart_types/xy_chart/rendering/utils.js.map +1 -1
- package/dist/chart_types/xy_chart/scales/get_api_scales.js +1 -1
- package/dist/chart_types/xy_chart/scales/get_api_scales.js.map +1 -1
- package/dist/chart_types/xy_chart/scales/scale_defaults.js +2 -2
- package/dist/chart_types/xy_chart/scales/scale_defaults.js.map +1 -1
- package/dist/chart_types/xy_chart/specs/area_series.d.ts +2 -2
- package/dist/chart_types/xy_chart/specs/area_series.d.ts.map +1 -1
- package/dist/chart_types/xy_chart/specs/area_series.js +10 -21
- package/dist/chart_types/xy_chart/specs/area_series.js.map +1 -1
- package/dist/chart_types/xy_chart/specs/axis.d.ts +1 -1
- package/dist/chart_types/xy_chart/specs/axis.d.ts.map +1 -1
- package/dist/chart_types/xy_chart/specs/axis.js +5 -5
- package/dist/chart_types/xy_chart/specs/axis.js.map +1 -1
- package/dist/chart_types/xy_chart/specs/bar_series.d.ts +2 -2
- package/dist/chart_types/xy_chart/specs/bar_series.d.ts.map +1 -1
- package/dist/chart_types/xy_chart/specs/bar_series.js +10 -21
- package/dist/chart_types/xy_chart/specs/bar_series.js.map +1 -1
- package/dist/chart_types/xy_chart/specs/bubble_series.d.ts +2 -2
- package/dist/chart_types/xy_chart/specs/bubble_series.d.ts.map +1 -1
- package/dist/chart_types/xy_chart/specs/bubble_series.js +10 -21
- package/dist/chart_types/xy_chart/specs/bubble_series.js.map +1 -1
- package/dist/chart_types/xy_chart/specs/histogram_bar_series.d.ts +2 -2
- package/dist/chart_types/xy_chart/specs/histogram_bar_series.d.ts.map +1 -1
- package/dist/chart_types/xy_chart/specs/histogram_bar_series.js +10 -21
- package/dist/chart_types/xy_chart/specs/histogram_bar_series.js.map +1 -1
- package/dist/chart_types/xy_chart/specs/line_annotation.d.ts +2 -2
- package/dist/chart_types/xy_chart/specs/line_annotation.js +10 -21
- package/dist/chart_types/xy_chart/specs/line_annotation.js.map +1 -1
- package/dist/chart_types/xy_chart/specs/line_series.d.ts +2 -2
- package/dist/chart_types/xy_chart/specs/line_series.d.ts.map +1 -1
- package/dist/chart_types/xy_chart/specs/line_series.js +10 -21
- package/dist/chart_types/xy_chart/specs/line_series.js.map +1 -1
- package/dist/chart_types/xy_chart/specs/rect_annotation.d.ts +1 -1
- package/dist/chart_types/xy_chart/specs/rect_annotation.d.ts.map +1 -1
- package/dist/chart_types/xy_chart/specs/rect_annotation.js +5 -5
- package/dist/chart_types/xy_chart/specs/rect_annotation.js.map +1 -1
- package/dist/chart_types/xy_chart/state/chart_state.js +76 -77
- package/dist/chart_types/xy_chart/state/chart_state.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/axis_tick_formatter.js +20 -50
- package/dist/chart_types/xy_chart/state/selectors/axis_tick_formatter.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/compute_annotations.js +10 -17
- package/dist/chart_types/xy_chart/state/selectors/compute_annotations.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/compute_axes_geometries.js +8 -8
- package/dist/chart_types/xy_chart/state/selectors/compute_axes_geometries.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/compute_axis_ticks_dimensions.js +64 -114
- package/dist/chart_types/xy_chart/state/selectors/compute_axis_ticks_dimensions.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/compute_chart_dimensions.js +8 -8
- package/dist/chart_types/xy_chart/state/selectors/compute_chart_dimensions.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/compute_chart_transform.js +5 -7
- package/dist/chart_types/xy_chart/state/selectors/compute_chart_transform.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/compute_legend.js +11 -12
- package/dist/chart_types/xy_chart/state/selectors/compute_legend.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/compute_per_panel_axes_geoms.js +21 -42
- package/dist/chart_types/xy_chart/state/selectors/compute_per_panel_axes_geoms.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/compute_series_domains.js +7 -7
- package/dist/chart_types/xy_chart/state/selectors/compute_series_domains.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/compute_series_geometries.js +13 -15
- package/dist/chart_types/xy_chart/state/selectors/compute_series_geometries.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/count_bars_in_cluster.js +13 -17
- package/dist/chart_types/xy_chart/state/selectors/count_bars_in_cluster.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.js +24 -35
- package/dist/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_api_scale_configs.js +35 -39
- package/dist/chart_types/xy_chart/state/selectors/get_api_scale_configs.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_axis_styles.js +9 -25
- package/dist/chart_types/xy_chart/state/selectors/get_axis_styles.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_bar_paddings.js +4 -6
- package/dist/chart_types/xy_chart/state/selectors/get_bar_paddings.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_brush_area.js +36 -45
- package/dist/chart_types/xy_chart/state/selectors/get_brush_area.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_chart_type_description.js +6 -31
- package/dist/chart_types/xy_chart/state/selectors/get_chart_type_description.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_computed_scales.js +3 -6
- package/dist/chart_types/xy_chart/state/selectors/get_computed_scales.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_cursor_band.js +28 -41
- package/dist/chart_types/xy_chart/state/selectors/get_cursor_band.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_cursor_line.js +6 -8
- package/dist/chart_types/xy_chart/state/selectors/get_cursor_line.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_cursor_pointer.js +15 -16
- package/dist/chart_types/xy_chart/state/selectors/get_cursor_pointer.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_debug_state.js +81 -160
- package/dist/chart_types/xy_chart/state/selectors/get_debug_state.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.js +14 -16
- package/dist/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_geometries_index.js +3 -6
- package/dist/chart_types/xy_chart/state/selectors/get_geometries_index.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_geometries_index_keys.js +4 -4
- package/dist/chart_types/xy_chart/state/selectors/get_geometries_index_keys.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_grid_lines.js +6 -6
- package/dist/chart_types/xy_chart/state/selectors/get_grid_lines.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_highlighted_annotation_ids_selector.js +11 -17
- package/dist/chart_types/xy_chart/state/selectors/get_highlighted_annotation_ids_selector.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_highlighted_series.js +6 -15
- package/dist/chart_types/xy_chart/state/selectors/get_highlighted_series.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_legend_item_extra_values.js +4 -7
- package/dist/chart_types/xy_chart/state/selectors/get_legend_item_extra_values.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_legend_items_labels.js +11 -15
- package/dist/chart_types/xy_chart/state/selectors/get_legend_items_labels.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_multiple_rectangle_annotations.js +16 -20
- package/dist/chart_types/xy_chart/state/selectors/get_multiple_rectangle_annotations.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_oriented_projected_pointer_position.js +10 -11
- package/dist/chart_types/xy_chart/state/selectors/get_oriented_projected_pointer_position.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_projected_pointer_position.js +19 -24
- package/dist/chart_types/xy_chart/state/selectors/get_projected_pointer_position.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_projected_scaled_values.js +8 -38
- package/dist/chart_types/xy_chart/state/selectors/get_projected_scaled_values.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_series_color_map.js +8 -9
- package/dist/chart_types/xy_chart/state/selectors/get_series_color_map.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_si_dataseries_map.js +6 -7
- package/dist/chart_types/xy_chart/state/selectors/get_si_dataseries_map.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_specs.js +9 -13
- package/dist/chart_types/xy_chart/state/selectors/get_specs.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_tooltip_anchor_position.js +13 -14
- package/dist/chart_types/xy_chart/state/selectors/get_tooltip_anchor_position.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.js +58 -95
- package/dist/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/has_single_series.js +3 -5
- package/dist/chart_types/xy_chart/state/selectors/has_single_series.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/is_annotation_tooltip_visible.js +3 -3
- package/dist/chart_types/xy_chart/state/selectors/is_annotation_tooltip_visible.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/is_brush_available.js +5 -5
- package/dist/chart_types/xy_chart/state/selectors/is_brush_available.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/is_chart_empty.js +4 -6
- package/dist/chart_types/xy_chart/state/selectors/is_chart_empty.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/is_histogram_mode_enabled.js +4 -4
- package/dist/chart_types/xy_chart/state/selectors/is_histogram_mode_enabled.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/is_tooltip_snap_enabled.js +4 -7
- package/dist/chart_types/xy_chart/state/selectors/is_tooltip_snap_enabled.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/is_tooltip_visible.js +13 -16
- package/dist/chart_types/xy_chart/state/selectors/is_tooltip_visible.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/merge_y_custom_domains.js +8 -8
- package/dist/chart_types/xy_chart/state/selectors/merge_y_custom_domains.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/on_brush_end_caller.js +59 -78
- package/dist/chart_types/xy_chart/state/selectors/on_brush_end_caller.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/on_click_caller.js +25 -29
- package/dist/chart_types/xy_chart/state/selectors/on_click_caller.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/on_element_out_caller.js +12 -13
- package/dist/chart_types/xy_chart/state/selectors/on_element_out_caller.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/on_element_over_caller.js +17 -22
- package/dist/chart_types/xy_chart/state/selectors/on_element_over_caller.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/on_pointer_move_caller.js +34 -77
- package/dist/chart_types/xy_chart/state/selectors/on_pointer_move_caller.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/on_projection_area_caller.js +11 -24
- package/dist/chart_types/xy_chart/state/selectors/on_projection_area_caller.js.map +1 -1
- package/dist/chart_types/xy_chart/state/selectors/visible_ticks.js +123 -168
- package/dist/chart_types/xy_chart/state/selectors/visible_ticks.js.map +1 -1
- package/dist/chart_types/xy_chart/state/utils/common.js +11 -35
- package/dist/chart_types/xy_chart/state/utils/common.js.map +1 -1
- package/dist/chart_types/xy_chart/state/utils/get_last_value.js +10 -10
- package/dist/chart_types/xy_chart/state/utils/get_last_value.js.map +1 -1
- package/dist/chart_types/xy_chart/state/utils/spec.js +5 -6
- package/dist/chart_types/xy_chart/state/utils/spec.js.map +1 -1
- package/dist/chart_types/xy_chart/state/utils/utils.js +138 -216
- package/dist/chart_types/xy_chart/state/utils/utils.js.map +1 -1
- package/dist/chart_types/xy_chart/tooltip/tooltip.js +41 -43
- package/dist/chart_types/xy_chart/tooltip/tooltip.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/axis_type_utils.js +1 -1
- package/dist/chart_types/xy_chart/utils/axis_type_utils.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/axis_utils.js +63 -103
- package/dist/chart_types/xy_chart/utils/axis_utils.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/dimensions.js +5 -5
- package/dist/chart_types/xy_chart/utils/dimensions.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/diverging_offsets.js +38 -39
- package/dist/chart_types/xy_chart/utils/diverging_offsets.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/fill_series.js +22 -52
- package/dist/chart_types/xy_chart/utils/fill_series.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/fit_function.js +111 -73
- package/dist/chart_types/xy_chart/utils/fit_function.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/fit_function_utils.js +13 -32
- package/dist/chart_types/xy_chart/utils/fit_function_utils.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/get_linear_ticks.js +21 -25
- package/dist/chart_types/xy_chart/utils/get_linear_ticks.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/grid_lines.js +31 -71
- package/dist/chart_types/xy_chart/utils/grid_lines.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/group_data_series.js +6 -7
- package/dist/chart_types/xy_chart/utils/group_data_series.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/indexed_geometry_linear_map.js +19 -49
- package/dist/chart_types/xy_chart/utils/indexed_geometry_linear_map.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/indexed_geometry_map.js +37 -98
- package/dist/chart_types/xy_chart/utils/indexed_geometry_map.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/indexed_geometry_spatial_map.js +40 -80
- package/dist/chart_types/xy_chart/utils/indexed_geometry_spatial_map.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/scales.js +45 -62
- package/dist/chart_types/xy_chart/utils/scales.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/series.js +157 -253
- package/dist/chart_types/xy_chart/utils/series.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/specs.d.ts +0 -23
- package/dist/chart_types/xy_chart/utils/specs.d.ts.map +1 -1
- package/dist/chart_types/xy_chart/utils/specs.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/stacked_series_utils.js +49 -93
- package/dist/chart_types/xy_chart/utils/stacked_series_utils.js.map +1 -1
- package/dist/chart_types/xy_chart/utils/texture.js +28 -45
- package/dist/chart_types/xy_chart/utils/texture.js.map +1 -1
- package/dist/common/apca_color_contrast.js +22 -40
- package/dist/common/apca_color_contrast.js.map +1 -1
- package/dist/common/color_calcs.js +17 -48
- package/dist/common/color_calcs.js.map +1 -1
- package/dist/common/color_library_wrappers.js +20 -46
- package/dist/common/color_library_wrappers.js.map +1 -1
- package/dist/common/config_objects.js +14 -61
- package/dist/common/config_objects.js.map +1 -1
- package/dist/common/data_structures.js +11 -13
- package/dist/common/data_structures.js.map +1 -1
- package/dist/common/event_handler_selectors.js +50 -56
- package/dist/common/event_handler_selectors.js.map +1 -1
- package/dist/common/fill_text_color.js +7 -8
- package/dist/common/fill_text_color.js.map +1 -1
- package/dist/common/geometry.js +4 -5
- package/dist/common/geometry.js.map +1 -1
- package/dist/common/hooks/use_render_skip.js +5 -22
- package/dist/common/hooks/use_render_skip.js.map +1 -1
- package/dist/common/iterables.js +14 -131
- package/dist/common/iterables.js.map +1 -1
- package/dist/common/kingly.js +168 -219
- package/dist/common/kingly.js.map +1 -1
- package/dist/common/math.js +5 -5
- package/dist/common/math.js.map +1 -1
- package/dist/common/panel_utils.js +30 -75
- package/dist/common/panel_utils.js.map +1 -1
- package/dist/common/predicate.js +14 -16
- package/dist/common/predicate.js.map +1 -1
- package/dist/common/text_utils.js +17 -43
- package/dist/common/text_utils.js.map +1 -1
- package/dist/common/wcag2_color_contrast.js +6 -23
- package/dist/common/wcag2_color_contrast.js.map +1 -1
- package/dist/components/accessibility/description.js +1 -1
- package/dist/components/accessibility/description.js.map +1 -1
- package/dist/components/accessibility/goal_semantic_description.js +8 -10
- package/dist/components/accessibility/goal_semantic_description.js.map +1 -1
- package/dist/components/accessibility/label.js +5 -6
- package/dist/components/accessibility/label.js.map +1 -1
- package/dist/components/accessibility/partitions_data_table.js +28 -46
- package/dist/components/accessibility/partitions_data_table.js.map +1 -1
- package/dist/components/accessibility/screen_reader_summary.js +15 -27
- package/dist/components/accessibility/screen_reader_summary.js.map +1 -1
- package/dist/components/accessibility/types.js +3 -4
- package/dist/components/accessibility/types.js.map +1 -1
- package/dist/components/brush/brush.js +43 -61
- package/dist/components/brush/brush.js.map +1 -1
- package/dist/components/chart.js +66 -111
- package/dist/components/chart.js.map +1 -1
- package/dist/components/chart_background.js +13 -32
- package/dist/components/chart_background.js.map +1 -1
- package/dist/components/chart_container.js +86 -111
- package/dist/components/chart_container.js.map +1 -1
- package/dist/components/chart_resizer.js +37 -57
- package/dist/components/chart_resizer.js.map +1 -1
- package/dist/components/chart_status.js +24 -42
- package/dist/components/chart_status.js.map +1 -1
- package/dist/components/error_boundary/error_boundary.js +14 -32
- package/dist/components/error_boundary/error_boundary.js.map +1 -1
- package/dist/components/error_boundary/errors.js +5 -23
- package/dist/components/error_boundary/errors.js.map +1 -1
- package/dist/components/icons/assets/alert.js +2 -13
- package/dist/components/icons/assets/alert.js.map +1 -1
- package/dist/components/icons/assets/dot.js +9 -40
- package/dist/components/icons/assets/dot.js.map +1 -1
- package/dist/components/icons/assets/empty.js +2 -13
- package/dist/components/icons/assets/empty.js.map +1 -1
- package/dist/components/icons/assets/eye.js +2 -13
- package/dist/components/icons/assets/eye.js.map +1 -1
- package/dist/components/icons/assets/eye_closed.js +2 -13
- package/dist/components/icons/assets/eye_closed.js.map +1 -1
- package/dist/components/icons/assets/list.js +2 -13
- package/dist/components/icons/assets/list.js.map +1 -1
- package/dist/components/icons/assets/question_in_circle.js +2 -13
- package/dist/components/icons/assets/question_in_circle.js.map +1 -1
- package/dist/components/icons/icon.js +18 -41
- package/dist/components/icons/icon.js.map +1 -1
- package/dist/components/legend/color.js +7 -8
- package/dist/components/legend/color.js.map +1 -1
- package/dist/components/legend/custom_legend.js +6 -31
- package/dist/components/legend/custom_legend.js.map +1 -1
- package/dist/components/legend/extra.js +2 -2
- package/dist/components/legend/extra.js.map +1 -1
- package/dist/components/legend/label.js +12 -17
- package/dist/components/legend/label.js.map +1 -1
- package/dist/components/legend/legend.js +60 -83
- package/dist/components/legend/legend.js.map +1 -1
- package/dist/components/legend/legend_icon.js +14 -27
- package/dist/components/legend/legend_icon.js.map +1 -1
- package/dist/components/legend/legend_item.js +57 -88
- package/dist/components/legend/legend_item.js.map +1 -1
- package/dist/components/legend/position_style.js +11 -13
- package/dist/components/legend/position_style.js.map +1 -1
- package/dist/components/legend/style_utils.js +17 -26
- package/dist/components/legend/style_utils.js.map +1 -1
- package/dist/components/legend/utils.js +5 -24
- package/dist/components/legend/utils.js.map +1 -1
- package/dist/components/no_results.js +3 -6
- package/dist/components/no_results.js.map +1 -1
- package/dist/components/portal/tooltip_portal.js +39 -43
- package/dist/components/portal/tooltip_portal.js.map +1 -1
- package/dist/components/portal/utils.js +10 -11
- package/dist/components/portal/utils.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_actions.js +29 -103
- package/dist/components/tooltip/components/tooltip_actions.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_container.js +6 -6
- package/dist/components/tooltip/components/tooltip_container.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_divider.js +3 -4
- package/dist/components/tooltip/components/tooltip_divider.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_footer.js +3 -4
- package/dist/components/tooltip/components/tooltip_footer.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_header.js +5 -5
- package/dist/components/tooltip/components/tooltip_header.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_metric_row.js +2 -3
- package/dist/components/tooltip/components/tooltip_metric_row.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_prompt.js +3 -4
- package/dist/components/tooltip/components/tooltip_prompt.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_provider.js +8 -22
- package/dist/components/tooltip/components/tooltip_provider.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_table.js +32 -59
- package/dist/components/tooltip/components/tooltip_table.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_table_body.js +22 -43
- package/dist/components/tooltip/components/tooltip_table_body.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_table_cell.js +6 -7
- package/dist/components/tooltip/components/tooltip_table_cell.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_table_color_cell.js +18 -41
- package/dist/components/tooltip/components/tooltip_table_color_cell.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_table_footer.js +10 -23
- package/dist/components/tooltip/components/tooltip_table_footer.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_table_header.js +10 -23
- package/dist/components/tooltip/components/tooltip_table_header.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_table_row.js +8 -9
- package/dist/components/tooltip/components/tooltip_table_row.js.map +1 -1
- package/dist/components/tooltip/components/tooltip_wrapper.js +15 -32
- package/dist/components/tooltip/components/tooltip_wrapper.js.map +1 -1
- package/dist/components/tooltip/placement.js +2 -3
- package/dist/components/tooltip/placement.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +93 -138
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/geoms/path.js +8 -8
- package/dist/geoms/path.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/renderers/canvas/index.js +14 -36
- package/dist/renderers/canvas/index.js.map +1 -1
- package/dist/scales/scale_band.js +28 -55
- package/dist/scales/scale_band.js.map +1 -1
- package/dist/scales/scale_continuous.js +103 -128
- package/dist/scales/scale_continuous.js.map +1 -1
- package/dist/scales/types.js +1 -1
- package/dist/scales/types.js.map +1 -1
- package/dist/scales/utils.js +3 -3
- package/dist/scales/utils.js.map +1 -1
- package/dist/solvers/monotonic_hill_climb.js +11 -13
- package/dist/solvers/monotonic_hill_climb.js.map +1 -1
- package/dist/solvers/screenspace_marker_scale_compressor.js +10 -10
- package/dist/solvers/screenspace_marker_scale_compressor.js.map +1 -1
- package/dist/specs/constants.d.ts +1 -1
- package/dist/specs/constants.d.ts.map +1 -1
- package/dist/specs/constants.js +27 -19
- package/dist/specs/constants.js.map +1 -1
- package/dist/specs/group_by.js +8 -19
- package/dist/specs/group_by.js.map +1 -1
- package/dist/specs/settings.d.ts +0 -6
- package/dist/specs/settings.d.ts.map +1 -1
- package/dist/specs/settings.js +6 -17
- package/dist/specs/settings.js.map +1 -1
- package/dist/specs/small_multiples.js +3 -3
- package/dist/specs/small_multiples.js.map +1 -1
- package/dist/specs/specs_parser.js +13 -15
- package/dist/specs/specs_parser.js.map +1 -1
- package/dist/specs/tooltip.d.ts +2 -22
- package/dist/specs/tooltip.d.ts.map +1 -1
- package/dist/specs/tooltip.js +18 -25
- package/dist/specs/tooltip.js.map +1 -1
- package/dist/state/actions/chart_settings.js +1 -1
- package/dist/state/actions/chart_settings.js.map +1 -1
- package/dist/state/actions/colors.js +2 -2
- package/dist/state/actions/colors.js.map +1 -1
- package/dist/state/actions/dom_element.js +1 -1
- package/dist/state/actions/dom_element.js.map +1 -1
- package/dist/state/actions/events.js +1 -1
- package/dist/state/actions/events.js.map +1 -1
- package/dist/state/actions/key.js +1 -1
- package/dist/state/actions/key.js.map +1 -1
- package/dist/state/actions/legend.js +3 -4
- package/dist/state/actions/legend.js.map +1 -1
- package/dist/state/actions/mouse.js +4 -4
- package/dist/state/actions/mouse.js.map +1 -1
- package/dist/state/actions/specs.js +2 -2
- package/dist/state/actions/specs.js.map +1 -1
- package/dist/state/actions/tooltip.js +4 -5
- package/dist/state/actions/tooltip.js.map +1 -1
- package/dist/state/actions/z_index.js +1 -1
- package/dist/state/actions/z_index.js.map +1 -1
- package/dist/state/chart_state.js +178 -124
- package/dist/state/chart_state.js.map +1 -1
- package/dist/state/create_selector.js +31 -63
- package/dist/state/create_selector.js.map +1 -1
- package/dist/state/reducers/interactions.js +153 -119
- package/dist/state/reducers/interactions.js.map +1 -1
- package/dist/state/selectors/can_pin_tooltip.js +13 -18
- package/dist/state/selectors/can_pin_tooltip.js.map +1 -1
- package/dist/state/selectors/compute_panels.js +6 -6
- package/dist/state/selectors/compute_panels.js.map +1 -1
- package/dist/state/selectors/compute_small_multiple_scales.js +12 -15
- package/dist/state/selectors/compute_small_multiple_scales.js.map +1 -1
- package/dist/state/selectors/get_accessibility_config.js +10 -11
- package/dist/state/selectors/get_accessibility_config.js.map +1 -1
- package/dist/state/selectors/get_active_pointer_position.js +3 -4
- package/dist/state/selectors/get_active_pointer_position.js.map +1 -1
- package/dist/state/selectors/get_chart_container_dimensions.js +20 -23
- package/dist/state/selectors/get_chart_container_dimensions.js.map +1 -1
- package/dist/state/selectors/get_chart_id.js +1 -1
- package/dist/state/selectors/get_chart_id.js.map +1 -1
- package/dist/state/selectors/get_chart_rotation.js +3 -3
- package/dist/state/selectors/get_chart_rotation.js.map +1 -1
- package/dist/state/selectors/get_chart_theme.js +12 -28
- package/dist/state/selectors/get_chart_theme.js.map +1 -1
- package/dist/state/selectors/get_chart_type_components.js +2 -2
- package/dist/state/selectors/get_chart_type_components.js.map +1 -1
- package/dist/state/selectors/get_chart_type_description.js +1 -1
- package/dist/state/selectors/get_chart_type_description.js.map +1 -1
- package/dist/state/selectors/get_debug_state.js +3 -3
- package/dist/state/selectors/get_debug_state.js.map +1 -1
- package/dist/state/selectors/get_deselected_data_series.js +1 -1
- package/dist/state/selectors/get_deselected_data_series.js.map +1 -1
- package/dist/state/selectors/get_internal_brush_area.js +1 -1
- package/dist/state/selectors/get_internal_brush_area.js.map +1 -1
- package/dist/state/selectors/get_internal_cursor_pointer.js +2 -2
- package/dist/state/selectors/get_internal_cursor_pointer.js.map +1 -1
- package/dist/state/selectors/get_internal_is_brushing.js +1 -1
- package/dist/state/selectors/get_internal_is_brushing.js.map +1 -1
- package/dist/state/selectors/get_internal_is_brushing_available.js +1 -1
- package/dist/state/selectors/get_internal_is_brushing_available.js.map +1 -1
- package/dist/state/selectors/get_internal_is_intialized.js +2 -2
- package/dist/state/selectors/get_internal_is_intialized.js.map +1 -1
- package/dist/state/selectors/get_internal_is_tooltip_visible.js +1 -1
- package/dist/state/selectors/get_internal_is_tooltip_visible.js.map +1 -1
- package/dist/state/selectors/get_internal_main_projection_area.js +1 -1
- package/dist/state/selectors/get_internal_main_projection_area.js.map +1 -1
- package/dist/state/selectors/get_internal_projection_container_area.js +1 -1
- package/dist/state/selectors/get_internal_projection_container_area.js.map +1 -1
- package/dist/state/selectors/get_internal_sm_domains.js +1 -1
- package/dist/state/selectors/get_internal_sm_domains.js.map +1 -1
- package/dist/state/selectors/get_internal_tooltip_anchor_position.js +1 -1
- package/dist/state/selectors/get_internal_tooltip_anchor_position.js.map +1 -1
- package/dist/state/selectors/get_internal_tooltip_info.js +1 -1
- package/dist/state/selectors/get_internal_tooltip_info.js.map +1 -1
- package/dist/state/selectors/get_legend_config_selector.js +18 -19
- package/dist/state/selectors/get_legend_config_selector.js.map +1 -1
- package/dist/state/selectors/get_legend_items.js +2 -2
- package/dist/state/selectors/get_legend_items.js.map +1 -1
- package/dist/state/selectors/get_legend_items_labels.js +1 -1
- package/dist/state/selectors/get_legend_items_labels.js.map +1 -1
- package/dist/state/selectors/get_legend_items_values.js +2 -2
- package/dist/state/selectors/get_legend_items_values.js.map +1 -1
- package/dist/state/selectors/get_legend_size.js +37 -40
- package/dist/state/selectors/get_legend_size.js.map +1 -1
- package/dist/state/selectors/get_pointer_value.js +4 -4
- package/dist/state/selectors/get_pointer_value.js.map +1 -1
- package/dist/state/selectors/get_settings_spec.js +10 -10
- package/dist/state/selectors/get_settings_spec.js.map +1 -1
- package/dist/state/selectors/get_small_multiples_index_order.js +10 -26
- package/dist/state/selectors/get_small_multiples_index_order.js.map +1 -1
- package/dist/state/selectors/get_small_multiples_spec.js +7 -11
- package/dist/state/selectors/get_small_multiples_spec.js.map +1 -1
- package/dist/state/selectors/get_specs.js +1 -4
- package/dist/state/selectors/get_specs.js.map +1 -1
- package/dist/state/selectors/get_specs_by_type.js +5 -7
- package/dist/state/selectors/get_specs_by_type.js.map +1 -1
- package/dist/state/selectors/get_tooltip_interaction_state.js +1 -4
- package/dist/state/selectors/get_tooltip_interaction_state.js.map +1 -1
- package/dist/state/selectors/get_tooltip_selected_items.js +4 -4
- package/dist/state/selectors/get_tooltip_selected_items.js.map +1 -1
- package/dist/state/selectors/get_tooltip_spec.js +8 -33
- package/dist/state/selectors/get_tooltip_spec.js.map +1 -1
- package/dist/state/selectors/has_external_pointer_event.js +2 -5
- package/dist/state/selectors/has_external_pointer_event.js.map +1 -1
- package/dist/state/selectors/is_brushing.js +1 -1
- package/dist/state/selectors/is_brushing.js.map +1 -1
- package/dist/state/selectors/is_chart_empty.js +1 -1
- package/dist/state/selectors/is_chart_empty.js.map +1 -1
- package/dist/state/selectors/is_external_tooltip_visible.js +13 -18
- package/dist/state/selectors/is_external_tooltip_visible.js.map +1 -1
- package/dist/state/spec_factory.d.ts +2 -2
- package/dist/state/spec_factory.d.ts.map +1 -1
- package/dist/state/spec_factory.js +21 -36
- package/dist/state/spec_factory.js.map +1 -1
- package/dist/state/utils.js +7 -7
- package/dist/state/utils.js.map +1 -1
- package/dist/utils/accessor.js +3 -5
- package/dist/utils/accessor.js.map +1 -1
- package/dist/utils/bbox/canvas_text_bbox_calculator.js +8 -9
- package/dist/utils/bbox/canvas_text_bbox_calculator.js.map +1 -1
- package/dist/utils/chart_size.js +1 -1
- package/dist/utils/chart_size.js.map +1 -1
- package/dist/utils/chrono/chrono.js +1 -1
- package/dist/utils/chrono/chrono.js.map +1 -1
- package/dist/utils/chrono/elasticsearch.js +16 -41
- package/dist/utils/chrono/elasticsearch.js.map +1 -1
- package/dist/utils/chrono/luxon.js +16 -43
- package/dist/utils/chrono/luxon.js.map +1 -1
- package/dist/utils/chrono/moment.js +24 -44
- package/dist/utils/chrono/moment.js.map +1 -1
- package/dist/utils/common.js +68 -120
- package/dist/utils/common.js.map +1 -1
- package/dist/utils/curves.js +2 -3
- package/dist/utils/curves.js.map +1 -1
- package/dist/utils/d3-delaunay/index.js +467 -655
- package/dist/utils/d3-delaunay/index.js.map +1 -1
- package/dist/utils/data/data_processing.js +9 -27
- package/dist/utils/data/data_processing.js.map +1 -1
- package/dist/utils/data/date_time.js +1 -1
- package/dist/utils/data/date_time.js.map +1 -1
- package/dist/utils/data/formatters.js +7 -9
- package/dist/utils/data/formatters.js.map +1 -1
- package/dist/utils/data_generators/data_generator.js +51 -110
- package/dist/utils/data_generators/data_generator.js.map +1 -1
- package/dist/utils/data_generators/simple_noise.js +15 -20
- package/dist/utils/data_generators/simple_noise.js.map +1 -1
- package/dist/utils/debounce.js +1 -1
- package/dist/utils/debounce.js.map +1 -1
- package/dist/utils/dimensions.js +5 -22
- package/dist/utils/dimensions.js.map +1 -1
- package/dist/utils/domain.js +13 -40
- package/dist/utils/domain.js.map +1 -1
- package/dist/utils/events.js +3 -3
- package/dist/utils/events.js.map +1 -1
- package/dist/utils/fast_deep_equal.js +23 -69
- package/dist/utils/fast_deep_equal.js.map +1 -1
- package/dist/utils/geometry.js.map +1 -1
- package/dist/utils/legend.js +3 -7
- package/dist/utils/legend.js.map +1 -1
- package/dist/utils/logger.js +20 -52
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/series_sort.js +4 -13
- package/dist/utils/series_sort.js.map +1 -1
- package/dist/utils/text/wrap.js +36 -91
- package/dist/utils/text/wrap.js.map +1 -1
- package/dist/utils/themes/colors.js +8 -8
- package/dist/utils/themes/colors.js.map +1 -1
- package/dist/utils/themes/dark_theme.d.ts.map +1 -1
- package/dist/utils/themes/dark_theme.js +29 -11
- package/dist/utils/themes/dark_theme.js.map +1 -1
- package/dist/utils/themes/light_theme.d.ts.map +1 -1
- package/dist/utils/themes/light_theme.js +23 -5
- package/dist/utils/themes/light_theme.js.map +1 -1
- package/dist/utils/themes/merge_utils.d.ts +1 -14
- package/dist/utils/themes/merge_utils.d.ts.map +1 -1
- package/dist/utils/themes/merge_utils.js +2 -16
- package/dist/utils/themes/merge_utils.js.map +1 -1
- package/dist/utils/themes/theme.d.ts +3 -7
- package/dist/utils/themes/theme.d.ts.map +1 -1
- package/dist/utils/themes/theme.js +4 -12
- package/dist/utils/themes/theme.js.map +1 -1
- package/dist/utils/themes/theme_common.js +1 -1
- package/dist/utils/themes/theme_common.js.map +1 -1
- package/dist/utils/time_functions.js +6 -6
- package/dist/utils/time_functions.js.map +1 -1
- package/dist/utils/time_zone.js +9 -11
- package/dist/utils/time_zone.js.map +1 -1
- package/dist/utils/use_legend_action.js +4 -4
- package/dist/utils/use_legend_action.js.map +1 -1
- package/package.json +1 -1
- package/dist/chart_types/partition_chart/layout/types/config.d.ts +0 -56
- package/dist/chart_types/partition_chart/layout/types/config.d.ts.map +0 -1
- package/dist/chart_types/partition_chart/layout/types/config.js +0 -3
- 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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
126
|
-
var _b, _c, _d, _e
|
|
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: (
|
|
130
|
-
x1: ((
|
|
131
|
-
y0: (
|
|
132
|
-
y1: ((
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
-
|
|
152
|
-
|
|
107
|
+
const focusRect = (columnarViewModel, chartHeight, drilldownDatumIndex) => focusForArea(chartHeight, columnToRowPositions(columnarViewModel, drilldownDatumIndex || 0));
|
|
108
|
+
const getColor = (c, i) => {
|
|
153
109
|
var _a, _b, _c;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
166
|
-
|
|
121
|
+
const getRegExp = (searchString) => {
|
|
122
|
+
let regex;
|
|
167
123
|
try {
|
|
168
124
|
regex = new RegExp(searchString);
|
|
169
125
|
}
|
|
170
|
-
catch
|
|
126
|
+
catch {
|
|
171
127
|
return new RegExp('iIUiUYIuiGjhG678987gjhgfytr678576');
|
|
172
128
|
}
|
|
173
129
|
return regex;
|
|
174
130
|
};
|
|
175
|
-
|
|
176
|
-
|
|
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
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
-
|
|
167
|
+
this.unpinTooltip(true);
|
|
216
168
|
return;
|
|
217
169
|
}
|
|
218
|
-
|
|
219
|
-
|
|
170
|
+
this.tooltipPinned = true;
|
|
171
|
+
this.tooltipSelectedSeries = this.tooltipValues;
|
|
220
172
|
};
|
|
221
|
-
|
|
222
|
-
if (!
|
|
173
|
+
this.toggleSelectedTooltipItem = (tooltipValue) => {
|
|
174
|
+
if (!this.tooltipPinned)
|
|
223
175
|
return;
|
|
224
|
-
|
|
225
|
-
|
|
176
|
+
this.tooltipSelectedSeries = this.tooltipSelectedSeries.length === 0 ? [tooltipValue] : [];
|
|
177
|
+
this.setState({});
|
|
226
178
|
};
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
179
|
+
this.setSelectedTooltipItems = (tooltipValues) => {
|
|
180
|
+
this.tooltipSelectedSeries = tooltipValues;
|
|
181
|
+
this.setState({});
|
|
230
182
|
};
|
|
231
|
-
|
|
232
|
-
window.matchMedia(
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
238
|
-
window.clearInterval(
|
|
239
|
-
|
|
189
|
+
this.setupViewportScaleChangeListener = () => {
|
|
190
|
+
window.clearInterval(this.pinchZoomSetInterval);
|
|
191
|
+
this.pinchZoomSetInterval = window.setInterval(() => {
|
|
240
192
|
var _a, _b;
|
|
241
|
-
|
|
242
|
-
if (pinchZoomScale !==
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
|
|
200
|
+
this.componentDidMount = () => {
|
|
249
201
|
var _a;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
(_a =
|
|
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
|
-
|
|
257
|
-
|
|
258
|
-
|
|
208
|
+
this.ensureTextureAndDraw = () => {
|
|
209
|
+
this.ensurePickTexture();
|
|
210
|
+
this.drawCanvas();
|
|
259
211
|
};
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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
|
-
|
|
268
|
-
|
|
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
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
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
|
-
|
|
290
|
-
|
|
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
|
-
|
|
293
|
-
if (!
|
|
294
|
-
|
|
236
|
+
this.updatePointerLocation(e);
|
|
237
|
+
if (!this.tooltipPinned) {
|
|
238
|
+
this.updateHoverIndex();
|
|
295
239
|
}
|
|
296
240
|
}
|
|
297
241
|
};
|
|
298
|
-
|
|
242
|
+
this.handleMouseDragMove = (e) => {
|
|
299
243
|
e.stopPropagation();
|
|
300
|
-
|
|
301
|
-
if (
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
if (Number.isNaN(
|
|
308
|
-
|
|
309
|
-
if (Number.isNaN(
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
? Math.min(0, 1 - (
|
|
322
|
-
: -Math.min(0,
|
|
323
|
-
|
|
324
|
-
? Math.min(0, 1 - (
|
|
325
|
-
: -Math.min(0,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
283
|
+
this.clearDrag = () => {
|
|
284
|
+
this.startOfDragX = NaN;
|
|
285
|
+
this.startOfDragY = NaN;
|
|
286
|
+
this.startOfDragFocusLeft = NaN;
|
|
287
|
+
this.startOfDragFocusTop = NaN;
|
|
344
288
|
};
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
289
|
+
this.resetDrag = () => {
|
|
290
|
+
this.startOfDragX = this.pointerX;
|
|
291
|
+
this.startOfDragY = this.pointerY;
|
|
348
292
|
};
|
|
349
|
-
|
|
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(
|
|
297
|
+
if (Number.isNaN(this.pointerX + this.pointerY))
|
|
354
298
|
return;
|
|
355
|
-
if (
|
|
299
|
+
if (this.tooltipPinned)
|
|
356
300
|
return;
|
|
357
|
-
|
|
358
|
-
window.addEventListener('mousemove',
|
|
359
|
-
window.addEventListener('mouseup',
|
|
301
|
+
this.resetDrag();
|
|
302
|
+
window.addEventListener('mousemove', this.handleMouseDragMove, { passive: true });
|
|
303
|
+
window.addEventListener('mouseup', this.handleMouseUp, { passive: true });
|
|
360
304
|
};
|
|
361
|
-
|
|
305
|
+
this.handleContextMenu = (e) => {
|
|
362
306
|
e.stopPropagation();
|
|
363
307
|
e.preventDefault();
|
|
364
|
-
if (
|
|
365
|
-
|
|
308
|
+
if (this.tooltipPinned) {
|
|
309
|
+
this.handleUnpinningTooltip();
|
|
366
310
|
return;
|
|
367
311
|
}
|
|
368
|
-
if (!Number.isFinite(
|
|
312
|
+
if (!Number.isFinite(this.getHoveredDatumIndex())) {
|
|
369
313
|
return;
|
|
370
314
|
}
|
|
371
|
-
window.addEventListener('keyup',
|
|
372
|
-
window.addEventListener('click',
|
|
373
|
-
window.addEventListener('visibilitychange',
|
|
374
|
-
|
|
375
|
-
|
|
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
|
-
|
|
321
|
+
this.handleMouseUp = (e) => {
|
|
378
322
|
e.stopPropagation();
|
|
379
|
-
window.removeEventListener('mousemove',
|
|
380
|
-
window.removeEventListener('mouseup',
|
|
381
|
-
if (
|
|
382
|
-
|
|
383
|
-
|
|
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
|
-
|
|
387
|
-
|
|
388
|
-
|
|
330
|
+
this.updatePointerLocation(e);
|
|
331
|
+
const dragDistanceX = this.getDragDistanceX();
|
|
332
|
+
const dragDistanceY = this.getDragDistanceY();
|
|
389
333
|
if (!dragDistanceX && !dragDistanceY) {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
if (mustFocus && !isContextClick && !
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
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
|
-
|
|
403
|
-
|
|
346
|
+
this.clearDrag();
|
|
347
|
+
this.setState({});
|
|
404
348
|
};
|
|
405
|
-
|
|
406
|
-
window.removeEventListener('keyup',
|
|
407
|
-
window.removeEventListener('click',
|
|
408
|
-
window.removeEventListener('visibilitychange',
|
|
409
|
-
|
|
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
|
-
|
|
412
|
-
var key = _a.key;
|
|
355
|
+
this.handleKeyUp = ({ key }) => {
|
|
413
356
|
if (!FlameComponent.watchedKeys.includes(key))
|
|
414
357
|
return;
|
|
415
|
-
window.removeEventListener('keyup',
|
|
416
|
-
|
|
358
|
+
window.removeEventListener('keyup', this.handleKeyUp);
|
|
359
|
+
this.unpinTooltip();
|
|
417
360
|
};
|
|
418
|
-
|
|
361
|
+
this.handleMouseLeave = (e) => {
|
|
419
362
|
e.stopPropagation();
|
|
420
|
-
if (!
|
|
421
|
-
|
|
363
|
+
if (!this.tooltipPinned) {
|
|
364
|
+
this.smartDraw();
|
|
422
365
|
}
|
|
423
366
|
};
|
|
424
|
-
|
|
425
|
-
|
|
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
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
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 ||
|
|
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
|
-
|
|
443
|
-
(zoomOut ||
|
|
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 ||
|
|
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
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
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
|
-
|
|
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
|
-
|
|
466
|
-
|
|
467
|
-
|
|
408
|
+
this.navigator.add({ ...newFocus, index: NaN });
|
|
409
|
+
this.currentFocus = newFocus;
|
|
410
|
+
this.targetFocus = newFocus;
|
|
468
411
|
}
|
|
469
|
-
|
|
412
|
+
this.smartDraw();
|
|
470
413
|
};
|
|
471
|
-
|
|
414
|
+
this.focusOnAllMatches = () => {
|
|
472
415
|
var _a, _b, _c, _d, _e, _f;
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
for (
|
|
489
|
-
|
|
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
|
-
|
|
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
|
-
|
|
441
|
+
this.currentColor[4 * i + 3] *= 0.25;
|
|
499
442
|
}
|
|
500
443
|
}
|
|
501
444
|
if (Number.isFinite(x0) && searchString.length > 0) {
|
|
502
|
-
Object.assign(
|
|
445
|
+
Object.assign(this.targetFocus, focusForArea(this.props.chartDimensions.height, { x0, x1, y0, y1 }));
|
|
503
446
|
}
|
|
504
447
|
};
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
if (
|
|
508
|
-
(0, upload_to_webgl_1.uploadToWebgl)(
|
|
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
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
if (!input || typeof searchString !== 'string' || (searchString ===
|
|
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
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
459
|
+
this.currentSearchString = searchString;
|
|
460
|
+
this.focusOnAllMatches();
|
|
461
|
+
this.uploadSearchColors();
|
|
462
|
+
this.focusedMatchIndex = NaN;
|
|
463
|
+
this.setState({});
|
|
521
464
|
};
|
|
522
|
-
|
|
465
|
+
this.handleEnterKey = (e) => {
|
|
523
466
|
e.stopPropagation();
|
|
524
467
|
if (e.key === 'Enter') {
|
|
525
468
|
if (e.shiftKey) {
|
|
526
|
-
|
|
469
|
+
this.previousHit();
|
|
527
470
|
}
|
|
528
471
|
else {
|
|
529
|
-
|
|
472
|
+
this.nextHit();
|
|
530
473
|
}
|
|
531
474
|
return true;
|
|
532
475
|
}
|
|
533
476
|
return false;
|
|
534
477
|
};
|
|
535
|
-
|
|
536
|
-
if (!
|
|
478
|
+
this.clearSearchText = () => {
|
|
479
|
+
if (!this.searchInputRef.current)
|
|
537
480
|
return;
|
|
538
|
-
|
|
539
|
-
|
|
481
|
+
this.searchInputRef.current.value = '';
|
|
482
|
+
this.searchForText(false);
|
|
540
483
|
};
|
|
541
|
-
|
|
484
|
+
this.handleEscapeKey = (e) => {
|
|
542
485
|
if (e.key === 'Escape') {
|
|
543
|
-
|
|
486
|
+
this.clearSearchText();
|
|
544
487
|
}
|
|
545
488
|
};
|
|
546
|
-
|
|
547
|
-
if (
|
|
489
|
+
this.handleSearchFieldKeyPress = (e) => {
|
|
490
|
+
if (this.handleEnterKey(e)) {
|
|
548
491
|
e.stopPropagation();
|
|
549
492
|
}
|
|
550
493
|
};
|
|
551
|
-
|
|
494
|
+
this.focusOnHit = () => {
|
|
552
495
|
var _a;
|
|
553
|
-
if (Number.isNaN(
|
|
554
|
-
|
|
496
|
+
if (Number.isNaN(this.focusedMatchIndex)) {
|
|
497
|
+
this.focusOnAllMatches();
|
|
555
498
|
}
|
|
556
499
|
else {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
for (
|
|
564
|
-
|
|
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 ===
|
|
511
|
+
if (hitEnumerator === this.focusedMatchIndex)
|
|
569
512
|
break;
|
|
570
513
|
}
|
|
571
514
|
}
|
|
572
515
|
if (hitEnumerator >= 0) {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
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
|
-
|
|
582
|
-
|
|
583
|
-
if (!
|
|
524
|
+
this.previousHit = () => {
|
|
525
|
+
const hitCount = this.currentSearchHitCount;
|
|
526
|
+
if (!this.currentSearchString || hitCount === 0)
|
|
584
527
|
return;
|
|
585
|
-
|
|
528
|
+
this.focusedMatchIndex = Number.isNaN(this.focusedMatchIndex)
|
|
586
529
|
? hitCount - 1
|
|
587
|
-
:
|
|
530
|
+
: this.focusedMatchIndex === 0
|
|
588
531
|
? NaN
|
|
589
|
-
:
|
|
590
|
-
|
|
591
|
-
|
|
532
|
+
: this.focusedMatchIndex - 1;
|
|
533
|
+
this.focusOnHit();
|
|
534
|
+
this.setState({});
|
|
592
535
|
};
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
if (!
|
|
536
|
+
this.nextHit = () => {
|
|
537
|
+
const hitCount = this.currentSearchHitCount;
|
|
538
|
+
if (!this.currentSearchString || hitCount === 0)
|
|
596
539
|
return;
|
|
597
|
-
|
|
540
|
+
this.focusedMatchIndex = this.focusedMatchIndex = Number.isNaN(this.focusedMatchIndex)
|
|
598
541
|
? 0
|
|
599
|
-
:
|
|
542
|
+
: this.focusedMatchIndex === hitCount - 1
|
|
600
543
|
? NaN
|
|
601
|
-
:
|
|
602
|
-
|
|
603
|
-
|
|
544
|
+
: this.focusedMatchIndex + 1;
|
|
545
|
+
this.focusOnHit();
|
|
546
|
+
this.setState({});
|
|
604
547
|
};
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
width
|
|
611
|
-
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:
|
|
561
|
+
cursor: this.getActiveCursor(),
|
|
619
562
|
};
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
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:
|
|
628
|
-
react_1.default.createElement("canvas", { ref: forwardStageRef, tabIndex: 0, className: "echCanvasRenderer", width: canvasWidth, height: canvasHeight, onMouseMove:
|
|
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:
|
|
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:
|
|
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:
|
|
588
|
+
backgroundColor: this.navigator.canNavBackward() ? buttonBackgroundColor : buttonDisabledBackgroundColor,
|
|
646
589
|
} },
|
|
647
590
|
"\u1438",
|
|
648
|
-
react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick:
|
|
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:
|
|
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:
|
|
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:
|
|
610
|
+
backgroundColor: this.navigator.canNavForward() ? buttonBackgroundColor : buttonDisabledBackgroundColor,
|
|
668
611
|
} },
|
|
669
612
|
"\u1433",
|
|
670
|
-
react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick:
|
|
671
|
-
react_1.default.createElement("input", { ref:
|
|
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:
|
|
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:
|
|
690
|
-
if (
|
|
691
|
-
|
|
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:
|
|
696
|
-
color:
|
|
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:
|
|
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:
|
|
706
|
-
if (!
|
|
648
|
+
react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: () => {
|
|
649
|
+
if (!this.currentSearchString)
|
|
707
650
|
return;
|
|
708
|
-
|
|
709
|
-
|
|
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:
|
|
713
|
-
backgroundColor:
|
|
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:
|
|
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:
|
|
723
|
-
if (!
|
|
665
|
+
react_1.default.createElement("input", { type: "button", tabIndex: 0, onClick: () => {
|
|
666
|
+
if (!this.currentSearchString)
|
|
724
667
|
return;
|
|
725
|
-
|
|
726
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
700
|
+
opacity: this.currentSearchString ? 1 : 0,
|
|
758
701
|
transition: 'opacity 250ms ease-in-out',
|
|
759
702
|
color: textColor,
|
|
760
|
-
} },
|
|
761
|
-
react_1.default.createElement(tooltip_1.BasicTooltip, { canPinTooltip: canPinTooltip, onPointerMove:
|
|
762
|
-
? { x:
|
|
763
|
-
: { x:
|
|
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:
|
|
766
|
-
}, getChartContainerRef:
|
|
708
|
+
values: this.tooltipValues,
|
|
709
|
+
}, getChartContainerRef: this.props.containerRef }),
|
|
767
710
|
debugHistory && (react_1.default.createElement("div", { style: {
|
|
768
711
|
position: 'absolute',
|
|
769
|
-
transform:
|
|
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,
|
|
775
|
-
return (react_1.default.createElement("li", { key:
|
|
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
|
-
|
|
779
|
-
if (!
|
|
721
|
+
this.drawCanvas = () => {
|
|
722
|
+
if (!this.ctx || !this.glContext || !this.pickTexture)
|
|
780
723
|
return;
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
if (
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
renderFrame([
|
|
808
|
-
|
|
809
|
-
|
|
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
|
-
|
|
754
|
+
this.animationRafId = window.requestAnimationFrame(anim);
|
|
812
755
|
}
|
|
813
756
|
else {
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
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(
|
|
822
|
-
|
|
823
|
-
|
|
764
|
+
window.cancelAnimationFrame(this.animationRafId);
|
|
765
|
+
this.animationRafId = window.requestAnimationFrame(anim);
|
|
766
|
+
this.props.onRenderChange(true);
|
|
824
767
|
};
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
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
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
if (
|
|
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
|
-
|
|
840
|
-
(_a = (0, kingly_1.createTexture)(
|
|
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)(
|
|
790
|
+
(0, kingly_1.bindFramebuffer)(this.glContext, webgl_constants_1.GL.READ_FRAMEBUFFER, this.pickTexture.target());
|
|
848
791
|
}
|
|
849
792
|
};
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
(0, upload_to_webgl_1.uploadToWebgl)(gl,
|
|
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
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
797
|
+
this.restoreGL = (gl) => {
|
|
798
|
+
this.initializeGL(gl);
|
|
799
|
+
this.pickTexture = kingly_1.NullTexture;
|
|
800
|
+
this.uploadSearchColors();
|
|
801
|
+
this.ensureTextureAndDraw();
|
|
859
802
|
};
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
if (glCanvas &&
|
|
867
|
-
glCanvas.addEventListener('webglcontextlost',
|
|
868
|
-
glCanvas.addEventListener('webglcontextrestored',
|
|
869
|
-
|
|
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
|
-
|
|
873
|
-
window.cancelAnimationFrame(
|
|
815
|
+
this.contextLossHandler = (event) => {
|
|
816
|
+
window.cancelAnimationFrame(this.animationRafId);
|
|
874
817
|
event.preventDefault();
|
|
875
818
|
};
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
if (!glCanvas || !
|
|
819
|
+
this.contextRestoreHandler = () => {
|
|
820
|
+
const glCanvas = this.glCanvasRef.current;
|
|
821
|
+
if (!glCanvas || !this.glContext)
|
|
879
822
|
return;
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
glCanvas.style.width =
|
|
884
|
-
window.setTimeout(
|
|
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 (
|
|
887
|
-
|
|
829
|
+
if (this.glContext)
|
|
830
|
+
this.restoreGL(this.glContext);
|
|
888
831
|
}, 0);
|
|
889
832
|
};
|
|
890
|
-
|
|
891
|
-
|
|
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
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
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
|
-
|
|
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
|
-
|
|
930
|
-
|
|
931
|
-
var controlProviderCallback = this.props.controlProviderCallback;
|
|
870
|
+
}
|
|
871
|
+
bindControls() {
|
|
872
|
+
const { controlProviderCallback } = this.props;
|
|
932
873
|
if (controlProviderCallback.resetFocus) {
|
|
933
|
-
controlProviderCallback.resetFocus(
|
|
874
|
+
controlProviderCallback.resetFocus(() => this.resetFocus());
|
|
934
875
|
}
|
|
935
876
|
if (controlProviderCallback.focusOnNode) {
|
|
936
|
-
controlProviderCallback.focusOnNode(
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
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
|
-
|
|
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
|
-
|
|
896
|
+
}
|
|
897
|
+
focusOnNode(nodeIndex) {
|
|
949
898
|
this.targetFocus = focusRect(this.props.columnarViewModel, this.props.chartDimensions.height, nodeIndex);
|
|
950
899
|
this.wobble(nodeIndex);
|
|
951
|
-
}
|
|
952
|
-
|
|
900
|
+
}
|
|
901
|
+
focusOnRect(rect) {
|
|
953
902
|
this.targetFocus = rect;
|
|
954
903
|
this.setState({});
|
|
955
|
-
}
|
|
956
|
-
|
|
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
|
-
|
|
911
|
+
}
|
|
912
|
+
getFocusOnRoot() {
|
|
964
913
|
return focusRect(this.props.columnarViewModel, this.props.chartDimensions.height, 0);
|
|
965
|
-
}
|
|
966
|
-
|
|
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
|
-
|
|
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
|
-
|
|
921
|
+
}
|
|
922
|
+
updatePointerLocation(e) {
|
|
975
923
|
if (!this.props.forwardStageRef.current || !this.ctx)
|
|
976
924
|
return;
|
|
977
|
-
|
|
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
|
-
|
|
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
|
-
|
|
942
|
+
}
|
|
943
|
+
updateHoverIndex() {
|
|
997
944
|
var _a;
|
|
998
|
-
|
|
999
|
-
|
|
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
|
-
|
|
1012
|
-
|
|
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:
|
|
969
|
+
formattedValue: `${specValueFormatter(hoverValue)}`,
|
|
1023
970
|
valueAccessor: this.hoverIndex,
|
|
1024
971
|
},
|
|
1025
972
|
]
|
|
1026
973
|
: [];
|
|
1027
974
|
}
|
|
1028
975
|
this.setState({});
|
|
1029
|
-
}
|
|
1030
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
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
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
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 : (
|
|
1068
|
-
onElementClick: (_e = settingsSpec.onElementClick) !== null && _e !== void 0 ? _e : (
|
|
1069
|
-
onElementOut: (_f = settingsSpec.onElementOut) !== null && _f !== void 0 ? _f : (
|
|
1070
|
-
onRenderChange: (_g = settingsSpec.onRenderChange) !== null && _g !== void 0 ? _g : (
|
|
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
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
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
|