| 
9 | 9 | import $ from 'jquery';  | 
10 | 10 | import moment from 'moment';  | 
11 | 11 | import dateMath from '@elastic/datemath';  | 
12 |  | -import { scheme, loader, logger, Warn, version as vegaVersion, expressionFunction } from 'vega';  | 
 | 12 | +import { scheme, loader, logger, Warn, expressionFunction } from 'vega';  | 
13 | 13 | import { expressionInterpreter } from 'vega-interpreter';  | 
14 |  | -import { version as vegaLiteVersion } from 'vega-lite';  | 
15 | 14 | import { Utils } from '../data_model/utils';  | 
16 | 15 | import { euiPaletteColorBlind } from '@elastic/eui';  | 
17 | 16 | import { i18n } from '@kbn/i18n';  | 
@@ -467,30 +466,6 @@ export class VegaBaseView {  | 
467 | 466 |       view,  | 
468 | 467 |       spec: vlspec || spec,  | 
469 | 468 |     });  | 
470 |  | - | 
471 |  | -    if (window) {  | 
472 |  | -      if (window.VEGA_DEBUG === undefined && console) {  | 
473 |  | -        console.log('%cWelcome to Kibana Vega Plugin!', 'font-size: 16px; font-weight: bold;');  | 
474 |  | -        console.log(  | 
475 |  | -          'You can access the Vega view with VEGA_DEBUG. ' +  | 
476 |  | -            'Learn more at https://vega.github.io/vega/docs/api/debugging/.'  | 
477 |  | -        );  | 
478 |  | -      }  | 
479 |  | -      const debugObj = {};  | 
480 |  | -      window.VEGA_DEBUG = debugObj;  | 
481 |  | -      window.VEGA_DEBUG.VEGA_VERSION = vegaVersion;  | 
482 |  | -      window.VEGA_DEBUG.VEGA_LITE_VERSION = vegaLiteVersion;  | 
483 |  | -      window.VEGA_DEBUG.view = view;  | 
484 |  | -      window.VEGA_DEBUG.vega_spec = spec;  | 
485 |  | -      window.VEGA_DEBUG.vegalite_spec = vlspec;  | 
486 |  | - | 
487 |  | -      // On dispose, clean up, but don't use undefined to prevent repeated debug statements  | 
488 |  | -      this._addDestroyHandler(() => {  | 
489 |  | -        if (debugObj === window.VEGA_DEBUG) {  | 
490 |  | -          window.VEGA_DEBUG = null;  | 
491 |  | -        }  | 
492 |  | -      });  | 
493 |  | -    }  | 
494 | 469 |   }  | 
495 | 470 | 
 
  | 
496 | 471 |   destroy() {  | 
 | 
0 commit comments