Skip to content

Commit

Permalink
remove unused utils, color theme, and editor components
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wei <[email protected]>
  • Loading branch information
mengweieric committed Jun 30, 2023
1 parent 3dd859c commit 5257707
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

import { DataTable } from './data_table';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
import { ConfigAvailability } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_availability';
import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
import {
InputFieldItem,
Expand Down
2 changes: 0 additions & 2 deletions public/components/visualizations/charts/lines/line_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@
import { Line } from './line';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
import {
ConfigThresholds,
ConfigLineChartStyles,
ConfigLegend,
InputFieldItem,
ConfigColorTheme,
} from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
import { ConfigAvailability } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_availability';
import {
Expand Down
3 changes: 1 addition & 2 deletions public/components/visualizations/charts/maps/heatmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import React, { useMemo } from 'react';
import { colorPalette } from '@elastic/eui';
import { forEach, isEmpty, isEqual, map } from 'lodash';
import { forEach, isEmpty, map } from 'lodash';
import Plotly from 'plotly.js-dist';
import {
HEATMAP_PALETTE_COLOR,
Expand All @@ -18,7 +18,6 @@ import {
getPropName,
} from '../../../../components/event_analytics/utils/utils';
import { IVisualizationContainerProps } from '../../../../../common/types/explorer';
import { VisCanvassPlaceholder } from '../../../event_analytics/explorer/visualizations/shared_components/vis_canvass_placeholder';
import { Plt } from '../../plotly/plot';
import { AGGREGATIONS, GROUPBY } from '../../../../../common/constants/explorer';
import { PLOT_MARGIN } from '../../../../../common/constants/shared';
Expand Down
2 changes: 0 additions & 2 deletions public/components/visualizations/charts/maps/heatmap_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
import { HeatMap } from './heatmap';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
import {
ConfigValueOptions,
HeatmapColorPalettePicker,
ConfigChartOptions,
PanelItem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
TextInputFieldItem,
} from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
import { fetchConfigObject } from '../../../event_analytics/utils/utils';
import { ConfigAvailability } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_availability';
import { DEFAULT_METRICS_CHART_PARAMETERS } from '../../../../../common/constants/explorer';

const sharedConfigs = getPlotlySharedConfigs();
Expand Down
3 changes: 0 additions & 3 deletions public/components/visualizations/charts/pie/pie_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@
import { Pie } from './pie';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
import {
ColorPalettePicker,
ConfigChartOptions,
ConfigLegend,
InputFieldItem,
ButtonGroupItem,
} from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
import { fetchConfigObject } from '../../../../components/event_analytics/utils/utils';
import { DEFAULT_PALETTE, PIE_PALETTES } from '../../../../../common/constants/colors';
import { PLOTLY_COLOR, DEFAULT_CHART_STYLES } from '../../../../../common/constants/shared';
import { DEFAULT_PIE_CHART_PARAMETERS } from '../../../../../common/constants/explorer';

Expand Down

0 comments on commit 5257707

Please sign in to comment.