Skip to content

Fix shared regl instance extensions - #8218

Draft
sanketpatel32 wants to merge 5 commits into
plotly:mainfrom
sanketpatel32:devin/1796115095-regl-extensions
Draft

sanketpatel32 wants to merge 5 commits into
plotly:mainfrom
sanketpatel32:devin/1796115095-regl-extensions

Conversation

@sanketpatel32

@sanketpatel32 sanketpatel32 commented Dec 1, 2026 •

Copy link
Copy Markdown

Fixes #8212.

This draft awaits Sanket's review before it is marked ready. 🐦

prepareRegl now requests the union of extensions used by regl trace modules as optional extensions when it creates a shared instance. It also checks required extensions on reused instances. Any trace type can create the shared instance first, so the union makes the extensions available to later trace types. This keeps unrelated traces available when a browser lacks an extension.

Tests added in scattergl_test.js cover Plotly.react from parcoords to scattergl lines and a figure with parcoords before scattergl lines, fill, and error_y.

Ran:

  • npm run lint — passed; Biome printed the existing schema-version info for CLI 2.6.9 against schema 2.5.15
  • npm run typecheck — passed
  • npm run test-syntax — passed
  • CI=1 GITHUB_ACTIONS=true npm run test-jasmine -- scattergl parcoords --nowatch --report-progress — 109 SUCCESS
  • CI=1 GITHUB_ACTIONS=true npm run test-jasmine -- scattergl parcoords splom --nowatch --report-progress — 155 SUCCESS, 4 FAILED in splom drag/select interaction tests
  • CI=1 GITHUB_ACTIONS=true npm run test-jasmine -- splom --nowatch --report-progress on unmodified main — the same 4 failures, so they predate this change
  • CI=1 GITHUB_ACTIONS=true npm run test-jasmine -- gl2d_plot_interact --nowatch --report-progress on unmodified main — 11 SUCCESS, 5 FAILED in drag interaction tests, with an afterAll _hoverlayer error

No mock or baseline changed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant