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({
3838 ] . join ( ' ' )
3939 } ) ,
4040
41+ hovertext : scatterAttrs . hovertext ,
42+
4143 textposition : scatterAttrs . textposition ,
4244 textfont : scatterAttrs . textfont ,
4345
Original file line number Diff line number Diff line change @@ -210,8 +210,9 @@ function sceneUpdate(gd, subplot) {
210210
211211 // apply new option to all regl components (used on drag)
212212 scene . update = function update ( opt ) {
213+ var i , j ;
213214 var opts = new Array ( scene . count ) ;
214- for ( var i = 0 ; i < scene . count ; i ++ ) {
215+ for ( i = 0 ; i < scene . count ; i ++ ) {
215216 opts [ i ] = opt ;
216217 }
217218
@@ -221,9 +222,11 @@ function sceneUpdate(gd, subplot) {
221222 if ( scene . error2d ) scene . error2d . update ( opts . concat ( opts ) ) ;
222223 if ( scene . select2d ) scene . select2d . update ( opts ) ;
223224 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+ }
227230 }
228231
229232 scene . draw ( ) ;
You can’t perform that action at this time.
0 commit comments