mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* New pfs impl * Reached codegen parity with old system * Update all models.cue inputs * Rename all models.cue files * Remove unused prefixfs * Changes Queries->DataQuery schema interface * Recodegen * All tests passing, nearly good now * Add SchemaInterface to kindsys props * Add pascal name deriver * Relocate plugin cue files again * Clarify use of injected fields * Remove unnecessary aliasing * Move DataQuery into mudball * Allow forcing ExpandReferences on go type generation * Move DataQuery def into kindsys, add generator to copy it to common * Fix copy generator to replace package name correctly * Fix duplicate type, test failure * Fix linting issues
55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
// 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';
|
|
|
|
export const PanelCfgModelVersion = Object.freeze([0, 0]);
|
|
|
|
export interface PanelOptions extends ui.OptionsWithLegend, ui.OptionsWithTooltip {
|
|
/**
|
|
* Offset buckets by this amount
|
|
*/
|
|
bucketOffset?: number;
|
|
/**
|
|
* Size of each bucket
|
|
*/
|
|
bucketSize?: number;
|
|
/**
|
|
* Combines multiple series into a single histogram
|
|
*/
|
|
combine?: boolean;
|
|
}
|
|
|
|
export const defaultPanelOptions: Partial<PanelOptions> = {
|
|
bucketOffset: 0,
|
|
};
|
|
|
|
export interface PanelFieldConfig extends ui.AxisConfig, ui.HideableFieldConfig {
|
|
/**
|
|
* Controls the fill opacity of the bars.
|
|
*/
|
|
fillOpacity?: number;
|
|
/**
|
|
* Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.
|
|
* Gradient appearance is influenced by the Fill opacity setting.
|
|
*/
|
|
gradientMode?: ui.GraphGradientMode;
|
|
/**
|
|
* Controls line width of the bars.
|
|
*/
|
|
lineWidth?: number;
|
|
}
|
|
|
|
export const defaultPanelFieldConfig: Partial<PanelFieldConfig> = {
|
|
fillOpacity: 80,
|
|
gradientMode: ui.GraphGradientMode.None,
|
|
lineWidth: 1,
|
|
};
|