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