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