-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vislib visualization renderer (#80744)
- Loading branch information
1 parent
5752b7a
commit e0b6b0b
Showing
69 changed files
with
4,235 additions
and
687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
src/plugins/vis_type_vislib/public/__snapshots__/pie_fn.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
src/plugins/vis_type_vislib/public/__snapshots__/to_ast.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/plugins/vis_type_vislib/public/__snapshots__/to_ast_pie.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/plugins/vis_type_vislib/public/components/options/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import React, { lazy } from 'react'; | ||
|
||
import { VisOptionsProps } from 'src/plugins/vis_default_editor/public'; | ||
import { ValidationVisOptionsProps } from '../common'; | ||
import { GaugeVisParams } from '../../gauge'; | ||
import { PieVisParams } from '../../pie'; | ||
import { BasicVislibParams } from '../../types'; | ||
import { HeatmapVisParams } from '../../heatmap'; | ||
|
||
const GaugeOptionsLazy = lazy(() => import('./gauge')); | ||
const PieOptionsLazy = lazy(() => import('./pie')); | ||
const PointSeriesOptionsLazy = lazy(() => import('./point_series')); | ||
const HeatmapOptionsLazy = lazy(() => import('./heatmap')); | ||
const MetricsAxisOptionsLazy = lazy(() => import('./metrics_axes')); | ||
|
||
export const GaugeOptions = (props: VisOptionsProps<GaugeVisParams>) => ( | ||
<GaugeOptionsLazy {...props} /> | ||
); | ||
|
||
export const PieOptions = (props: VisOptionsProps<PieVisParams>) => <PieOptionsLazy {...props} />; | ||
|
||
export const PointSeriesOptions = (props: ValidationVisOptionsProps<BasicVislibParams>) => ( | ||
<PointSeriesOptionsLazy {...props} /> | ||
); | ||
|
||
export const HeatmapOptions = (props: VisOptionsProps<HeatmapVisParams>) => ( | ||
<HeatmapOptionsLazy {...props} /> | ||
); | ||
|
||
export const MetricsAxisOptions = (props: ValidationVisOptionsProps<BasicVislibParams>) => ( | ||
<MetricsAxisOptionsLazy {...props} /> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.