@splunk/visualizations 24.7.0 → 25.0.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/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_ChoroplethTooltip.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_ChoroplethTooltip_with_additional_fields.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_choropleth_layer.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Background_Color_grey.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Basic_Bubble.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Max_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Method_area_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Method_diameter.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Min_40.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_0_Number_of_Results_30.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_10_Number_of_Results_30.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_3a_invalid_Number_of_Results_30.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_50_Number_of_Results_30.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_Extend_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Extend_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Major_Grid_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_negative_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_negative_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Visibility_and_Y_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Line_Visibility_hide_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Interval_6.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Size_15_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Maximum_Number_14.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Minimum_Number_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Minor_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Abbreviation_auto_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Abbreviation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Interval_150.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Size_15_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Maximum_Number_1500.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minimum_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minor_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_and_X_Axis_Title_Text_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_and_X_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Multiple_Overlay_Fields_with_space_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Overlay_Field_with_space_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y2_Axis_Mapped_Field_With_Space_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_Opacities_scaled_to_be_less_than_max_of_0_8.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_Result_Limit_Set_To_1.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_String_GeoJson_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_With_additional_fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Background_Color_af575a.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Basic_Markdown.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Begin_with_Text_Instead_of_Header.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Color_purple.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Size_extraLarge.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Background_Color_grey.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Basic_Scatter.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Marker_Size_7.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_Extend_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Extend_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Major_Grid_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_negative_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_negative_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Visibility_and_Y_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Line_Visibility_hide_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Interval_6.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Size_15_X_Axis_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Maximum_Number_14.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Minimum_Number_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Minor_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Title_Text_and_Y_Axis_Title_Text_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Title_Text_and_Y_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Interval_150.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Size_15_Y_Axis_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Maximum_Number_1000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Minimum_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Minor_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Change_Icon_Color_For_A_Remote_Icon.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_The_Icon_As_A_Remote_Icon.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_the_backgroundColor_based_on_the_majorValue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_the_icon_color_based_on_the_majorValue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_the_majorColor_based_on_the_majorValue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Mixed_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Time_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Background_From_Major_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Background_From_Trend_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Major_Value_Color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Major_Value_Color_By_Trend_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Max_Value_1000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Radial_Color_By_Major_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Change_The_Color_Of_Major_Value_Based_On_Its_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Background_Color_Based_On_The_Major_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Background_Color_Based_On_The_Trend_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Color_Of_Major_Value_Based_On_The_Trend_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Color_Of_The_Trend_Indicators_And_Number_Based_On_The_Trend_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Major_Value_Based_On_String_Type_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Trend_Index_Out_Of_Range.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Mixed_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Time_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Right.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Width_Auto_Expand_Last_Column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Monospace.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number_Adv.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Formatting.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Zone_Time_Formatting.png +0 -0
- package/Area.config.js +1119 -241
- package/Area.config.js.map +1 -1
- package/Area.js +1241 -402
- package/Area.js.map +1 -1
- package/Bar.config.js +1089 -153
- package/Bar.config.js.map +1 -1
- package/Bar.js +1262 -365
- package/Bar.js.map +1 -1
- package/Bubble.config.js +702 -60
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +806 -203
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +62 -38
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +168 -178
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +1059 -170
- package/Column.config.js.map +1 -1
- package/Column.js +1234 -384
- package/Column.js.map +1 -1
- package/Ellipse.config.js +55 -31
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +135 -145
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +67 -43
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +157 -172
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +52 -25
- package/Image.config.js.map +1 -1
- package/Image.js +132 -140
- package/Image.js.map +1 -1
- package/Line.config.js +1035 -108
- package/Line.config.js.map +1 -1
- package/Line.js +1199 -311
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +78 -58
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +179 -194
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +787 -78
- package/Map.config.js.map +1 -1
- package/Map.js +846 -352
- package/Map.js.map +1 -1
- package/Markdown.config.js +73 -48
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +271 -259
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +77 -50
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +2079 -1987
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +75 -48
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +166 -181
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +77 -50
- package/Pie.config.js.map +1 -1
- package/Pie.js +1139 -1042
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +76 -49
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +196 -211
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +83 -56
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +256 -264
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +82 -55
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +190 -205
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +790 -135
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +1072 -485
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +85 -56
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +415 -411
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +37 -25
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +81 -57
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +195 -211
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +80 -51
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +342 -338
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +56 -36
- package/Table.config.js.map +1 -1
- package/Table.js +1610 -1553
- package/Table.js.map +1 -1
- package/common/Charting.js +10 -10
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +2 -2
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +3 -3
- package/common/EventsDoc.js.map +1 -1
- package/common/OptionsDoc.js +49 -21
- package/common/OptionsDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/ThemesDoc.js +2 -2
- package/common/chartingUtils.js +2 -2
- package/common/gaugeUtils.js +2 -2
- package/common/utils/configUtils.js +30 -4
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/hocUtils.js +26 -56
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +4 -2
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +8 -8
- package/common/utils/testHelper.js.map +1 -1
- package/common/withDashboardViz.js +32 -68
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +11 -11
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Maximum_Number_800.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minimum_Number_300.png +0 -0
package/Map.config.js
CHANGED
|
@@ -87,24 +87,24 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 50);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
|
-
/******/ (
|
|
94
|
-
|
|
95
|
-
/***/ 0:
|
|
93
|
+
/******/ ([
|
|
94
|
+
/* 0 */
|
|
96
95
|
/***/ (function(module, exports) {
|
|
97
96
|
|
|
98
97
|
module.exports = require("@splunk/ui-utils/i18n");
|
|
99
98
|
|
|
100
99
|
/***/ }),
|
|
101
|
-
|
|
102
|
-
/***/ 1:
|
|
100
|
+
/* 1 */
|
|
103
101
|
/***/ (function(module, exports, __webpack_require__) {
|
|
104
102
|
|
|
105
103
|
"use strict";
|
|
106
104
|
|
|
107
105
|
|
|
106
|
+
var _toConsumableArray = __webpack_require__(2);
|
|
107
|
+
|
|
108
108
|
var _defineProperty = __webpack_require__(6);
|
|
109
109
|
|
|
110
110
|
var __rest = this && this.__rest || function (s, e) {
|
|
@@ -123,13 +123,13 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
123
123
|
Object.defineProperty(exports, "__esModule", {
|
|
124
124
|
value: true
|
|
125
125
|
});
|
|
126
|
-
exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
126
|
+
exports.insertLayout = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
127
127
|
|
|
128
|
-
var lodash_1 = __webpack_require__(
|
|
128
|
+
var lodash_1 = __webpack_require__(5);
|
|
129
129
|
|
|
130
|
-
var schemaUtils_1 = __webpack_require__(
|
|
130
|
+
var schemaUtils_1 = __webpack_require__(4);
|
|
131
131
|
|
|
132
|
-
var VizBehavior_1 = __webpack_require__(
|
|
132
|
+
var VizBehavior_1 = __webpack_require__(3);
|
|
133
133
|
|
|
134
134
|
var dynamicOptionsDSLType = {
|
|
135
135
|
type: 'string',
|
|
@@ -288,31 +288,33 @@ function generatePrecisionValues(numPrecisionValues) {
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
exports.generatePrecisionValues = generatePrecisionValues;
|
|
291
|
+
/**
|
|
292
|
+
* insert layout in layout array, return a new layout array instead of updating the original
|
|
293
|
+
*
|
|
294
|
+
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
295
|
+
* @param {Number} index - the index to insert layout item(s)
|
|
296
|
+
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
297
|
+
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
298
|
+
*/
|
|
291
299
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
module.exports = require("@splunk/visualization-icons");
|
|
298
|
-
|
|
299
|
-
/***/ }),
|
|
300
|
+
var insertLayout = function insertLayout(layout, index) {
|
|
301
|
+
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
302
|
+
layoutItems[_key - 2] = arguments[_key];
|
|
303
|
+
}
|
|
300
304
|
|
|
301
|
-
|
|
302
|
-
|
|
305
|
+
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
306
|
+
};
|
|
303
307
|
|
|
304
|
-
|
|
308
|
+
exports.insertLayout = insertLayout;
|
|
305
309
|
|
|
306
310
|
/***/ }),
|
|
307
|
-
|
|
308
|
-
/***/ 18:
|
|
311
|
+
/* 2 */
|
|
309
312
|
/***/ (function(module, exports) {
|
|
310
313
|
|
|
311
|
-
module.exports = require("@
|
|
314
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
312
315
|
|
|
313
316
|
/***/ }),
|
|
314
|
-
|
|
315
|
-
/***/ 2:
|
|
317
|
+
/* 3 */
|
|
316
318
|
/***/ (function(module, exports, __webpack_require__) {
|
|
317
319
|
|
|
318
320
|
"use strict";
|
|
@@ -349,22 +351,25 @@ var VizBehavior;
|
|
|
349
351
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
350
352
|
|
|
351
353
|
/***/ }),
|
|
352
|
-
|
|
353
|
-
/***/ 3:
|
|
354
|
+
/* 4 */
|
|
354
355
|
/***/ (function(module, exports) {
|
|
355
356
|
|
|
356
357
|
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
357
358
|
|
|
358
359
|
/***/ }),
|
|
359
|
-
|
|
360
|
-
/***/ 4:
|
|
360
|
+
/* 5 */
|
|
361
361
|
/***/ (function(module, exports) {
|
|
362
362
|
|
|
363
363
|
module.exports = require("lodash");
|
|
364
364
|
|
|
365
365
|
/***/ }),
|
|
366
|
+
/* 6 */
|
|
367
|
+
/***/ (function(module, exports) {
|
|
368
|
+
|
|
369
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
366
370
|
|
|
367
|
-
/***/
|
|
371
|
+
/***/ }),
|
|
372
|
+
/* 7 */
|
|
368
373
|
/***/ (function(module, exports, __webpack_require__) {
|
|
369
374
|
|
|
370
375
|
"use strict";
|
|
@@ -392,8 +397,69 @@ var VizCategory;
|
|
|
392
397
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
393
398
|
|
|
394
399
|
/***/ }),
|
|
400
|
+
/* 8 */,
|
|
401
|
+
/* 9 */,
|
|
402
|
+
/* 10 */
|
|
403
|
+
/***/ (function(module, exports) {
|
|
404
|
+
|
|
405
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
406
|
+
|
|
407
|
+
/***/ }),
|
|
408
|
+
/* 11 */
|
|
409
|
+
/***/ (function(module, exports) {
|
|
410
|
+
|
|
411
|
+
module.exports = require("@splunk/visualization-icons");
|
|
412
|
+
|
|
413
|
+
/***/ }),
|
|
414
|
+
/* 12 */
|
|
415
|
+
/***/ (function(module, exports) {
|
|
416
|
+
|
|
417
|
+
module.exports = require("@splunk/visualization-color-palettes");
|
|
418
|
+
|
|
419
|
+
/***/ }),
|
|
420
|
+
/* 13 */,
|
|
421
|
+
/* 14 */,
|
|
422
|
+
/* 15 */,
|
|
423
|
+
/* 16 */,
|
|
424
|
+
/* 17 */,
|
|
425
|
+
/* 18 */,
|
|
426
|
+
/* 19 */,
|
|
427
|
+
/* 20 */,
|
|
428
|
+
/* 21 */,
|
|
429
|
+
/* 22 */,
|
|
430
|
+
/* 23 */
|
|
431
|
+
/***/ (function(module, exports) {
|
|
432
|
+
|
|
433
|
+
module.exports = require("@splunk/themes");
|
|
395
434
|
|
|
396
|
-
/***/
|
|
435
|
+
/***/ }),
|
|
436
|
+
/* 24 */,
|
|
437
|
+
/* 25 */,
|
|
438
|
+
/* 26 */,
|
|
439
|
+
/* 27 */,
|
|
440
|
+
/* 28 */,
|
|
441
|
+
/* 29 */,
|
|
442
|
+
/* 30 */,
|
|
443
|
+
/* 31 */,
|
|
444
|
+
/* 32 */,
|
|
445
|
+
/* 33 */,
|
|
446
|
+
/* 34 */,
|
|
447
|
+
/* 35 */,
|
|
448
|
+
/* 36 */,
|
|
449
|
+
/* 37 */,
|
|
450
|
+
/* 38 */,
|
|
451
|
+
/* 39 */,
|
|
452
|
+
/* 40 */,
|
|
453
|
+
/* 41 */,
|
|
454
|
+
/* 42 */,
|
|
455
|
+
/* 43 */,
|
|
456
|
+
/* 44 */,
|
|
457
|
+
/* 45 */,
|
|
458
|
+
/* 46 */,
|
|
459
|
+
/* 47 */,
|
|
460
|
+
/* 48 */,
|
|
461
|
+
/* 49 */,
|
|
462
|
+
/* 50 */
|
|
397
463
|
/***/ (function(module, exports, __webpack_require__) {
|
|
398
464
|
|
|
399
465
|
"use strict";
|
|
@@ -403,24 +469,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
403
469
|
value: true
|
|
404
470
|
});
|
|
405
471
|
|
|
406
|
-
var visualization_icons_1 = __webpack_require__(
|
|
472
|
+
var visualization_icons_1 = __webpack_require__(11);
|
|
407
473
|
|
|
408
|
-
var placeholders_1 = __webpack_require__(
|
|
474
|
+
var placeholders_1 = __webpack_require__(10);
|
|
409
475
|
|
|
410
|
-
var schemaUtils_1 = __webpack_require__(
|
|
476
|
+
var schemaUtils_1 = __webpack_require__(4);
|
|
411
477
|
|
|
412
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
478
|
+
var visualization_color_palettes_1 = __webpack_require__(12);
|
|
413
479
|
|
|
414
|
-
var themes_1 = __webpack_require__(
|
|
480
|
+
var themes_1 = __webpack_require__(23);
|
|
415
481
|
|
|
416
482
|
var i18n_1 = __webpack_require__(0);
|
|
417
483
|
|
|
418
|
-
var VizBehavior_1 = __webpack_require__(
|
|
484
|
+
var VizBehavior_1 = __webpack_require__(3);
|
|
419
485
|
|
|
420
|
-
var VizCategory_1 = __webpack_require__(
|
|
486
|
+
var VizCategory_1 = __webpack_require__(7);
|
|
421
487
|
|
|
422
488
|
var configUtils_1 = __webpack_require__(1);
|
|
423
489
|
|
|
490
|
+
var MapUtils_1 = __webpack_require__(51);
|
|
491
|
+
|
|
424
492
|
var defaultContext = {
|
|
425
493
|
colorRangeConfig: [{
|
|
426
494
|
to: 20,
|
|
@@ -477,7 +545,7 @@ var optionsSchema = {
|
|
|
477
545
|
// The option merging of defaults and data binding with editing UI happens with the default defined below.
|
|
478
546
|
// The inner defaults for properties within anyOf objects is used only for code intellisense in UDF to populate options.
|
|
479
547
|
default: [{
|
|
480
|
-
type:
|
|
548
|
+
type: MapUtils_1.LAYER_TYPE.Bubble,
|
|
481
549
|
latitude: '> primary | seriesByName("latitude")',
|
|
482
550
|
longitude: '> primary | seriesByName("longitude")',
|
|
483
551
|
seriesColors: visualization_color_palettes_1.VIZ_CATEGORICAL,
|
|
@@ -485,12 +553,19 @@ var optionsSchema = {
|
|
|
485
553
|
additionalTooltipFields: [],
|
|
486
554
|
resultLimit: 1000
|
|
487
555
|
}, {
|
|
488
|
-
type:
|
|
556
|
+
type: MapUtils_1.LAYER_TYPE.Marker,
|
|
489
557
|
latitude: '> primary | seriesByName("latitude")',
|
|
490
558
|
longitude: '> primary | seriesByName("longitude")',
|
|
491
559
|
seriesColors: visualization_color_palettes_1.VIZ_CATEGORICAL,
|
|
492
560
|
additionalTooltipFields: [],
|
|
493
561
|
resultLimit: 1000
|
|
562
|
+
}, {
|
|
563
|
+
type: MapUtils_1.LAYER_TYPE.Choropleth,
|
|
564
|
+
areaIds: '> primary | seriesByType("string")',
|
|
565
|
+
areaValues: '> primary | seriesByType("number")',
|
|
566
|
+
dataColors: '> areaValues | gradient()',
|
|
567
|
+
additionalTooltipFields: [],
|
|
568
|
+
resultLimit: 1000
|
|
494
569
|
}],
|
|
495
570
|
type: 'array',
|
|
496
571
|
description: 'Specify the optional data visualization layers over the base map. If empty, only the base map appears.',
|
|
@@ -499,13 +574,13 @@ var optionsSchema = {
|
|
|
499
574
|
type: 'object',
|
|
500
575
|
properties: {
|
|
501
576
|
type: {
|
|
502
|
-
description: 'Specify the type of data layer method to display points on the map. For example, “bubble
|
|
577
|
+
description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
|
|
503
578
|
type: 'string',
|
|
504
|
-
pattern: schemaUtils_1.getPattern([
|
|
505
|
-
default:
|
|
579
|
+
pattern: schemaUtils_1.getPattern([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
|
|
580
|
+
default: MapUtils_1.LAYER_TYPE.Marker
|
|
506
581
|
},
|
|
507
582
|
latitude: {
|
|
508
|
-
description: 'Specify a dataSource series to apply latitude coordinates for data points displayed on the map.',
|
|
583
|
+
description: 'Specify a dataSource series to apply latitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
|
|
509
584
|
type: ['string', 'array'],
|
|
510
585
|
items: {
|
|
511
586
|
type: 'number'
|
|
@@ -513,31 +588,78 @@ var optionsSchema = {
|
|
|
513
588
|
default: '> primary | seriesByName("latitude")'
|
|
514
589
|
},
|
|
515
590
|
longitude: {
|
|
516
|
-
description: 'Specify a dataSource series to apply longitude coordinates for data points displayed on the map.',
|
|
591
|
+
description: 'Specify a dataSource series to apply longitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
|
|
517
592
|
type: ['string', 'array'],
|
|
518
593
|
items: {
|
|
519
594
|
type: 'number'
|
|
520
595
|
},
|
|
521
596
|
default: '> primary | seriesByName("longitude")'
|
|
522
597
|
},
|
|
598
|
+
seriesColors: {
|
|
599
|
+
description: 'Specify the colors to use for data points. If the dataColors option is specified, the seriesColors option is ignored. The seriesColors option applies to layers where type: "bubble" or type: "marker".',
|
|
600
|
+
type: 'array',
|
|
601
|
+
items: {
|
|
602
|
+
type: 'string',
|
|
603
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
604
|
+
},
|
|
605
|
+
default: visualization_color_palettes_1.VIZ_CATEGORICAL
|
|
606
|
+
},
|
|
523
607
|
dataColors: {
|
|
524
|
-
description: 'Specify the colors
|
|
608
|
+
description: 'Specify the colors to use for data points. You can use an array of colors to be picked from, or you can use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. When type: "choropleth", dataColors is defined by default, and the opacities are shown at 80% of maximum to allow textual information to be visible in the map. By default, the dataColors option is not defined for type "bubble" or "marker".',
|
|
525
609
|
type: ['string', 'array'],
|
|
526
610
|
items: {
|
|
527
611
|
type: 'string'
|
|
528
612
|
}
|
|
529
613
|
},
|
|
530
|
-
|
|
531
|
-
description: 'Specify the
|
|
614
|
+
additionalTooltipFields: {
|
|
615
|
+
description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values are shown in addition to the ones displayed by default.',
|
|
532
616
|
type: 'array',
|
|
533
617
|
items: {
|
|
534
|
-
type: 'string'
|
|
535
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
618
|
+
type: 'string'
|
|
536
619
|
},
|
|
537
|
-
default:
|
|
620
|
+
default: []
|
|
621
|
+
},
|
|
622
|
+
resultLimit: {
|
|
623
|
+
description: 'Specify the maximum number of data points to render on the map. Adjust the value to improve performance.',
|
|
624
|
+
type: 'number',
|
|
625
|
+
default: 1000
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}, {
|
|
629
|
+
type: 'object',
|
|
630
|
+
properties: {
|
|
631
|
+
type: {
|
|
632
|
+
description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
|
|
633
|
+
type: 'string',
|
|
634
|
+
pattern: schemaUtils_1.getPattern([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
|
|
635
|
+
default: MapUtils_1.LAYER_TYPE.Choropleth
|
|
636
|
+
},
|
|
637
|
+
areaIds: {
|
|
638
|
+
description: 'Specify a dataSource series to identify each area in the choropleth map layer. This applies to layers where type: "choropleth".',
|
|
639
|
+
type: 'array',
|
|
640
|
+
items: {
|
|
641
|
+
type: 'string'
|
|
642
|
+
},
|
|
643
|
+
default: '> primary | seriesByType("string")'
|
|
644
|
+
},
|
|
645
|
+
areaValues: {
|
|
646
|
+
description: 'Specify a dataSource series that indicates the values for the choropleth map areas. This applies to layers where type: "choropleth".',
|
|
647
|
+
type: 'array',
|
|
648
|
+
items: {
|
|
649
|
+
type: 'number'
|
|
650
|
+
},
|
|
651
|
+
default: '> primary | seriesByType("number")'
|
|
652
|
+
},
|
|
653
|
+
dataColors: {
|
|
654
|
+
description: 'Specify the colors to use for data points. You can use an array of colors to be picked from, or you can use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. When type: "choropleth", dataColors is defined by default, and the opacities are shown at 80% of maximum to allow textual information to be visible in the map. By default, the dataColors option is not defined for type "bubble" or "marker".',
|
|
655
|
+
type: ['string', 'array'],
|
|
656
|
+
items: {
|
|
657
|
+
type: 'string'
|
|
658
|
+
},
|
|
659
|
+
default: '> areaValues | gradient()'
|
|
538
660
|
},
|
|
539
661
|
additionalTooltipFields: {
|
|
540
|
-
description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values
|
|
662
|
+
description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values are shown in addition to the ones displayed by default.',
|
|
541
663
|
type: 'array',
|
|
542
664
|
items: {
|
|
543
665
|
type: 'string'
|
|
@@ -554,10 +676,10 @@ var optionsSchema = {
|
|
|
554
676
|
type: 'object',
|
|
555
677
|
properties: {
|
|
556
678
|
type: {
|
|
557
|
-
description: 'Specify the type of data layer method to display points on the map. For example, “bubble
|
|
679
|
+
description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
|
|
558
680
|
type: 'string',
|
|
559
|
-
pattern: schemaUtils_1.getPattern([
|
|
560
|
-
default:
|
|
681
|
+
pattern: schemaUtils_1.getPattern([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
|
|
682
|
+
default: MapUtils_1.LAYER_TYPE.Bubble
|
|
561
683
|
},
|
|
562
684
|
bubbleSize: {
|
|
563
685
|
description: 'Specify the data column to encode bubble size. This applies to layers where type: "bubble".',
|
|
@@ -568,7 +690,7 @@ var optionsSchema = {
|
|
|
568
690
|
default: '> primary | frameWithoutSeriesNames("geobin", "latitude", "longitude") | frameBySeriesTypes("number")'
|
|
569
691
|
},
|
|
570
692
|
latitude: {
|
|
571
|
-
description: 'Specify a dataSource series to apply latitude coordinates for data points displayed on the map.',
|
|
693
|
+
description: 'Specify a dataSource series to apply latitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
|
|
572
694
|
type: ['string', 'array'],
|
|
573
695
|
items: {
|
|
574
696
|
type: 'number'
|
|
@@ -576,22 +698,15 @@ var optionsSchema = {
|
|
|
576
698
|
default: '> primary | seriesByName("latitude")'
|
|
577
699
|
},
|
|
578
700
|
longitude: {
|
|
579
|
-
description: 'Specify a dataSource series to apply longitude coordinates for data points displayed on the map.',
|
|
701
|
+
description: 'Specify a dataSource series to apply longitude coordinates for data points displayed on the map. This applies to layers where type: "bubble" or type: "marker".',
|
|
580
702
|
type: ['string', 'array'],
|
|
581
703
|
items: {
|
|
582
704
|
type: 'number'
|
|
583
705
|
},
|
|
584
706
|
default: '> primary | seriesByName("longitude")'
|
|
585
707
|
},
|
|
586
|
-
dataColors: {
|
|
587
|
-
description: 'Specify the colors used for data points. If specified, this option overrides the seriesColors option. You may use an array of colors to be picked from, or you may use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. ',
|
|
588
|
-
type: ['string', 'array'],
|
|
589
|
-
items: {
|
|
590
|
-
type: 'string'
|
|
591
|
-
}
|
|
592
|
-
},
|
|
593
708
|
seriesColors: {
|
|
594
|
-
description: 'Specify the colors
|
|
709
|
+
description: 'Specify the colors to use for data points. If the dataColors option is specified, the seriesColors option is ignored. The seriesColors option applies to layers where type: "bubble" or type: "marker".',
|
|
595
710
|
type: 'array',
|
|
596
711
|
items: {
|
|
597
712
|
type: 'string',
|
|
@@ -599,8 +714,15 @@ var optionsSchema = {
|
|
|
599
714
|
},
|
|
600
715
|
default: visualization_color_palettes_1.VIZ_CATEGORICAL
|
|
601
716
|
},
|
|
717
|
+
dataColors: {
|
|
718
|
+
description: 'Specify the colors to use for data points. You can use an array of colors to be picked from, or you can use a dataSource to apply dynamic coloring. For example, “> primary | seriesByName("status") | matchValue(colorMatchConfig)”. When type: "choropleth", dataColors is defined by default, and the opacities are shown at 80% of maximum to allow textual information to be visible in the map. By default, the dataColors option is not defined for type "bubble" or "marker".',
|
|
719
|
+
type: ['string', 'array'],
|
|
720
|
+
items: {
|
|
721
|
+
type: 'string'
|
|
722
|
+
}
|
|
723
|
+
},
|
|
602
724
|
additionalTooltipFields: {
|
|
603
|
-
description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values
|
|
725
|
+
description: 'Specify the fields to add to the default set of tooltips. Tooltips appear when you hover over data points. These fields and their corresponding values are shown in addition to the ones displayed by default.',
|
|
604
726
|
type: 'array',
|
|
605
727
|
items: {
|
|
606
728
|
type: 'string'
|
|
@@ -673,6 +795,11 @@ var themes = {
|
|
|
673
795
|
})(props);
|
|
674
796
|
}
|
|
675
797
|
};
|
|
798
|
+
|
|
799
|
+
var checkTypeIsChoropleth = function checkTypeIsChoropleth(options) {
|
|
800
|
+
return options.layers && options.layers.length && options.layers[0].type === MapUtils_1.LAYER_TYPE.Choropleth;
|
|
801
|
+
};
|
|
802
|
+
|
|
676
803
|
var editorConfig = [{
|
|
677
804
|
label: i18n_1._('Data Layer Formatting'),
|
|
678
805
|
layout: [[{
|
|
@@ -682,16 +809,49 @@ var editorConfig = [{
|
|
|
682
809
|
editorProps: {
|
|
683
810
|
values: [{
|
|
684
811
|
label: i18n_1._('Marker'),
|
|
685
|
-
value:
|
|
812
|
+
value: MapUtils_1.LAYER_TYPE.Marker
|
|
686
813
|
}, {
|
|
687
814
|
label: i18n_1._('Bubble'),
|
|
688
|
-
value:
|
|
815
|
+
value: MapUtils_1.LAYER_TYPE.Bubble
|
|
816
|
+
}, {
|
|
817
|
+
label: i18n_1._('Choropleth'),
|
|
818
|
+
value: MapUtils_1.LAYER_TYPE.Choropleth
|
|
689
819
|
}]
|
|
690
820
|
}
|
|
821
|
+
}], [{
|
|
822
|
+
label: i18n_1._('Region Area IDs'),
|
|
823
|
+
option: 'layers[0].areaIds',
|
|
824
|
+
editor: 'editor.columnSelector',
|
|
825
|
+
showEditor: function showEditor(_ref) {
|
|
826
|
+
var options = _ref.options;
|
|
827
|
+
return checkTypeIsChoropleth(options);
|
|
828
|
+
},
|
|
829
|
+
editorProps: {
|
|
830
|
+
dataSourceKey: 'primary',
|
|
831
|
+
shouldShowInternalFields: false,
|
|
832
|
+
filterByTypes: ['string']
|
|
833
|
+
}
|
|
834
|
+
}], [{
|
|
835
|
+
label: i18n_1._('Values'),
|
|
836
|
+
option: 'layers[0].areaValues',
|
|
837
|
+
editor: 'editor.columnSelector',
|
|
838
|
+
showEditor: function showEditor(_ref2) {
|
|
839
|
+
var options = _ref2.options;
|
|
840
|
+
return checkTypeIsChoropleth(options);
|
|
841
|
+
},
|
|
842
|
+
editorProps: {
|
|
843
|
+
dataSourceKey: 'primary',
|
|
844
|
+
shouldShowInternalFields: false,
|
|
845
|
+
filterByTypes: ['number']
|
|
846
|
+
}
|
|
691
847
|
}], [{
|
|
692
848
|
label: i18n_1._('Latitude'),
|
|
693
849
|
option: 'layers[0].latitude',
|
|
694
850
|
editor: 'editor.columnSelector',
|
|
851
|
+
showEditor: function showEditor(_ref3) {
|
|
852
|
+
var options = _ref3.options;
|
|
853
|
+
return !(options.layers && options.layers.length && options.layers[0].type === 'choropleth');
|
|
854
|
+
},
|
|
695
855
|
editorProps: {
|
|
696
856
|
dataSourceKey: 'primary',
|
|
697
857
|
shouldShowInternalFields: false
|
|
@@ -700,6 +860,10 @@ var editorConfig = [{
|
|
|
700
860
|
label: i18n_1._('Longitude'),
|
|
701
861
|
option: 'layers[0].longitude',
|
|
702
862
|
editor: 'editor.columnSelector',
|
|
863
|
+
showEditor: function showEditor(_ref4) {
|
|
864
|
+
var options = _ref4.options;
|
|
865
|
+
return !(options.layers && options.layers.length && options.layers[0].type === 'choropleth');
|
|
866
|
+
},
|
|
703
867
|
editorProps: {
|
|
704
868
|
dataSourceKey: 'primary',
|
|
705
869
|
shouldShowInternalFields: false
|
|
@@ -708,9 +872,9 @@ var editorConfig = [{
|
|
|
708
872
|
label: i18n_1._('Size'),
|
|
709
873
|
option: 'layers[0].bubbleSize',
|
|
710
874
|
editor: 'editor.columnMultiSelector',
|
|
711
|
-
showEditor: function showEditor(
|
|
712
|
-
var options =
|
|
713
|
-
return !(options.layers && options.layers.length && options.layers[0].type === 'marker');
|
|
875
|
+
showEditor: function showEditor(_ref5) {
|
|
876
|
+
var options = _ref5.options;
|
|
877
|
+
return !(options.layers && options.layers.length && (options.layers[0].type === 'marker' || options.layers[0].type === 'choropleth'));
|
|
714
878
|
},
|
|
715
879
|
editorProps: {
|
|
716
880
|
dataSourceKey: 'primary',
|
|
@@ -761,20 +925,565 @@ var config = {
|
|
|
761
925
|
exports.default = configUtils_1.enhanceConfig(config);
|
|
762
926
|
|
|
763
927
|
/***/ }),
|
|
928
|
+
/* 51 */
|
|
929
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
930
|
+
|
|
931
|
+
"use strict";
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
var _defineProperty = __webpack_require__(6);
|
|
935
|
+
|
|
936
|
+
var _slicedToArray = __webpack_require__(52);
|
|
937
|
+
|
|
938
|
+
var _toConsumableArray = __webpack_require__(2);
|
|
939
|
+
|
|
940
|
+
Object.defineProperty(exports, "__esModule", {
|
|
941
|
+
value: true
|
|
942
|
+
});
|
|
943
|
+
exports.formatMetadata = exports.compareBaseStyles = exports.getScaledOpacities = exports.getGlobalLayerBoundaries = exports.isValidLatLon = exports.bakeBubbleData = exports.sanitizeValues = exports.transposeArray = exports.matchBubbleSize = exports.getStaticColors = exports.getZoomLevelFromGeobin = exports.getZoomConstraintsFromTileConfig = exports.getMapStyle = exports.getTilePreset = exports.LAYER_TYPE = exports.DEFAULT_OPACITY = exports.MAX_BUBBLE_RADIUS = exports.MIN_BUBBLE_RADIUS = exports.MAP_STYLE_VERSION_NUMBER = exports.DEFAULT_SERIES_COLORS = exports.DEFAULT_CLUSTER_COLOR = exports.DEFAULT_RESULT_LIMIT = exports.MIN_LONGITUDE = exports.MAX_LONGITUDE = exports.MIN_LATITUDE = exports.MAX_LATITUDE = void 0;
|
|
944
|
+
|
|
945
|
+
var lodash_1 = __webpack_require__(5);
|
|
946
|
+
|
|
947
|
+
var d3_scale_1 = __webpack_require__(53);
|
|
948
|
+
|
|
949
|
+
var chroma = __webpack_require__(54);
|
|
950
|
+
|
|
951
|
+
var colorUtils_1 = __webpack_require__(55);
|
|
952
|
+
|
|
953
|
+
var visualization_color_palettes_1 = __webpack_require__(12);
|
|
954
|
+
|
|
955
|
+
exports.MAX_LATITUDE = 90;
|
|
956
|
+
exports.MIN_LATITUDE = -90;
|
|
957
|
+
exports.MAX_LONGITUDE = 180;
|
|
958
|
+
exports.MIN_LONGITUDE = -180;
|
|
959
|
+
exports.DEFAULT_RESULT_LIMIT = 1000;
|
|
960
|
+
exports.DEFAULT_CLUSTER_COLOR = '#909090';
|
|
961
|
+
exports.DEFAULT_SERIES_COLORS = visualization_color_palettes_1.VIZ_CATEGORICAL; // MapLibre requires a map style specification number which is always 8
|
|
962
|
+
|
|
963
|
+
exports.MAP_STYLE_VERSION_NUMBER = 8; // currently using one [min, max] value set for bubbles across all zoom levels
|
|
964
|
+
// TODO: design choices on [min, max] bubble size for different zoom levels
|
|
965
|
+
|
|
966
|
+
exports.MIN_BUBBLE_RADIUS = 7.11; // 10px
|
|
967
|
+
|
|
968
|
+
exports.MAX_BUBBLE_RADIUS = 45.26; // 85px
|
|
969
|
+
|
|
970
|
+
exports.DEFAULT_OPACITY = 0.8;
|
|
971
|
+
var LONGITUDE = 'longitude';
|
|
972
|
+
var LATITUDE = 'latitude';
|
|
973
|
+
var LAYER_TYPE;
|
|
974
|
+
|
|
975
|
+
(function (LAYER_TYPE) {
|
|
976
|
+
LAYER_TYPE["Marker"] = "marker";
|
|
977
|
+
LAYER_TYPE["Bubble"] = "bubble";
|
|
978
|
+
LAYER_TYPE["Choropleth"] = "choropleth";
|
|
979
|
+
})(LAYER_TYPE = exports.LAYER_TYPE || (exports.LAYER_TYPE = {}));
|
|
980
|
+
/**
|
|
981
|
+
* Construct a tile preset {key: config} by combining the default + custom tile configs
|
|
982
|
+
* Also returns the default tile config for each theme - light/dark
|
|
983
|
+
* @param {MapContextInterface} args
|
|
984
|
+
* @param {BaseTileConfig[]} args.defaultTileConfig
|
|
985
|
+
* @param {BaseTileConfig[]} args.customTileConfig
|
|
986
|
+
* @returns {Object} tile preset
|
|
987
|
+
*/
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
var getTilePreset = function getTilePreset(_ref) {
|
|
991
|
+
var _ref$defaultTileConfi = _ref.defaultTileConfig,
|
|
992
|
+
defaultTileConfig = _ref$defaultTileConfi === void 0 ? [] : _ref$defaultTileConfi,
|
|
993
|
+
_ref$customTileConfig = _ref.customTileConfig,
|
|
994
|
+
customTileConfig = _ref$customTileConfig === void 0 ? [] : _ref$customTileConfig;
|
|
995
|
+
|
|
996
|
+
var _a, _b;
|
|
997
|
+
|
|
998
|
+
var tilePreset = {};
|
|
999
|
+
var defaultTileLight = {};
|
|
1000
|
+
var defaultTileDark = {};
|
|
1001
|
+
var tileConfigs = [].concat(defaultTileConfig).concat(customTileConfig);
|
|
1002
|
+
lodash_1.forEach(tileConfigs, function (tileConfig) {
|
|
1003
|
+
var key = tileConfig === null || tileConfig === void 0 ? void 0 : tileConfig.key;
|
|
1004
|
+
var updatedConfig = Object.assign(Object.assign({
|
|
1005
|
+
theme: 'all'
|
|
1006
|
+
}, tileConfig), {
|
|
1007
|
+
version: exports.MAP_STYLE_VERSION_NUMBER
|
|
1008
|
+
});
|
|
1009
|
+
tilePreset[key] = updatedConfig;
|
|
1010
|
+
});
|
|
1011
|
+
|
|
1012
|
+
if (defaultTileConfig.length > 0) {
|
|
1013
|
+
defaultTileLight = (_a = defaultTileConfig.find(function (config) {
|
|
1014
|
+
return config.theme === 'light';
|
|
1015
|
+
})) !== null && _a !== void 0 ? _a : defaultTileConfig.find(function (config) {
|
|
1016
|
+
return config.theme === undefined;
|
|
1017
|
+
});
|
|
1018
|
+
defaultTileDark = (_b = defaultTileConfig.find(function (config) {
|
|
1019
|
+
return config.theme === 'dark';
|
|
1020
|
+
})) !== null && _b !== void 0 ? _b : defaultTileConfig.find(function (config) {
|
|
1021
|
+
return config.theme === undefined;
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
return {
|
|
1026
|
+
tilePreset: tilePreset,
|
|
1027
|
+
defaultTileLight: defaultTileLight,
|
|
1028
|
+
defaultTileDark: defaultTileDark
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
exports.getTilePreset = getTilePreset;
|
|
1033
|
+
/**
|
|
1034
|
+
* Check if baseLayerTileServer is in tilePreset and config matches current theme, if yes, return.
|
|
1035
|
+
* If no, construct a mapStyle with baseLayerTilerServer and baseLayerTileServerType
|
|
1036
|
+
* Else return default tile config based on current theme
|
|
1037
|
+
* @param {Object} args
|
|
1038
|
+
* @param {BaseTileConfig[]} args.tilePreset
|
|
1039
|
+
* @param {String} args.baseLayerTilerServer
|
|
1040
|
+
* @param {String} args.baseLayerTileServerType
|
|
1041
|
+
* @param {String} args.colorScheme
|
|
1042
|
+
* @param {BaseTileConfig} args.defaultTileDark
|
|
1043
|
+
* @param {BaseTileConfig} args.defaultTileLight
|
|
1044
|
+
* @returns {BaseTileConfig} mapStyle
|
|
1045
|
+
*/
|
|
1046
|
+
|
|
1047
|
+
var getMapStyle = function getMapStyle(_ref2) {
|
|
1048
|
+
var _ref2$baseLayerTileSe = _ref2.baseLayerTileServer,
|
|
1049
|
+
baseLayerTileServer = _ref2$baseLayerTileSe === void 0 ? '' : _ref2$baseLayerTileSe,
|
|
1050
|
+
_ref2$baseLayerTileSe2 = _ref2.baseLayerTileServerType,
|
|
1051
|
+
baseLayerTileServerType = _ref2$baseLayerTileSe2 === void 0 ? '' : _ref2$baseLayerTileSe2,
|
|
1052
|
+
_ref2$tilePreset = _ref2.tilePreset,
|
|
1053
|
+
tilePreset = _ref2$tilePreset === void 0 ? {} : _ref2$tilePreset,
|
|
1054
|
+
_ref2$colorScheme = _ref2.colorScheme,
|
|
1055
|
+
colorScheme = _ref2$colorScheme === void 0 ? 'light' : _ref2$colorScheme,
|
|
1056
|
+
_ref2$defaultTileLigh = _ref2.defaultTileLight,
|
|
1057
|
+
defaultTileLight = _ref2$defaultTileLigh === void 0 ? {} : _ref2$defaultTileLigh,
|
|
1058
|
+
_ref2$defaultTileDark = _ref2.defaultTileDark,
|
|
1059
|
+
defaultTileDark = _ref2$defaultTileDark === void 0 ? {} : _ref2$defaultTileDark;
|
|
1060
|
+
|
|
1061
|
+
if (baseLayerTileServer && tilePreset[baseLayerTileServer] && (tilePreset[baseLayerTileServer].theme === colorScheme || tilePreset[baseLayerTileServer].theme === 'all')) {
|
|
1062
|
+
return tilePreset[baseLayerTileServer];
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
if (baseLayerTileServer && baseLayerTileServerType) {
|
|
1066
|
+
var tiles = [];
|
|
1067
|
+
/**
|
|
1068
|
+
* Tile Server URLs (eg: http://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png) can specify the variable {s} which refers to a subdomain
|
|
1069
|
+
* Subdomains are used to help with browser parallel requests per domain limitation. These subdomains are typically single letters 'a', 'b' and 'c'
|
|
1070
|
+
* Refer to https://leafletjs.com/SlavaUkraini/reference.html#tilelayer and https://wiki.openstreetmap.org/wiki/Tile_servers
|
|
1071
|
+
*/
|
|
1072
|
+
|
|
1073
|
+
if (baseLayerTileServer.match(/^(https?):\/\/{(s|S)}\../)) {
|
|
1074
|
+
/**
|
|
1075
|
+
* sXML (Leaflet) allows users to define their own tile server URLs + list of available subdomains
|
|
1076
|
+
* In order to preserve this behavior during conversion to splunk.map,
|
|
1077
|
+
* if the variable {s} or {S} is detected, replace it with 'a', 'b' and 'c' - default values for subdomains
|
|
1078
|
+
* TODO: in the future, add an additional prop - baseLayerTileServerSubdomains: ['x', 'y', 'z'], default being ['a', 'b', 'c']
|
|
1079
|
+
*/
|
|
1080
|
+
tiles = [baseLayerTileServer.replace(/{(s|S)}/, 'a'), baseLayerTileServer.replace(/{(s|S)}/, 'b'), baseLayerTileServer.replace(/{(s|S)}/, 'c')];
|
|
1081
|
+
} else {
|
|
1082
|
+
tiles = [baseLayerTileServer];
|
|
1083
|
+
} // TODO: remove hardcoded style when we allow users to pass in layer style through Viz options
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
var mapStyle = {
|
|
1087
|
+
version: exports.MAP_STYLE_VERSION_NUMBER,
|
|
1088
|
+
sources: {
|
|
1089
|
+
'base-tiles': {
|
|
1090
|
+
type: baseLayerTileServerType,
|
|
1091
|
+
tiles: tiles,
|
|
1092
|
+
tileSize: 256
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
layers: [{
|
|
1096
|
+
id: 'base-layer',
|
|
1097
|
+
type: 'raster',
|
|
1098
|
+
source: 'base-tiles',
|
|
1099
|
+
minzoom: 0,
|
|
1100
|
+
maxzoom: 10
|
|
1101
|
+
}]
|
|
1102
|
+
};
|
|
1103
|
+
return mapStyle;
|
|
1104
|
+
} // if tile server is not present in the preset AND we can't construct a mapStyle, fall back on defaults
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
return colorScheme === 'light' ? defaultTileLight : defaultTileDark;
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
exports.getMapStyle = getMapStyle;
|
|
1111
|
+
|
|
1112
|
+
var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig(tileConfig) {
|
|
1113
|
+
var sources = tileConfig.sources,
|
|
1114
|
+
layers = tileConfig.layers; // check sources for minzoom maxzoom first
|
|
1115
|
+
|
|
1116
|
+
var sourceKeys = Object.keys(sources);
|
|
1117
|
+
|
|
1118
|
+
for (var i = 0; i < sourceKeys.length; i += 1) {
|
|
1119
|
+
var _sources$sourceKeys$i = sources[sourceKeys[i]],
|
|
1120
|
+
minzoom = _sources$sourceKeys$i.minzoom,
|
|
1121
|
+
maxzoom = _sources$sourceKeys$i.maxzoom;
|
|
1122
|
+
|
|
1123
|
+
if (lodash_1.isNumber(minzoom) && lodash_1.isNumber(maxzoom)) {
|
|
1124
|
+
return {
|
|
1125
|
+
minZoom: minzoom,
|
|
1126
|
+
maxZoom: maxzoom
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
} // then check layers
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
for (var _i = 0; _i < layers.length; _i += 1) {
|
|
1133
|
+
var _layers$_i = layers[_i],
|
|
1134
|
+
_minzoom = _layers$_i.minzoom,
|
|
1135
|
+
_maxzoom = _layers$_i.maxzoom;
|
|
1136
|
+
|
|
1137
|
+
if (lodash_1.isNumber(_minzoom) && lodash_1.isNumber(_maxzoom)) {
|
|
1138
|
+
return {
|
|
1139
|
+
minZoom: _minzoom,
|
|
1140
|
+
maxZoom: _maxzoom
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
} // Maplibre default - would reset previous min/maxZoom
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
return {
|
|
1147
|
+
minZoom: 0,
|
|
1148
|
+
maxZoom: 22
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
exports.getZoomConstraintsFromTileConfig = getZoomConstraintsFromTileConfig;
|
|
1153
|
+
|
|
1154
|
+
var getZoomLevelFromGeobin = function getZoomLevelFromGeobin(geobinStr) {
|
|
1155
|
+
var _a;
|
|
1156
|
+
|
|
1157
|
+
if (!geobinStr) {
|
|
1158
|
+
return null;
|
|
1159
|
+
} // geostats cmds return geobin with zoom level 0-18, 0-99 in the geobinPattern covers the range
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
var geobinPattern = /bin_id_zl_([0-9]{0,2})?_y_/g;
|
|
1163
|
+
var match = geobinPattern.exec(geobinStr);
|
|
1164
|
+
return (_a = (match === null || match === void 0 ? void 0 : match.length) && parseInt(match[1], 10)) !== null && _a !== void 0 ? _a : null;
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
exports.getZoomLevelFromGeobin = getZoomLevelFromGeobin; // Bubble colors - static
|
|
1168
|
+
|
|
1169
|
+
var getStaticColors = function getStaticColors(colorCount, colorArray) {
|
|
1170
|
+
if (colorCount < 0 || !colorCount) {
|
|
1171
|
+
return [exports.DEFAULT_CLUSTER_COLOR];
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
if (!colorArray || !colorArray.length) {
|
|
1175
|
+
return _toConsumableArray(Array(colorCount).keys()).map(function (i) {
|
|
1176
|
+
return exports.DEFAULT_SERIES_COLORS[i];
|
|
1177
|
+
});
|
|
1178
|
+
} // loop through colorArray to pick the first $colorCount colors
|
|
1179
|
+
// start from begining again if colorCount > colorArray.length
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
return _toConsumableArray(Array(colorCount).keys()).map(function (i) {
|
|
1183
|
+
return colorUtils_1.isColor(colorArray[i % colorArray.length]) ? colorArray[i % colorArray.length] : exports.DEFAULT_CLUSTER_COLOR;
|
|
1184
|
+
});
|
|
1185
|
+
};
|
|
1186
|
+
|
|
1187
|
+
exports.getStaticColors = getStaticColors; // Bubble size
|
|
1188
|
+
|
|
1189
|
+
var matchBubbleSize = function matchBubbleSize(dataRange, data) {
|
|
1190
|
+
var size = d3_scale_1.scalePow().exponent(0.2).domain(dataRange).range([exports.MIN_BUBBLE_RADIUS, exports.MAX_BUBBLE_RADIUS])(data);
|
|
1191
|
+
|
|
1192
|
+
if (size > exports.MAX_BUBBLE_RADIUS) {
|
|
1193
|
+
return exports.MAX_BUBBLE_RADIUS;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
if (size < exports.MIN_BUBBLE_RADIUS) {
|
|
1197
|
+
return exports.MIN_BUBBLE_RADIUS;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
return size;
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
exports.matchBubbleSize = matchBubbleSize;
|
|
1204
|
+
|
|
1205
|
+
var transposeArray = function transposeArray(array) {
|
|
1206
|
+
if (!array || !array.length || !array[0] || !array[0].length) {
|
|
1207
|
+
return [];
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
return array[0].map(function (_, i) {
|
|
1211
|
+
return array.map(function (row) {
|
|
1212
|
+
return row[i];
|
|
1213
|
+
});
|
|
1214
|
+
});
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
exports.transposeArray = transposeArray; // sanitize values: update all null, undefined, or negative values to 0
|
|
1218
|
+
|
|
1219
|
+
var sanitizeValues = function sanitizeValues(values) {
|
|
1220
|
+
// null / undefined
|
|
1221
|
+
if (!values) {
|
|
1222
|
+
return 0;
|
|
1223
|
+
} // number
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
if (!Array.isArray(values)) {
|
|
1227
|
+
return values > 0 ? values : 0;
|
|
1228
|
+
} // array
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
return values.map(function (arr) {
|
|
1232
|
+
return exports.sanitizeValues(arr);
|
|
1233
|
+
});
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
exports.sanitizeValues = sanitizeValues;
|
|
1237
|
+
|
|
1238
|
+
var bakeBubbleData = function bakeBubbleData(layer) {
|
|
1239
|
+
var _a;
|
|
1240
|
+
|
|
1241
|
+
if (!layer || !((_a = layer.bubbleSize) === null || _a === void 0 ? void 0 : _a.length) || !layer.geobin || !layer.geobin.length || !layer.latitude || !layer.latitude.length || !layer.longitude || !layer.longitude.length) {
|
|
1242
|
+
return null;
|
|
1243
|
+
} // if bubbleSize is passed as an array of single number array (data series)
|
|
1244
|
+
// e.g. [value0, value1, ...]
|
|
1245
|
+
// format each value as an array to unify data operations for data series and frames
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
var sanitizedBubbleSize = exports.sanitizeValues(layer.bubbleSize);
|
|
1249
|
+
var transposedBubbleSize;
|
|
1250
|
+
var transposedSanitizedBubbleSize;
|
|
1251
|
+
var isPie = false; // format array if bubbleSize is passed as an array of array (data frame)
|
|
1252
|
+
|
|
1253
|
+
if (Array.isArray(layer.bubbleSize[0])) {
|
|
1254
|
+
// one-time array transpose,
|
|
1255
|
+
// e.g. from [column0data, column0data] (multi series)
|
|
1256
|
+
// to [[column0datum0, column1datum0], [column0datum1, column1data1], ...]
|
|
1257
|
+
// or e.g. from [column0data] (single series)
|
|
1258
|
+
// to [[column0data]]
|
|
1259
|
+
// for easy access of values at each geo location,
|
|
1260
|
+
// and min max pie size computation
|
|
1261
|
+
transposedBubbleSize = exports.transposeArray(layer.bubbleSize);
|
|
1262
|
+
transposedSanitizedBubbleSize = exports.transposeArray(sanitizedBubbleSize); // if multiple series in the dataframe, set isPie to true
|
|
1263
|
+
|
|
1264
|
+
if (layer.bubbleSize.length > 1) {
|
|
1265
|
+
isPie = true;
|
|
1266
|
+
}
|
|
1267
|
+
} else {
|
|
1268
|
+
transposedBubbleSize = layer.bubbleSize.map(function (n) {
|
|
1269
|
+
return [n];
|
|
1270
|
+
});
|
|
1271
|
+
transposedSanitizedBubbleSize = sanitizedBubbleSize.map(function (n) {
|
|
1272
|
+
return [n];
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
if (!transposedBubbleSize || !transposedBubbleSize.length) {
|
|
1277
|
+
return null;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
var data = layer.latitude.map(function (lat, i) {
|
|
1281
|
+
return {
|
|
1282
|
+
zoom: exports.getZoomLevelFromGeobin(layer.geobin[i]),
|
|
1283
|
+
values: transposedBubbleSize[i],
|
|
1284
|
+
sanitizedValues: transposedSanitizedBubbleSize[i],
|
|
1285
|
+
coordinates: [layer.longitude[i], lat],
|
|
1286
|
+
metadata: layer.metadata ? layer.metadata[i] : {}
|
|
1287
|
+
};
|
|
1288
|
+
}).filter(function (d) {
|
|
1289
|
+
return Boolean(d.values);
|
|
1290
|
+
}); // compute the min/max value to encode min/max pie or bubble size
|
|
1291
|
+
|
|
1292
|
+
var min = lodash_1.sum(transposedSanitizedBubbleSize[0]);
|
|
1293
|
+
var max = lodash_1.sum(transposedSanitizedBubbleSize[1]);
|
|
1294
|
+
transposedSanitizedBubbleSize.forEach(function (row) {
|
|
1295
|
+
var bubbleSize = lodash_1.sum(row);
|
|
1296
|
+
max = bubbleSize > max ? bubbleSize : max;
|
|
1297
|
+
min = bubbleSize < min ? bubbleSize : min;
|
|
1298
|
+
});
|
|
1299
|
+
return {
|
|
1300
|
+
data: data,
|
|
1301
|
+
dataRange: [min, max],
|
|
1302
|
+
isPie: isPie,
|
|
1303
|
+
resultLimit: layer.resultLimit,
|
|
1304
|
+
bubbleSizeFields: layer.bubbleSizeFields
|
|
1305
|
+
};
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
exports.bakeBubbleData = bakeBubbleData;
|
|
1309
|
+
|
|
1310
|
+
var isValidLatLon = function isValidLatLon(latlon) {
|
|
1311
|
+
if (!latlon || !Array.isArray(latlon) || latlon.length !== 2) {
|
|
1312
|
+
return false;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
var _latlon = _slicedToArray(latlon, 2),
|
|
1316
|
+
lat = _latlon[0],
|
|
1317
|
+
lon = _latlon[1];
|
|
1318
|
+
|
|
1319
|
+
if (typeof lat !== 'number' || !(lat >= exports.MIN_LATITUDE && lat <= exports.MAX_LATITUDE)) {
|
|
1320
|
+
return false;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
if (typeof lon !== 'number' || !(lon >= exports.MIN_LONGITUDE && lon <= exports.MAX_LONGITUDE)) {
|
|
1324
|
+
return false;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
return true;
|
|
1328
|
+
};
|
|
1329
|
+
|
|
1330
|
+
exports.isValidLatLon = isValidLatLon;
|
|
1331
|
+
/**
|
|
1332
|
+
* Returns a list of all lat or lon coordinates used in a specified layer
|
|
1333
|
+
* @param {LayerType[]} layer
|
|
1334
|
+
* @param {string} field
|
|
1335
|
+
* @returns {number[]} list of lat coordinates or lon coordinates
|
|
1336
|
+
*/
|
|
1337
|
+
|
|
1338
|
+
var getLatOrLonCoordinates = function getLatOrLonCoordinates(layer, field) {
|
|
1339
|
+
var getClusterValues = function getClusterValues(clusterLayer) {
|
|
1340
|
+
return lodash_1.get(clusterLayer, field, []).slice(0, clusterLayer.type === LAYER_TYPE.Marker && clusterLayer.resultLimit ? clusterLayer.resultLimit : exports.DEFAULT_RESULT_LIMIT);
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
var getChoroplethValues = function getChoroplethValues(choroplethLayer) {
|
|
1344
|
+
var slicedGeomList = choroplethLayer.geom.slice(0, choroplethLayer.resultLimit);
|
|
1345
|
+
var flatCoordinates = slicedGeomList.flatMap(function (geomObject) {
|
|
1346
|
+
return geomObject.coordinates.flat(2);
|
|
1347
|
+
});
|
|
1348
|
+
return flatCoordinates.map(function (coord) {
|
|
1349
|
+
return coord[field === LONGITUDE ? 0 : 1];
|
|
1350
|
+
});
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
return layer.type === LAYER_TYPE.Choropleth ? getChoroplethValues(layer) : getClusterValues(layer);
|
|
1354
|
+
};
|
|
1355
|
+
/**
|
|
1356
|
+
* Returns the min and max LongLat pairs to determine the layer boundaries to fit all markers/bubbles
|
|
1357
|
+
* @param {LayerType[]} layers
|
|
1358
|
+
* @returns {LngLatBoundsLike}
|
|
1359
|
+
*/
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
var getGlobalLayerBoundaries = function getGlobalLayerBoundaries(layers) {
|
|
1363
|
+
var isLayerValid = function isLayerValid(field) {
|
|
1364
|
+
return layers.every(function (layer) {
|
|
1365
|
+
return layer[field] || layer.geom;
|
|
1366
|
+
});
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
var getDefaultMax = function getDefaultMax(field) {
|
|
1370
|
+
return field === LONGITUDE ? exports.MAX_LONGITUDE : exports.MAX_LATITUDE;
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
var getDefaultMin = function getDefaultMin(field) {
|
|
1374
|
+
return field === LONGITUDE ? exports.MIN_LONGITUDE : exports.MIN_LATITUDE;
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
if (!layers || !Array.isArray(layers) || !layers.length) {
|
|
1378
|
+
return null;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
var getMin = function getMin(field) {
|
|
1382
|
+
if (!isLayerValid(field)) {
|
|
1383
|
+
return getDefaultMin(field);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
return layers.reduce(function (prevVal, layer) {
|
|
1387
|
+
return lodash_1.min([prevVal].concat(_toConsumableArray(getLatOrLonCoordinates(layer, field))));
|
|
1388
|
+
}, getDefaultMax(field));
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
var getMax = function getMax(field) {
|
|
1392
|
+
if (!isLayerValid(field)) {
|
|
1393
|
+
return getDefaultMax(field);
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
return layers.reduce(function (prevVal, layer) {
|
|
1397
|
+
return lodash_1.max([prevVal].concat(_toConsumableArray(getLatOrLonCoordinates(layer, field))));
|
|
1398
|
+
}, getDefaultMin(field));
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
return [[getMin(LONGITUDE), getMin(LATITUDE)], [getMax(LONGITUDE), getMax(LATITUDE)]];
|
|
1402
|
+
};
|
|
1403
|
+
|
|
1404
|
+
exports.getGlobalLayerBoundaries = getGlobalLayerBoundaries;
|
|
1405
|
+
|
|
1406
|
+
var getScaledOpacities = function getScaledOpacities(colors) {
|
|
1407
|
+
// extract opacity information from 8 digit hex codes
|
|
1408
|
+
var opacities = colors === null || colors === void 0 ? void 0 : colors.map(function (color) {
|
|
1409
|
+
var _a;
|
|
1410
|
+
|
|
1411
|
+
return (color === null || color === void 0 ? void 0 : color.length) === 9 ? (_a = chroma(color).alpha()) !== null && _a !== void 0 ? _a : exports.DEFAULT_OPACITY : exports.DEFAULT_OPACITY;
|
|
1412
|
+
}); // opacity cannot be greater than 0.8, otherwise it will block map labels
|
|
1413
|
+
|
|
1414
|
+
return (opacities === null || opacities === void 0 ? void 0 : opacities.filter(function (opacity) {
|
|
1415
|
+
return opacity > exports.DEFAULT_OPACITY;
|
|
1416
|
+
}).length) > 0 ? opacities.map(function (opacity) {
|
|
1417
|
+
return opacity * exports.DEFAULT_OPACITY;
|
|
1418
|
+
}) : opacities;
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
exports.getScaledOpacities = getScaledOpacities;
|
|
1422
|
+
|
|
1423
|
+
var compareBaseStyles = function compareBaseStyles(curr, next) {
|
|
1424
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1425
|
+
|
|
1426
|
+
var currBaseLayer = (_a = curr === null || curr === void 0 ? void 0 : curr.layers) === null || _a === void 0 ? void 0 : _a.find(function (layer) {
|
|
1427
|
+
return (layer === null || layer === void 0 ? void 0 : layer.id) === 'base-layer';
|
|
1428
|
+
});
|
|
1429
|
+
var nextBaseLayer = (_b = next === null || next === void 0 ? void 0 : next.layers) === null || _b === void 0 ? void 0 : _b.find(function (layer) {
|
|
1430
|
+
return (layer === null || layer === void 0 ? void 0 : layer.id) === 'base-layer';
|
|
1431
|
+
});
|
|
1432
|
+
var currBaseSource = lodash_1.get(curr === null || curr === void 0 ? void 0 : curr.sources, (_d = (_c = currBaseLayer) === null || _c === void 0 ? void 0 : _c.source) !== null && _d !== void 0 ? _d : '');
|
|
1433
|
+
var nextBaseSource = lodash_1.get(next === null || next === void 0 ? void 0 : next.sources, (_f = (_e = nextBaseLayer) === null || _e === void 0 ? void 0 : _e.source) !== null && _f !== void 0 ? _f : '');
|
|
1434
|
+
|
|
1435
|
+
if (!currBaseLayer || !nextBaseLayer || !currBaseSource || !nextBaseSource) {
|
|
1436
|
+
return false;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
return lodash_1.isEqual(currBaseLayer, nextBaseLayer) && lodash_1.isEqual(currBaseSource, nextBaseSource);
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
exports.compareBaseStyles = compareBaseStyles;
|
|
1443
|
+
|
|
1444
|
+
var formatMetadata = function formatMetadata(choroplethLayer, i) {
|
|
1445
|
+
if (!choroplethLayer || !choroplethLayer.areaIds || !choroplethLayer.areaValues) return {};
|
|
1446
|
+
if (i >= choroplethLayer.areaIds.length) return {};
|
|
1447
|
+
var metadata = choroplethLayer.metadata ? choroplethLayer.metadata[i] : {};
|
|
1448
|
+
var name = choroplethLayer.areaIds[i];
|
|
1449
|
+
var value = choroplethLayer.areaValues[i];
|
|
1450
|
+
var base = {
|
|
1451
|
+
name: name,
|
|
1452
|
+
value: String(value)
|
|
1453
|
+
};
|
|
1454
|
+
return Object.keys(metadata).reduce(function (result, curr) {
|
|
1455
|
+
var key = "row.".concat(curr, ".value");
|
|
1456
|
+
var val = lodash_1.isObject(metadata[curr]) ? JSON.stringify(metadata[curr]) : String(metadata[curr]);
|
|
1457
|
+
return Object.assign(Object.assign({}, result), _defineProperty({}, key, val));
|
|
1458
|
+
}, base);
|
|
1459
|
+
};
|
|
1460
|
+
|
|
1461
|
+
exports.formatMetadata = formatMetadata;
|
|
1462
|
+
|
|
1463
|
+
/***/ }),
|
|
1464
|
+
/* 52 */
|
|
1465
|
+
/***/ (function(module, exports) {
|
|
1466
|
+
|
|
1467
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
764
1468
|
|
|
765
|
-
/***/
|
|
1469
|
+
/***/ }),
|
|
1470
|
+
/* 53 */
|
|
766
1471
|
/***/ (function(module, exports) {
|
|
767
1472
|
|
|
768
|
-
module.exports = require("
|
|
1473
|
+
module.exports = require("d3-scale");
|
|
769
1474
|
|
|
770
1475
|
/***/ }),
|
|
1476
|
+
/* 54 */
|
|
1477
|
+
/***/ (function(module, exports) {
|
|
771
1478
|
|
|
772
|
-
|
|
1479
|
+
module.exports = require("chroma-js");
|
|
1480
|
+
|
|
1481
|
+
/***/ }),
|
|
1482
|
+
/* 55 */
|
|
773
1483
|
/***/ (function(module, exports) {
|
|
774
1484
|
|
|
775
|
-
module.exports = require("@splunk/
|
|
1485
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
776
1486
|
|
|
777
1487
|
/***/ })
|
|
778
|
-
|
|
779
|
-
/******/ });
|
|
1488
|
+
/******/ ]);
|
|
780
1489
|
//# sourceMappingURL=Map.config.js.map
|