mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 21:52:43 +08:00
panels: Remove redundant import package from cue defs (#61949)
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
package grafanaplugin
|
||||
|
||||
import (
|
||||
ui "github.com/grafana/grafana/packages/grafana-schema/src/common"
|
||||
"github.com/grafana/grafana/packages/grafana-schema/src/common"
|
||||
)
|
||||
|
||||
composableKinds: PanelCfg: {
|
||||
@ -27,8 +27,8 @@ composableKinds: PanelCfg: {
|
||||
schemas: [
|
||||
{
|
||||
PanelOptions: {
|
||||
ui.OptionsWithLegend
|
||||
ui.OptionsWithTooltip
|
||||
common.OptionsWithLegend
|
||||
common.OptionsWithTooltip
|
||||
|
||||
//Size of each bucket
|
||||
bucketSize?: int32
|
||||
@ -39,8 +39,8 @@ composableKinds: PanelCfg: {
|
||||
} @cuetsy(kind="interface")
|
||||
|
||||
PanelFieldConfig: {
|
||||
ui.AxisConfig
|
||||
ui.HideableFieldConfig
|
||||
common.AxisConfig
|
||||
common.HideableFieldConfig
|
||||
|
||||
// Controls line width of the bars.
|
||||
lineWidth?: uint32 & <=10 | *1
|
||||
@ -48,7 +48,7 @@ composableKinds: PanelCfg: {
|
||||
fillOpacity?: uint32 & <=100 | *80
|
||||
// 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 | *"none"
|
||||
gradientMode?: common.GraphGradientMode | *"none"
|
||||
} @cuetsy(kind="interface")
|
||||
},
|
||||
]
|
||||
|
@ -8,11 +8,11 @@
|
||||
//
|
||||
// Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
import * as ui from '@grafana/schema';
|
||||
import * as common from '@grafana/schema';
|
||||
|
||||
export const PanelCfgModelVersion = Object.freeze([0, 0]);
|
||||
|
||||
export interface PanelOptions extends ui.OptionsWithLegend, ui.OptionsWithTooltip {
|
||||
export interface PanelOptions extends common.OptionsWithLegend, common.OptionsWithTooltip {
|
||||
/**
|
||||
* Offset buckets by this amount
|
||||
*/
|
||||
@ -31,7 +31,7 @@ export const defaultPanelOptions: Partial<PanelOptions> = {
|
||||
bucketOffset: 0,
|
||||
};
|
||||
|
||||
export interface PanelFieldConfig extends ui.AxisConfig, ui.HideableFieldConfig {
|
||||
export interface PanelFieldConfig extends common.AxisConfig, common.HideableFieldConfig {
|
||||
/**
|
||||
* Controls the fill opacity of the bars.
|
||||
*/
|
||||
@ -40,7 +40,7 @@ export interface PanelFieldConfig extends ui.AxisConfig, ui.HideableFieldConfig
|
||||
* 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;
|
||||
gradientMode?: common.GraphGradientMode;
|
||||
/**
|
||||
* Controls line width of the bars.
|
||||
*/
|
||||
@ -49,6 +49,6 @@ export interface PanelFieldConfig extends ui.AxisConfig, ui.HideableFieldConfig
|
||||
|
||||
export const defaultPanelFieldConfig: Partial<PanelFieldConfig> = {
|
||||
fillOpacity: 80,
|
||||
gradientMode: ui.GraphGradientMode.None,
|
||||
gradientMode: common.GraphGradientMode.None,
|
||||
lineWidth: 1,
|
||||
};
|
||||
|
Reference in New Issue
Block a user