@@ -56,20 +56,18 @@ export default {
56
56
mounted () {
57
57
console .log (' mounted' )
58
58
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 )
73
71
}
74
72
const WIDTH_IN_PERCENT_OF_PARENT = 90
75
73
d3 .select (' #line' )
0 commit comments