display_editor.ts 725 B

1234567891011121314151617181920212223242526272829303132
  1. ///<reference path="../../../headers/common.d.ts" />
  2. import _ from 'lodash';
  3. import $ from 'jquery';
  4. import d3 from 'd3';
  5. import {contextSrv} from 'app/core/core';
  6. const COLOR_LEGEND_SELECTOR = '.heatmap-color-legend';
  7. export class HeatmapDisplayEditorCtrl {
  8. panel: any;
  9. panelCtrl: any;
  10. /** @ngInject */
  11. constructor($scope) {
  12. $scope.editor = this;
  13. this.panelCtrl = $scope.ctrl;
  14. this.panel = this.panelCtrl.panel;
  15. this.panelCtrl.render();
  16. }
  17. }
  18. /** @ngInject */
  19. export function heatmapDisplayEditor() {
  20. 'use strict';
  21. return {
  22. restrict: 'E',
  23. scope: true,
  24. templateUrl: 'public/app/plugins/panel/heatmap/partials/display_editor.html',
  25. controller: HeatmapDisplayEditorCtrl,
  26. };
  27. }