-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
push trace module into fullLayout._modules even if visible:false
- so that gl-based trace can call their plot methods w/ an empty array of traces and just work. - this makes restyle(gd, 'visible', false) work properly for scattergl traces
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This makes
fullLayout._has('gl') === true
even when all scattergl traces arevisible !== true
which in turn makesCartersian.plot
callScattergl.plot
here:plotly.js/src/plots/cartesian/index.js
Lines 269 to 274 in 180b6b9
and sets up an empty
scene.visibleBatch
ready to be skipped on render.Previously, when all scattergl traces were
visible !== true
, we would clear the scene here:plotly.js/src/plots/cartesian/index.js
Lines 312 to 320 in 180b6b9
resulting in very slow updates.