2023-01-26 09:03:59 +02:00
|
|
|
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
|
|
|
//
|
|
|
|
|
// Generated by:
|
|
|
|
|
// public/app/plugins/gen.go
|
|
|
|
|
// Using jennies:
|
|
|
|
|
// TSTypesJenny
|
|
|
|
|
// PluginTSTypesJenny
|
|
|
|
|
//
|
|
|
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
|
|
|
|
|
|
import * as ui from '@grafana/schema';
|
|
|
|
|
|
2023-05-15 23:07:54 -04:00
|
|
|
export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui.OptionsWithTimezones {
|
2023-01-26 09:03:59 +02:00
|
|
|
/**
|
|
|
|
|
* Controls value alignment on the timelines
|
|
|
|
|
*/
|
|
|
|
|
alignValue?: ui.TimelineValueAlignment;
|
|
|
|
|
/**
|
|
|
|
|
* Merge equal consecutive values
|
|
|
|
|
*/
|
|
|
|
|
mergeValues?: boolean;
|
|
|
|
|
/**
|
|
|
|
|
* Controls the row height
|
|
|
|
|
*/
|
|
|
|
|
rowHeight: number;
|
|
|
|
|
/**
|
|
|
|
|
* Show timeline values on chart
|
|
|
|
|
*/
|
|
|
|
|
showValue: ui.VisibilityMode;
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-15 23:07:54 -04:00
|
|
|
export const defaultOptions: Partial<Options> = {
|
2023-01-26 09:03:59 +02:00
|
|
|
alignValue: 'left',
|
|
|
|
|
mergeValues: true,
|
|
|
|
|
rowHeight: 0.9,
|
|
|
|
|
showValue: ui.VisibilityMode.Auto,
|
|
|
|
|
};
|
|
|
|
|
|
2023-05-15 23:07:54 -04:00
|
|
|
export interface FieldConfig extends ui.HideableFieldConfig {
|
2023-01-26 09:03:59 +02:00
|
|
|
fillOpacity?: number;
|
|
|
|
|
lineWidth?: number;
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-15 23:07:54 -04:00
|
|
|
export const defaultFieldConfig: Partial<FieldConfig> = {
|
2023-01-26 09:03:59 +02:00
|
|
|
fillOpacity: 70,
|
|
|
|
|
lineWidth: 0,
|
|
|
|
|
};
|