10
10
*
11
11
* */
12
12
'use strict' ;
13
+ import Series from '../../../Core/Series/Series.js' ;
14
+ var seriesTypes = Series . seriesTypes ;
15
+ import CartesianSeries from '../../../Core/Series/CartesianSeries.js' ;
13
16
import Chart from '../../../Core/Chart/Chart.js' ;
14
- import H from '../../../Core/Globals.js' ;
15
17
import Point from '../../../Core/Series/Point.js' ;
16
18
import U from '../../../Core/Utilities.js' ;
17
19
var defined = U . defined , extend = U . extend ;
@@ -26,10 +28,10 @@ import '../../../Series/PieSeries.js';
26
28
* Set for which series types it makes sense to move to the closest point with
27
29
* up/down arrows, and which series types should just move to next series.
28
30
*/
29
- H . Series . prototype . keyboardMoveVertical = true ;
31
+ CartesianSeries . prototype . keyboardMoveVertical = true ;
30
32
[ 'column' , 'pie' ] . forEach ( function ( type ) {
31
- if ( H . seriesTypes [ type ] ) {
32
- H . seriesTypes [ type ] . prototype . keyboardMoveVertical = false ;
33
+ if ( seriesTypes [ type ] ) {
34
+ seriesTypes [ type ] . prototype . keyboardMoveVertical = false ;
33
35
}
34
36
} ) ;
35
37
/**
@@ -234,7 +236,7 @@ Chart.prototype.highlightAdjacentPoint = function (next) {
234
236
*
235
237
* @return {boolean|Highcharts.Point }
236
238
*/
237
- H . Series . prototype . highlightFirstValidPoint = function ( ) {
239
+ CartesianSeries . prototype . highlightFirstValidPoint = function ( ) {
238
240
var curPoint = this . chart . highlightedPoint , start = ( curPoint && curPoint . series ) === this ?
239
241
getPointIndex ( curPoint ) :
240
242
0 , points = this . points , len = points . length ;
@@ -400,7 +402,7 @@ extend(SeriesKeyboardNavigation.prototype, /** @lends Highcharts.SeriesKeyboardN
400
402
*/
401
403
init : function ( ) {
402
404
var keyboardNavigation = this , chart = this . chart , e = this . eventProvider = new EventProvider ( ) ;
403
- e . addEvent ( H . Series , 'destroy' , function ( ) {
405
+ e . addEvent ( CartesianSeries , 'destroy' , function ( ) {
404
406
return keyboardNavigation . onSeriesDestroy ( this ) ;
405
407
} ) ;
406
408
e . addEvent ( chart , 'afterDrilldown' , function ( ) {
0 commit comments