@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,82 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
14
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
15
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
16
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17
|
-
function step(op) {
|
|
18
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
19
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
20
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
21
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
22
|
-
switch (op[0]) {
|
|
23
|
-
case 0: case 1: t = op; break;
|
|
24
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
25
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
26
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
27
|
-
default:
|
|
28
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
29
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
30
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
31
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
32
|
-
if (t[2]) _.ops.pop();
|
|
33
|
-
_.trys.pop(); continue;
|
|
34
|
-
}
|
|
35
|
-
op = body.call(thisArg, _);
|
|
36
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
37
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var __values = (this && this.__values) || function(o) {
|
|
41
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
42
|
-
if (m) return m.call(o);
|
|
43
|
-
if (o && typeof o.length === "number") return {
|
|
44
|
-
next: function () {
|
|
45
|
-
if (o && i >= o.length) o = void 0;
|
|
46
|
-
return { value: o && o[i++], done: !o };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
50
|
-
};
|
|
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
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
68
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
69
|
-
if (ar || !(i in from)) {
|
|
70
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
71
|
-
ar[i] = from[i];
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
75
|
-
};
|
|
76
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
3
|
exports.continuousTimeRasters = exports.unitIntervalWidth = void 0;
|
|
78
|
-
|
|
79
|
-
|
|
4
|
+
const cached_chrono_1 = require("./chrono/cached_chrono");
|
|
5
|
+
const chrono_1 = require("./chrono/chrono");
|
|
80
6
|
exports.unitIntervalWidth = {
|
|
81
7
|
year: 365.25 * 24 * 60 * 60,
|
|
82
8
|
month: (365.25 * 24 * 60 * 60) / 12,
|
|
@@ -88,100 +14,47 @@ exports.unitIntervalWidth = {
|
|
|
88
14
|
millisecond: 0.001,
|
|
89
15
|
one: 1,
|
|
90
16
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
minimum = (t * rasterMs) / 1000;
|
|
102
|
-
supremum = minimum + rasterMs / 1000;
|
|
103
|
-
return [4, {
|
|
104
|
-
minimum: minimum,
|
|
105
|
-
supremum: supremum,
|
|
106
|
-
labelSupremum: supremum,
|
|
107
|
-
}];
|
|
108
|
-
case 2:
|
|
109
|
-
_a.sent();
|
|
110
|
-
_a.label = 3;
|
|
111
|
-
case 3:
|
|
112
|
-
t++;
|
|
113
|
-
return [3, 1];
|
|
114
|
-
case 4: return [2];
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
};
|
|
17
|
+
const millisecondIntervals = (rasterMs) => function* (domainFrom, domainTo) {
|
|
18
|
+
for (let t = Math.floor((domainFrom * 1000) / rasterMs); t < Math.ceil((domainTo * 1000) / rasterMs); t++) {
|
|
19
|
+
const minimum = (t * rasterMs) / 1000;
|
|
20
|
+
const supremum = minimum + rasterMs / 1000;
|
|
21
|
+
yield {
|
|
22
|
+
minimum,
|
|
23
|
+
supremum,
|
|
24
|
+
labelSupremum: supremum,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
118
27
|
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
month: ((month + unitMultiplier - 1) % 12) + 1,
|
|
142
|
-
day: 1,
|
|
143
|
-
})[cached_chrono_1.TimeProp.EpochSeconds];
|
|
144
|
-
days = (0, chrono_1.epochDaysInMonth)(timeZone, binStart);
|
|
145
|
-
return [4, {
|
|
146
|
-
year: year,
|
|
147
|
-
month: month,
|
|
148
|
-
days: days,
|
|
149
|
-
minimum: binStart,
|
|
150
|
-
supremum: binEnd,
|
|
151
|
-
labelSupremum: binEnd,
|
|
152
|
-
}];
|
|
153
|
-
case 3:
|
|
154
|
-
_d.sent();
|
|
155
|
-
_d.label = 4;
|
|
156
|
-
case 4:
|
|
157
|
-
month += unitMultiplier;
|
|
158
|
-
return [3, 2];
|
|
159
|
-
case 5:
|
|
160
|
-
_b = _a.next();
|
|
161
|
-
return [3, 1];
|
|
162
|
-
case 6: return [3, 9];
|
|
163
|
-
case 7:
|
|
164
|
-
e_1_1 = _d.sent();
|
|
165
|
-
e_1 = { error: e_1_1 };
|
|
166
|
-
return [3, 9];
|
|
167
|
-
case 8:
|
|
168
|
-
try {
|
|
169
|
-
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
|
|
170
|
-
}
|
|
171
|
-
finally { if (e_1) throw e_1.error; }
|
|
172
|
-
return [7];
|
|
173
|
-
case 9: return [2];
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
};
|
|
28
|
+
const monthBasedIntervals = (years, timeZone, unitMultiplier) => function* (domainFrom, domainTo) {
|
|
29
|
+
for (const { year } of years.intervals(domainFrom, domainTo)) {
|
|
30
|
+
for (let month = 1; month <= 12; month += unitMultiplier) {
|
|
31
|
+
const timePoint = (0, cached_chrono_1.cachedZonedDateTimeFrom)({ timeZone, year, month, day: 1 });
|
|
32
|
+
const binStart = timePoint[cached_chrono_1.TimeProp.EpochSeconds];
|
|
33
|
+
const binEnd = (0, cached_chrono_1.cachedZonedDateTimeFrom)({
|
|
34
|
+
timeZone,
|
|
35
|
+
year: month <= 12 - unitMultiplier ? year : year + 1,
|
|
36
|
+
month: ((month + unitMultiplier - 1) % 12) + 1,
|
|
37
|
+
day: 1,
|
|
38
|
+
})[cached_chrono_1.TimeProp.EpochSeconds];
|
|
39
|
+
const days = (0, chrono_1.epochDaysInMonth)(timeZone, binStart);
|
|
40
|
+
yield {
|
|
41
|
+
year,
|
|
42
|
+
month,
|
|
43
|
+
days,
|
|
44
|
+
minimum: binStart,
|
|
45
|
+
supremum: binEnd,
|
|
46
|
+
labelSupremum: binEnd,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
177
50
|
};
|
|
178
|
-
|
|
179
|
-
|
|
51
|
+
const hourCycle = 'h23';
|
|
52
|
+
const hourFormat = {
|
|
180
53
|
hour: '2-digit',
|
|
181
54
|
minute: '2-digit',
|
|
182
|
-
hourCycle
|
|
55
|
+
hourCycle,
|
|
183
56
|
};
|
|
184
|
-
|
|
57
|
+
const englishOrdinalEndings = {
|
|
185
58
|
zero: 'th',
|
|
186
59
|
one: 'st',
|
|
187
60
|
two: 'nd',
|
|
@@ -189,361 +62,393 @@ var englishOrdinalEndings = {
|
|
|
189
62
|
many: 'th',
|
|
190
63
|
other: 'th',
|
|
191
64
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
var detailedDayFormat = new Intl.DateTimeFormat(locale, {
|
|
65
|
+
const englishPluralRules = new Intl.PluralRules('en-US', { type: 'ordinal' });
|
|
66
|
+
const englishOrdinalEnding = (signedNumber) => englishOrdinalEndings[englishPluralRules.select(signedNumber)];
|
|
67
|
+
const continuousTimeRasters = ({ minimumTickPixelDistance, locale }, timeZone) => {
|
|
68
|
+
const minorDayBaseFormat = new Intl.DateTimeFormat(locale, { day: 'numeric', timeZone }).format;
|
|
69
|
+
const minorDayFormat = (d) => {
|
|
70
|
+
const numberString = minorDayBaseFormat(d);
|
|
71
|
+
const number = Number.parseInt(numberString, 10);
|
|
72
|
+
return locale.substr(0, 2) === 'en' ? `${numberString}${englishOrdinalEnding(number)}` : numberString;
|
|
73
|
+
};
|
|
74
|
+
const detailedDayFormat = new Intl.DateTimeFormat(locale, {
|
|
203
75
|
year: 'numeric',
|
|
204
76
|
month: 'long',
|
|
205
77
|
day: 'numeric',
|
|
206
|
-
timeZone
|
|
78
|
+
timeZone,
|
|
207
79
|
}).format;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
80
|
+
const detailedHourFormatBase = new Intl.DateTimeFormat(locale, {
|
|
81
|
+
year: 'numeric',
|
|
82
|
+
month: 'long',
|
|
83
|
+
day: 'numeric',
|
|
84
|
+
...hourFormat,
|
|
85
|
+
timeZone,
|
|
86
|
+
}).format;
|
|
87
|
+
const detailedHourFormat = (d) => `${detailedHourFormatBase(d)}h`;
|
|
88
|
+
const years = {
|
|
211
89
|
unit: 'year',
|
|
212
90
|
unitMultiplier: 1,
|
|
213
91
|
labeled: true,
|
|
214
92
|
minimumTickPixelDistance: minimumTickPixelDistance * 1.5,
|
|
215
|
-
intervals: function (domainFrom, domainTo) {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
return [4, {
|
|
235
|
-
year: year,
|
|
236
|
-
minimum: binStart,
|
|
237
|
-
supremum: binEnd,
|
|
238
|
-
labelSupremum: binEnd,
|
|
239
|
-
}];
|
|
240
|
-
case 2:
|
|
241
|
-
_a.sent();
|
|
242
|
-
_a.label = 3;
|
|
243
|
-
case 3:
|
|
244
|
-
year++;
|
|
245
|
-
return [3, 1];
|
|
246
|
-
case 4: return [2];
|
|
247
|
-
}
|
|
248
|
-
});
|
|
93
|
+
intervals: function* (domainFrom, domainTo) {
|
|
94
|
+
const fromYear = (0, chrono_1.epochInSecondsToYear)(timeZone, domainFrom);
|
|
95
|
+
const toYear = (0, chrono_1.epochInSecondsToYear)(timeZone, domainTo);
|
|
96
|
+
for (let year = fromYear; year <= toYear; year++) {
|
|
97
|
+
const timePoint = (0, cached_chrono_1.cachedZonedDateTimeFrom)({ timeZone, year, month: 1, day: 1 });
|
|
98
|
+
const binStart = timePoint[cached_chrono_1.TimeProp.EpochSeconds];
|
|
99
|
+
const binEnd = (0, cached_chrono_1.cachedZonedDateTimeFrom)({
|
|
100
|
+
timeZone,
|
|
101
|
+
year: year + 1,
|
|
102
|
+
month: 1,
|
|
103
|
+
day: 1,
|
|
104
|
+
})[cached_chrono_1.TimeProp.EpochSeconds];
|
|
105
|
+
yield {
|
|
106
|
+
year,
|
|
107
|
+
minimum: binStart,
|
|
108
|
+
supremum: binEnd,
|
|
109
|
+
labelSupremum: binEnd,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
249
112
|
},
|
|
250
|
-
detailedLabelFormat: new Intl.DateTimeFormat(locale, { year: 'numeric', timeZone
|
|
251
|
-
minorTickLabelFormat: new Intl.DateTimeFormat(locale, { year: 'numeric', timeZone
|
|
113
|
+
detailedLabelFormat: new Intl.DateTimeFormat(locale, { year: 'numeric', timeZone }).format,
|
|
114
|
+
minorTickLabelFormat: new Intl.DateTimeFormat(locale, { year: 'numeric', timeZone }).format,
|
|
252
115
|
};
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
116
|
+
const unlabeledGridMinimumPixelDistance = minimumTickPixelDistance / 1.618;
|
|
117
|
+
const yearsUnlabelled = {
|
|
118
|
+
...years,
|
|
119
|
+
labeled: false,
|
|
120
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
121
|
+
};
|
|
122
|
+
const decades = {
|
|
256
123
|
unit: 'year',
|
|
257
124
|
unitMultiplier: 10,
|
|
258
125
|
labeled: true,
|
|
259
126
|
minimumTickPixelDistance: minimumTickPixelDistance * 1.5,
|
|
260
|
-
intervals: function (domainFrom, domainTo) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
return [4, {
|
|
280
|
-
year: year,
|
|
281
|
-
minimum: binStart,
|
|
282
|
-
supremum: binEnd,
|
|
283
|
-
labelSupremum: binEnd,
|
|
284
|
-
}];
|
|
285
|
-
case 2:
|
|
286
|
-
_a.sent();
|
|
287
|
-
_a.label = 3;
|
|
288
|
-
case 3:
|
|
289
|
-
year += 10;
|
|
290
|
-
return [3, 1];
|
|
291
|
-
case 4: return [2];
|
|
292
|
-
}
|
|
293
|
-
});
|
|
127
|
+
intervals: function* (domainFrom, domainTo) {
|
|
128
|
+
const fromYear = (0, chrono_1.epochInSecondsToYear)(timeZone, domainFrom);
|
|
129
|
+
const toYear = (0, chrono_1.epochInSecondsToYear)(timeZone, domainTo);
|
|
130
|
+
for (let year = Math.floor(fromYear / 10) * 10; year <= Math.ceil(toYear / 10) * 10; year += 10) {
|
|
131
|
+
const timePoint = (0, cached_chrono_1.cachedZonedDateTimeFrom)({ timeZone, year, month: 1, day: 1 });
|
|
132
|
+
const binStart = timePoint[cached_chrono_1.TimeProp.EpochSeconds];
|
|
133
|
+
const binEnd = (0, cached_chrono_1.cachedZonedDateTimeFrom)({
|
|
134
|
+
timeZone,
|
|
135
|
+
year: year + 10,
|
|
136
|
+
month: 1,
|
|
137
|
+
day: 1,
|
|
138
|
+
})[cached_chrono_1.TimeProp.EpochSeconds];
|
|
139
|
+
yield {
|
|
140
|
+
year,
|
|
141
|
+
minimum: binStart,
|
|
142
|
+
supremum: binEnd,
|
|
143
|
+
labelSupremum: binEnd,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
294
146
|
},
|
|
295
|
-
detailedLabelFormat: new Intl.DateTimeFormat(locale, { year: 'numeric', timeZone
|
|
296
|
-
minorTickLabelFormat: new Intl.DateTimeFormat(locale, { year: 'numeric', timeZone
|
|
147
|
+
detailedLabelFormat: new Intl.DateTimeFormat(locale, { year: 'numeric', timeZone }).format,
|
|
148
|
+
minorTickLabelFormat: new Intl.DateTimeFormat(locale, { year: 'numeric', timeZone }).format,
|
|
297
149
|
};
|
|
298
|
-
|
|
299
|
-
|
|
150
|
+
const decadesUnlabelled = {
|
|
151
|
+
...decades,
|
|
152
|
+
labeled: false,
|
|
153
|
+
minimumTickPixelDistance: 1,
|
|
154
|
+
};
|
|
155
|
+
const months = {
|
|
300
156
|
unit: 'month',
|
|
301
157
|
unitMultiplier: 1,
|
|
302
158
|
labeled: true,
|
|
303
159
|
minimumTickPixelDistance: minimumTickPixelDistance * 3.6,
|
|
304
160
|
intervals: monthBasedIntervals(years, timeZone, 1),
|
|
305
|
-
detailedLabelFormat: new Intl.DateTimeFormat(locale, { year: 'numeric', month: 'long', timeZone
|
|
306
|
-
minorTickLabelFormat: new Intl.DateTimeFormat(locale, { month: 'long', timeZone
|
|
161
|
+
detailedLabelFormat: new Intl.DateTimeFormat(locale, { year: 'numeric', month: 'long', timeZone }).format,
|
|
162
|
+
minorTickLabelFormat: new Intl.DateTimeFormat(locale, { month: 'long', timeZone }).format,
|
|
163
|
+
};
|
|
164
|
+
const shortMonths = {
|
|
165
|
+
...months,
|
|
166
|
+
minorTickLabelFormat: new Intl.DateTimeFormat(locale, { month: 'short', timeZone }).format,
|
|
167
|
+
minimumTickPixelDistance: minimumTickPixelDistance * 2,
|
|
168
|
+
};
|
|
169
|
+
const quarters = {
|
|
170
|
+
...shortMonths,
|
|
171
|
+
unitMultiplier: 3,
|
|
172
|
+
intervals: monthBasedIntervals(years, timeZone, 3),
|
|
307
173
|
};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
174
|
+
const quartersUnlabelled = {
|
|
175
|
+
...quarters,
|
|
176
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
177
|
+
labeled: false,
|
|
178
|
+
};
|
|
179
|
+
const days = {
|
|
312
180
|
unit: 'day',
|
|
313
181
|
unitMultiplier: 1,
|
|
314
182
|
labeled: true,
|
|
315
183
|
minimumTickPixelDistance: minimumTickPixelDistance * 1.5,
|
|
316
|
-
intervals: function (domainFrom, domainTo) {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
184
|
+
intervals: function* (domainFrom, domainTo) {
|
|
185
|
+
for (const { year, month } of months.intervals(domainFrom, domainTo)) {
|
|
186
|
+
for (let dayOfMonth = 1; dayOfMonth <= 31; dayOfMonth++) {
|
|
187
|
+
const temporalArgs = {
|
|
188
|
+
timeZone,
|
|
189
|
+
year,
|
|
190
|
+
month,
|
|
191
|
+
day: dayOfMonth,
|
|
192
|
+
};
|
|
193
|
+
const timePoint = (0, cached_chrono_1.cachedZonedDateTimeFrom)(temporalArgs);
|
|
194
|
+
const dayOfWeek = timePoint[cached_chrono_1.TimeProp.DayOfWeek];
|
|
195
|
+
const binStart = timePoint[cached_chrono_1.TimeProp.EpochSeconds];
|
|
196
|
+
const binEnd = (0, cached_chrono_1.cachedTimeDelta)(temporalArgs, 'days', 1);
|
|
197
|
+
if (Number.isFinite(binStart) && Number.isFinite(binEnd))
|
|
198
|
+
yield {
|
|
199
|
+
year,
|
|
200
|
+
month,
|
|
201
|
+
dayOfMonth,
|
|
202
|
+
dayOfWeek,
|
|
203
|
+
minimum: binStart,
|
|
204
|
+
supremum: binEnd,
|
|
205
|
+
labelSupremum: binEnd,
|
|
337
206
|
};
|
|
338
|
-
timePoint = (0, cached_chrono_1.cachedZonedDateTimeFrom)(temporalArgs);
|
|
339
|
-
dayOfWeek = timePoint[cached_chrono_1.TimeProp.DayOfWeek];
|
|
340
|
-
binStart = timePoint[cached_chrono_1.TimeProp.EpochSeconds];
|
|
341
|
-
binEnd = (0, cached_chrono_1.cachedTimeDelta)(temporalArgs, 'days', 1);
|
|
342
|
-
if (!(Number.isFinite(binStart) && Number.isFinite(binEnd))) return [3, 4];
|
|
343
|
-
return [4, {
|
|
344
|
-
year: year,
|
|
345
|
-
month: month,
|
|
346
|
-
dayOfMonth: dayOfMonth,
|
|
347
|
-
dayOfWeek: dayOfWeek,
|
|
348
|
-
minimum: binStart,
|
|
349
|
-
supremum: binEnd,
|
|
350
|
-
labelSupremum: binEnd,
|
|
351
|
-
}];
|
|
352
|
-
case 3:
|
|
353
|
-
_e.sent();
|
|
354
|
-
_e.label = 4;
|
|
355
|
-
case 4:
|
|
356
|
-
dayOfMonth++;
|
|
357
|
-
return [3, 2];
|
|
358
|
-
case 5:
|
|
359
|
-
_b = _a.next();
|
|
360
|
-
return [3, 1];
|
|
361
|
-
case 6: return [3, 9];
|
|
362
|
-
case 7:
|
|
363
|
-
e_2_1 = _e.sent();
|
|
364
|
-
e_2 = { error: e_2_1 };
|
|
365
|
-
return [3, 9];
|
|
366
|
-
case 8:
|
|
367
|
-
try {
|
|
368
|
-
if (_b && !_b.done && (_d = _a.return)) _d.call(_a);
|
|
369
|
-
}
|
|
370
|
-
finally { if (e_2) throw e_2.error; }
|
|
371
|
-
return [7];
|
|
372
|
-
case 9: return [2];
|
|
373
207
|
}
|
|
374
|
-
}
|
|
208
|
+
}
|
|
375
209
|
},
|
|
376
210
|
detailedLabelFormat: detailedDayFormat,
|
|
377
211
|
minorTickLabelFormat: minorDayFormat,
|
|
378
212
|
};
|
|
379
|
-
|
|
213
|
+
const weekStartDays = {
|
|
380
214
|
unit: 'week',
|
|
381
215
|
unitMultiplier: 1,
|
|
382
216
|
labeled: true,
|
|
383
217
|
minimumTickPixelDistance: minimumTickPixelDistance * 1.5,
|
|
384
|
-
intervals: function (domainFrom, domainTo) {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
if (dayOfWeek !== 1)
|
|
404
|
-
return [3, 4];
|
|
405
|
-
binStart = timePoint[cached_chrono_1.TimeProp.EpochSeconds];
|
|
406
|
-
if (!Number.isFinite(binStart)) return [3, 4];
|
|
407
|
-
daysFromEnd = daysInMonth - dayOfMonth + 1;
|
|
408
|
-
supremum = (0, cached_chrono_1.cachedTimeDelta)(temporalArgs, 'days', 7);
|
|
409
|
-
return [4, {
|
|
410
|
-
dayOfMonth: dayOfMonth,
|
|
411
|
-
minimum: binStart,
|
|
412
|
-
supremum: supremum,
|
|
413
|
-
labelSupremum: daysFromEnd < 7 ? (0, cached_chrono_1.cachedTimeDelta)(temporalArgs, 'days', daysFromEnd) : supremum,
|
|
414
|
-
}];
|
|
415
|
-
case 3:
|
|
416
|
-
_e.sent();
|
|
417
|
-
_e.label = 4;
|
|
418
|
-
case 4:
|
|
419
|
-
dayOfMonth++;
|
|
420
|
-
return [3, 2];
|
|
421
|
-
case 5:
|
|
422
|
-
_b = _a.next();
|
|
423
|
-
return [3, 1];
|
|
424
|
-
case 6: return [3, 9];
|
|
425
|
-
case 7:
|
|
426
|
-
e_3_1 = _e.sent();
|
|
427
|
-
e_3 = { error: e_3_1 };
|
|
428
|
-
return [3, 9];
|
|
429
|
-
case 8:
|
|
430
|
-
try {
|
|
431
|
-
if (_b && !_b.done && (_d = _a.return)) _d.call(_a);
|
|
432
|
-
}
|
|
433
|
-
finally { if (e_3) throw e_3.error; }
|
|
434
|
-
return [7];
|
|
435
|
-
case 9: return [2];
|
|
218
|
+
intervals: function* (domainFrom, domainTo) {
|
|
219
|
+
for (const { year, month, days: daysInMonth } of months.intervals(domainFrom, domainTo)) {
|
|
220
|
+
for (let dayOfMonth = 1; dayOfMonth <= 31; dayOfMonth++) {
|
|
221
|
+
const temporalArgs = { timeZone, year, month, day: dayOfMonth };
|
|
222
|
+
const timePoint = (0, cached_chrono_1.cachedZonedDateTimeFrom)(temporalArgs);
|
|
223
|
+
const dayOfWeek = timePoint[cached_chrono_1.TimeProp.DayOfWeek];
|
|
224
|
+
if (dayOfWeek !== 1)
|
|
225
|
+
continue;
|
|
226
|
+
const binStart = timePoint[cached_chrono_1.TimeProp.EpochSeconds];
|
|
227
|
+
if (Number.isFinite(binStart)) {
|
|
228
|
+
const daysFromEnd = daysInMonth - dayOfMonth + 1;
|
|
229
|
+
const supremum = (0, cached_chrono_1.cachedTimeDelta)(temporalArgs, 'days', 7);
|
|
230
|
+
yield {
|
|
231
|
+
dayOfMonth,
|
|
232
|
+
minimum: binStart,
|
|
233
|
+
supremum,
|
|
234
|
+
labelSupremum: daysFromEnd < 7 ? (0, cached_chrono_1.cachedTimeDelta)(temporalArgs, 'days', daysFromEnd) : supremum,
|
|
235
|
+
};
|
|
236
|
+
}
|
|
436
237
|
}
|
|
437
|
-
}
|
|
238
|
+
}
|
|
438
239
|
},
|
|
439
240
|
minorTickLabelFormat: minorDayFormat,
|
|
440
241
|
detailedLabelFormat: detailedDayFormat,
|
|
441
242
|
};
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
243
|
+
const daysUnlabelled = {
|
|
244
|
+
...days,
|
|
245
|
+
labeled: false,
|
|
246
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
247
|
+
};
|
|
248
|
+
const weeksUnlabelled = {
|
|
249
|
+
...weekStartDays,
|
|
250
|
+
labeled: false,
|
|
251
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
252
|
+
};
|
|
253
|
+
const monthsUnlabelled = {
|
|
254
|
+
...months,
|
|
255
|
+
labeled: false,
|
|
256
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
257
|
+
};
|
|
258
|
+
const hhMmDistanceMultiplier = 1.8;
|
|
259
|
+
const hhMmSsDistanceMultiplier = 2.5;
|
|
260
|
+
const hours = {
|
|
448
261
|
unit: 'hour',
|
|
449
262
|
unitMultiplier: 1,
|
|
450
263
|
labeled: true,
|
|
451
264
|
minimumTickPixelDistance: hhMmDistanceMultiplier * minimumTickPixelDistance,
|
|
452
265
|
intervals: millisecondIntervals(60 * 60 * 1000),
|
|
453
266
|
detailedLabelFormat: detailedHourFormat,
|
|
454
|
-
minorTickLabelFormat: new Intl.DateTimeFormat(locale,
|
|
267
|
+
minorTickLabelFormat: new Intl.DateTimeFormat(locale, {
|
|
268
|
+
...hourFormat,
|
|
269
|
+
timeZone,
|
|
270
|
+
}).format,
|
|
455
271
|
};
|
|
456
|
-
|
|
457
|
-
|
|
272
|
+
const hoursUnlabelled = {
|
|
273
|
+
...hours,
|
|
274
|
+
labeled: false,
|
|
275
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
276
|
+
};
|
|
277
|
+
const sixHours = {
|
|
458
278
|
unit: 'hour',
|
|
459
279
|
unitMultiplier: 6,
|
|
460
280
|
labeled: true,
|
|
461
281
|
minimumTickPixelDistance: 2 * minimumTickPixelDistance,
|
|
462
|
-
intervals:
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
},
|
|
491
|
-
minorTickLabelFormat: new Intl.DateTimeFormat(locale, __assign(__assign({}, hourFormat), { timeZone: timeZone })).format,
|
|
282
|
+
intervals: (domainFrom, domainTo) => [...days.intervals(domainFrom, domainTo)].flatMap(({ year, month, dayOfMonth, dayOfWeek }) => [0, 6, 12, 18].map((hour) => {
|
|
283
|
+
const temporalArgs = {
|
|
284
|
+
timeZone,
|
|
285
|
+
year,
|
|
286
|
+
month,
|
|
287
|
+
day: dayOfMonth,
|
|
288
|
+
hour,
|
|
289
|
+
};
|
|
290
|
+
const timePoint = (0, cached_chrono_1.cachedZonedDateTimeFrom)(temporalArgs);
|
|
291
|
+
const binStart = timePoint[cached_chrono_1.TimeProp.EpochSeconds];
|
|
292
|
+
const supremum = binStart + 6 * 60 * 60;
|
|
293
|
+
return Number.isNaN(binStart)
|
|
294
|
+
? []
|
|
295
|
+
: {
|
|
296
|
+
dayOfMonth,
|
|
297
|
+
dayOfWeek,
|
|
298
|
+
hour,
|
|
299
|
+
year,
|
|
300
|
+
month,
|
|
301
|
+
minimum: binStart,
|
|
302
|
+
supremum,
|
|
303
|
+
labelSupremum: supremum,
|
|
304
|
+
};
|
|
305
|
+
})).map((b, i, a) => { var _a; return Object.assign(b, { supremum: i === a.length - 1 ? b.supremum : (_a = a[i + 1]) === null || _a === void 0 ? void 0 : _a.minimum }); }),
|
|
306
|
+
minorTickLabelFormat: new Intl.DateTimeFormat(locale, {
|
|
307
|
+
...hourFormat,
|
|
308
|
+
timeZone,
|
|
309
|
+
}).format,
|
|
492
310
|
detailedLabelFormat: detailedHourFormat,
|
|
493
311
|
};
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
312
|
+
const sixHoursUnlabelled = {
|
|
313
|
+
...sixHours,
|
|
314
|
+
labeled: false,
|
|
315
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
316
|
+
};
|
|
317
|
+
const minutesFormatter = new Intl.DateTimeFormat(locale, { hour: '2-digit', minute: '2-digit', timeZone, hourCycle });
|
|
318
|
+
const secondsFormatter = new Intl.DateTimeFormat(locale, {
|
|
497
319
|
hour: '2-digit',
|
|
498
320
|
minute: '2-digit',
|
|
499
321
|
second: '2-digit',
|
|
500
|
-
timeZone
|
|
501
|
-
hourCycle
|
|
322
|
+
timeZone,
|
|
323
|
+
hourCycle,
|
|
502
324
|
});
|
|
503
|
-
|
|
325
|
+
const minutes = {
|
|
504
326
|
unit: 'minute',
|
|
505
327
|
unitMultiplier: 1,
|
|
506
328
|
labeled: true,
|
|
507
329
|
minimumTickPixelDistance: hhMmDistanceMultiplier * minimumTickPixelDistance,
|
|
508
330
|
intervals: millisecondIntervals(60 * 1000),
|
|
509
|
-
detailedLabelFormat: new Intl.DateTimeFormat(locale,
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
331
|
+
detailedLabelFormat: new Intl.DateTimeFormat(locale, {
|
|
332
|
+
year: 'numeric',
|
|
333
|
+
month: 'long',
|
|
334
|
+
day: 'numeric',
|
|
335
|
+
...hourFormat,
|
|
336
|
+
minute: 'numeric',
|
|
337
|
+
timeZone,
|
|
338
|
+
}).format,
|
|
339
|
+
minorTickLabelFormat: (d) => `${minutesFormatter.format(d)}`,
|
|
340
|
+
};
|
|
341
|
+
const quarterHours = {
|
|
342
|
+
...minutes,
|
|
343
|
+
unitMultiplier: 15,
|
|
344
|
+
labeled: true,
|
|
345
|
+
intervals: millisecondIntervals(15 * 60 * 1000),
|
|
346
|
+
};
|
|
347
|
+
const quarterHoursUnlabelled = {
|
|
348
|
+
...quarterHours,
|
|
349
|
+
labeled: false,
|
|
350
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
351
|
+
};
|
|
352
|
+
const fiveMinutes = {
|
|
353
|
+
...minutes,
|
|
354
|
+
unitMultiplier: 5,
|
|
355
|
+
labeled: true,
|
|
356
|
+
intervals: millisecondIntervals(5 * 60 * 1000),
|
|
357
|
+
};
|
|
358
|
+
const fiveMinutesUnlabelled = {
|
|
359
|
+
...fiveMinutes,
|
|
360
|
+
labeled: false,
|
|
361
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
362
|
+
};
|
|
363
|
+
const minutesUnlabelled = {
|
|
364
|
+
...minutes,
|
|
365
|
+
labeled: false,
|
|
366
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
367
|
+
};
|
|
368
|
+
const seconds = {
|
|
518
369
|
unit: 'second',
|
|
519
370
|
unitMultiplier: 1,
|
|
520
371
|
labeled: true,
|
|
521
372
|
minimumTickPixelDistance: hhMmSsDistanceMultiplier * minimumTickPixelDistance,
|
|
522
373
|
intervals: millisecondIntervals(1000),
|
|
523
|
-
detailedLabelFormat: new Intl.DateTimeFormat(locale,
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
374
|
+
detailedLabelFormat: new Intl.DateTimeFormat(locale, {
|
|
375
|
+
year: 'numeric',
|
|
376
|
+
month: 'long',
|
|
377
|
+
day: 'numeric',
|
|
378
|
+
...hourFormat,
|
|
379
|
+
minute: 'numeric',
|
|
380
|
+
second: 'numeric',
|
|
381
|
+
timeZone,
|
|
382
|
+
}).format,
|
|
383
|
+
minorTickLabelFormat: (d) => `${secondsFormatter.format(d).padStart(2, '0')}`,
|
|
384
|
+
};
|
|
385
|
+
const quarterMinutes = {
|
|
386
|
+
...seconds,
|
|
387
|
+
unitMultiplier: 15,
|
|
388
|
+
labeled: true,
|
|
389
|
+
intervals: millisecondIntervals(15 * 1000),
|
|
390
|
+
};
|
|
391
|
+
const quarterMinutesUnlabelled = {
|
|
392
|
+
...quarterMinutes,
|
|
393
|
+
labeled: false,
|
|
394
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
395
|
+
};
|
|
396
|
+
const fiveSeconds = {
|
|
397
|
+
...seconds,
|
|
398
|
+
unitMultiplier: 5,
|
|
399
|
+
labeled: true,
|
|
400
|
+
intervals: millisecondIntervals(5 * 1000),
|
|
401
|
+
};
|
|
402
|
+
const fiveSecondsUnlabelled = {
|
|
403
|
+
...fiveSeconds,
|
|
404
|
+
labeled: false,
|
|
405
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
406
|
+
};
|
|
407
|
+
const secondsUnlabelled = {
|
|
408
|
+
...seconds,
|
|
409
|
+
labeled: false,
|
|
410
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
411
|
+
};
|
|
412
|
+
const millisecondDistanceMultiplier = 1.8;
|
|
413
|
+
const milliseconds = {
|
|
533
414
|
unit: 'millisecond',
|
|
534
415
|
unitMultiplier: 1,
|
|
535
416
|
labeled: true,
|
|
536
417
|
minimumTickPixelDistance: minimumTickPixelDistance * millisecondDistanceMultiplier,
|
|
537
418
|
intervals: millisecondIntervals(1),
|
|
538
|
-
minorTickLabelFormat:
|
|
539
|
-
detailedLabelFormat:
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
419
|
+
minorTickLabelFormat: (d) => `${d % 1000}ms`,
|
|
420
|
+
detailedLabelFormat: (d) => `${d % 1000}ms`,
|
|
421
|
+
};
|
|
422
|
+
const tenMilliseconds = {
|
|
423
|
+
...milliseconds,
|
|
424
|
+
unitMultiplier: 10,
|
|
425
|
+
labeled: true,
|
|
426
|
+
minimumTickPixelDistance: minimumTickPixelDistance * millisecondDistanceMultiplier,
|
|
427
|
+
intervals: millisecondIntervals(10),
|
|
428
|
+
};
|
|
429
|
+
const hundredMilliseconds = {
|
|
430
|
+
...milliseconds,
|
|
431
|
+
unitMultiplier: 100,
|
|
432
|
+
labeled: true,
|
|
433
|
+
minimumTickPixelDistance: minimumTickPixelDistance * millisecondDistanceMultiplier,
|
|
434
|
+
intervals: millisecondIntervals(100),
|
|
435
|
+
};
|
|
436
|
+
const millisecondsUnlabelled = {
|
|
437
|
+
...milliseconds,
|
|
438
|
+
labeled: false,
|
|
439
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
440
|
+
};
|
|
441
|
+
const tenMillisecondsUnlabelled = {
|
|
442
|
+
...tenMilliseconds,
|
|
443
|
+
labeled: false,
|
|
444
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
445
|
+
};
|
|
446
|
+
const hundredMillisecondsUnlabelled = {
|
|
447
|
+
...hundredMilliseconds,
|
|
448
|
+
labeled: false,
|
|
449
|
+
minimumTickPixelDistance: unlabeledGridMinimumPixelDistance,
|
|
450
|
+
};
|
|
451
|
+
const allRasters = [
|
|
547
452
|
decades,
|
|
548
453
|
yearsUnlabelled,
|
|
549
454
|
years,
|
|
@@ -579,7 +484,7 @@ var continuousTimeRasters = function (_a, timeZone) {
|
|
|
579
484
|
millisecondsUnlabelled,
|
|
580
485
|
milliseconds,
|
|
581
486
|
];
|
|
582
|
-
|
|
487
|
+
const replacements = [
|
|
583
488
|
[decadesUnlabelled, new Map([])],
|
|
584
489
|
[decades, new Map([[decadesUnlabelled, []]])],
|
|
585
490
|
[
|
|
@@ -695,32 +600,20 @@ var continuousTimeRasters = function (_a, timeZone) {
|
|
|
695
600
|
]),
|
|
696
601
|
],
|
|
697
602
|
];
|
|
698
|
-
return
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
layers.add(layer);
|
|
706
|
-
else
|
|
707
|
-
break;
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
711
|
-
finally {
|
|
712
|
-
try {
|
|
713
|
-
if (allRasters_1_1 && !allRasters_1_1.done && (_a = allRasters_1.return)) _a.call(allRasters_1);
|
|
714
|
-
}
|
|
715
|
-
finally { if (e_4) throw e_4.error; }
|
|
603
|
+
return (filter) => {
|
|
604
|
+
let layers = new Set();
|
|
605
|
+
for (const layer of allRasters) {
|
|
606
|
+
if (filter(layer))
|
|
607
|
+
layers.add(layer);
|
|
608
|
+
else
|
|
609
|
+
break;
|
|
716
610
|
}
|
|
717
|
-
replacements.forEach(
|
|
718
|
-
var _b = __read(_a, 2), key = _b[0], ruleMap = _b[1];
|
|
611
|
+
replacements.forEach(([key, ruleMap]) => {
|
|
719
612
|
if (layers.has(key)) {
|
|
720
|
-
layers = new Set(
|
|
613
|
+
layers = new Set([...layers].flatMap((l) => { var _a; return (_a = ruleMap.get(l)) !== null && _a !== void 0 ? _a : l; }));
|
|
721
614
|
}
|
|
722
615
|
});
|
|
723
|
-
return
|
|
616
|
+
return [...layers].reverse();
|
|
724
617
|
};
|
|
725
618
|
};
|
|
726
619
|
exports.continuousTimeRasters = continuousTimeRasters;
|