mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 07:32:12 +08:00

* Remove jenny_ts_resources and use jenny_ts_types for all cases
* Unify TS generated files into one jenny
* Add missing imports to versioned files
* Update Parca plugin
* Fix loki
* Use LokiQuery
* Fix pyroscope tests
* Fix prettier
* 😒 fix default pyroscope value name
* Set the LokiQuery
* Update Elasticsearch and TestData
* Missed files from testdata
* Order imports
88 lines
1.4 KiB
TypeScript
88 lines
1.4 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 interface Options {
|
|
basemap: ui.MapLayerOptions;
|
|
controls: ControlsOptions;
|
|
layers: Array<ui.MapLayerOptions>;
|
|
tooltip: TooltipOptions;
|
|
view: MapViewConfig;
|
|
}
|
|
|
|
export const defaultOptions: Partial<Options> = {
|
|
layers: [],
|
|
};
|
|
|
|
export interface MapViewConfig {
|
|
allLayers?: boolean;
|
|
id: string;
|
|
lastOnly?: boolean;
|
|
lat?: number;
|
|
layer?: string;
|
|
lon?: number;
|
|
maxZoom?: number;
|
|
minZoom?: number;
|
|
padding?: number;
|
|
shared?: boolean;
|
|
zoom?: number;
|
|
}
|
|
|
|
export const defaultMapViewConfig: Partial<MapViewConfig> = {
|
|
allLayers: true,
|
|
id: 'zero',
|
|
lat: 0,
|
|
lon: 0,
|
|
zoom: 1,
|
|
};
|
|
|
|
export interface ControlsOptions {
|
|
/**
|
|
* let the mouse wheel zoom
|
|
*/
|
|
mouseWheelZoom?: boolean;
|
|
/**
|
|
* Lower right
|
|
*/
|
|
showAttribution?: boolean;
|
|
/**
|
|
* Show debug
|
|
*/
|
|
showDebug?: boolean;
|
|
/**
|
|
* Show measure
|
|
*/
|
|
showMeasure?: boolean;
|
|
/**
|
|
* Scale options
|
|
*/
|
|
showScale?: boolean;
|
|
/**
|
|
* Zoom (upper left)
|
|
*/
|
|
showZoom?: boolean;
|
|
}
|
|
|
|
export interface TooltipOptions {
|
|
mode: TooltipMode;
|
|
}
|
|
|
|
export enum TooltipMode {
|
|
Details = 'details',
|
|
None = 'none',
|
|
}
|
|
|
|
export enum MapCenterID {
|
|
Coords = 'coords',
|
|
Fit = 'fit',
|
|
Zero = 'zero',
|
|
}
|