kibana/x-pack/plugins/infra/types/eui_experimental.d.ts
Kerry Gallagher 0a6c748cc8
[Logs / Metrics] New Platform migration (full cutover) (#54583)
* Fully migrates metrics and logs to the NP

Co-authored-by: Jason Rhodes <jason.matthew.rhodes@gmail.com>
Co-authored-by: John Schulz <github.com@jfsiii.org>
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2020-02-18 19:22:27 +00:00

71 lines
2.1 KiB
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
declare module '@elastic/eui/lib/experimental' {
import { CommonProps } from '@elastic/eui/src/components/common';
export type EuiSeriesChartProps = CommonProps & {
xType?: string;
stackBy?: string;
statusText?: string;
yDomain?: number[];
showCrosshair?: boolean;
showDefaultAxis?: boolean;
enableSelectionBrush?: boolean;
crosshairValue?: number;
onSelectionBrushEnd?: (args: any) => void;
onCrosshairUpdate?: (crosshairValue: number) => void;
animateData?: boolean;
marginLeft?: number;
};
export const EuiSeriesChart: React.FC<EuiSeriesChartProps>;
type EuiSeriesProps = CommonProps & {
data: Array<{ x: number; y: number; y0?: number }>;
lineSize?: number;
name: string;
color?: string;
marginLeft?: number;
};
export const EuiLineSeries: React.FC<EuiSeriesProps>;
export const EuiAreaSeries: React.FC<EuiSeriesProps>;
export const EuiBarSeries: React.FC<EuiSeriesProps>;
type EuiYAxisProps = CommonProps & {
tickFormat: (value: number) => string;
marginLeft?: number;
};
export const EuiYAxis: React.FC<EuiYAxisProps>;
type EuiXAxisProps = CommonProps & {
tickFormat?: (value: number) => string;
marginLeft?: number;
};
export const EuiXAxis: React.FC<EuiXAxisProps>;
export interface EuiDataPoint {
seriesIndex: number;
x: number;
y: number;
originalValues: {
x: number;
y: number;
x0?: number;
};
}
export interface EuiFormattedValue {
title: any;
value: any;
}
type EuiCrosshairXProps = CommonProps & {
marginLeft?: number;
seriesNames: string[];
titleFormat?: (dataPoints: EuiDataPoint[]) => EuiFormattedValue | undefined;
itemsFormat?: (dataPoints: EuiDataPoint[]) => EuiFormattedValue[];
};
export const EuiCrosshairX: React.FC<EuiCrosshairXProps>;
}