// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import Vueheatmap from './heatmap';
// import { debounce } from 'lodash';
import App from './App';

Vue.config.productionTip = false;
Vue.use(Vueheatmap, {
  afterAdd(data) {
    console.log(data);
  },
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App },
});

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import { Subject } from 'rxjs';
import Vueheatmap from './heatmap';
// import { debounce } from 'lodash';
import App from './App';

const stream = new Subject();

Vue.config.productionTip = false;
Vue.use(Vueheatmap, {
  stream,
});

stream
  .throttleTime(1000)
  .subscribe(console.log);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App },
});

Update example, pass in stream to subscribe to locally.
Update example, pass in stream to subscribe to locally.
