Skip to content

Commit

Permalink
revert: "fix: Use virtual-webgl to circumvent browser limits on WebGL…
Browse files Browse the repository at this point in the history
… contexts (#2349)" (#2356)

This reverts commit 6a20d69.
  • Loading branch information
mofojed authored Feb 4, 2025
1 parent 25563dc commit 9d49873
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 1,226 deletions.
2 changes: 1 addition & 1 deletion jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@testing-library/jest-dom';
import { TextDecoder, TextEncoder } from 'util';
import { performance } from 'perf_hooks';
import 'jest-webgl-canvas-mock';
import 'jest-canvas-mock';
import './__mocks__/dh-core';
import Log from '@deephaven/log';
import { TestUtils } from '@deephaven/test-utils';
Expand Down
42 changes: 21 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"identity-obj-proxy": "^3.0.0",
"jasmine": "4.0.2",
"jest": "^29.3.1",
"jest-webgl-canvas-mock": "2.5.3",
"jest-canvas-mock": "^2.4.0",
"jest-environment-jsdom": "^29.3.1",
"jest-runner-eslint": "^1.1.0",
"jest-runner-stylelint": "^2.3.7",
Expand Down
13 changes: 0 additions & 13 deletions packages/chart/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
import Log from '@deephaven/log';
import { initializeVirtualWebGL } from './virtual-webgl';

const log = Log.module('@deephaven/chart index');

try {
// Used to show many WebGL plots on the same page
// https://github.com/plotly/plotly.js/?tab=readme-ov-file#need-to-have-several-webgl-graphs-on-a-page
initializeVirtualWebGL();
} catch (e) {
log.warn('Failed to initialize virtual WebGL', e);
}

export { default as Chart } from './LazyChart';
export { default as ChartModelFactory } from './ChartModelFactory';
export { default as ChartModel } from './ChartModel';
Expand Down
Loading

0 comments on commit 9d49873

Please sign in to comment.