1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
831 B

import { Registry } from '@grafana/data';
import { CanvasElementItem, CanvasElementOptions } from './element';
import { buttonItem } from './elements/button';
import { droneFrontItem } from './elements/droneFront';
import { droneSideItem } from './elements/droneSide';
import { droneTopItem } from './elements/droneTop';
import { iconItem } from './elements/icon';
import { textBoxItem } from './elements/textBox';
import { windTurbineItem } from './elements/windTurbine';
export const DEFAULT_CANVAS_ELEMENT_CONFIG: CanvasElementOptions = {
...iconItem.getNewOptions(),
type: iconItem.id,
name: `Element 1`,
};
export const canvasElementRegistry = new Registry<CanvasElementItem>(() => [
iconItem, // default for now
textBoxItem,
buttonItem,
droneTopItem,
droneFrontItem,
droneSideItem,
windTurbineItem,
]);