Skip to content

Commit

Permalink
Rename visTypes, visFilters to types, filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Jun 10, 2019
1 parent 34a50ca commit fdd1486
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { VisFiltersProvider, createFilter } from 'ui/vis/vis_filters';
*
* @internal
*/
export class VisFiltersService {
export class FiltersService {
public setup() {
return {
VisFiltersProvider,
Expand All @@ -39,4 +39,4 @@ export class VisFiltersService {
}

/** @public */
export type VisFiltersSetup = ReturnType<VisFiltersService['setup']>;
export type FiltersSetup = ReturnType<FiltersService['setup']>;
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
* under the License.
*/

export { VisFiltersService, VisFiltersSetup } from './vis_filters_service';
export { FiltersService, FiltersSetup } from './filters_service';
26 changes: 13 additions & 13 deletions src/legacy/core_plugins/visualizations/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@
* under the License.
*/

import { VisFiltersService, VisFiltersSetup } from './vis_filters';
import { VisTypesService, VisTypesSetup } from './vis_types';
import { FiltersService, FiltersSetup } from './filters';
import { TypesService, TypesSetup } from './types';

class VisualizationsPlugin {
private readonly visFilters: VisFiltersService;
private readonly visTypes: VisTypesService;
private readonly filters: FiltersService;
private readonly types: TypesService;

constructor() {
this.visFilters = new VisFiltersService();
this.visTypes = new VisTypesService();
this.filters = new FiltersService();
this.types = new TypesService();
}

public setup() {
return {
visFilters: this.visFilters.setup(),
visTypes: this.visTypes.setup(),
filters: this.filters.setup(),
types: this.types.setup(),
};
}

public stop() {
this.visFilters.stop();
this.visTypes.stop();
this.filters.stop();
this.types.stop();
}
}

Expand All @@ -51,8 +51,8 @@ export const visualizations = new VisualizationsPlugin().setup();

/** @public */
export interface VisualizationsSetup {
visFilters: VisFiltersSetup;
visTypes: VisTypesSetup;
filters: FiltersSetup;
types: TypesSetup;
}

/** @public types */
Expand All @@ -64,4 +64,4 @@ export {
VisualizationController,
VisType,
VisTypesRegistry,
} from './vis_types';
} from './types';
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
*/

export {
VisTypesService,
TypesService,
// types
VisTypesSetup,
TypesSetup,
Vis,
VisParams,
VisProvider,
VisState,
VisualizationController,
VisType,
VisTypesRegistry,
} from './vis_types_service';
} from './types_service';
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import * as typesFromVisTypes from 'ui/vis/vis_types/vis_type';
*
* @internal
*/
export class VisTypesService {
export class TypesService {
public setup() {
return {
VisProvider,
Expand All @@ -59,7 +59,7 @@ export class VisTypesService {
}

/** @public */
export type VisTypesSetup = ReturnType<VisTypesService['setup']>;
export type TypesSetup = ReturnType<TypesService['setup']>;

/** @public */
export type Vis = typesFromVis.Vis;
Expand Down

0 comments on commit fdd1486

Please sign in to comment.