forked from grafana.jool/grafana-jool
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.
15 lines
479 B
15 lines
479 B
import { Registry } from '@grafana/data';
|
|
import { CanvasElementItem, CanvasElementOptions } from './element';
|
|
import { iconItem } from './elements/icon';
|
|
import { textBoxItem } from './elements/textBox';
|
|
|
|
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,
|
|
]);
|
|
|