@@ -89,7 +89,7 @@ function getButtonGroups(gd) {
89
89
var hasGeo = fullLayout . _has ( 'geo' ) ;
90
90
var hasPie = fullLayout . _has ( 'pie' ) ;
91
91
var hasFunnelarea = fullLayout . _has ( 'funnelarea' ) ;
92
- var hasHeatmapgl = fullLayout . _has ( 'gl2d' ) ;
92
+ var hasGL2D = fullLayout . _has ( 'gl2d' ) ;
93
93
var hasTernary = fullLayout . _has ( 'ternary' ) ;
94
94
var hasMapbox = fullLayout . _has ( 'mapbox' ) ;
95
95
var hasPolar = fullLayout . _has ( 'polar' ) ;
@@ -124,7 +124,7 @@ function getButtonGroups(gd) {
124
124
var resetGroup = [ ] ;
125
125
var dragModeGroup = [ ] ;
126
126
127
- if ( ( hasCartesian || hasHeatmapgl || hasPie || hasFunnelarea || hasTernary ) + hasGeo + hasGL3D + hasMapbox + hasPolar > 1 ) {
127
+ if ( ( hasCartesian || hasGL2D || hasPie || hasFunnelarea || hasTernary ) + hasGeo + hasGL3D + hasMapbox + hasPolar > 1 ) {
128
128
// graphs with more than one plot types get 'union buttons'
129
129
// which reset the view or toggle hover labels across all subplots.
130
130
hoverGroup = [ 'toggleHover' ] ;
@@ -140,7 +140,7 @@ function getButtonGroups(gd) {
140
140
zoomGroup = [ 'zoomInMapbox' , 'zoomOutMapbox' ] ;
141
141
hoverGroup = [ 'toggleHover' ] ;
142
142
resetGroup = [ 'resetViewMapbox' ] ;
143
- } else if ( hasHeatmapgl ) {
143
+ } else if ( hasGL2D ) {
144
144
hoverGroup = [ 'hoverClosestGl2d' ] ;
145
145
} else if ( hasPie ) {
146
146
hoverGroup = [ 'hoverClosestPie' ] ;
@@ -161,14 +161,14 @@ function getButtonGroups(gd) {
161
161
hoverGroup = [ ] ;
162
162
}
163
163
164
- if ( ( hasCartesian || hasHeatmapgl ) && ! allAxesFixed ) {
164
+ if ( ( hasCartesian || hasGL2D ) && ! allAxesFixed ) {
165
165
zoomGroup = [ 'zoomIn2d' , 'zoomOut2d' , 'autoScale2d' ] ;
166
166
if ( resetGroup [ 0 ] !== 'resetViews' ) resetGroup = [ 'resetScale2d' ] ;
167
167
}
168
168
169
169
if ( hasGL3D ) {
170
170
dragModeGroup = [ 'zoom3d' , 'pan3d' , 'orbitRotation' , 'tableRotation' ] ;
171
- } else if ( ( ( hasCartesian || hasHeatmapgl ) && ! allAxesFixed ) || hasTernary ) {
171
+ } else if ( ( ( hasCartesian || hasGL2D ) && ! allAxesFixed ) || hasTernary ) {
172
172
dragModeGroup = [ 'zoom2d' , 'pan2d' ] ;
173
173
} else if ( hasMapbox || hasGeo ) {
174
174
dragModeGroup = [ 'pan2d' ] ;
0 commit comments