File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ var attrs = module.exports = overrideAll({
38
38
] . join ( ' ' )
39
39
} ) ,
40
40
41
+ hovertext : scatterAttrs . hovertext ,
42
+
41
43
textposition : scatterAttrs . textposition ,
42
44
textfont : scatterAttrs . textfont ,
43
45
Original file line number Diff line number Diff line change @@ -210,8 +210,9 @@ function sceneUpdate(gd, subplot) {
210
210
211
211
// apply new option to all regl components (used on drag)
212
212
scene . update = function update ( opt ) {
213
+ var i , j ;
213
214
var opts = new Array ( scene . count ) ;
214
- for ( var i = 0 ; i < scene . count ; i ++ ) {
215
+ for ( i = 0 ; i < scene . count ; i ++ ) {
215
216
opts [ i ] = opt ;
216
217
}
217
218
@@ -221,9 +222,11 @@ function sceneUpdate(gd, subplot) {
221
222
if ( scene . error2d ) scene . error2d . update ( opts . concat ( opts ) ) ;
222
223
if ( scene . select2d ) scene . select2d . update ( opts ) ;
223
224
if ( scene . glText ) {
224
- // scene.glText.forEach(function (text) {
225
- // text.update(opts);
226
- // })
225
+ for ( i = 0 ; i < scene . glText . length ; i ++ ) {
226
+ for ( j = 0 ; j < scene . glText [ i ] . length ; j ++ ) {
227
+ scene . glText [ i ] [ j ] . update ( opts [ i ] ) ;
228
+ }
229
+ }
227
230
}
228
231
229
232
scene . draw ( ) ;
You can’t perform that action at this time.
0 commit comments