File tree Expand file tree Collapse file tree 4 files changed +39
-1
lines changed
src/plugins/vis_type_vega Expand file tree Collapse file tree 4 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,14 @@ import { VegaVisualizationDependencies } from './plugin';
1313import { getNotifications , getData } from './services' ;
1414import type { VegaView } from './vega_view/vega_view' ;
1515
16- export const createVegaVisualization = ( { getServiceSettings } : VegaVisualizationDependencies ) =>
16+ type VegaVisType = new ( el : HTMLDivElement , fireEvent : IInterpreterRenderHandlers [ 'event' ] ) => {
17+ render ( visData : VegaParser ) : Promise < void > ;
18+ destroy ( ) : void ;
19+ } ;
20+
21+ export const createVegaVisualization = ( {
22+ getServiceSettings,
23+ } : VegaVisualizationDependencies ) : VegaVisType =>
1724 class VegaVisualization {
1825 private readonly dataPlugin = getData ( ) ;
1926 private vegaView : InstanceType < typeof VegaView > | null = null ;
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ../../../tsconfig.base.json" ,
3+ "compilerOptions" : {
4+ "composite" : true ,
5+ "outDir" : " ./target/types" ,
6+ "emitDeclarationOnly" : true ,
7+ "declaration" : true ,
8+ "declarationMap" : true
9+ },
10+ "include" : [
11+ " server/**/*" ,
12+ " public/**/*" ,
13+ " *.ts"
14+ ],
15+ "references" : [
16+ { "path" : " ../../core/tsconfig.json" },
17+ { "path" : " ../data/tsconfig.json" },
18+ { "path" : " ../visualizations/tsconfig.json" },
19+ { "path" : " ../maps_legacy/tsconfig.json" },
20+ { "path" : " ../expressions/tsconfig.json" },
21+ { "path" : " ../inspector/tsconfig.json" },
22+ { "path" : " ../home/tsconfig.json" },
23+ { "path" : " ../usage_collection/tsconfig.json" },
24+ { "path" : " ../kibana_utils/tsconfig.json" },
25+ { "path" : " ../kibana_react/tsconfig.json" },
26+ { "path" : " ../vis_default_editor/tsconfig.json" },
27+ ]
28+ }
Original file line number Diff line number Diff line change 5353 " src/plugins/vis_type_timelion/**/*" ,
5454 " src/plugins/vis_type_timeseries/**/*" ,
5555 " src/plugins/vis_type_vislib/**/*" ,
56+ " src/plugins/vis_type_vega/**/*" ,
5657 " src/plugins/vis_type_xy/**/*" ,
5758 " src/plugins/visualizations/**/*" ,
5859 " src/plugins/visualize/**/*" ,
109110 { "path" : " ./src/plugins/vis_type_timelion/tsconfig.json" },
110111 { "path" : " ./src/plugins/vis_type_timeseries/tsconfig.json" },
111112 { "path" : " ./src/plugins/vis_type_vislib/tsconfig.json" },
113+ { "path" : " ./src/plugins/vis_type_vega/tsconfig.json" },
112114 { "path" : " ./src/plugins/vis_type_xy/tsconfig.json" },
113115 { "path" : " ./src/plugins/visualizations/tsconfig.json" },
114116 { "path" : " ./src/plugins/visualize/tsconfig.json" },
Original file line number Diff line number Diff line change 4949 { "path" : " ./src/plugins/vis_type_timelion/tsconfig.json" },
5050 { "path" : " ./src/plugins/vis_type_timeseries/tsconfig.json" },
5151 { "path" : " ./src/plugins/vis_type_vislib/tsconfig.json" },
52+ { "path" : " ./src/plugins/vis_type_vega/tsconfig.json" },
5253 { "path" : " ./src/plugins/vis_type_xy/tsconfig.json" },
5354 { "path" : " ./src/plugins/visualizations/tsconfig.json" },
5455 { "path" : " ./src/plugins/visualize/tsconfig.json" },
You can’t perform that action at this time.
0 commit comments