@@ -56,20 +56,18 @@ export default {
5656 mounted () {
5757 console .log (' mounted' )
5858 console .log (this .$route .path )
59- if (this .$route .path === ' /plot' ) {
60- window .plot = () => { this .plot () }
61- window .setPlotData = (data ) => { this .plotData = data }
62- window .setPlotOptions = (options ) => { this .plotOptions = options }
63- window .setFlightModeChanges = (modes ) => { this .flightModeChanges = modes }
64- window .setCssColors = (colors ) => { this .cssColors = colors }
65- window .setTimeRange = (timeRange ) => { this .setTimeRange (timeRange) }
66- window .setEventHub = (eventHub ) => {
67- this .$eventHub = eventHub
68- this .$eventHub .$on (' cesium-time-changed' , this .setCursorTime )
69- this .$eventHub .$on (' hoveredTime' , this .setCursorTime )
70- this .$eventHub .$on (' child-zoomed' , this .setTimeRange )
71- this .$eventHub .$on (' force-resize-plotly' , this .resize )
72- }
59+ window .plot = () => { this .plot () }
60+ window .setPlotData = (data ) => { this .plotData = data }
61+ window .setPlotOptions = (options ) => { this .plotOptions = options }
62+ window .setFlightModeChanges = (modes ) => { this .flightModeChanges = modes }
63+ window .setCssColors = (colors ) => { this .cssColors = colors }
64+ window .setTimeRange = (timeRange ) => { this .setTimeRange (timeRange) }
65+ window .setEventHub = (eventHub ) => {
66+ this .$eventHub = eventHub
67+ this .$eventHub .$on (' cesium-time-changed' , this .setCursorTime )
68+ this .$eventHub .$on (' hoveredTime' , this .setCursorTime )
69+ this .$eventHub .$on (' child-zoomed' , this .setTimeRange )
70+ this .$eventHub .$on (' force-resize-plotly' , this .resize )
7371 }
7472 const WIDTH_IN_PERCENT_OF_PARENT = 90
7573 d3 .select (' #line' )
0 commit comments