import { ObservableHeatMapScreen } from '@ulangi/ulangi-observable' ; import { DateRangeDelegate } from '../../delegates/progress/DateRangeDelegate' ; import { HeatMapDelegate } from '../../delegates/progress/HeatMapDelegate' ; import { HeatMapScreenDelegate } from '../../delegates/progress/HeatMapScreenDelegate' ; import { ScreenFactory } from '../ScreenFactory' ; export class HeatMapScreenFactory extends ScreenFactory { public createDateRangeDelegate ( ) { return new DateRangeDelegate ( ) ; } public createScreenDelegate ( observableScreen ) { const navigatorDelegate = this . createNavigatorDelegate ( ) ; const heatMapDelegate = new HeatMapDelegate ( this . eventBus , observableScreen . heatMapState ) ; return new HeatMapScreenDelegate ( heatMapDelegate , navigatorDelegate ) ; } }