import { ActionCreators as historyActions } from 'redux-undo' ; import * as vega from 'vega' ; import { addMark } from './actions/markActions' ; import { createScene } from './actions/sceneActions' ; import { store as initialStore } from './store' ; import { Mark } from './store/factory/Mark' ; import { Scene } from './store/factory/marks/Scene' ; require ( '../scss/app.scss' ) ; require ( 'array.prototype.find' ) ; require ( 'string.prototype.startswith' ) ; require ( './transforms' ) ; const store = ( global as any ) . store = initialStore ; const ctrl = ( ( global as any ) . ctrl = require ( './ctrl' ) ) ; const listeners = require ( './store/listeners' ) ; store . subscribe ( listeners . createStoreListener ( store , ctrl ) ) ; ( store as any ) . dispatch ( createScene ( Scene ( ) ) ) ; ( store as any ) . dispatch ( addMark ( Mark ( 'group' , { _parent : 1 } ) ) ) ; import './components' ; store . dispatch ( historyActions . clearHistory ( ) ) ; ( global as any ) . vega = vega ;