@@ -694,7 +694,7 @@ function emitPointsEventColorHovermode(bandElement, eventName, event) {
694
694
}
695
695
696
696
/**
697
- * Create hover label for a band element's category (for use when hovermode === 'category')
697
+ * Create hover label for a band element's category (for use when hoveron === 'category')
698
698
*
699
699
* @param {ClientRect } rootBBox
700
700
* Client bounding box for root of figure
@@ -755,7 +755,7 @@ function createHoverLabelForCategoryHovermode(rootBBox, bandElement) {
755
755
}
756
756
757
757
/**
758
- * Create hover label for a band element's category (for use when hovermode === 'category')
758
+ * Create hover label for a band element's category (for use when hoveron === 'category')
759
759
*
760
760
* @param {ClientRect } rootBBox
761
761
* Client bounding box for root of figure
@@ -779,7 +779,7 @@ function createHoverLabelForDimensionHovermode(rootBBox, bandElement) {
779
779
}
780
780
781
781
/**
782
- * Create hover labels for a band element's category (for use when hovermode === 'dimension')
782
+ * Create hover labels for a band element's category (for use when hoveron === 'dimension')
783
783
*
784
784
* @param {ClientRect } rootBBox
785
785
* Client bounding box for root of figure
@@ -899,13 +899,13 @@ function mouseoverCategoryBand(bandViewModel) {
899
899
var gd = bandViewModel . parcatsViewModel . graphDiv ;
900
900
var fullLayout = gd . _fullLayout ;
901
901
var rootBBox = fullLayout . _paperdiv . node ( ) . getBoundingClientRect ( ) ;
902
- var hovermode = bandViewModel . parcatsViewModel . hovermode ;
902
+ var hoveron = bandViewModel . parcatsViewModel . hoveron ;
903
903
904
904
/** @type {HTMLElement } */
905
905
var bandElement = this ;
906
906
907
907
// Handle style and events
908
- if ( hovermode === 'color' ) {
908
+ if ( hoveron === 'color' ) {
909
909
styleForColorHovermode ( bandElement ) ;
910
910
emitPointsEventColorHovermode ( bandElement , 'plotly_hover' , d3 . event ) ;
911
911
} else {
@@ -916,11 +916,11 @@ function mouseoverCategoryBand(bandViewModel) {
916
916
// Handle hover label
917
917
if ( bandViewModel . parcatsViewModel . hoverinfoItems . indexOf ( 'none' ) === - 1 ) {
918
918
var hoverItems ;
919
- if ( hovermode === 'category' ) {
919
+ if ( hoveron === 'category' ) {
920
920
hoverItems = createHoverLabelForCategoryHovermode ( rootBBox , bandElement ) ;
921
- } else if ( hovermode === 'color' ) {
921
+ } else if ( hoveron === 'color' ) {
922
922
hoverItems = createHoverLabelForColorHovermode ( rootBBox , bandElement ) ;
923
- } else if ( hovermode === 'dimension' ) {
923
+ } else if ( hoveron === 'dimension' ) {
924
924
hoverItems = createHoverLabelForDimensionHovermode ( rootBBox , bandElement ) ;
925
925
}
926
926
@@ -962,11 +962,11 @@ function mouseoutCategory(bandViewModel) {
962
962
// Emit unhover event
963
963
if ( parcatsViewModel . hoverinfoItems . indexOf ( 'skip' ) === - 1 ) {
964
964
965
- var hovermode = bandViewModel . parcatsViewModel . hovermode ;
965
+ var hoveron = bandViewModel . parcatsViewModel . hoveron ;
966
966
var bandElement = this ;
967
967
968
968
// Handle style and events
969
- if ( hovermode === 'color' ) {
969
+ if ( hoveron === 'color' ) {
970
970
emitPointsEventColorHovermode ( bandElement , 'plotly_unhover' , d3 . event ) ;
971
971
} else {
972
972
emitPointsEventCategoryHovermode ( bandElement , 'plotly_unhover' , d3 . event ) ;
@@ -1209,7 +1209,7 @@ function dragDimensionEnd(d) {
1209
1209
// ----------------------------
1210
1210
if ( d . parcatsViewModel . hoverinfoItems . indexOf ( 'skip' ) === - 1 ) {
1211
1211
if ( ! d . dragHasMoved && d . potentialClickBand ) {
1212
- if ( d . parcatsViewModel . hovermode === 'color' ) {
1212
+ if ( d . parcatsViewModel . hoveron === 'color' ) {
1213
1213
emitPointsEventColorHovermode ( d . potentialClickBand , 'plotly_click' , d3 . event . sourceEvent ) ;
1214
1214
} else {
1215
1215
emitPointsEventCategoryHovermode ( d . potentialClickBand , 'plotly_click' , d3 . event . sourceEvent ) ;
@@ -1489,7 +1489,7 @@ function createParcatsViewModel(graphDiv, layout, wrappedParcatsModel) {
1489
1489
y : traceY ,
1490
1490
width : traceWidth ,
1491
1491
height : traceHeight ,
1492
- hovermode : trace . hovermode ,
1492
+ hoveron : trace . hoveron ,
1493
1493
hoverinfoItems : hoverinfoItems ,
1494
1494
arrangement : trace . arrangement ,
1495
1495
bundlecolors : trace . bundlecolors ,
@@ -1949,8 +1949,8 @@ function createDimensionViewModel(parcatsViewModel, dimensionModel) {
1949
1949
* X position of this trace with respect to the Figure (pixels)
1950
1950
* @property {Number } y
1951
1951
* Y position of this trace with respect to the Figure (pixels)
1952
- * @property {String } hovermode
1953
- * Hover mode. One of: 'none', 'category', 'color', or 'dimension'
1952
+ * @property {String } hoveron
1953
+ * Hover interaction mode. One of: 'category', 'color', or 'dimension'
1954
1954
* @property {Array.<String> } hoverinfoItems
1955
1955
* Info to display on hover. Array with a combination of 'counts' and/or 'probabilities', or 'none', or 'skip'
1956
1956
* @property {String } arrangement
0 commit comments