| 
9 | 9 | 
 
  | 
10 | 10 | import moment from 'moment';  | 
11 | 11 | import dateMath from '@kbn/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';  | 
@@ -497,33 +496,6 @@ export class VegaBaseView {  | 
497 | 496 |       view,  | 
498 | 497 |       spec: vlspec || spec,  | 
499 | 498 |     });  | 
500 |  | - | 
501 |  | -    if (window) {  | 
502 |  | -      if (window.VEGA_DEBUG === undefined && console) {  | 
503 |  | -        console.log('%cWelcome to Kibana Vega Plugin!', 'font-size: 16px; font-weight: bold;');  | 
504 |  | -        console.log(  | 
505 |  | -          'You can access the Vega view with VEGA_DEBUG. ' +  | 
506 |  | -            'Learn more at https://vega.github.io/vega/docs/api/debugging/.'  | 
507 |  | -        );  | 
508 |  | -      }  | 
509 |  | -      const debugObj = {};  | 
510 |  | -      window.VEGA_DEBUG = debugObj;  | 
511 |  | -      window.VEGA_DEBUG.VEGA_VERSION = vegaVersion;  | 
512 |  | -      window.VEGA_DEBUG.VEGA_LITE_VERSION = vegaLiteVersion;  | 
513 |  | -      window.VEGA_DEBUG.view = view;  | 
514 |  | -      window.VEGA_DEBUG.vega_spec = spec;  | 
515 |  | -      window.VEGA_DEBUG.vegalite_spec = vlspec;  | 
516 |  | - | 
517 |  | -      // On dispose, clean up, but don't use undefined to prevent repeated debug statements  | 
518 |  | -      this._addDestroyHandler(() => {  | 
519 |  | -        if (debugObj === window.VEGA_DEBUG) {  | 
520 |  | -          window.VEGA_DEBUG.view = null;  | 
521 |  | -          window.VEGA_DEBUG.vega_spec = null;  | 
522 |  | -          window.VEGA_DEBUG.vegalite_spec = null;  | 
523 |  | -          window.VEGA_DEBUG = null;  | 
524 |  | -        }  | 
525 |  | -      });  | 
526 |  | -    }  | 
527 | 499 |   }  | 
528 | 500 | 
 
  | 
529 | 501 |   destroy() {  | 
 | 
0 commit comments