module.tsx 542 B

1234567891011
  1. import { PanelPlugin, sharedSingleStatOptionsCheck } from '@grafana/ui';
  2. import { BarGaugePanel } from './BarGaugePanel';
  3. import { BarGaugePanelEditor } from './BarGaugePanelEditor';
  4. import { BarGaugeOptions, defaults } from './types';
  5. import { barGaugePanelMigrationCheck } from './BarGaugeMigrations';
  6. export const plugin = new PanelPlugin<BarGaugeOptions>(BarGaugePanel)
  7. .setDefaults(defaults)
  8. .setEditor(BarGaugePanelEditor)
  9. .setPanelChangeHandler(sharedSingleStatOptionsCheck)
  10. .setMigrationHandler(barGaugePanelMigrationCheck);