infect-frontend
Version:
infect fronend
28 lines (22 loc) • 573 B
JavaScript
import { observable, action } from 'mobx';
import debug from 'debug';
const log = debug('infect:GuidedTour');
export default class GuidedTour {
/**
* @param {InfoOverlay} infoOverlay Reference to the info overlay model (overlay must be
* closed when guided tour is displayed)
*/
constructor(infoOverlay) {
this.infoOverlay = infoOverlay;
}
started = false;
start() {
log('Start guided tour, hide infoOverlay');
this.started = true;
this.infoOverlay.hide();
}
end() {
log('End');
this.started = false;
}
}