1//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2// This file was autogenerated by cuetsy from all the files in this directory, 3// then hand-edited for correctness. It will be fully auto-generated Soon™. 4//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 6export enum AxisPlacement { 7 Auto = 'auto', 8 Bottom = 'bottom', 9 Hidden = 'hidden', 10 Left = 'left', 11 Right = 'right', 12 Top = 'top', 13} 14 15export enum VisibilityMode { 16 Always = 'always', 17 Auto = 'auto', 18 Never = 'never', 19} 20 21export enum GraphDrawStyle { 22 Bars = 'bars', 23 Line = 'line', 24 Points = 'points', 25} 26 27export enum LineInterpolation { 28 Linear = 'linear', 29 Smooth = 'smooth', 30 StepAfter = 'stepAfter', 31 StepBefore = 'stepBefore', 32} 33 34export enum ScaleDistribution { 35 Linear = 'linear', 36 Log = 'log', 37 Ordinal = 'ordinal', 38} 39 40export enum GraphGradientMode { 41 Hue = 'hue', 42 None = 'none', 43 Opacity = 'opacity', 44 Scheme = 'scheme', 45} 46 47export enum StackingMode { 48 None = 'none', 49 Normal = 'normal', 50 Percent = 'percent', 51} 52 53export enum BarAlignment { 54 After = 1, 55 Before = -1, 56 Center = 0, 57} 58 59export enum ScaleOrientation { 60 Horizontal = 0, 61 Vertical = 1, 62} 63 64export enum ScaleDirection { 65 Down = -1, 66 Left = -1, 67 Right = 1, 68 Up = 1, 69} 70 71export interface LineStyle { 72 dash?: number[]; 73 fill?: 'solid' | 'dash' | 'dot' | 'square'; 74} 75 76export interface LineConfig { 77 lineColor?: string; 78 lineInterpolation?: LineInterpolation; 79 lineStyle?: LineStyle; 80 lineWidth?: number; 81 spanNulls?: boolean | number; 82} 83 84export interface BarConfig { 85 barAlignment?: BarAlignment; 86 barMaxWidth?: number; 87 barWidthFactor?: number; 88} 89 90export interface FillConfig { 91 fillBelowTo?: string; 92 fillColor?: string; 93 fillOpacity?: number; 94} 95 96export interface PointsConfig { 97 pointColor?: string; 98 pointSize?: number; 99 pointSymbol?: string; 100 showPoints?: VisibilityMode; 101} 102 103export interface ScaleDistributionConfig { 104 log?: number; 105 type: ScaleDistribution; 106} 107 108export interface AxisConfig { 109 axisGridShow?: boolean; 110 axisLabel?: string; 111 axisPlacement?: AxisPlacement; 112 axisSoftMax?: number; 113 axisSoftMin?: number; 114 axisWidth?: number; 115 scaleDistribution?: ScaleDistributionConfig; 116} 117 118export interface HideSeriesConfig { 119 legend: boolean; 120 tooltip: boolean; 121 viz: boolean; 122} 123 124export interface StackingConfig { 125 group?: string; 126 mode?: StackingMode; 127} 128 129export interface StackableFieldConfig { 130 stacking?: StackingConfig; 131} 132 133export interface HideableFieldConfig { 134 hideFrom?: HideSeriesConfig; 135} 136 137export enum GraphTresholdsStyleMode { 138 Area = 'area', 139 Line = 'line', 140 LineAndArea = 'line+area', 141 Off = 'off', 142 Series = 'series', 143} 144 145export interface GraphThresholdsStyleConfig { 146 mode: GraphTresholdsStyleMode; 147} 148 149export type LegendPlacement = 'bottom' | 'right'; 150 151export enum LegendDisplayMode { 152 Hidden = 'hidden', 153 List = 'list', 154 Table = 'table', 155} 156 157export interface TableSortByFieldState { 158 desc?: boolean; 159 displayName: string; 160} 161 162export interface SingleStatBaseOptions extends OptionsWithTextFormatting { 163 orientation: VizOrientation; 164 reduceOptions: ReduceDataOptions; 165} 166 167export interface ReduceDataOptions { 168 calcs: string[]; 169 fields?: string; 170 limit?: number; 171 values?: boolean; 172} 173 174export enum VizOrientation { 175 Auto = 'auto', 176 Horizontal = 'horizontal', 177 Vertical = 'vertical', 178} 179 180export interface OptionsWithTooltip { 181 tooltip: VizTooltipOptions; 182} 183 184export interface OptionsWithLegend { 185 legend: VizLegendOptions; 186} 187 188export interface OptionsWithTextFormatting { 189 text?: VizTextDisplayOptions; 190} 191 192export enum BigValueColorMode { 193 Background = 'background', 194 None = 'none', 195 Value = 'value', 196} 197 198export enum BigValueGraphMode { 199 Area = 'area', 200 Line = 'line', 201 None = 'none', 202} 203 204export enum BigValueJustifyMode { 205 Auto = 'auto', 206 Center = 'center', 207} 208 209export enum BigValueTextMode { 210 Auto = 'auto', 211 Name = 'name', 212 None = 'none', 213 Value = 'value', 214 Value_and_name = 'value_and_name', 215} 216 217export type FieldTextAlignment = 'auto' | 'left' | 'right' | 'center'; 218 219export enum TableCellDisplayMode { 220 Auto = 'auto', 221 BasicGauge = 'basic', 222 ColorBackground = 'color-background', 223 ColorBackgroundSolid = 'color-background-solid', 224 ColorText = 'color-text', 225 GradientGauge = 'gradient-gauge', 226 Image = 'image', 227 JSONView = 'json-view', 228 LcdGauge = 'lcd-gauge', 229} 230 231export interface VizTextDisplayOptions { 232 titleSize?: number; 233 valueSize?: number; 234} 235 236export enum TooltipDisplayMode { 237 Multi = 'multi', 238 None = 'none', 239 Single = 'single', 240} 241 242export interface GraphFieldConfig 243 extends LineConfig, 244 FillConfig, 245 PointsConfig, 246 AxisConfig, 247 BarConfig, 248 StackableFieldConfig, 249 HideableFieldConfig { 250 drawStyle?: GraphDrawStyle; 251 gradientMode?: GraphGradientMode; 252 thresholdsStyle?: GraphThresholdsStyleConfig; 253} 254 255export interface VizLegendOptions { 256 asTable?: boolean; 257 calcs: string[]; 258 displayMode: LegendDisplayMode; 259 isVisible?: boolean; 260 placement: LegendPlacement; 261 sortBy?: string; 262 sortDesc?: boolean; 263} 264 265export enum BarGaugeDisplayMode { 266 Basic = 'basic', 267 Gradient = 'gradient', 268 Lcd = 'lcd', 269} 270 271export interface TableFieldOptions { 272 align: string; 273 displayMode: TableCellDisplayMode; 274 hidden?: boolean; 275 minWidth?: number; 276 width?: number; 277 filterable?: boolean; 278} 279 280export const defaultTableFieldOptions: TableFieldOptions = { 281 align: 'auto', 282 displayMode: TableCellDisplayMode.Auto, 283}; 284 285export interface VizTooltipOptions { 286 mode: TooltipDisplayMode; 287} 288