Conversation

MzyzzG

This PR fixes issue #7387 by specifying the color and depth buffers in the regl.clear() call in src/traces/scattergl/plot.js. This prevents the "Performance warning: clear() called with no buffers in bitmask" warning.

Changes:

  • Modified regl.clear({}) to regl.clear({ color: true, depth: true }).

@gvwilsongvwilson added featuresomething newcommunitycommunity contributionP2considered for next cyclelabels Mar 17, 2025
@archmoj

This PR looks good to me.
💯 🙏 Many thanks @zachchan-voltaiq
Thanks to @emilykl's #7396 and in order for the failing tests to pass you could fetch upstream/master and merge it into your PR branch.

Please add a draft log as described here: https://.com/plotly/plotly.js/tree/master/draftlogs

Also it would be great if you add a jasmine test possibly in test/jasmine/tests/scattergl_test.js to lock the bug you fixed in this PR.

Thank you!

Sign up for free to join this conversation on . Already have an account? Sign in to comment
communitycommunity contributionfeaturesomething newP2considered for next cycle
None yet

Successfully merging this pull request may close these issues.